Skip to content

feat: pin any columns with an anchor and keep merged block label in view - #21

Merged
daggerok merged 1 commit into
masterfrom
feat/pin-columns
Oct 13, 2026
Merged

daggerok merged 1 commit into
masterfrom
feat/pin-columns

Conversation

@daggerok

Copy link
Copy Markdown
Owner

What changed

  • Anchor button in every column header pins the column: it stays in place and sticks to the left edge on horizontal scroll. Several columns can be pinned, they stack in column order
  • Tab view: pins are per file (keyed by file name). Merge view: one shared set, since all blocks share columns. Both persist in settings (pinnedColumns, pinnedColumnsByFile) and pass through sanitizeSettings
  • 1st Col = Sticky toggle removed: nothing is pinned by default
  • Merged Block label sticks to the right edge of the viewport, visible without scrolling to the end

How it was checked

  • Built with Parcel and drove it in headless Chromium (Playwright) with two Fidelity positions CSVs:
    • no pinned columns by default
    • file 1: pinned Col 4 and Col 9, after scrolling right both sit at the left edge (x 17 and 183, Col 4 width 166), body cells aligned with headers
    • file 5: starts with no pins, pinned Col 2; switching back to file 1 still shows 4 and 9; both survive a reload
    • merge view: no pins of its own, pinned anchors 180px apart after scroll, label right edge equals the container right edge before and after scroll
  • bun build src/main.tsx --outfile=/dev/null, git diff --check, tc/check.sh shows no new non-JSX errors

Each column header has an anchor button. Pinned columns stay in place and stick to the left edge on horizontal scroll, several can be pinned and they stack in column order. Tab view keeps one pin set per file name, merge view shares one set because its blocks share columns. Pins persist with the other settings.

The 1st Col = Sticky toggle is removed: nothing is pinned by default, column 0 is pinned with its anchor like any other.

The Merged Block label sticks to the right edge of the viewport instead of sitting at the far end of the row.
@daggerok
daggerok merged commit 2bf83ee into master Oct 13, 2026
3 checks passed
@daggerok
daggerok deleted the feat/pin-columns branch October 13, 2026 19:14

This branch was successfully deployed

2 active deployments
ci — 22c639c9 Deployed Oct 13, 2026 by daggerok via npm-check-updates #85
github-pages — 22c639c9 Deployed Oct 13, 2026 by daggerok via deploy #81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant