* refactor: extract grid view common test helpers
* refactor: extract row-lifecycle helpers and migrate grid store
Add computeRowInsertPosition to utils/row.js (expresses insert
position by row identity rather than flat array index).
Add handleRowCreated, handleRowDeleted, handleRowUpdated to
rowLifecycle.js. Each takes a store-supplied mutations adapter so
the decision logic (filter matching, sort position) is shared
between the flat-array grid store and the upcoming collapsible
group-by store.
Migrate createdNewRow, updatedExistingRow, deletedExistingRow in
grid.js to delegate through the new helpers via inline adapter
closures that translate position descriptors to the existing
flat-buffer Vuex mutations. Observable behaviour is unchanged;
search gating is preserved in each Vuex action.
Also includes grid view e2e test additions (section 1.5 task queue,
section 7.7 row identifier type, section 10.1 hover actions) and
grid test plan updates from the refactor/grid-view-common-e2e work.
* chore: fix CI
* chore: cleanup
* refactor: remove dead grid e2e search helpers and dedupe row-lifecycle guards
- Drop the unused openSearch/typeInSearch/clearSearch/toggleHideNotMatchingRows
methods from GridPage; the richer, used variants live in
grid_view_options.spec.ts. This also removes the placeholder/getByText
selectors flagged in review (the remaining 'Delete row' selector stays scoped
to the visible context menu).
- Centralize the repeated 'applyMatchFlags ?? noop' / 'rowsForMatchCheck ??
emptyRows' guards into a single normalizeMutations() helper. No behavior change.
* refactor: remove dead updateMatchFilters/updateMatchSortings grid actions
Both grid store actions lost all production callers in the row-lifecycle
migration (match flags are now computed via onRowChange/reapplyMatchFlags and
direct computeRowMatchFlags calls). Repoint the remaining viewFilters test at
the live onRowChange path instead of the orphaned updateMatchFilters action.
* docs: note field-constraint create/edit coverage in grid view test plan
Add 1.6.x and 2.6.x TODO entries describing add/edit behavior under unique and
unique-with-empty field constraints (backend validation error surfaced +
optimistic rollback; empty values exempt from uniqueness).
* test: await route registration in failNextRequest
failNextRequest fired page.route() without awaiting it, so the intercept
could register after the caller already triggered the request. Make it async
and await registration before returning (mirroring pauseNextRequestWithSignal);
it now returns { done } and the 3 callers await it.
* test: scope grid_interaction serial mode per-describe
Replace the single file-level serial config with a per-describe one (matching
the other two grid specs) so a failure in one block no longer skips the rest and
independent blocks can run in parallel.
* docs: document createRowLifecycleContext and clarify escape wording
- Add a docstring to createRowLifecycleContext.
- Reword the Deferred/Escape note in the grid view test plan.
* fix(e2e): return created rows from createRows helper
setupGrid expected createRows to return the created rows to collect their
ids, but the helper returned void and discarded the batch-create response,
so created.map() threw 'Cannot read properties of undefined' and every
grid_interaction spec failed deterministically. Return response.data.items.
* revert publicView changes
* fix(web-frontend): Show unnamed row label for empty linked rows in form
dropdowns
* fix: address reviewer comments on form link-row dropdown fix
* fix(web-frontend): keep required validation passing when user picks an
unnamed linked row
* fix(web-frontend): reset the cache to prevent it from growing
unboundedly
* fix(web-frontend): enforce required form validation at the field-type level
Required validation in the form submit path relied on each component's
isValid(), which the duration field overrides with a touched-based check.
An untouched empty required duration field therefore passed validation and
the form submitted an empty value the backend rejected.
Move the required check back to the field-type level via a new
isEmptyForRequiredValidation(), which defaults to isEmpty but lets link_row
use presence semantics (a picked row with an empty primary still counts as
filled) without changing isEmpty, so the conditional-visibility filters keep
treating that row as empty.
Also generalise PaginatedDropdown so valueName accepts a function and select()
emits the resolved item, which removes the fetchPage side effects (label
injection and the rowLookup copy) and lets the single and multiple link-row
components share a formViewLinkRowField mixin.
* fix(web-frontend): align link_row empty semantics with the backend
Replace isEmptyForRequiredValidation with a single isEmpty. A link_row is
a many-to-many relation, so the backend treats it as empty only when no row
is linked; the frontend's isEmpty was inheriting the base array check and
reporting a picked empty-primary row as empty. Make isEmpty selection-based
so the conditional-visibility filters and required form validation share one
definition that matches the backend.
* test(e2e): cover link_row behaviour on the public form
Add e2e tests for the public form link_row field: the "unnamed row" label
for empty-primary linked rows, an empty-primary pick revealing a
show-when-not-empty field, client-side blocking of a required empty field,
and a required link satisfied by an empty-primary row. Add form-view and
row fixtures and a FormPage page object to support them.
* refactor(web-frontend): tidy form link-row validation and row-value resolution
Collapse the duplicated requiredField branches in the multiple link-row
getValidationError into a single guard, document why it delegates to
baseField (not rowEditField) to avoid a double required check, and extract
the shared item/displayName resolution into resolveRowValue on the mixin so
the explanatory comment lives in one place.
No behaviour change; covered by existing form link-row unit tests.
* refactor(e2e): merge createTable helpers and fix link_row isEmpty semantics
Unify createTable/createTableWithData into a single createTable with an
optional data argument, and treat a link_row value as empty only when
every slot lacks a real id (some -> every), so a picked empty-primary
row counts as a real selection.
* fix(web-frontend): show required error for an untouched empty duration field
The duration field only computed its error message while the user typed, so
a required, untouched, empty field blocked form submission silently with no
visible error. Fall back to the field-type validation in the duration mixin's
getError so the required error renders on submit, and assert it in the e2e.
* refactor(web-frontend): drop redundant duration isValid override
isValid() now matches baseField's implementation exactly, and no
intermediate mixin defines it, so the override is dead weight.
* fix(web-frontend): guard duration form error slot with touched && !valid
* fix: prevent database API docs toggle crash
Use Vue's template ref unwrapping correctly so opening the database selector no longer crashes the API docs page. Add a regression test covering the toggle interaction.
* fix: address API docs review feedback
Unmount the API docs page in the regression test to avoid leaking listeners between tests. Update the database list toggle to use button semantics and keep the existing styling.
* Fix sort in data source
* Fix bug in preview authentication
* chore: Remove `applicationContext` from table page metadata.
* chore: Remove `applicationContext: true` from `definePageMeta` in automation workflow and dashboard pages.
---------
Co-authored-by: Jonathan Adeline <jonathan@baserow.io>