Make the field panels rearrangeable too - #270
Merged
Merged
Conversation
Extract the reorder engine into a shared usePanelReorder hook and add a second group (Initiative, Treasure, Journal, Chronicle) below the notebook. Each grows the same drag handle and persists its own order per device.
it-rec
force-pushed
the
claude/ux-reorder-all
branch
from
June 1, 2026 12:29
8b61798 to
a3a98a3
Compare
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.
What
Extends drag-to-reorder beyond the notebook to the full-width panels below it — Initiative, Treasure, Journal, Chronicle — each with the same handle and its own persisted order.
The reorder wiring (order reconcile + sortable + per-key drag props) is extracted into a shared
usePanelReorderhook, so the notebook grid and the newFieldstack share one engine instead of duplicating it.Why
Follow-up to #267 — players wanted to reorder all of their panels, not just the four notebook ledgers.
Tests
New
Field.test.jsx(reconcile + persisted-order render);Notebookrefactored onto the shared hook with its existing tests still green. App + Panel suites green. Lint + build pass.Screenshot
The field panels (Treasure, Session Journal, The Chronicle) now each carry a ⠿ handle in their header:
Notes
PanelReorderContextand refactorsNotebook, so this targetsclaude/ux-reorderable-panelsas its base. Review/merge #267 first; this diff then shows only the field-group additions.https://claude.ai/code/session_0166awMvVyFXuwEex3x7jDmM
Generated by Claude Code