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

Move git-extras functionality to the core workflow#39133

Merged
taras-yemets merged 40 commits into
mainfrom
taras-yemets/migrate-git-extras
Jul 27, 2022
Merged

Move git-extras functionality to the core workflow#39133
taras-yemets merged 40 commits into
mainfrom
taras-yemets/migrate-git-extras

Conversation

@taras-yemets

@taras-yemets taras-yemets commented Jul 20, 2022

Copy link
Copy Markdown
Contributor

Closes https://github.com/sourcegraph/sourcegraph/issues/39433

  1. Migrates git-extras extension functionality to the core workflow (available under extensionsAsCoreFeatures experimental feature).
    This PR migrates only blame for the whole file mode and omits blame for selected lines mode. Whether we migrate the latter or not depends on the updates to the git blame UI (see this comment) and will be addressed (if needed) in the follow-up PRs.
    In the file view, blame decorations are displayed only in the column view (see https://github.com/sourcegraph/sourcegraph/pull/36007).
    The only UI change is that git blame icon migrated from the action items bar (extensions sidebar) to the repo header section (see screenshots).
  2. Makes blame visibility status unique to the page (blame decorations are hidden initially) as opposed to the user setting synced across all the pages (inspired by how blame works in the VSCode for example).

Loom

Screenshots
File view Screenshot 2022-07-26 at 15 21 45
Commit view Screenshot 2022-07-26 at 15 22 44
Compare view Screenshot 2022-07-26 at 15 23 26

Test plan

  • sg start
  • enable extensionsAsCoreFeatures experimental feature
  • ensure that git-extras extension is not loaded/activated
  • ensure git blame works as before on file, commit and compare pages

App preview:

Check out the client app preview documentation to learn more.

@cla-bot cla-bot Bot added the cla-signed label Jul 20, 2022
@taras-yemets taras-yemets marked this pull request as ready for review July 26, 2022 12:27
@taras-yemets taras-yemets requested review from a team and jjinnii July 26, 2022 12:27

@philipp-spiess philipp-spiess 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.

Amazing stuff!

NASA LGTM

Comment thread client/shared/src/api/extension/activation.ts Outdated
Comment thread client/web/src/repo/RepoContainer.tsx
Comment thread client/web/src/repo/blob/Blob.tsx
@taras-yemets

Copy link
Copy Markdown
Contributor Author

Thank you for your review, @philipp-spiess!

Comment thread client/shared/src/api/extension/activation.ts Outdated

@jjinnii jjinnii 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.

LGTM! As you've already denoted, there are a few things that will likely be subject to change in future PRs (action icon, commit/diff views) but this looks great in the interim to move forward on bringing feature parity into the core product.

@taras-yemets taras-yemets merged commit a2a661f into main Jul 27, 2022
@taras-yemets taras-yemets deleted the taras-yemets/migrate-git-extras branch July 27, 2022 12:52
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.

Move git blame functionality to the core workflow

3 participants