feat(viewer): Enhance detail drawer with FK/IX pills, navigation, and depth control#65
Merged
Merged
Conversation
Show foreign key and index badges alongside existing PK pills in the column detail drawer, using metadata already available from the layout graph.
Clicking a relation row in the detail drawer now selects the target table and centers the viewport on it, enabling schema traversal directly from the drawer.
Clicking an edge in the SVG selects the source (FK-holding) table and centers the viewport, so the drawer shows the relation detail in context.
Selected table now shows a depth toggle (1-hop / 2-hop) above the columns section. Switching to 2-hop extends the BFS highlight to two levels of neighbors and their connecting edges, making it easier to trace indirect dependencies.
The detail drawer now displays a "Join Table" badge when the table is a join table candidate, and splits the relation metrics into total / inbound / outbound with directional arrows for quick orientation.
The detail drawer now keeps metric labels and relation rows inside the panel width, preventing columns / relations labels from spilling past their cards when space is tight. Relationship metadata is also rendered with a smaller secondary style, so foreign-key column mappings no longer overpower the primary table-to-table relation label.
Code Metrics Report
Details | | main (3a2dc06) | #65 (52fd04b) | +/- |
|---------------------|----------------|---------------|-------|
+ | Coverage | 94.2% | 94.3% | +0.0% |
| Files | 77 | 77 | 0 |
| Lines | 31140 | 31241 | +101 |
+ | Covered | 29365 | 29466 | +101 |
+ | Test Execution Time | 2m57s | 2m54s | -3s |Code coverage of files in pull request scope (99.9% → 99.9%)
Reported by octocov |
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
Changes