* fix: handle calendar boundaries in date comparisons
* feat: add a single-date filter to the dashboard API
* feat: send the viewer timezone with dashboard data requests
* refactor: share dashboard filter controls and target settings
* feat: configure dashboard filter conditions on date fields
* feat: add the Date filter to the dashboard widget picker
Implement the single-date mode of #6886.
* fix: restore dragging dashboard filters by their titles
* feat: persist the dashboard date filter display format
* feat: choose how dashboard filter dates are displayed
* test: align numeric filter checks with shared dashboard controls
* style: format the dashboard date filter component test
* fix: accept fixed UTC offsets in dashboard date filters
* fix: expose dashboard filter dates as ISO strings in formulas
* fix: seed dashboard conditions with compatible operators
* feat: expose date ranges in dashboard formulas and viewer selections
* feat: configure inclusive date range conditions for dashboard targets
* feat: persist and dispatch inclusive dashboard date ranges
* docs: describe date range selections in the dashboard dispatch API
* feat: select and configure dashboard date ranges
* fix: let viewers clear each dashboard date range endpoint
* fix: preserve unfinished dashboard date range bounds on refresh
* fix: refresh public dashboards after a date filter mode change
* test: group dashboard date filter mode transitions
* fix: warn about incompatible date range formula operands
* fix: convert dashboard date defaults from the saved widget
* fix: keep dashboard filter controls aligned when a condition has a warning
* fix: clear incompatible dashboard conditions when switching date modes
* fix: show cleared date conditions without warnings or redundant saves
* fix: ignore empty dashboard date conditions after switching modes
* fix: ignore dashboard date conditions without a single date and simplify mode switch clearing
---------
Co-authored-by: peter_baserow <peter@baserow.io>
* feat(database): assign and mention identities behind a field option
- Collaborator fields get `include_identities` and long text fields
`long_text_include_identities`, both off by default.
- With the option on, active identities of the workspace can be assigned
or suggested as mentions; they are shown with their icon and renamed
in realtime, and they never receive notifications.
- Turning the collaborator option off backs up the column, deletes the
identity assignments and strips identities from the view defaults, so
the update can be undone.
- Identities can author row comments and be mentioned in them.
- Exports write an identity as `Name <identity>`.
* refactor: hide internal emails in collaborator exports through one check
* fix: import a personal view only for a person, without a query per owner
* fix: show collaborator identities with the icon of the user subject type
* refactor: drop a redundant local import of the core handler
* fix: unify identity icons and space field options
* fix: keep identity field menus and saved mentions readable
* fix: limit identity mention suggestions to row comments
* perf: prefetch available collaborators once per workspace
* fix: use workspace members as authors of generated rows
* fix: resolve linked collaborator values by member email
* fix: use workspace collaborators for field pickers and paste
* refactor: move identity avatar styles to the avatar stylesheet
* fix: address review feedback on identity collaborators
* feat: rich text editor for form field description (creator)
* feat: render form field description as rich text (respondent)
* feat: rich text editor for form description (creator)
* feat: render form description as rich text (respondent)
Renders the form-level description read-only via RichTextEditor in
FormViewModeForm.vue (the public standard form), matching the field
description treatment from FormPageField.
FormViewModeSurvey.vue was checked and has no separate form-level
description/title render at all (it goes straight to fields), so no
change was needed there.
* docs: changelog for rich form descriptions (#1851)
* fix: only save form description after an actual edit
saveDescription ran on every editor blur and compared tiptap's
normalized markdown against the raw stored value, so clicking into
a legacy plain-text description (with chars like *, #, %) and away
without editing silently rewrote the stored value. Add a dirty flag
set only by update:modelValue (real edits) so blur without an edit
is a no-op.
Also drops the unused editor-class attribute on the description
RichTextEditor (no matching SCSS rule).
* perf: only mount field description editor when needed (v-if)
* fix: preserve in-progress description edit on external update; add e2e coverage
* fix: click-to-edit toggle for form descriptions; fix cursor reset
Replace the always-editable inline RichTextEditor on the form builder with a
shared FormViewDescription component that renders read-only markdown and mounts
the editor only while editing, behind an edit pencil (matching title/submit).
- Restores the edit affordance that regressed vs the old Editable.
- Passes model-value one-way and reads markdown back on blur, so typing after
moving the cursor no longer resets to the end.
- No floating menu lingers on the form once editing stops.
- Removes the dirty/save-on-blur logic duplicated across FormViewField and
FormViewModePreviewForm.
* test: cover form description toggle and save-on-blur
* fix: keep description editor menu stuck to cursor line on scroll
Pass the form preview's scroll container (.form-view__preview) to the editor so
its floating/bubble menu tracks the cursor line while the page scrolls, instead
of falling back to the editor's own non-scrolling root.
* Address PR review feedback (#5707)
- Route public form description render sites through FormViewDescription
- Pass scroll container as a resolver prop instead of a closest() lookup
- Wrap long unbroken words in form and field descriptions
- Use palette color variable for the description placeholder
* fix: clamp form description containers to the form column
The flex editor wrapper inside the inline-block description containers
made them shrink-to-fit their max-content width, letting long words
escape the form column on the public form.
* fix(web-frontend): remove empty option from link-to-table dropdown in form view
The form-view link-row fields mount PaginatedDropdown without overriding
its `addEmptyItem` prop, which defaults to true with an empty display name.
That rendered a blank option at the top of the dropdown. Suppress it with
`:add-empty-item="false"` on both the single and multiple link-row form
components, matching the FormViewFieldSingleSelectRadios pattern (which
renders no empty option).
Closes#5549
* fix(backend): resolve PR feedback
* 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