Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

feat(svelte): Add reblame support to blame column#63727

Merged
fkling merged 1 commit into
mainfrom
fkling-srch-612-add-support-for-reblaming-a-specific-line
Jul 9, 2024
Merged

feat(svelte): Add reblame support to blame column#63727
fkling merged 1 commit into
mainfrom
fkling-srch-612-add-support-for-reblaming-a-specific-line

Conversation

@fkling

@fkling fkling commented Jul 9, 2024

Copy link
Copy Markdown
Contributor

Closes srch-612

This commit adds a link next to the blame commit message that allows reblaming to a prior commit if available.

It extends the existing blame extension. This won't have any affect on the React app because it doesn't pass the configuration option needed to add the extra gutter.

Some notes:

  • I originally used the tooltip component instead of title but somehow it starts to break when scrolling the document (tooltips don't show up anymore). I don't know if CodeMirror does anything to the DOM elements that causes this to fail.
  • The reblame URL also selected the corresponding line so that the correct line is scrolled into view.

2024-07-09_20-42

Test plan

Manual testing

This commit adds a link next to the blame commit message that allows
reblaming to a prior commit if available.

It extends the existing blame extension. This won't have any affect on
the React app because it doesn't pass the configuration option needed to
add the extra gutter.

Some notes:

- I originally used the tooltip component instead of `title` but somehow
  it starts to break when scrolling the document (tooltips don't show up
  anymore). I don't know if CodeMirror does anything to the DOM elements
  that causes this to fail.
- The reblame URL also selected the corresponding line so that the
  correct line is scrolled into view.
@fkling fkling requested review from camdencheek and vovakulikov July 9, 2024 18:55
@fkling fkling self-assigned this Jul 9, 2024
@cla-bot cla-bot Bot added the cla-signed label Jul 9, 2024
},
'.cm-gutterElement': {
lineHeight: '1.54',
minWidth: '40px !important',

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Don't know why we had this in there. Doesn't seem to be necessary.

@camdencheek camdencheek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Works great -- thank you!

@fkling fkling merged commit 0fc4d28 into main Jul 9, 2024
@fkling fkling deleted the fkling-srch-612-add-support-for-reblaming-a-specific-line branch July 9, 2024 19:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants