feat: flip graph layout — commit details left, graph dots right + re-center button#25
Merged
Conversation
… button - Moved SHA, commit message, and date labels to the LEFT side - Graph dots/edges now render on the RIGHT side (offset by label area width) - Added re-center button (⊙) in top-right corner that smoothly animates to the latest commit at scale 1, positioned near top-center - Button uses Obsidian dark theme styling with hover effects
- Fixed coordinate calculation: accounts for LABEL_AREA_WIDTH offset so the full row (labels + graph dot) is visible - Scale fits content width to viewport (capped at 1x) - Latest commit positioned 40px from the top of the viewport - Content centered horizontally when narrower than viewport
Two bugs fixed:
1. AppLayout URL-sync effect was overriding user's explicit org selection.
When clicking 'Personal', selectedOwner was set to null, but the
sync effect immediately saw params.owner !== null and reverted it.
Added a ref flag (userSelectedOwnerRef) to skip the sync effect
after intentional selections.
2. useOrgRepos was resetting accumulated repos when switching between
null and userLogin (both resolve to Personal). The reset effect
keyed on raw owner, but both values hit the same API endpoint.
Now uses an effectiveOwner key ('__personal__' for both null and
userLogin) so it only resets when the actual data source changes.
Swapped the ambiguous ⊙ character for a proper crosshair icon (circle + 4 tick marks) — unmistakably a 're-center' button.
All dropdowns, buttons, and pickers now share: - height: 36px (explicit) - border-radius: 8px - padding: 0.375rem 0.75rem - box-sizing: border-box Components standardized: - Org dropdown (AppLayout header) - Repo dropdown (AppLayout header) - BranchSelector button - DateRangePicker preset select (also removed native appearance for consistent cross-browser rendering + custom dropdown arrow) - DateRangePicker date range button
homeles
approved these changes
Apr 16, 2026
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.
Changes
Layout flip
This matches the annotated screenshot direction — text info is immediately readable on the left, with the visual branch graph flowing on the right.
Re-center button
Technical details
LABEL_AREA_WIDTHto sit after the textrecenter()usesuseCallbackand callsd3svg.transition().call(zoom.transform, ...)for smooth animationtsc -bbuild (strict mode)