Skip to content

Keep Orders map selection across pages - #200

Merged
OziinG merged 1 commit into
mainfrom
fix/orders-cross-page-map-selection-main
Aug 19, 2026
Merged

Keep Orders map selection across pages#200
OziinG merged 1 commit into
mainfrom
fix/orders-cross-page-map-selection-main

Conversation

@OziinG

@OziinG OziinG commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Why

Orders are server-paginated in groups of 50, but manual selection was derived only from the currently visible page. Operators therefore had to add each page to the map separately.

What changed

  • retain manual order selections while navigating between pages
  • merge every retained selection in one Add to map action
  • clear retained selections only when the resource filter context changes
  • cover cross-page accumulation and filter-reset behavior with regression tests

Verification

  • node --test tests/*.test.mjs (494 passing)
  • npm run lint
  • npm run check:public-urls
  • npm run build
  • npm run typecheck

Constraint: Orders load in server pages of 50 while route drafts need one combined selection.
Rejected: Per-page Add to map | repeats the operator action and discards off-page intent
Confidence: high
Scope-risk: narrow
Directive: Clear manual selection on filter-scope changes, not page navigation.
Tested: 494 app tests; 110 targeted tests; lint; production build; typecheck; public URL guard.
Not-tested: Embedded K-food browser interaction; standalone Polaris snippet validation stopped after three harness-level failures.
@OziinG
OziinG merged commit 6e1c1cf into main Aug 19, 2026
2 checks passed
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