Repository navigation
F4: shared column drag, keyboard reorder and global removal (#25) - #74
Merged
Merged
Conversation
MIT-licensed, React >=16.8 peer range (React 19 compatible), published 2024-12-05 and pinned exactly. Installed in the workspace container; the lockfile adds only @dnd-kit/accessibility, @dnd-kit/utilities and makes tslib a runtime dependency. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Headers change only the shared SelectionStore: a dnd-kit pointer drag (8 px activation, pointer edge auto-scroll, Escape cancels, outside drops nothing) moves once on drop; Space/Enter picks a header up for arrow, Home and End moves with Escape restoring the order; the × deselects the process and moves focus to the next or previous header, or the tab's empty state. Operations are announced in a workspace polite region. Remove-button labels are shared with the Selected list (D4). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…append rules (Refs #25) Co-Authored-By: Claude Opus 5.5 <[email protected]>
In a grid the strip has overflow hidden (it follows the cells), so dnd-kit's auto-scroller, which only scrolls user-scrollable ancestors, never moved it. Scroll the strip each frame near either end instead; the grid keeps the cells in sync. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…25) flows-grid-columns.test.tsx (6 large-workload tests): order-only reads for UI reorders, off-screen keyboard reorder, active and deep column removal, and × removal through the #69 paused hold (O2) and first-page error (O1). column-operations.spec.ts covers drag, keyboard, × and tab parity in Chromium, plus edge auto-scroll in the large scenario. The header tab-stop locator in process-headers.spec.ts is scoped to groups, since each active header now also has a tabbable ×. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… (Refs #25) With flows-grid-columns.test.tsx running in parallel, the implicit 1 s waitFor timed out (3 of 3 full runs; the test passes alone and with the original ProcessHeaders under the same load). The assertion is unchanged; the file's other deep-scroll waits already use 10 s. Co-Authored-By: Claude Opus 5.5 <[email protected]>
7 tasks
9 tasks
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.
Refs #25
F4-06, Phase 1 (frontend with mock services). Process headers can now be dragged, reordered from the keyboard and removed. Every operation goes through the shared
SelectionStore(move,deselect), so the headers, both tabs, the grid and the Selected list always show one order. No PRD or spec change, so no ADR.Behaviour
ProcessHeaders, shared with Scores [Task] F5 — Assemble windowed Scores with valid and unavailable cell states #28)store.moveexactly once. Escape, a release outside the strip, or a release over the column's own position changes nothing. Focus stays on the moved header.overflow: hidden, and dnd-kit's auto-scroller only scrolls user-scrollable ancestors (commit 7d4235a).services/README.mdand in every header's accessible description.<button>, shown on hover and:focus-within. It is absolutely positioned and its space is always reserved, so the header size never changes.Remove column <name — geo>, disambiguated through the same helper as the Selected list (uniqueSelectionLabels, refactored out ofSelectedProcesses). It never matchesRemove … from selection.data-empty-focus), never the body.app/announcer.ts). It is mounted in the UID-keyed workspace, so it survives the headers unmounting and is discarded on signout. dnd-kit's own assertive region is kept silent.Library choice
@dnd-kit/core6.3.1, pinned exactly inpackage.jsonand committed inpackage-lock.json.@dnd-kit/accessibility3.1.1 and@dnd-kit/utilities3.2.2 (both MIT), andtslib(0BSD), which is now a runtime dependency.react/react-dom >=16.8.0.@dnd-kit/react0.5.3 was released 2026-10-31, but it is pre-1.0. Core 6.x is the stable line.DragOverlay.@dnd-kit/sortable: it measures item rects to compute targets, which breaks with virtualized columns that are not mounted. The drop target is computed from the strip geometry instead.KeyboardSensor. That works for unmounted off-screen positions and is testable in jsdom.npm --prefix apps/frontend install --save-exact @dnd-kit/[email protected].npm audit --omit=devreports 0 vulnerabilities. The 7 moderate findings are in the existing typescript-eslint dev dependencies.Tests
comparison-headers.test.tsx(6 new tests):moveon drop, Escape, outside and in-place drops.flows-grid-columns.test.tsx(6 large-workload tests, limit 12):aria-busy, no "Updating…", and no query is removed or invalidated. Tiles are read only for uncached compositions with the same token, values are identical, and keys are unique.e2e/column-operations.spec.ts(Chromium, 3 tests):e2e/process-headers.spec.ts: the header tab-stop count is scoped to[role="group"], plus a check of one tabbable ×. Without the scope, the new × makes the count ambiguous.flows-grid.test.tsx: onewaitFor("sizes mixed-sign rows…", deep scroll to row 300) used the implicit 1 s timeout. With the new large file running in parallel it timed out in 3 of 3 full runs. It passes alone, and it failed the same way with the originalProcessHeaders, so the cause is load, not rendering cost. It now uses the 10 s that the file's other deep-scroll waits already use. The assertion is unchanged, and the heap limit, pool and skips are unchanged. Flagged for PM/QA.Commands (workspace container
lca-diff-f4-columns, run asdocker compose --project-directory . -f compose.yaml exec -T workspace bash -lc 'cd /workspaces/lca-diff && …')npm --prefix apps/frontend cinpm --prefix apps/frontend run format:checknpm --prefix apps/frontend run lintnpm --prefix apps/frontend run typechecknpm --prefix apps/frontend run test:unitnpm --prefix apps/frontend run buildnpm --prefix apps/frontend run test:e2e -- --project=chromiumMeasured times of the new large tests (full parallel run):
New e2e times: 2.5 s, 10.2 s (auto-scroll) and 3.7 s.
Limitations
store.deselect. During the hold the previous comparison stays shown until an anchor flow loads, so partial new rows are never in view. Outside a hold, paging errors and selection changes during an error are the cases Flows grid: Retry after a row-page error during a selection update loses the anchored flow #69 already tests.🤖 Generated with Claude Code