mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
* feat(database): add non-optimistic createNewRowConfirmed grid store action * feat(database): add floating add row button to the grid view * test(e2e): cover the grid floating add row button * chore: add changelog entry for the grid floating add row button * test(database): update page snapshots for the grid floating add row button * test: tighten floating add row button assertions * fix(database): keep the grid floating add row button above the footer
1362 lines
66 KiB
Markdown
1362 lines
66 KiB
Markdown
# Grid View Test Plan
|
||
|
||
Browser coverage for the grid view lives in `e2e-tests/tests/database/grid/`.
|
||
|
||
This plan defines the expected visible behavior and maps it to e2e coverage,
|
||
organized by numbering rules, a coverage matrix, and scenario expectations.
|
||
|
||
Expected sequences are intentionally repetitive. Use the same sentence for the
|
||
same visible side effect whenever a test is added or changed.
|
||
|
||
`TODO` marks an expected visible detail that the current e2e tests do not
|
||
verify. Keep those details in the plan so future tests know the intended
|
||
behavior.
|
||
|
||
## Numbering Convention
|
||
|
||
Test IDs use `bucket.group.scenario` plus an optional letter suffix for closely
|
||
related variants, for example `1.2.1b`.
|
||
|
||
The first number identifies the domain:
|
||
|
||
| Bucket | Domain |
|
||
| ------ | ----------------------------------- |
|
||
| 1 | Row creation |
|
||
| 2 | Row updates |
|
||
| 3 | Row deletion |
|
||
| 4 | Clipboard and multi-cell edits |
|
||
| 5 | Filters |
|
||
| 6 | Sorts |
|
||
| 7 | Group-by |
|
||
| 8 | Search |
|
||
| 9 | View display options |
|
||
| 10 | Cell selection |
|
||
| 11 | Keyboard navigation |
|
||
| 12 | Row hover and context menus |
|
||
| 13 | Checkbox selection and bulk actions |
|
||
| 14 | Row expand modal |
|
||
| 15 | Public shared grid |
|
||
| 16 | Realtime row events |
|
||
| 17 | Realtime metadata and presence |
|
||
| 18 | Data-sync read-only mode |
|
||
| 19 | Row ordering |
|
||
|
||
Within each bucket, groups start at `.1` and increase by topic. In covered
|
||
create, update, and clipboard sections, `.2` is filter-affecting behavior and
|
||
`.3` is sort-affecting behavior. Group-by has its own bucket (7) for standalone
|
||
behavior (collapse/expand, refresh); its create, update, and paste interactions
|
||
live in the operation buckets (e.g. 1.5, 2.2.7, 2.4, 4.7), the same way filters
|
||
and sorts do. Specs may group setup-heavy blocks out of numeric order when that
|
||
keeps related fixtures together. Letter suffixes (`a`, `b`, `c`) are timing or
|
||
selection variants of the same scenario.
|
||
|
||
## Coverage Matrix
|
||
|
||
Maps `operation × active constraints × timing` to the test section that covers
|
||
it. `TODO` = uncovered. `—` = not applicable.
|
||
|
||
**Optimistic (✓):** every active constraint is on a regular field the frontend
|
||
can evaluate locally — warnings appear immediately and the row moves or hides
|
||
without waiting for the backend.
|
||
|
||
**Deferred (✗):** at least one active constraint involves a formula field the
|
||
frontend cannot evaluate — warnings and row changes for that constraint are
|
||
deferred until the backend responds. Pressing Escape key before the backend
|
||
responds is `—` because no warning has appeared yet for the deferred constraint.
|
||
|
||
**Backend error column:** the backend returns a 5xx error. The optimistic value
|
||
(always applied immediately for field edits) must be rolled back. For optimistic
|
||
constraints the warning also disappears on rollback; for deferred constraints no
|
||
warning appeared so only the value rollback matters. Error toasts are asserted
|
||
for covered row CRUD backend-error cases.
|
||
|
||
When multiple constraints are active and only some involve formula fields, the
|
||
row can show an immediate warning for the optimistic constraints while still
|
||
waiting on the deferred ones. The "Constraint fields" column records which
|
||
constraint fields are regular vs. formula; for combined rows "all regular" and
|
||
"any formula" are used since every combined cell is TODO and the specific
|
||
field-type breakdown belongs in the scenario description when the test is
|
||
written.
|
||
|
||
| Operation | Constraint | Constraint field | Optimistic | Keep selected | Deselect after confirm | Deselect before confirm | Backend error | Escape |
|
||
| --------- | ---------- | ---------------- | :--------: | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------- |
|
||
| Create | — | — | ✓ | [1.1.1](#111-backend-confirmation-for-a-new-row) | — | — | [1.1.3](#113-failed-create-is-rolled-back-and-the-optimistic-row-disappears) | — |
|
||
| Create | filter | regular | ✓ | [1.2.1a](#121a-add-row-that-does-not-match-an-active-simple-field-filter-and-keep-it-selected) | [1.2.1a](#121a-add-row-that-does-not-match-an-active-simple-field-filter-and-keep-it-selected) | [1.2.1b](#121b-deselect-newly-added-filter-mismatched-row-before-backend-confirmation) | [1.2.1d](#121d-backend-returns-500-on-filter-affected-create) | — |
|
||
| Create | filter | formula | ✗ | [1.2.2a](#122a-create-row-with-formula-field-filter-active--no-warning-until-backend-responds) | [1.2.2a](#122a-create-row-with-formula-field-filter-active--no-warning-until-backend-responds) | [1.2.2b](#122b-deselect-newly-added-formula-filtered-row-before-backend-confirmation) | [1.2.2c](#122c-backend-returns-500-on-formula-filter-affected-create) | — |
|
||
| Create | sort | regular | ✓ | [1.3.1a](#131a-add-row-with-simple-field-sort-asc-and-keep-it-selected) | [1.3.1a](#131a-add-row-with-simple-field-sort-asc-and-keep-it-selected) | [1.3.1b](#131b-add-row-with-simple-field-sort-asc-then-deselect-before-backend-confirmation) | [1.3.1c](#131c-backend-returns-500-on-sort-affected-create) | — |
|
||
| Create | sort | formula | ✗ | [1.3.2a](#132a-add-row-with-formula-field-sort-active--no-move-warning-until-backend-responds) | [1.3.2a](#132a-add-row-with-formula-field-sort-active--no-move-warning-until-backend-responds) | [1.3.2b](#132b-add-row-with-formula-field-sort-active-then-deselect-before-backend-confirmation) | [1.3.2c](#132c-backend-returns-500-on-formula-sort-affected-create) | — |
|
||
| Create | group-by | regular | ✓ | [1.5.1](#151-add-row-from-a-group-add-row-line) | [1.5.1b](#151b-add-in-group-row-deselected-after-confirmation) | [1.5.1c](#151c-add-in-group-row-deselected-before-confirmation) | [1.5.1d](#151d-backend-returns-500-on-add-in-group-create) | — |
|
||
| Create | group-by | formula | ✗ | [1.5.3a](#153a-formula-grouped-create-shows-no-warning-until-backend-responds) | [1.5.3a](#153a-formula-grouped-create-shows-no-warning-until-backend-responds) | [1.5.3b](#153b-formula-grouped-create-deselected-before-confirmation) | [1.5.3c](#153c-backend-returns-500-on-formula-grouped-create) | — |
|
||
| Update | — | — | ✓ | [2.1.1](#211-edit-primary-field-and-press-enter) | — | — | [2.1.3](#213-backend-returns-500-on-update) | [2.1.4](#214-press-escape-while-editing) |
|
||
| Update | filter | regular | ✓ | [2.2.1a](#221a-edit-filtered-row-to-non-matching-value-and-keep-it-selected) | [2.2.1a](#221a-edit-filtered-row-to-non-matching-value-and-keep-it-selected) | [2.2.1b](#221b-deselect-filter-mismatched-row-before-backend-confirmation) | [2.2.2](#222-backend-returns-500-on-filter-affecting-update) | [2.2.4](#224-press-escape-during-filter-mismatched-edit) |
|
||
| Update | filter | formula | ✗ | [2.2.5a](#225a-edit-with-formula-field-filter-active--no-warning-until-backend-responds) | [2.2.5b](#225b-deselect-formula-filtered-row-after-backend-confirmation) | [2.2.5c](#225c-deselect-formula-filtered-row-before-backend-confirmation) | [2.2.5d](#225d-backend-returns-500-on-formula-filter-affecting-update) | — |
|
||
| Update | sort | regular | ✓ | [2.3.1a](#231a-edit-sorted-row-so-it-should-move-and-keep-it-selected) | [2.3.1a](#231a-edit-sorted-row-so-it-should-move-and-keep-it-selected) | [2.3.1b](#231b-deselect-sort-mismatched-row-before-backend-confirmation) | [2.3.2](#232-backend-returns-500-on-sort-affecting-update) | [2.3.3](#233-press-escape-during-sort-mismatched-edit) |
|
||
| Update | sort | formula | ✗ | [2.3.4a](#234a-edit-with-formula-field-sort-active--no-move-warning-until-backend-responds) | [2.3.4a](#234a-edit-with-formula-field-sort-active--no-move-warning-until-backend-responds) | [2.3.4b](#234b-deselect-formula-sorted-row-before-backend-confirmation) | [2.3.4c](#234c-backend-returns-500-on-formula-sort-affecting-update) | — |
|
||
| Update | group-by | regular | ✓ | [2.2.7a](#227a-change-single-select-group-by-value) | [2.2.7a](#227a-change-single-select-group-by-value) | [2.2.7b](#227b-change-single-select-group-by-value-deselected-before-confirmation) | [2.2.7c](#227c-backend-returns-500-on-single-select-group-by-change) | [2.4.3](#243-press-escape-during-text-group-by-value-edit) |
|
||
| Update | group-by | formula | ✗ | [2.4.4a](#244a-formula-grouped-edit-moves-after-backend-response-without-a-warning) | [2.4.4a](#244a-formula-grouped-edit-moves-after-backend-response-without-a-warning) | [2.4.4b](#244b-formula-grouped-edit-deselected-before-confirmation) | [2.4.4c](#244c-backend-returns-500-on-formula-grouped-edit) | — |
|
||
| Paste | — | — | ✓ | TODO | — | — | TODO | — |
|
||
| Paste | filter | regular | ✓ | [4.2.1a](#421a-paste-value-that-breaks-active-filter-then-deselect) | [4.2.1a](#421a-paste-value-that-breaks-active-filter-then-deselect) | [4.2.1b](#421b-filter-breaking-paste-deselected-before-backend-confirmation) | TODO | — |
|
||
| Paste | filter | formula | ✗ | TODO | TODO | TODO | TODO | — |
|
||
| Paste | sort | regular | ✓ | [4.3.1a](#431a-sort-affecting-paste-shows-row-has-moved-warning-then-moves-row-on-deselect) | [4.3.1a](#431a-sort-affecting-paste-shows-row-has-moved-warning-then-moves-row-on-deselect) | [4.3.1b](#431b-sort-affecting-paste-deselected-before-backend-confirmation-moves-row-immediately) | TODO | — |
|
||
| Paste | sort | formula | ✗ | TODO | TODO | TODO | TODO | — |
|
||
| Paste | group-by | regular | ✓ | [4.7.1a](#471a-group-by-affecting-paste-kept-selected-then-deselected) | [4.7.1a](#471a-group-by-affecting-paste-kept-selected-then-deselected) | [4.7.1b](#471b-group-by-affecting-paste-deselected-before-backend-confirmation) | TODO | — |
|
||
| Paste | group-by | formula | ✗ | TODO | TODO | TODO | TODO | — |
|
||
|
||
Regular-field filter/sort create/update cases and saved filter/sort load cases
|
||
are parametrized to run in both flat and expanded Sections group-by views.
|
||
Columns-specific coverage is listed in section 9.6. Dedicated group-by rows above
|
||
cover creating inside a Sections group and changing a grouped value.
|
||
|
||
### Combined constraints (TODO)
|
||
|
||
Most combinations of two or more active constraints (filter + sort, filter +
|
||
group-by, sort + group-by, filter + sort + group-by) still need deeper coverage.
|
||
Covered group-by combinations are regular-field filter/sort create/update and
|
||
saved filter/sort load via parametrized flat/group-by runs, plus
|
||
[2.2.6a](#226a-edit-filtered-grouped-row-to-non-matching-value).
|
||
Remaining combinations should be tested in both the all-regular (fully
|
||
optimistic) and any-formula (deferred) configurations.
|
||
|
||
## Row Creation
|
||
|
||
### 1.1.1 Backend confirmation for a new row
|
||
|
||
- Empty row is appended at the bottom.
|
||
- Empty primary and field cells are visible immediately.
|
||
- Row loading spinner is visible while the create request is pending.
|
||
- Row count increments.
|
||
- Empty row stays at the bottom after backend confirmation.
|
||
- Row loading spinner is hidden after backend confirmation.
|
||
|
||
### 1.1.2 Primary field is selected after adding a row
|
||
|
||
- Empty row is appended at the bottom.
|
||
- Row count increments.
|
||
- New row primary cell is selected after backend confirmation.
|
||
|
||
### 1.1.3 Failed create is rolled back and the optimistic row disappears
|
||
|
||
- Empty row is appended at the bottom.
|
||
- Row loading spinner is visible while the create request is pending.
|
||
- POST request returns 500.
|
||
- Optimistic row is removed from the visible grid after the error.
|
||
- Row count returns to its original value.
|
||
- Error toast is visible.
|
||
|
||
### 1.2.1a Add row that does not match an active simple-field filter and keep it selected
|
||
|
||
These simple-field filter cases run in both flat and expanded Sections group-by
|
||
views.
|
||
|
||
- Empty row is appended at the bottom.
|
||
- Empty primary and field cells are visible immediately.
|
||
- Row loading spinner is visible while the create request is pending.
|
||
- "Row does not match filters" is visible immediately because the frontend can
|
||
evaluate the simple-field filter.
|
||
- Row remains visible while selected.
|
||
- "Row does not match filters" remains visible while the row is selected.
|
||
- Row loading spinner is hidden after backend confirmation.
|
||
- "Row does not match filters" remains visible while the row is selected after
|
||
backend confirmation.
|
||
- After deselect, the row is removed from the visible grid.
|
||
- After deselect, "Row does not match filters" is hidden.
|
||
|
||
### 1.2.1b Deselect newly added filter-mismatched row before backend confirmation
|
||
|
||
- Empty row is appended at the bottom.
|
||
- Empty primary and field cells are visible immediately.
|
||
- Row loading spinner is visible while the create request is pending.
|
||
- "Row does not match filters" is visible immediately because the frontend can
|
||
evaluate the simple-field filter.
|
||
- After deselect while the create request is pending, the row is removed from the
|
||
visible grid.
|
||
- After deselect, "Row does not match filters" is hidden.
|
||
- Row stays hidden after backend confirmation.
|
||
|
||
### 1.2.1c Enter a value that makes the newly added row match the active filter
|
||
|
||
- With a filter such as "Name is not empty", empty row is appended at the bottom.
|
||
- Empty primary and field cells are visible immediately.
|
||
- "Row does not match filters" is visible immediately because the frontend can
|
||
evaluate the simple-field filter.
|
||
- Typed value is visible immediately.
|
||
- "Row does not match filters" is hidden after the value matches the filter.
|
||
- Row remains visible.
|
||
|
||
### 1.2.1d Backend returns 500 on filter-affected create
|
||
|
||
- Empty row is appended at the bottom.
|
||
- Row loading spinner is visible while the create request is pending.
|
||
- "Row does not match filters" is visible immediately because the frontend can
|
||
evaluate the simple-field filter.
|
||
- POST request returns 500.
|
||
- Optimistic row is removed from the visible grid after the error.
|
||
- "Row does not match filters" is hidden after the error.
|
||
- Row count returns to its original value.
|
||
- Error toast is visible.
|
||
|
||
### 1.2.2a Create row with formula-field filter active — no warning until backend responds
|
||
|
||
- Empty row is appended at the bottom.
|
||
- Empty primary and field cells are visible immediately.
|
||
- Row loading spinner is visible while the create request is pending.
|
||
- "Row does not match filters" is hidden while the create request is pending
|
||
because the frontend cannot evaluate the formula filter.
|
||
- Row loading spinner is hidden after backend confirmation.
|
||
- "Row does not match filters" is visible after backend confirmation while the
|
||
row is selected.
|
||
- After deselect, the row is removed from the visible grid.
|
||
- After deselect, "Row does not match filters" is hidden.
|
||
|
||
### 1.2.2b Deselect newly added formula-filtered row before backend confirmation
|
||
|
||
- Empty row is appended at the bottom.
|
||
- Row loading spinner is visible while the create request is pending.
|
||
- "Row does not match filters" is hidden while the create request is pending.
|
||
- After deselect while the create request is pending, the row remains visible
|
||
because the frontend has not yet received the formula result from the backend.
|
||
- After the create request completes, the row is removed from the visible grid.
|
||
|
||
### 1.2.2c Backend returns 500 on formula-filter-affected create
|
||
|
||
- Empty row is appended at the bottom.
|
||
- Row loading spinner is visible while the create request is pending.
|
||
- "Row does not match filters" is hidden while the create request is pending
|
||
because the frontend cannot evaluate the formula filter.
|
||
- POST request returns 500.
|
||
- Optimistic row is removed from the visible grid after the error.
|
||
- Row count returns to its original value.
|
||
- Error toast is visible.
|
||
|
||
### 1.3.1a Add row with simple-field sort ASC and keep it selected
|
||
|
||
These simple-field sort cases run in both flat and expanded Sections group-by
|
||
views.
|
||
|
||
- Empty row is appended at the bottom.
|
||
- Empty primary and field cells are visible immediately.
|
||
- Row loading spinner is visible while the create request is pending.
|
||
- "Row has moved" is visible immediately because the frontend can evaluate the
|
||
simple-field sort.
|
||
- Row loading spinner is hidden after backend confirmation.
|
||
- "Row has moved" remains visible while the row is selected.
|
||
- After deselect, the row moves to the first sorted position.
|
||
- After deselect, "Row has moved" is hidden.
|
||
|
||
### 1.3.1b Add row with simple-field sort ASC, then deselect before backend confirmation
|
||
|
||
- Empty row is appended at the bottom.
|
||
- Empty primary and field cells are visible immediately.
|
||
- Row loading spinner is visible while the create request is pending.
|
||
- "Row has moved" is visible immediately because the frontend can evaluate the
|
||
simple-field sort.
|
||
- After deselect while the create request is pending, the row moves to the first
|
||
sorted position.
|
||
- Row loading spinner is visible while the create request is pending.
|
||
- After deselect, "Row has moved" is hidden.
|
||
- Empty row stays in the first sorted position after backend confirmation.
|
||
- Row loading spinner is hidden after backend confirmation.
|
||
- No warning is visible after backend confirmation.
|
||
|
||
### 1.3.1c Backend returns 500 on sort-affected create
|
||
|
||
- Empty row is appended at the bottom.
|
||
- Row loading spinner is visible while the create request is pending.
|
||
- "Row has moved" is visible immediately because the frontend can evaluate the
|
||
simple-field sort.
|
||
- POST request returns 500.
|
||
- Optimistic row is removed from the visible grid after the error.
|
||
- "Row has moved" is hidden after the error.
|
||
- Row count returns to its original value.
|
||
- Remaining rows are visible in their original sorted order.
|
||
- Error toast is visible.
|
||
|
||
### 1.3.2a Add row with formula-field sort active — no move warning until backend responds
|
||
|
||
- Empty row is appended at the bottom.
|
||
- Empty primary and field cells are visible immediately.
|
||
- Row loading spinner is visible while the create request is pending.
|
||
- "Row has moved" is hidden while the create request is pending because the
|
||
frontend cannot evaluate the formula sort.
|
||
- Row loading spinner is hidden after backend confirmation.
|
||
- "Row has moved" is visible after backend confirmation while the row is selected.
|
||
- After deselect, the row moves to its sorted position.
|
||
- After deselect, "Row has moved" is hidden.
|
||
|
||
### 1.3.2b Add row with formula-field sort active, then deselect before backend confirmation
|
||
|
||
- Empty row is appended at the bottom.
|
||
- Row loading spinner is visible while the create request is pending.
|
||
- "Row has moved" is hidden while the create request is pending.
|
||
- After deselect while the create request is pending, the row stays at the bottom
|
||
because the frontend has not yet received the backend-computed sort value.
|
||
- After the create request completes, the row moves to its sorted position.
|
||
- No warning is visible after the row moves.
|
||
|
||
### 1.3.2c Backend returns 500 on formula-sort-affected create
|
||
|
||
- Empty row is appended at the bottom.
|
||
- Row loading spinner is visible while the create request is pending.
|
||
- "Row has moved" is hidden while the create request is pending because the
|
||
frontend cannot evaluate the formula sort.
|
||
- POST request returns 500.
|
||
- Optimistic row is removed from the visible grid after the error.
|
||
- Row count returns to its original value.
|
||
- Error toast is visible.
|
||
|
||
### 1.3.3 Add row with simple-field sort and destination outside current buffer
|
||
|
||
- The table has a large dataset (~200 rows) and the grid is scrolled to the
|
||
bottom (Row 200 is the last visible row) so the buffer does not contain the
|
||
row's correct sorted destination — an empty Name sorts to the top, above the
|
||
loaded window.
|
||
- Empty row is appended to the visible bottom buffer.
|
||
- Row loading spinner is visible while the create request is pending.
|
||
- "Row has moved" is visible immediately while the create request is pending:
|
||
the sort is on a regular field, so the mismatch is detected locally — the same
|
||
optimistic path as the in-buffer case (1.3.1a), not deferred to the backend.
|
||
- "Row has moved" remains visible after backend confirmation while the row is
|
||
selected.
|
||
- After deselect, the kept row leaves the rendered buffer and its warning
|
||
clears; the bottom of the buffer shows Row 200 again.
|
||
- After reload, the empty row is sorted to the top (index 0, with Row 001 below
|
||
it) and shows no warning.
|
||
|
||
### 1.4.1 Edit a field while create is pending
|
||
|
||
- Empty row is appended at the bottom.
|
||
- Row loading spinner is visible while the create request is pending.
|
||
- Typed value in a field of the pending row is visible immediately.
|
||
- After the create request completes, the queued PATCH is applied against the
|
||
finalized (post-create) row id and the typed value remains visible — it is not
|
||
lost or reverted when the temporary id is replaced.
|
||
- No error is shown.
|
||
|
||
### 1.4.2 PATCH is not sent to the network until the create request completes
|
||
|
||
- Empty row is appended at the bottom.
|
||
- Field in the pending row is edited and confirmed.
|
||
- No PATCH request reaches the network while the POST is still in-flight.
|
||
- After the POST completes, the queued PATCH fires with the real row ID.
|
||
- Field value is saved correctly.
|
||
|
||
### 1.5.1 Add row from a group add-row line
|
||
|
||
These add-in-group scenarios exercise the per-leaf add-row lines in Sections.
|
||
|
||
- New row is inserted at the bottom of the selected group.
|
||
- The group-by field is set to that group's value.
|
||
- Other groups keep their rows and order.
|
||
- The group counter increments while the create request is pending.
|
||
- The new row remains selected after backend confirmation.
|
||
- Backend confirmation does not issue a grid GET or reload grouped rows.
|
||
|
||
### 1.5.1b Add-in-group row deselected after confirmation
|
||
|
||
- New row is created in its group and the create request confirms.
|
||
- After deselect, the row stays at the bottom of its group with the group's value.
|
||
- No "Row has moved" warning appears (the row was created in the correct group).
|
||
- Group counters keep the incremented count.
|
||
|
||
### 1.5.1c Add-in-group row deselected before confirmation
|
||
|
||
- New row is created in its group with the create request still pending.
|
||
- Deselecting before confirmation leaves the row in place with no warning.
|
||
- The row keeps its loading spinner until the create confirms.
|
||
- After confirmation, the row finalizes in its group without moving.
|
||
|
||
### 1.5.1d Backend returns 500 on add-in-group create
|
||
|
||
- POST request returns 500.
|
||
- The optimistic row is removed from its group after rollback.
|
||
- Group counters revert to their original values.
|
||
- Error toast is visible.
|
||
|
||
### 1.5.3a Formula-grouped create shows no warning until backend responds
|
||
|
||
- New row is created with no "Row has moved" warning while the request is pending
|
||
(the formula group cannot be evaluated locally).
|
||
- After the backend responds, the "Row has moved" warning appears.
|
||
- After deselect, the row moves into its computed group and counters update.
|
||
|
||
### 1.5.3b Formula-grouped create deselected before confirmation
|
||
|
||
- New row is created with no warning while the request is pending.
|
||
- Deselecting before confirmation leaves the row in place with its loading spinner.
|
||
- After the backend responds, the row moves into its computed group.
|
||
|
||
### 1.5.3c Backend returns 500 on formula-grouped create
|
||
|
||
- POST request returns 500.
|
||
- The optimistic row is removed and group counters revert.
|
||
- Error toast is visible.
|
||
|
||
### 1.7.1 Create a row from the floating add button
|
||
|
||
- The floating add button is visible in an editable grid.
|
||
- It sits 20px above the footer, clear of the footer aggregations.
|
||
- Clicking it opens the create row modal.
|
||
- After filling the primary field and clicking Create, the POST includes the
|
||
view id and the modal closes.
|
||
- Row count increments.
|
||
- The new row is visible at the bottom.
|
||
- The new row is not selected.
|
||
|
||
### 1.7.2 Create from the floating add button away from the bottom
|
||
|
||
- The table has more rows than the buffer holds and the grid is at the top.
|
||
- After Create, the modal closes and the grid keeps its scroll position.
|
||
- The footer row count increments.
|
||
- Scrolling to the bottom shows the new row as the last row.
|
||
|
||
### 1.7.3 Create from the floating add button with group-by
|
||
|
||
- The new row is inserted at the bottom of the group derived from its values.
|
||
- That group's counter increments.
|
||
- Other groups keep their rows and order.
|
||
|
||
### 1.7.4 Backend returns 500 on a floating-button create
|
||
|
||
- POST request returns 500.
|
||
- The modal stays open and shows an error.
|
||
- Row count is unchanged.
|
||
|
||
### 1.7.5 Floating-button create with an active sort or filter
|
||
|
||
- TODO (covered by unit tests, not e2e):
|
||
- With a regular-field sort, the new row appears at its sorted position.
|
||
- A new row that does not match the active filters is not shown and the
|
||
row count is unchanged.
|
||
|
||
## Row Updates
|
||
|
||
### 2.1.1 Edit primary field and press Enter
|
||
|
||
- Typed value is visible immediately.
|
||
- Typed value is submitted.
|
||
- Original value is no longer visible.
|
||
- No row loading spinner is shown for this optimistic text update.
|
||
|
||
### 2.1.4 Press Escape while editing
|
||
|
||
- Typed draft is discarded.
|
||
- Original value is visible again.
|
||
- No save transition is shown.
|
||
|
||
### 2.1.2 Click outside edited cell
|
||
|
||
- Typed value is visible immediately.
|
||
- Typed value is submitted by blur.
|
||
- No row loading spinner is shown for this optimistic text update.
|
||
|
||
### 2.1.3 Backend returns 500 on update
|
||
|
||
- Typed value is submitted.
|
||
- PATCH request returns 500.
|
||
- Grid remains rendered with both rows.
|
||
- Typed value is rolled back to the original value.
|
||
- Error toast is visible.
|
||
|
||
### 2.1.5 Invalid email value shows validation UI
|
||
|
||
- Invalid typed value is visible in the editor.
|
||
- Field validation error is visible.
|
||
- Pressing Enter keeps the editor open.
|
||
- Field validation error remains visible.
|
||
|
||
### 2.2.1a Edit filtered row to non-matching value and keep it selected
|
||
|
||
These simple-field filter cases run in both flat and expanded Sections group-by
|
||
views.
|
||
|
||
- Typed value is visible immediately.
|
||
- No row loading spinner is shown for this optimistic text update.
|
||
- "Row does not match filters" is visible immediately for simple-field filters.
|
||
- Row remains visible while selected.
|
||
- "Row does not match filters" remains visible after backend confirmation.
|
||
|
||
### 2.2.1b Deselect filter-mismatched row before backend confirmation
|
||
|
||
- "Row does not match filters" is visible before deselect.
|
||
- After deselect while the update request is pending, the row is removed from the
|
||
visible grid.
|
||
- After deselect, "Row does not match filters" is hidden.
|
||
- Row count decrements.
|
||
- Row stays hidden after backend confirmation.
|
||
|
||
### 2.2.4 Press Escape during filter-mismatched edit
|
||
|
||
- Typed draft is discarded.
|
||
- Original matching value is visible again.
|
||
- "Row does not match filters" is hidden.
|
||
- Row remains visible.
|
||
- Row count is unchanged.
|
||
|
||
### 2.2.3 Save the same matching value
|
||
|
||
- Typed value is visible immediately.
|
||
- Row remains visible.
|
||
- No warning is visible.
|
||
- Row count is unchanged.
|
||
- No row loading spinner is expected because no visible value transition is
|
||
needed.
|
||
|
||
### 2.2.2 Backend returns 500 on filter-affecting update
|
||
|
||
- Typed value is submitted.
|
||
- PATCH request returns 500.
|
||
- Filtered grid remains rendered.
|
||
- Typed value is rolled back to the original value.
|
||
- "Row does not match filters" is hidden after rollback.
|
||
- Error toast is visible.
|
||
|
||
### 2.2.5a Edit with formula-field filter active — no warning until backend responds
|
||
|
||
- Typed value is visible immediately.
|
||
- No row loading spinner is shown for this optimistic text update.
|
||
- "Row does not match filters" is hidden while the update request is pending
|
||
because the frontend cannot evaluate the formula filter.
|
||
- "Row does not match filters" is visible after backend confirmation.
|
||
- Row remains visible while selected.
|
||
|
||
### 2.2.5b Deselect formula-filtered row after backend confirmation
|
||
|
||
- "Row does not match filters" is visible while the row is selected.
|
||
- After deselect, the row is removed from the visible grid.
|
||
- After deselect, "Row does not match filters" is hidden.
|
||
- Row count decrements.
|
||
|
||
### 2.2.5c Deselect formula-filtered row before backend confirmation
|
||
|
||
- Typed value is visible immediately.
|
||
- "Row does not match filters" is hidden while the update request is pending.
|
||
- After deselect while the update request is pending, the row remains visible
|
||
because the frontend has not yet received the formula result from the backend.
|
||
- After the update request completes, the row is removed from the visible grid.
|
||
|
||
### 2.2.5d Backend returns 500 on formula-filter-affecting update
|
||
|
||
- Typed value is visible immediately.
|
||
- "Row does not match filters" is hidden while the update request is pending
|
||
because the frontend cannot evaluate the formula filter.
|
||
- PATCH request returns 500.
|
||
- Typed value is rolled back to the original value.
|
||
- Row remains visible.
|
||
- Error toast is visible.
|
||
|
||
### 2.2.6a Edit filtered grouped row to non-matching value
|
||
|
||
- Grouped filtered row shows "Row does not match filters" immediately.
|
||
- The warning remains visible on the last row in a group.
|
||
- Row remains visible while selected.
|
||
- After deselect, the row is removed from the visible group.
|
||
- Group counters update locally.
|
||
|
||
### 2.2.7a Change single-select group-by value
|
||
|
||
- New single-select value is visible immediately.
|
||
- "Row has moved" is visible immediately.
|
||
- Row remains in its original group while selected.
|
||
- No grid rows GET request is made for the single row update.
|
||
- After deselect, the row moves to the target group.
|
||
- Source and target group counters update locally.
|
||
|
||
### 2.2.7b Change single-select group-by value deselected before confirmation
|
||
|
||
- New single-select value is visible immediately with a "Row has moved" warning.
|
||
- Deselecting before confirmation moves the row to its new group immediately.
|
||
- Source and target group counters update locally.
|
||
- The move stays stable after the backend confirms.
|
||
|
||
### 2.2.7c Backend returns 500 on single-select group-by change
|
||
|
||
- PATCH request returns 500.
|
||
- The optimistic group-by value is rolled back to the original option.
|
||
- The "Row has moved" warning clears and the row stays in its original group.
|
||
- Group counters are unchanged.
|
||
- Error toast is visible.
|
||
|
||
### 2.3.1a Edit sorted row so it should move and keep it selected
|
||
|
||
These simple-field sort cases run in both flat and expanded Sections group-by
|
||
views.
|
||
|
||
- Typed value is visible immediately.
|
||
- No row loading spinner is shown for this optimistic text update.
|
||
- "Row has moved" is visible immediately for simple-field sorts.
|
||
- Row stays in its current visible position while selected.
|
||
- "Row has moved" remains visible after backend confirmation.
|
||
|
||
### 2.3.1b Deselect sort-mismatched row before backend confirmation
|
||
|
||
- "Row has moved" is visible before deselect.
|
||
- After deselect while the update request is pending, the row moves to its sorted
|
||
position.
|
||
- After deselect, "Row has moved" is hidden.
|
||
- Row stays in its sorted position after backend confirmation.
|
||
- No warning is visible after backend confirmation.
|
||
|
||
### 2.3.2 Backend returns 500 on sort-affecting update
|
||
|
||
- Typed value is visible immediately.
|
||
- "Row has moved" is visible immediately because the frontend can evaluate the
|
||
simple-field sort.
|
||
- PATCH request returns 500.
|
||
- Typed value is rolled back to the original value.
|
||
- "Row has moved" is hidden after rollback.
|
||
- Row stays in its original position.
|
||
- Error toast is visible.
|
||
|
||
### 2.3.3 Press Escape during sort-mismatched edit
|
||
|
||
- Typed draft is discarded.
|
||
- Original value is visible again.
|
||
- "Row has moved" is hidden.
|
||
- Row stays in its original position.
|
||
|
||
### 2.3.4a Edit with formula-field sort active — no move warning until backend responds
|
||
|
||
- Typed value is visible immediately.
|
||
- No row loading spinner is shown for this optimistic text update.
|
||
- "Row has moved" is hidden while the update request is pending because the
|
||
frontend cannot evaluate the formula sort.
|
||
- "Row has moved" is visible after backend confirmation.
|
||
- Row stays in its current visible position while selected.
|
||
- After deselect, the row moves to its sorted position.
|
||
- After deselect, "Row has moved" is hidden.
|
||
|
||
### 2.3.4b Deselect formula-sorted row before backend confirmation
|
||
|
||
- Typed value is visible immediately.
|
||
- "Row has moved" is hidden while the update request is pending.
|
||
- After deselect while the update request is pending, the row stays in its
|
||
current position because the frontend has not yet received the
|
||
backend-computed sort value.
|
||
- After the update request completes, the row moves to its sorted position
|
||
without showing a warning.
|
||
|
||
### 2.3.4c Backend returns 500 on formula-sort-affecting update
|
||
|
||
- Typed value is visible immediately.
|
||
- "Row has moved" is hidden while the update request is pending because the
|
||
frontend cannot evaluate the formula sort.
|
||
- PATCH request returns 500.
|
||
- Typed value is rolled back to the original value.
|
||
- Row stays in its current position.
|
||
- Error toast is visible.
|
||
|
||
### 2.3.5 Sort relocation outside the current buffer
|
||
|
||
- Grid is scrolled so the current buffer does not contain the row's correct
|
||
sorted destination after edit.
|
||
- Typed value is visible immediately.
|
||
- "Row has moved" is visible immediately because the frontend can evaluate the
|
||
simple-field sort against the current buffer.
|
||
- Row stays in its current visible position while selected.
|
||
- After deselect while the update request is pending, the row leaves the current
|
||
rendered buffer.
|
||
- After deselect, "Row has moved" is hidden.
|
||
- Row stays outside the current rendered buffer after backend confirmation.
|
||
- After scrolling to the row's sorted destination, the updated row is visible
|
||
there.
|
||
|
||
### 2.4.1 Change text group-by value deselected before confirmation
|
||
|
||
- New text value is visible immediately with a "Row has moved" warning.
|
||
- Deselecting before confirmation moves the row to its new group immediately.
|
||
- Source and target group counters update locally.
|
||
- The move stays stable after the backend confirms.
|
||
|
||
### 2.4.2 Backend returns 500 on text group-by change
|
||
|
||
- PATCH request returns 500.
|
||
- The optimistic group-by value is rolled back to the original text.
|
||
- The "Row has moved" warning clears and the row stays in its original group.
|
||
- Group counters are unchanged.
|
||
- Error toast is visible.
|
||
|
||
### 2.4.3 Press Escape during text group-by-value edit
|
||
|
||
- Escape discards the typed group-by value and restores the original.
|
||
- No "Row has moved" warning appears.
|
||
- The row stays in its original group and group counters are unchanged.
|
||
|
||
### 2.4.4a Formula-grouped edit moves after backend response without a warning
|
||
|
||
- Typed value is visible immediately, with the row loading and no warning while
|
||
the request is pending (the formula group cannot be evaluated locally).
|
||
- After the backend responds, the row immediately moves into its computed group
|
||
and counters update, even if it remains selected.
|
||
- No "Row has moved" placeholder appears because the grouped formula field is
|
||
read-only and cannot have an in-progress edit to preserve.
|
||
|
||
### 2.4.4b Formula-grouped edit deselected before confirmation
|
||
|
||
- Typed value is visible immediately with no warning while pending.
|
||
- Deselecting before confirmation keeps the row in its current group.
|
||
- After the backend responds, the row moves into its new group.
|
||
|
||
### 2.4.4c Backend returns 500 on formula-grouped edit
|
||
|
||
- PATCH request returns 500.
|
||
- The optimistic value is rolled back and the row stays in its original group.
|
||
- Group counters are unchanged.
|
||
- Error toast is visible.
|
||
|
||
## Row Deletion
|
||
|
||
### 3.1.1 Right-click row and choose "Delete row"
|
||
|
||
- Row is removed from the visible grid immediately.
|
||
- Row count decrements.
|
||
- The next row remains visible.
|
||
- Pending DELETE spinner is TODO.
|
||
|
||
### 3.1.2 Backend returns 500 on delete
|
||
|
||
- DELETE request returns 500.
|
||
- Deleted row is restored after rollback.
|
||
- Grid remains rendered with both rows.
|
||
- Error toast is visible.
|
||
|
||
## Clipboard And Multi-Cell Edits
|
||
|
||
> Copy/paste cases run in Chromium only; they are skipped in Firefox because
|
||
> Playwright cannot grant or deliver clipboard data there (`skipIfNoClipboard`).
|
||
> The browser gap is intentional, not missing coverage.
|
||
|
||
### 4.1.1 Copy one cell and paste into another
|
||
|
||
- Clipboard receives copied value.
|
||
- Pasted value is visible immediately.
|
||
- No row loading spinner is shown for this optimistic text update.
|
||
|
||
### 4.1.2 Paste beyond the last row
|
||
|
||
- Existing last row is updated.
|
||
- Overflow row is created.
|
||
- Pasted values are visible immediately.
|
||
- Pasted field values are visible in both the updated row and overflow row.
|
||
- Create and update spinners are TODO.
|
||
|
||
### 4.2.1a Paste value that breaks active filter, then deselect
|
||
|
||
- Pasted value is visible immediately.
|
||
- "Row does not match filters" is visible immediately for simple-field filters.
|
||
- Row remains visible while selected.
|
||
- Row remains selected while warning is visible.
|
||
- "Row does not match filters" is visible before deselect.
|
||
- After deselect, the row is removed from the visible grid.
|
||
- After deselect, "Row does not match filters" is hidden.
|
||
- Row count decrements.
|
||
|
||
### 4.2.1b Filter-breaking paste deselected before backend confirmation
|
||
|
||
- Pasted value is visible immediately.
|
||
- "Row does not match filters" is visible immediately for simple-field filters.
|
||
- After deselect while the update request is pending, the row is removed from the
|
||
visible grid.
|
||
- After deselect, "Row does not match filters" is hidden.
|
||
- Row stays hidden after backend confirmation.
|
||
|
||
### 4.3.1a Sort-affecting paste shows Row has moved warning then moves row on deselect
|
||
|
||
- Pasted value is visible immediately.
|
||
- "Row has moved" is visible immediately for simple-field sorts.
|
||
- Row stays in its current visible position while selected.
|
||
- After deselect, the row moves to its sorted position.
|
||
- After deselect, "Row has moved" is hidden.
|
||
|
||
### 4.3.1b Sort-affecting paste deselected before backend confirmation moves row immediately
|
||
|
||
- Pasted value is visible immediately.
|
||
- "Row has moved" is visible immediately for simple-field sorts.
|
||
- After deselect while the update request is pending, the row moves to its sorted
|
||
position.
|
||
- After deselect, "Row has moved" is hidden.
|
||
- Row stays in its sorted position after backend confirmation.
|
||
- No warning is visible after backend confirmation.
|
||
|
||
### 4.7.1a Group-by-affecting paste kept selected then deselected
|
||
|
||
- Pasted group-by value is visible immediately with a "Row has moved" warning.
|
||
- Row remains in its original group while selected.
|
||
- After deselect, the row moves to the target group.
|
||
- Source and target group counters update locally.
|
||
|
||
### 4.7.1b Group-by-affecting paste deselected before backend confirmation
|
||
|
||
- Pasted group-by value is visible immediately with a "Row has moved" warning.
|
||
- Deselecting before confirmation moves the row to its new group immediately.
|
||
- Source and target group counters update locally.
|
||
- The move stays stable after the backend confirms.
|
||
|
||
### 4.4.1 Delete clears selected cell range
|
||
|
||
- Rectangular multi-select range is visible.
|
||
- Pressing Delete clears every selected cell value.
|
||
- Non-selected cells are unchanged.
|
||
|
||
## Filters
|
||
|
||
These saved filter cases run in both flat and expanded Sections group-by views.
|
||
|
||
### 5.1.1 Load view with API-created filter
|
||
|
||
- Grid opens with only matching rows visible.
|
||
- Non-matching rows are absent from the visible grid.
|
||
|
||
### 5.1.2 Load view with two AND filters
|
||
|
||
- Grid opens with only rows matching both filters visible.
|
||
- Rows matching only one condition are absent from the visible grid.
|
||
|
||
### 5.2.1 Use text contains filter
|
||
|
||
- Grid opens with every row containing the substring visible.
|
||
- Non-matching rows are absent from the visible grid.
|
||
|
||
## Sorts
|
||
|
||
These saved sort cases run in both flat and expanded Sections group-by views.
|
||
|
||
### 6.1.1 Sort ASC
|
||
|
||
- Grid opens with rows visible in ascending order.
|
||
|
||
### 6.1.2 Sort DESC
|
||
|
||
- Grid opens with rows visible in descending order.
|
||
|
||
### 6.1.3 Sort by Name ASC and Score DESC
|
||
|
||
- Grid opens with primary sort applied first.
|
||
- Rows tied on Name are ordered by Score descending.
|
||
|
||
## Group-by
|
||
|
||
Standalone group-by behavior. Group-by also appears as a constraint within the
|
||
operation buckets — create in a group (1.5.x), changing a group-by value (2.2.7,
|
||
2.4.x), and group-by-affecting paste (4.7.x) — plus the parametrized
|
||
flat/group-by runs, the same way filters and sorts do.
|
||
|
||
### 7.1.1 Sections views load expanded and collapse or expand all groups
|
||
|
||
- A grouped view using Sections initially renders its group banners expanded with
|
||
their rows visible.
|
||
- Collapsing all groups hides every group's rows and leaves the banners visible.
|
||
- Expanding all groups restores the rows in their groups and keeps group counters.
|
||
- Rows fetched on the initial expanded load stay in the store while collapsed, so
|
||
re-expanding does not refetch them.
|
||
|
||
### 7.1.2 Collapse and expand a group in Sections
|
||
|
||
- Collapsing one group hides only that group's rows.
|
||
- Other expanded groups stay visible.
|
||
- Expanding the group restores its rows in place.
|
||
|
||
### 7.2.1 Adding a group-by in Sections refreshes with one metadata and one row request
|
||
|
||
- A Sections view already grouped by one field renders its group banners with
|
||
counters.
|
||
- Adding a second group-by field issues exactly one group-by-data metadata
|
||
request and exactly one grid rows request, not a request per group.
|
||
- The group-by-data request includes `include_descendants=true`.
|
||
- New nested group banners and their counters are visible after the refresh.
|
||
- Total row count is unchanged.
|
||
|
||
### 7.3.1 Sections group headers show per-column aggregation summaries
|
||
|
||
- When a column has a "Summarize" aggregation configured, each group header shows
|
||
that column's aggregation computed over that group's rows, column-aligned under
|
||
the field, at every group-by depth.
|
||
- The summary is visible whether the group is collapsed or expanded.
|
||
- It respects the view's filters and search, the same scope as the group row count.
|
||
- A column set to the `distribution` aggregation shows no value in group headers;
|
||
its bottom-footer value is unaffected.
|
||
- The bottom footer still shows the overall total for the column.
|
||
|
||
### 7.3.2 Hovering a Sections group header to pick or change an aggregation
|
||
|
||
- Hovering a group-by header reveals, per column, the aggregation value or a
|
||
`+ Summarize` affordance on the hovered column (only the hovered column).
|
||
- Clicking it opens the aggregation menu; choosing a function sets it for the
|
||
column, so the bottom footer and every group's header show that function
|
||
together (shared column setting).
|
||
- After choosing a function, the affected values show a brief loading spinner and
|
||
update in place. The group layout (rows, counts, offsets) is not rebuilt; only
|
||
the aggregation values change.
|
||
|
||
### 7.3.3 Live Sections group aggregation updates on row changes
|
||
|
||
- In Sections, editing a cell updates that row's group value (and its ancestor
|
||
groups + the footer total) in place, with no spinner — like a spreadsheet SUM.
|
||
- Moving a row between groups (editing a group-by field) updates both the source
|
||
and destination group values.
|
||
- A second browser session viewing the same grouped view sees the values update
|
||
via realtime, the same way.
|
||
- Changing the sort does not change aggregation values (they are order-independent),
|
||
so no aggregation request is made for a sort change.
|
||
- In grouped mode the values come from a single `group-by-data` request (the
|
||
standalone `/aggregations/` footer endpoint is not called).
|
||
|
||
## Search
|
||
|
||
### 8.1.1 Search in highlight mode
|
||
|
||
- Search panel is open.
|
||
- Search is idle.
|
||
- Matching cells are highlighted.
|
||
- Non-matching rows remain visible.
|
||
- Non-matching cells are not highlighted.
|
||
|
||
### 8.1.2 Search with no matches in highlight mode
|
||
|
||
- Search panel is open.
|
||
- Search is idle.
|
||
- No cells are highlighted.
|
||
- All rows remain visible.
|
||
|
||
### 8.1.3 Clear search
|
||
|
||
- Existing highlights are hidden.
|
||
- All rows remain visible.
|
||
|
||
### 8.1.4 Search matches a non-primary field
|
||
|
||
- Matching non-primary cell is highlighted.
|
||
- Primary plus non-primary multi-field highlight in the same row is TODO.
|
||
|
||
### 8.2.1 Search in hide-not-matching mode
|
||
|
||
- Typing search hides non-matching rows.
|
||
- Matching rows remain visible.
|
||
|
||
### 8.2.2 Toggle hide-not-matching mode off
|
||
|
||
- Hidden rows become visible again.
|
||
- Matching cells remain highlighted.
|
||
|
||
## View Display Options
|
||
|
||
### 9.1.1 Row coloring from single-select color
|
||
|
||
- Grid opens with all rows loaded.
|
||
- Selected single-select values are visible.
|
||
- Row background uses the selected option color in the frozen-left section.
|
||
- Row background uses the selected option color in the scrollable-right section.
|
||
- The row surface on top of the color wrapper stays transparent, so the
|
||
decoration color is actually painted.
|
||
- No row loading spinner is shown because row coloring is loaded from the saved
|
||
view decoration.
|
||
|
||
### 9.1.2 Row coloring with Sections group-by
|
||
|
||
- Grid opens with the saved group-by and Sections layout applied.
|
||
- Group banners show each group value with its row count.
|
||
- Row background uses the selected option color in the frozen-left section.
|
||
- Row background uses the selected option color in the scrollable-right section.
|
||
- The row surface on top of the color wrapper stays transparent, so the
|
||
decoration color is actually painted (grouped rows previously painted an
|
||
opaque background over it).
|
||
- No row loading spinner is shown because row coloring is loaded from the saved
|
||
view decoration.
|
||
|
||
### 9.2.1 Hide and show a non-primary field
|
||
|
||
- Field header is initially visible.
|
||
- Field cells are initially visible.
|
||
- Hiding the field removes the field header immediately.
|
||
- Hiding the field removes the field cells immediately.
|
||
- Hidden state persists after reload.
|
||
- Row count is unchanged.
|
||
- Showing the field restores the field header.
|
||
- Showing the field restores the field cells with their values.
|
||
- Shown state persists after reload.
|
||
|
||
### 9.3.1 Change row height
|
||
|
||
- Grid opens at small row height.
|
||
- Values are visible.
|
||
- Selecting Medium changes visible rows to 55px.
|
||
- Values remain visible after changing row height.
|
||
- Selecting Large changes visible rows to 99px.
|
||
- Values remain visible after changing row height.
|
||
- Large row height persists after reload.
|
||
- No row loading spinner is shown.
|
||
|
||
### 9.4.1 Load view with frozen columns
|
||
|
||
- Saved frozen column count moves the first non-primary field into the frozen-left
|
||
section.
|
||
- Frozen field header is absent from the scrollable-right section.
|
||
- Next non-primary field remains visible in the scrollable-right section.
|
||
- Frozen column layout persists after reload.
|
||
|
||
### 9.5.1 Count mode shows sequential row positions
|
||
|
||
- Row count column shows "1" for the first row, "2" for the second, and so on.
|
||
- Note: the backend default for a new view is `row_identifier_type = "id"`. Tests
|
||
that verify count mode must explicitly set the view to count mode via API before
|
||
navigating.
|
||
|
||
### 9.5.2 Switch to Row identifier and back to Count
|
||
|
||
- Clicking the dropdown icon in the row count header opens the identifier picker.
|
||
- Selecting "Row identifier" changes the count column to show actual backend row IDs.
|
||
- Sequential position values are no longer visible.
|
||
- Row identifier values persist after reload.
|
||
- Selecting "Count" restores sequential position values.
|
||
- Row identifier values are no longer visible.
|
||
- Count values persist after reload.
|
||
|
||
### 9.6.1 Switch to Columns replaces banners with spanning group cells
|
||
|
||
- Grouped by Team with three rows in two groups.
|
||
- The group layout control uses the user-facing labels "Sections" and "Columns";
|
||
their stored values are `section` and `column`.
|
||
- Choosing "Columns" in the group-by menu sends one view PATCH with
|
||
`group_by_layout: "column"`.
|
||
- No `.grid-view__group-by-banner` remains; each group renders one
|
||
`.grid-view__group-span` in the frozen section whose `.grid-view__group-count`
|
||
shows the group's row count; all rows stay visible and ordered.
|
||
- The layout survives a reload.
|
||
|
||
### 9.6.2 Second level adds a column; Sections restores the banners
|
||
|
||
- Adding a second group-by in Columns renders two `.grid-view__head-group`
|
||
header cells and one correctly counted span for each nested group.
|
||
- Choosing "Sections" sends one view PATCH, restores the banners and removes every
|
||
span.
|
||
|
||
### 9.6.3 Five Columns groups keep the data pane usable at a narrow viewport
|
||
|
||
- A view grouped by the maximum five fields opens in Columns at a 1024px browser
|
||
viewport.
|
||
- All five group headers and spans remain visible, while their display widths are
|
||
proportionally fitted without going below the minimum column width.
|
||
- The right data pane remains 300px wide, contains the primary value, and exposes
|
||
its horizontal scrollbar.
|
||
- Group headers and body spans remain aligned, and resize handles are withheld
|
||
while responsive fitting is active so a drag cannot persist a misleading width.
|
||
- Widening the viewport restores every configured 200px group width without a
|
||
persistence mutation and restores the resize handles.
|
||
|
||
### 9.6.4 Column width resize persists
|
||
|
||
- At a wide viewport, dragging the group-column resize handle by 40px sends one
|
||
group-by PATCH containing `width: 240`.
|
||
- The header and every matching body span move from 200px to 240px together.
|
||
- The 240px width survives a reload.
|
||
- Starting a resize before responsive fitting activates and dragging beyond the
|
||
available group width still saves the requested width on mouseup. The active
|
||
handle remains mounted for the drag; widening the viewport restores the saved
|
||
width and resize handles.
|
||
|
||
### 9.6.5 Row drag uses the Columns offset and persists
|
||
|
||
- Dragging a row within a group renders the drag overlay after the 200px group
|
||
column and exposes a valid drop target.
|
||
- The move request targets the expected `before_id` and view.
|
||
- The new row order and group count survive a reload.
|
||
|
||
### 9.6.6 Columns virtualizes thousands of uneven rows and groups
|
||
|
||
- The fixture contains 3,000 rows grouped into 50 parent groups and 1,500 nested
|
||
leaf groups. Leaf groups alternate between one and three rows, while parents
|
||
alternate between 29 and 31 leaves, forcing sparse page estimates to converge
|
||
across uneven boundaries.
|
||
- Switching from collapsed Sections to Columns expands the rendered hierarchy
|
||
without overwriting the saved Sections collapse state.
|
||
- Deep wheel jumps across singleton/large leaf, parent, sparse-page and midpoint
|
||
boundaries render exact absolute count identifiers and matching parent/leaf
|
||
spans.
|
||
- The first parent span keeps its exact 57-row height and sticky label at a deep
|
||
offset.
|
||
- Fewer than 100 left rows, right rows and spans are mounted at both the start and
|
||
end. Attempted group and row data requests remain independently below 200 and
|
||
below 250 combined.
|
||
- Switching back to Sections restores the collapsed state; switching to Columns
|
||
again and reloading preserves the Columns layout, hydrates the first row, and
|
||
reaches a deep sparse row directly.
|
||
- No API response with an error status, non-cancellation transport failure, or
|
||
page error occurs.
|
||
- With 160 groups whose first and last 40 groups contain one row each and middle
|
||
80 groups contain 100 rows each, jumping directly to row index 4,000 renders
|
||
that row. Loading a middle group page must not shift its known absolute row
|
||
offset or stop refinement while displaying a different row at that position.
|
||
|
||
## Cell Selection
|
||
|
||
### 10.1.1 Click a cell
|
||
|
||
- Clicked cell becomes selected.
|
||
- No multi-select range is shown.
|
||
|
||
### 10.1.2 Shift-click another cell
|
||
|
||
- First selected cell remains the anchor.
|
||
- Rectangular multi-select range is shown between the anchor cell and clicked
|
||
cell.
|
||
|
||
### 10.1.3 Drag across cells
|
||
|
||
- Rectangular multi-select range is shown during drag.
|
||
- Rectangular multi-select range remains visible after mouseup.
|
||
|
||
### 10.1.4 Press Escape
|
||
|
||
- Existing multi-select range is hidden.
|
||
|
||
### 10.1.5 Click outside the grid
|
||
|
||
- Existing multi-select range is hidden.
|
||
|
||
### 10.1.6 Group-by cell selection and shift range use visible row indexes
|
||
|
||
- Grouped view loads with expanded group banners and its rows visible.
|
||
- Selecting the first field cell selects that cell.
|
||
- Shift-clicking a cell one row and one field away expands the selected range to
|
||
a 2x2 area, addressed by visible row index across group banners rather than
|
||
raw row position.
|
||
|
||
### 10.1.7 Columns cell selection works across sparse group pages
|
||
|
||
- In a Columns view with 120 one-row groups, load groups 0–39 and jump to groups
|
||
80–119 without loading the middle page.
|
||
- Dragging or shift-clicking from row index 100 to 101 and an adjacent field
|
||
selects the expected 2x2 range. Correcting the selection after a refresh keeps
|
||
it intact; selection bounds use the full row count.
|
||
|
||
### 10.2.1 Shift+Arrow expands selected range
|
||
|
||
- Starting from one selected cell, Shift+ArrowRight expands the selected range
|
||
to two cells.
|
||
- Shift+ArrowDown expands the selected range to a 2x2 area.
|
||
|
||
## Keyboard Navigation
|
||
|
||
### 11.1.1 Press Tab
|
||
|
||
- Selection moves to the next cell.
|
||
- Typing starts editing that cell.
|
||
- Typed value is visible immediately.
|
||
|
||
### 11.1.2 Press Enter on selected cell
|
||
|
||
- The selected cell enters edit mode.
|
||
|
||
### 11.1.3 Press Enter while editing
|
||
|
||
- Typed value is visible immediately.
|
||
- Selection moves down.
|
||
- Typing starts editing the row below.
|
||
- Second typed value is visible immediately.
|
||
|
||
### 11.1.4 Press Escape while editing
|
||
|
||
- Typed draft is discarded.
|
||
- Original value is visible again.
|
||
- Editor is closed.
|
||
|
||
### 11.1.5 Use arrow keys
|
||
|
||
- Selection moves to the target cell.
|
||
- No editor appears.
|
||
|
||
### 11.1.6 Type while a cell is selected
|
||
|
||
- The selected cell enters edit mode.
|
||
- The edit field contains the typed characters.
|
||
|
||
## Row Hover Actions
|
||
|
||
### 12.1.1 Hover and unhover toggles checkbox and row count
|
||
|
||
- Row count is visible before hover.
|
||
- Hovering the row reveals the checkbox.
|
||
- Row count is hidden while the row is hovered.
|
||
- Checkbox is visible while hovering.
|
||
- Moving the mouse away hides the checkbox.
|
||
- Row count is visible again after unhover.
|
||
|
||
### 12.1.2 Drag handle present in unsorted view, absent when sort is active
|
||
|
||
- Drag handle element is present in a view with no active sort.
|
||
- Drag handle element is absent in a view where a sort controls row order.
|
||
|
||
### 12.2.1 Insert row below from context menu
|
||
|
||
- Context menu opens for a row.
|
||
- Selecting "Insert row below" creates an empty row directly below the selected
|
||
row.
|
||
- Existing rows keep their relative order.
|
||
|
||
### 12.2.2 Duplicate row from context menu
|
||
|
||
- Context menu opens for a row.
|
||
- Selecting "Duplicate row" creates a copied row directly below the selected row.
|
||
- Duplicated row contains the copied primary and field values.
|
||
|
||
## Checkbox Selection
|
||
|
||
### 13.1.1 Checkbox selection clears active area selection
|
||
|
||
- Rectangular multi-select range is visible.
|
||
- Hovering a row reveals its checkbox.
|
||
- Clicking the row checkbox selects the row.
|
||
- Existing multi-select range is hidden.
|
||
|
||
### 13.1.2 Grouped row checkbox selection clears active area selection
|
||
|
||
- Grouped view loads with expanded group banners and its rows visible.
|
||
- Rectangular multi-select range is visible across the grouped rows.
|
||
- Hovering a row reveals its checkbox.
|
||
- Clicking the row checkbox selects the row.
|
||
- Existing multi-select range is hidden.
|
||
|
||
## Row Expand Modal
|
||
|
||
### 14.1.1 Open row expand modal from context menu
|
||
|
||
- Context menu opens for a row.
|
||
- Selecting "Enlarge row" opens the row edit modal.
|
||
- Modal contains the selected row value.
|
||
- Closing the modal hides it.
|
||
|
||
### 14.2.1 Modal edit that stops matching the filters
|
||
|
||
- Editing a modal-open row so it stops matching the filters keeps the row
|
||
visible with a "Row does not match filters" warning.
|
||
- Row count is unchanged while the modal stays open.
|
||
- A follow-up edit in the modal does not hide any other row.
|
||
- Closing the modal hides the row that no longer matches.
|
||
|
||
### 14.2.2 Realtime updates into a non-matching modal row
|
||
|
||
- After a modal edit makes the row stop matching the filters, an update from
|
||
another client is still reflected in the open modal.
|
||
|
||
## Public Shared Grid
|
||
|
||
### 15.1.1 Public grid renders rows without edit controls
|
||
|
||
- Public shared grid route renders without an authenticated session.
|
||
- Visible rows are loaded.
|
||
- Add row control is hidden.
|
||
- Floating add row button is hidden.
|
||
- Row mutation context-menu actions are hidden.
|
||
|
||
## Row Ordering
|
||
|
||
### 19.1.1 Reorder a row inside a grouped leaf
|
||
|
||
- TODO:
|
||
- With grouping active and no explicit sort, grouped rows expose drag handles.
|
||
- Dropping a row at another visible slot in the same leaf group changes its
|
||
position without changing its grouped field values.
|
||
- Other leaf groups keep their row order and counts.
|
||
|
||
### 19.1.2 Move a row into another writable leaf group
|
||
|
||
- TODO:
|
||
- Dropping a row at a visible slot in another leaf group immediately moves it
|
||
to that slot.
|
||
- Every active grouped field is updated to the destination group path before
|
||
the row order is changed.
|
||
- Source and destination group counts update immediately.
|
||
- One undo restores both the original grouped values and original row
|
||
position; one redo reapplies both changes.
|
||
- If the value update succeeds but the move request fails, the row remains in
|
||
the destination group with its original order.
|
||
|
||
### 19.1.3 Read-only grouping constrains row ordering to the current leaf
|
||
|
||
- TODO:
|
||
- If any active group-by field is read-only, same-leaf insertion slots remain
|
||
valid drag targets.
|
||
- Insertion slots in every other leaf group are unavailable, including when
|
||
the destination differs only in writable grouped fields.
|
||
- In Sections, collapsed group headers are never drop targets; unloaded row
|
||
placeholders are never drop targets in either layout.
|
||
|
||
## TODO Coverage
|
||
|
||
- 2.5.x: Editing source fields for visible formula fields that are not active
|
||
filter/sort/group-by constraints; verify formula-cell loading, refresh, and
|
||
rollback. Formula-backed filter/sort constraints are covered by 2.2.5 and
|
||
2.3.4.
|
||
- 1.6.x: Create rows in a field with a unique / unique-with-empty constraint.
|
||
- Adding a row whose value duplicates an existing non-empty value in a field
|
||
with a unique constraint is rejected: the backend validation error is
|
||
surfaced (error toast) and the optimistic row is rolled back.
|
||
- With a unique-with-empty constraint, adding multiple rows that leave the
|
||
field empty is accepted, while duplicate non-empty values are still
|
||
rejected.
|
||
- 2.6.x: Edit rows in a field with a unique / unique-with-empty constraint.
|
||
- Editing a cell to a value that duplicates another row's non-empty value in
|
||
a field with a unique constraint is rejected: the backend validation error
|
||
is surfaced and the typed value is rolled back to the previous value.
|
||
- With a unique-with-empty constraint, clearing a cell is accepted even when
|
||
other rows are already empty, while duplicate non-empty values are
|
||
rejected.
|
||
- 4.2.x: Filter-affecting paste with formula-field filter (deferred warning path).
|
||
- 4.3.x: Sort-affecting paste with formula-field sort (deferred move path).
|
||
- 4.4.x: Backspace clears all selected cell values while an area selection is active.
|
||
- 4.5.x: Larger multi-cell paste matrix.
|
||
- 4.6.x: Copy selected cells with column headers via the context menu option.
|
||
- 4.7.x: Group-by-affecting paste backend-error rollback and formula group-by
|
||
constraints. Regular keep-selected and deselect-before-confirmation are covered
|
||
by 4.7.1a–4.7.1b.
|
||
- 5.3.x: OR filter combinations and filter groups.
|
||
- 7.x: Remaining Sections-specific standalone behavior not yet automated — each
|
||
leaf group renders its own add-row line and adding from a non-first group lands
|
||
in that group; the add-row line keeps the small row height at medium/large row
|
||
heights (covered by unit tests, not e2e); an empty grouped view keeps a
|
||
top-level add-row line and a row created from it lands in its value-derived
|
||
group, selected and with a filter warning when it does not match (covered by
|
||
unit tests, not e2e); Sections group headers draw a vertical cell separator at
|
||
each field boundary in the scrollable-right section (covered by unit tests,
|
||
not e2e); collapse/expand state persists across reload and is re-projected
|
||
(kept on trailing-level add/remove, reset on reorder/replace); nested
|
||
multi-level Sections collapse/expand, counts, and add-row; lazy-loading rows
|
||
when scrolling deep into a large group (covered by unit tests, not e2e).
|
||
- 9.6.x: Columns-specific behavior not yet automated — editable views expose one
|
||
trailing add-row line for the whole grid and no per-group add-row lines; adding
|
||
from it places the row in its value-derived group; read-only views do not show
|
||
it. Columns does not render per-group aggregation values or pickers, while the
|
||
overall footer total remains visible and updates after row changes.
|
||
- 15.x: Ad-hoc grouping in the publicly shared grid — a visitor applying a
|
||
different group-by rebuilds the group tree and loads rows for the new groups
|
||
(covered by backend tests, not e2e).
|
||
- 7.x: Ad-hoc grouping for users who cannot update the view (e.g. read-only
|
||
role) — the `group_by` parameter drives the group tree instead of the saved
|
||
view group-bys (covered by backend tests, not e2e).
|
||
- 9.1.x: Row coloring from a formula-based decoration (section 9.1 covers
|
||
single-select only).
|
||
- 9.4.x: Freeze columns drag UI and limits.
|
||
- Freeze handle is visible when there is enough horizontal space.
|
||
- Freezing 3 columns moves 3 columns into the frozen-left section.
|
||
- Freezing 4 columns moves 4 columns into the frozen-left section.
|
||
- The scrollable-right section scrolls independently.
|
||
- The UI does not allow freezing more than 4 columns.
|
||
- The UI does not allow freezing more columns than can fit in the available
|
||
width.
|
||
- 9.7.x: Drag-and-drop fields.
|
||
- Field-drag preview is visible while dragging a field header.
|
||
- Target position is visible while dragging a field header.
|
||
- Dropping reorders field headers.
|
||
- Dropping reorders row cells to match the field headers.
|
||
- Field order persists after reload.
|
||
- 12.2.x: Remaining single-row context menu actions beyond deletion, insert below,
|
||
and duplicate (insert above, copy row URL).
|
||
- 13.2.x: Multi-row bulk actions on checkbox-selected rows.
|
||
- 14.2.x: Row expand modal deeper coverage — open via double-click, navigate
|
||
prev/next rows, edit fields from inside the modal, filter re-check on modal
|
||
close.
|
||
- 16.x: Realtime multi-user row events.
|
||
- 17.x: Realtime metadata and presence.
|
||
- 18.x: Data-sync read-only mode — add row button, floating add row button, and
|
||
delete row option are hidden when the table has a data sync without two-way
|
||
sync enabled (floating add row button covered by unit tests, not e2e).
|