Conversation
Add a menu item that copies the deep link URL for a file to the clipboard, making existing deep links more discoverable. Closes #139
Contributor
Code Metrics Report
Details | | main (d44a869) | #140 (b19004a) | +/- |
|---------------------|----------------|----------------|-------|
- | Coverage | 57.1% | 57.0% | -0.1% |
| Files | 39 | 39 | 0 |
| Lines | 3256 | 3261 | +5 |
+ | Covered | 1861 | 1862 | +1 |
- | Code to Test Ratio | 1:0.5 | 1:0.5 | -0.1 |
| Code | 5014 | 5047 | +33 |
| Test | 2846 | 2846 | 0 |
| Test Execution Time | 30s | 30s | 0s |Code coverage of files in pull request scope (43.1% → 42.3%)
Reported by octocov |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a “Copy link” action to the file context (kebab) menu in the React frontend to make existing deep-linking more discoverable and easy to share.
Changes:
- Add
onCopyLinkplumbing throughSidebar→TreeView→FileContextMenu - Implement clipboard copy of an absolute deep-link URL using existing
buildFileUrl(activeGroup, id) - Add a new “Copy link” menu item in the file context menu UI
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| internal/frontend/src/components/TreeView.tsx | Wires new onCopyLink callback through tree-view file node rendering into the context menu. |
| internal/frontend/src/components/Sidebar.tsx | Implements handleCopyLink to build an absolute deep link and copy it to the clipboard; passes handler to list/tree render paths. |
| internal/frontend/src/components/FileContextMenu.tsx | Adds a “Copy link” menu item that triggers the new callback with the current file ID. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/<group>?file=<id>) to the clipboardbuildFileUrl()utility to generate the URLCloses #139