Repository navigation
feat(code-graph): visible hyperlinks between linked graphs, and --backlink - #141
Merged
Merged
Conversation
…klink A --link adds a header button "↗ NAME"; each external node is an SVG <a href> (ring and label, accent colour, tooltip, underline on hover) that works with scripting off. --backlink NAME=URL adds "← NAME". The side panel lists a file's dependencies on external nodes as links, and a page opened with #node= from the same origin shows "arrived from PAGE · back". Tested: nix flake check --no-update-lock-file in labs/code-graph (build+tests, clippy, fmt, size, smoke, lab-json); real run on ptbr-writer main + picasso 45fb340, headless Chrome screenshot and --dump-dom Co-Authored-By: Claude <[email protected]>
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.
Makes the cross-repository links of
--linkreal hyperlinks, so a reader hops from one graph page to the other, HTML to HTML.↗ NAMEper--link(real<a href>).<a href=URL#node=id>(ring + label with ↗, accent colour--hop, tooltip, underline on hover); work with JS off.--backlink NAME=URL(repeatable) adds← NAMEto the header.#node=page opened from the same origin shows an "arrived from · back" banner.Checked on ptbr-writer main + picasso 45fb340 in headless Chrome (graph.html with 5 SVG anchors, picasso.html with the back link).