fix(index): validate sortable columns before the first load #101

Merged
pienter merged 4 commits from fix/index-validate-before-load into main 2026-09-19 22:54:10 +00:00
Owner

Stacked on #100 (only because the worktree was; the change is independent of the block editor).

Index created its own query state — which loads immediately — before validating sortable columns against queryOptions.sorts, so an invalid configuration fired one request before throwing. Validation now runs first.

Play tests: Layout/Index Default and Invalid Sort Configuration were failing on main's line; expect.any(AbortSignal) throws in the browser runner (replaced by a shape check) and the row checkbox label is Select <first cell> now.

Checks: typecheck, lint, format, bun test (139), Index + DataTable play tests (25) green.

Stacked on #100 (only because the worktree was; the change is independent of the block editor). `Index` created its own query state — which loads immediately — before validating sortable columns against `queryOptions.sorts`, so an invalid configuration fired one request before throwing. Validation now runs first. Play tests: `Layout/Index` `Default` and `Invalid Sort Configuration` were failing on main's line; `expect.any(AbortSignal)` throws in the browser runner (replaced by a shape check) and the row checkbox label is `Select <first cell>` now. Checks: typecheck, lint, format, bun test (139), Index + DataTable play tests (25) green.
fix(index): validate sortable columns before the first load
All checks were successful
ci / typecheck (pull_request) Successful in 28s
ci / lint (pull_request) Successful in 33s
ci / format (pull_request) Successful in 33s
ci / release (pull_request) Has been skipped
84be53646e
Index created its query state, which loads at once, before checking the
columns against queryOptions.sorts, so a bad configuration fired one request
before throwing. Story play tests: a shape check for the abort signal
(expect.any(AbortSignal) throws in the browser runner) and the current
row-select label.
pienter changed target branch from task/pienter-ui__block-editor-ux__add-picker to main 2026-09-19 22:48:47 +00:00
Merge branch 'main' into fix/index-validate-before-load
All checks were successful
ci / typecheck (pull_request) Successful in 43s
ci / lint (pull_request) Successful in 46s
ci / format (pull_request) Successful in 46s
ci / release (pull_request) Has been skipped
c50a76c453
chore(CHANGELOG.md): update
All checks were successful
ci / typecheck (pull_request) Successful in 31s
ci / lint (pull_request) Successful in 35s
ci / format (pull_request) Successful in 37s
ci / release (pull_request) Has been skipped
192f4bd541
merge
All checks were successful
ci / typecheck (pull_request) Successful in 30s
ci / lint (pull_request) Successful in 33s
ci / format (pull_request) Successful in 35s
ci / release (pull_request) Has been skipped
1c9504963e
pienter deleted branch fix/index-validate-before-load 2026-09-19 22:54:11 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pienter/ui!101
No description provided.