Skip to content

feat: Add 'open in editor' icon - #462

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

BYK merged 6 commits into
mainfrom
byk/feat/open-in-editor

Conversation

@BYK

@BYK BYK commented Jul 26, 2024 •

Copy link
Copy Markdown
Member

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

vercel Bot commented Jul 26, 2024 •

Copy link
Copy Markdown

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

dcramer commented Jul 26, 2024

Copy link
Copy Markdown
Member

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

Comment thread packages/sidecar/src/main.ts Resolved
Comment thread packages/sidecar/src/main.ts Resolved
Comment thread packages/sidecar/src/main.ts Resolved

@Shubhdeep12 Shubhdeep12 left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

@BYK

BYK commented Jul 29, 2024

Copy link
Copy Markdown
Member Author

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/[email protected]

### 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/[email protected]
    -   @spotlightjs/[email protected]

## @spotlightjs/[email protected]

### 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/[email protected]

### 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/[email protected]

### 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/[email protected]
    -   @spotlightjs/[email protected]

## @spotlightjs/[email protected]

### Patch Changes

-   Updated dependencies

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

[`0a6486b14d96a0eafec27a94707e4715b9fc3583`](0a6486b),

[`9a7357f1dedc66d030358176bee777715b09c41b`](9a7357f),

[`06f3070867534641dbb5c394e5513ca9781bbfa8`](06f3070),

[`725cbb5daea8682fdf8fefb952ddce68c97c4d6f`](725cbb5)]:
    -   @spotlightjs/[email protected]

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/[email protected]

### 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/[email protected]
    -   @spotlightjs/[email protected]

## @spotlightjs/[email protected]

### 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/[email protected]

### 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/[email protected]

### 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/[email protected]
    -   @spotlightjs/[email protected]

## @spotlightjs/[email protected]

### Patch Changes

-   Updated dependencies

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

[`0a6486b14d96a0eafec27a94707e4715b9fc3583`](0a6486b),

[`9a7357f1dedc66d030358176bee777715b09c41b`](9a7357f),

[`06f3070867534641dbb5c394e5513ca9781bbfa8`](06f3070),

[`725cbb5daea8682fdf8fefb952ddce68c97c4d6f`](725cbb5)]:
    -   @spotlightjs/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
Preview — b6a6aa25 Deployed Jul 29, 2024 by vercel[bot]
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