Skip to content

feat: Add 'open in editor' icon#462

Merged
BYK merged 6 commits intomainfrom
byk/feat/open-in-editor
Jul 29, 2024
Merged

feat: Add 'open in editor' icon#462
BYK merged 6 commits intomainfrom
byk/feat/open-in-editor

Conversation

@BYK
Copy link
Member

@BYK BYK commented Jul 26, 2024

Closes #459.

Adds a little pencil icon that opens the file in the editor when clicked. This is done on the sidecar side.

PS: Need to document LAUNCH_EDITOR env variable. We use EDITOR by default and if it is vim or something terminal based, it is opened on the terminal that runs the sidecar, which becomes confusing at times.

image

Closes #459.

Adds a little pencil icon that opens the file in the editor when clicked. This is done on the sidecar side.
@vercel
Copy link

vercel bot commented Jul 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
spotlightjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 29, 2024 1:47pm

@dcramer
Copy link
Member

dcramer commented Jul 26, 2024

needs a flex items-center on the parent container so everythings vertically centered :)

Copy link
Collaborator

@Shubhdeep12 Shubhdeep12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @BYK added some suggestions and a query.

@BYK BYK merged commit 725cbb5 into main Jul 29, 2024
@BYK BYK deleted the byk/feat/open-in-editor branch July 29, 2024 14:17
@Shubhdeep12
Copy link
Collaborator

Hey @BYK sorry, missed the auto-merge update and i approved the PR..
we still have to add that default value, right?

@BYK
Copy link
Member Author

BYK commented Jul 29, 2024

@Shubhdeep12

we still have to add that default value, right?

It's already in. Right here: https://github.com/getsentry/spotlight/pull/462/files#diff-3d272de828f072bb4c96f6d45c9506aca3614dd09b21b4188e5223e916e5cfd3R215

BYK pushed a commit that referenced this pull request Jul 29, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to main, this PR will be updated.


# Releases
## @spotlightjs/electron@1.1.0

### Minor Changes

- Add ability to use sidecar URL in a DSN
([#452](#452))

### Patch Changes

-   Updated dependencies

\[[`0a6486b14d96a0eafec27a94707e4715b9fc3583`](0a6486b),

[`9a7357f1dedc66d030358176bee777715b09c41b`](9a7357f),

[`06f3070867534641dbb5c394e5513ca9781bbfa8`](06f3070),

[`725cbb5daea8682fdf8fefb952ddce68c97c4d6f`](725cbb5)]:
    -   @spotlightjs/sidecar@1.6.0
    -   @spotlightjs/overlay@2.2.0

## @spotlightjs/overlay@2.2.0

### Minor Changes

- Move contextlines provider to sidecar
([#454](#454))

- Add 'open in editor' icon
([#462](#462))

### Patch Changes

-   Fix incompatibility between Spotlight and Storybook's bundling.
    ([#420](#420))

## @spotlightjs/sidecar@1.6.0

### Minor Changes

- Add ability to use sidecar URL in a DSN
([#452](#452))

- Move contextlines provider to sidecar
([#454](#454))

- Add 'open in editor' icon
([#462](#462))

## @spotlightjs/spotlight@2.2.0

### Minor Changes

- Add ability to use sidecar URL in a DSN
([#452](#452))

- Move contextlines provider to sidecar
([#454](#454))

- Add 'open in editor' icon
([#462](#462))

### Patch Changes

-   Fix `npx @spotlightjs/spotlight` not running standalone overlay
    ([#457](#457))

-   Fix incompatibility between Spotlight and Storybook's bundling.
    ([#420](#420))

-   Updated dependencies

\[[`0a6486b14d96a0eafec27a94707e4715b9fc3583`](0a6486b),

[`9a7357f1dedc66d030358176bee777715b09c41b`](9a7357f),

[`06f3070867534641dbb5c394e5513ca9781bbfa8`](06f3070),

[`725cbb5daea8682fdf8fefb952ddce68c97c4d6f`](725cbb5)]:
    -   @spotlightjs/sidecar@1.6.0
    -   @spotlightjs/overlay@2.2.0

## @spotlightjs/astro@2.1.2

### Patch Changes

-   Updated dependencies

\[[`6cf5de875f3f8e5a6ff0ec165dbd71af3b1932f5`](6cf5de8),

[`0a6486b14d96a0eafec27a94707e4715b9fc3583`](0a6486b),

[`9a7357f1dedc66d030358176bee777715b09c41b`](9a7357f),

[`06f3070867534641dbb5c394e5513ca9781bbfa8`](06f3070),

[`725cbb5daea8682fdf8fefb952ddce68c97c4d6f`](725cbb5)]:
    -   @spotlightjs/spotlight@2.2.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dcramer pushed a commit that referenced this pull request Jun 3, 2025
Closes #459.

Adds a little pencil icon that opens the file in the editor when
clicked. This is done on the sidecar side.

PS: Need to document `LAUNCH_EDITOR` env variable. We use `EDITOR` by
default and if it is `vim` or something terminal based, it is opened on
the terminal that runs the sidecar, which becomes confusing at times.

![image](https://github.com/user-attachments/assets/af701484-6adf-4e93-ab34-10502d85728d)
dcramer pushed a commit that referenced this pull request Jun 3, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to main, this PR will be updated.


# Releases
## @spotlightjs/electron@1.1.0

### Minor Changes

- Add ability to use sidecar URL in a DSN
([#452](#452))

### Patch Changes

-   Updated dependencies

\[[`0a6486b14d96a0eafec27a94707e4715b9fc3583`](0a6486b),

[`9a7357f1dedc66d030358176bee777715b09c41b`](9a7357f),

[`06f3070867534641dbb5c394e5513ca9781bbfa8`](06f3070),

[`725cbb5daea8682fdf8fefb952ddce68c97c4d6f`](725cbb5)]:
    -   @spotlightjs/sidecar@1.6.0
    -   @spotlightjs/overlay@2.2.0

## @spotlightjs/overlay@2.2.0

### Minor Changes

- Move contextlines provider to sidecar
([#454](#454))

- Add 'open in editor' icon
([#462](#462))

### Patch Changes

-   Fix incompatibility between Spotlight and Storybook's bundling.
    ([#420](#420))

## @spotlightjs/sidecar@1.6.0

### Minor Changes

- Add ability to use sidecar URL in a DSN
([#452](#452))

- Move contextlines provider to sidecar
([#454](#454))

- Add 'open in editor' icon
([#462](#462))

## @spotlightjs/spotlight@2.2.0

### Minor Changes

- Add ability to use sidecar URL in a DSN
([#452](#452))

- Move contextlines provider to sidecar
([#454](#454))

- Add 'open in editor' icon
([#462](#462))

### Patch Changes

-   Fix `npx @spotlightjs/spotlight` not running standalone overlay
    ([#457](#457))

-   Fix incompatibility between Spotlight and Storybook's bundling.
    ([#420](#420))

-   Updated dependencies

\[[`0a6486b14d96a0eafec27a94707e4715b9fc3583`](0a6486b),

[`9a7357f1dedc66d030358176bee777715b09c41b`](9a7357f),

[`06f3070867534641dbb5c394e5513ca9781bbfa8`](06f3070),

[`725cbb5daea8682fdf8fefb952ddce68c97c4d6f`](725cbb5)]:
    -   @spotlightjs/sidecar@1.6.0
    -   @spotlightjs/overlay@2.2.0

## @spotlightjs/astro@2.1.2

### Patch Changes

-   Updated dependencies

\[[`6cf5de875f3f8e5a6ff0ec165dbd71af3b1932f5`](6cf5de8),

[`0a6486b14d96a0eafec27a94707e4715b9fc3583`](0a6486b),

[`9a7357f1dedc66d030358176bee777715b09c41b`](9a7357f),

[`06f3070867534641dbb5c394e5513ca9781bbfa8`](06f3070),

[`725cbb5daea8682fdf8fefb952ddce68c97c4d6f`](725cbb5)]:
    -   @spotlightjs/spotlight@2.2.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add click to open in editor functionality

3 participants