Skip to content

feat(field-management): add Hide All Separators bulk action#11

Merged
chriskehayias merged 1 commit into
mainfrom
feat/field-management-hide-separators
May 20, 2026
Merged

feat(field-management): add Hide All Separators bulk action#11
chriskehayias merged 1 commit into
mainfrom
feat/field-management-hide-separators

Conversation

@chriskehayias
Copy link
Copy Markdown
Contributor

Summary

  • Adds a Hide All Separators footer button to the field order editor.
  • One click flips Hidden=true on every separator field and moves them into 99 - Other Fields, marking the form dirty so the change saves with the rest.
  • Stubs ResizeObserver in src/test-setup.ts so Radix-driven components don't blow up under jsdom.

Test plan

  • npm run test:run -- src/components/field-management/use-field-order-state.test.ts — 5/5 pass (happy path, no-op when no separators, negative auto-injected IDs, preserved Other ordering, payload persistence)
  • Manual: open a page in Field Management, click Hide All Separators, confirm separators move to 99 - Other Fields and Save persists Hidden=true

🤖 Generated with Claude Code

Adds a footer button on the field order editor that flips Hidden=true
on every separator field and moves them into "99 - Other Fields" in
one click, so users can clean up page layouts without dragging each
separator individually.

- field-management.tsx: new footer button wired to editor handle
- field-order-editor.tsx, types.ts: expose hideAllSeparators on the imperative handle
- use-field-order-state.ts: implement bulk hide+regroup, mark dirty
- use-field-order-state.test.ts: cover happy path, no-op, negative IDs,
  preserved "Other" ordering, and buildSavePayload persistence
- test-setup.ts: stub ResizeObserver for jsdom (Radix uses it)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@chriskehayias chriskehayias merged commit b37a52a into main May 20, 2026
1 check passed
@chriskehayias chriskehayias deleted the feat/field-management-hide-separators branch May 20, 2026 13:59
@codecov
Copy link
Copy Markdown

codecov Bot commented May 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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