Skip to content

fix(google-docs): rail card spacing + pre-select current locations in edit modal []#10942

Draft
Mitch Goudy (mgoudy91) wants to merge 2 commits intomasterfrom
mitch/rail-spacing-v2
Draft

fix(google-docs): rail card spacing + pre-select current locations in edit modal []#10942
Mitch Goudy (mgoudy91) wants to merge 2 commits intomasterfrom
mitch/rail-spacing-v2

Conversation

@mgoudy91
Copy link
Copy Markdown
Contributor

Summary

Found while testing INTEG-3848 locally. Three fixes on top of master, intended to complement Harika's fix/reassign work.

  • Rail card overlap: ResizeObserver remeasures card positions whenever a card grows (e.g. after a mapping edit adds a field label); rail inner box now enforces minHeight equal to the bottom edge of the lowest card, preventing overflow into adjacent groups
  • Edit modal pre-selects current locations: selectedLocationIds now initializes with all current location IDs so the Reassign/Exclude button is enabled by default. Unchecking a location explicitly removes it — matches the AC in INTEG-3848: "only remove the current location mapping if the user unchecks it"
  • Test fixes: Added ResizeObserver stub to jsdom setup; updated MappingView and EditModal tests to reflect new pre-selected behavior and mode="edit" requirement after INTEG-3858 introduced the view/edit mode split

Testing

Load the mock fixture (VITE_ENABLE_MOCK_REVIEW_PAYLOAD=true), open Edit on a block mapped to multiple fields — button should be immediately enabled, cards should not overlap after edits.

All 110 tests pass locally.

Mitch Goudy (mgoudy91) and others added 2 commits April 28, 2026 20:34
…fsets exceed group height

ResizeObserver remeasures card positions whenever a card grows, and the
rail inner box now enforces a minHeight equal to the bottom of the lowest
card so pushed-down cards don't bleed into the next content group.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…edit modal, fix tests for view/edit mode split

- ResizeObserver remeasures card positions on resize; rail minHeight grows to fit pushed-down cards
- EditModal now pre-selects all current location buttons so Reassign/Exclude is enabled by default; unchecking explicitly removes a location
- Add ResizeObserver stub to test setup (jsdom doesn't implement it)
- Update MappingView and EditModal tests to reflect new pre-selected behavior and mode="edit" requirement after INTEG-3858 view/edit split

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@mgoudy91 Mitch Goudy (mgoudy91) changed the title fix(google-docs): rail card spacing + pre-select current locations in edit modal [INTEG-3848/3859] fix(google-docs): rail card spacing + pre-select current locations in edit modal [] Apr 29, 2026
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