Repository navigation
feat(git-history): mark a commit folded into the lane window with * - #1671
Merged
Merged
Conversation
The six-lane cap draws lines past the sixth inside the last column, so a
commit on one of them sat on a dot at a column that is not its own — the
picture read as one line carrying several commits, which is exactly what a
reader reported ("they look joined together").
A folded commit is now `*` instead of `o` (host and TUI), and the decoder
carries `folded` through to the two panels, which draw it as a diamond
instead of a disc. Nothing is dropped: the commit keeps its row, its place
in the sixth column and its detail.
- `host/src/git_history.rs`, `tui/src/workbench/git_panel.rs`: the glyph.
- `tui/src/workbench/screen.rs`: `*` is painted like a commit (strong, lane
colour) and anchors its row's horizontal; the gutter-vocabulary guard now
names the glyph set instead of blacklisting `*`.
- `packages/git-graph`: `*` is a commit; `marker.folded` / `dots.folded`.
- mobile `GitGraphPanel`, desktop `LaneGraph`: diamond (rotated square),
half-diagonal `DOT_RADIUS + 1`, same lane colour.
- fixtures: the three folded rows of the ten-branch demo carry `*`; the
folder's sixth-lane row keeps `o`, which is what shows the distinction.
- screenshot scenarios assert it geometrically: three diamonds, all at
x=77, and no disc in those rows.
A folded merge is `*` too: the window edge cannot draw the elbow a merge
needs, so a ring there would promise a shape the row cannot show.
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.
A commit whose lane was folded into the sixth column is now marked with
*instead ofo, so a windowed graph no longer reads as one line carrying several commits.The six-lane cap draws lines past the sixth inside the last column, so a commit on one of them sat on a dot at a column that is not its own. A folded commit is now
*in the host and TUI text graph, and the decoder carriesfoldedthrough to the desktop and mobile panels, which draw it as a diamond instead of a disc. Nothing is dropped: every commit keeps its row, its place in the sixth column and its detail.Commits
feat(git-history): mark a commit folded into the lane window with *— the glyph inhost/src/git_history.rsandtui/src/workbench/git_panel.rs;tui/src/workbench/screen.rspaints*like a commit (strong, lane colour) and anchors its row;packages/git-graphreads*as a commit and exposesmarker.folded/dots.folded; the desktopLaneGraphand the mobileGitGraphPaneldraw a diamond; fixtures and the screenshot scenarios assert three diamonds at x=77 with no disc in those rows; both TUI guides name the glyph.Verification
Run in a throwaway worktree at
6c05ae57awith the pinned1.99.1toolchain andulimit -n 8192:cargo fmt --all -- --check→ cleancargo check -p future-host -p future-tui --all-targets→ cleancargo clippy -p future-host -p future-tui --all-targets -- -D warnings→ cleancargo test -p future-host --lib git_history→ 20 passed, 0 failedcargo test -p future-tui --lib git→ 55 passed, 1 ignoredtsc --noEmit→ clean;eslinton the four touched desktop files → cleanvitest run src/features/git-history/GitHistoryPanel.test.tsx→ 17 passed@future-os/git-graphvitest via the CI invocation → 22 passedtsc --noEmit→ clean; the mobile jest suite could not run locally because this checkout'smobile/node_modulesis stale (@react-native/js-polyfillsmissing), so CI is the first run of itmake check-docs→ 425 docs OK, 13 provider rows OK; screenshot scenario-fragment regression test → okUser-visible changes
*instead ofoin the TUI text graph, and as a diamond instead of a disc in the desktop git-history panel and the mobile git-graph panel. Row, column and detail are unchanged. Revert: commit958881e63.