Commit Graph
96 Commits
Author SHA1 Message Date
Davide Silvestri 23f328cb19 feat(database): assign identities to rows and mention them in comments (#6619)
* 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
2026-11-18 22:53:44 +01:00
Bram 42371d6beb feat: Add skeleton loading animation and make pages load instantly (#6023) 2026-09-09 11:03:03 +02:00
Bram 92ce535aba feat: Report abuse in public views (#5766) 2026-07-29 13:24:21 +02:00
alamin-br 59da1eb2da feat: rich content in form view descriptions (#1851) (#5707)
* 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.
2026-07-17 17:40:40 +02:00
alamin-br 0060e07e9b fix(web-frontend): remove empty option from link-to-table dropdown in form view (#5571)
* 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
2026-06-24 12:09:19 +02:00
alamin-br 0e1dc939e1 fix(web-frontend): Show unnamed row label for empty linked rows in form drop downs (#5469)
* 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
2026-06-16 14:25:01 +02:00
Jonathan Adeline 56a4d7f3a1 chore: replace moveToBody with <Teleport /> built-in vue3 component (#4872) 2026-05-19 15:05:00 +04:00
Bram 019d02e93d feat: edit row via form view field (#4886) 2026-03-17 09:44:33 +01:00
716d43a9a8 Nuxt 3 migration (#4342)
Update the nuxt3 version.

Co-authored-by: Jonathan Adeline <jonathan@baserow.io>
Co-authored-by: Bram Wiepjes <bramw@protonmail.com>
Co-authored-by: Cezary <cezary@baserow.io>
Co-authored-by: Tsering Paljor <tsering@baserow.io>
Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io>
Co-authored-by: Bram <bram2w@users.noreply.github.com>
2026-01-22 10:27:19 +01:00
Przemyslaw Kukulski bb8909d343 Resolve "Asterisk (*) to indicate required fields in forms" 2025-08-22 09:57:42 +00:00
Przemyslaw Kukulski e59c78e58c Single select default value conflicts with form's restricted options cause errors 2025-08-08 08:59:29 +00:00
Davide Silvestri 7d1fe63e09 Resolve "Bug when opening forms in templates" 2025-06-13 10:10:02 +02:00
Davide Silvestri 87848ac91d Resolve "Field level edit permissions" 2025-04-29 14:25:11 +02:00
Davide Silvestri 3ea26775a6 Merge branch 'frontend-field-read-only' into 'develop'
Uniform fieldType.isReadOnly in the frontend

See merge request baserow/baserow!3365
2025-04-18 10:45:17 +02:00
Davide Silvestri 668198b15c Uniform fieldType.isReadOnly in the frontend 2025-04-18 10:45:17 +02:00
Bram Wiepjes 165142e3e9 [4/4] Update Form view styling 2025-04-17 15:02:11 +00:00
Przemyslaw Kukulski 3bb2925ea9 Merge branch '2173-default-value-boolean' into 'develop'
Be able to specify a default value on boolean field

See merge request baserow/baserow!3343
2025-04-15 08:49:10 +00:00
Przemyslaw Kukulski 9cee7ef17a Be able to specify a default value on boolean field 2025-04-15 08:49:10 +00:00
Bram Wiepjes c352ee138d [2/2] Update premium and enterprise paid features modal 2025-04-14 12:39:57 +00:00
Bram Wiepjes aa65da48a4 Fix form view meta controls validations 2025-03-23 21:05:39 +01:00
Davide Silvestri 2c7e0013d9 Resolve "Collaborator Field Support in Form Views" 2025-02-24 07:46:11 +00:00
Jonathan Adeline a58e6a3300 Vuelidate upgrade 2025-02-17 13:17:35 +00:00
Bram Wiepjes a9527603e9 Allow editors to subscribe to a form view 2025-01-21 21:20:44 +00:00
Bram Wiepjes 744582d60f Allow choosing select options in form view 2024-12-16 13:20:34 +00:00
Bram Wiepjes 98a46a4f23 Resolve "Increase the max_length for submit_action_redirect_url URLField in FormView" 2024-10-28 12:55:55 +00:00
Jonathan Adeline fb927e12ba Refactor dropdown component 2024-10-14 08:47:26 +00:00
Jonathan Adeline a866dfea04 handle long radio label 2024-09-30 14:11:22 +00:00
Bram Wiepjes 037124219c Data sync final branch 2024-09-24 15:06:35 +00:00
Jonathan Adeline 9ac6cb17de Context rework 2024-08-29 10:03:55 +00:00
Bram Wiepjes 1247f9c547 Fix form meta controls validation and translations 2024-07-10 11:29:52 +02:00
Jonathan Adeline df738083a6 FormGroup FormInput FormTextarea refactoring 2024-07-05 09:35:08 +00:00
Davide Silvestri c122ebb442 Resolve "Enable Single-Level Nesting of filter groups within existing groups" 2024-06-17 13:31:15 +00:00
Jonathan Adeline 4deeed8877 radio refactor 2024-04-26 17:23:19 +00:00
Jonathan Adeline c88245b816 Bump stylelint 2024-04-25 10:30:21 +00:00
Peter Evans 0b670d9276 Resolving a few style issues in AB since the button refactor. 2024-04-18 08:24:10 +00:00
Jonathan Adeline 3dd3d98972 Buttons refactor 2024-04-15 11:29:17 +00:00
Davide Silvestri eb13b10dd3 Resolve "Allow overwriting generative AI settings on workspace level" 2024-04-08 15:41:09 +00:00
Bram Wiepjes 1298aa7eec AI field 2024-04-02 19:50:44 +00:00
Bram Wiepjes a73e72c313 Allow co-branding 2024-03-15 14:10:47 +00:00
Jonathan Adeline ae329c9e0b Refactor checkbox component 2024-01-30 08:33:45 +00:00
Jonathan Adeline 493d256db4 SwitchInput refactoring 2024-01-26 08:56:35 +00:00
Davide Silvestri a2078d0c7a Resolve "Refactor: replace the view id from the store with a prop" 2024-01-12 11:44:09 +00:00
Bram Wiepjes 61df56b99b Respect read-only state for the show field as buttons 2023-11-23 12:25:41 +01:00
Davide Silvestri d1702e40b1 Resolve "Receive notification on form submission" 2023-11-23 09:25:54 +00:00
Jonathan Adeline d40f7210da Restyle context, select, dropdown menus 2023-11-15 06:08:35 +00:00
Bram Wiepjes 5935abdf31 Resolve "Allow multi select fields to have a checkbox list component instead of dropdown in form view" 2023-11-03 08:16:27 +00:00
Bram Wiepjes e38e055274 Merge branch '813-allow-single-select-fields-to-have-a-radio-box-component-instead-of-dropdown-in-form-view' into 'develop'
Resolve "Allow single select fields to have a radio box component instead of dropdown in form view"

Closes #813

See merge request baserow/baserow!1813
2023-11-02 15:21:10 +00:00
Bram Wiepjes ec18e4a28a Resolve "Allow single select fields to have a radio box component instead of dropdown in form view" 2023-11-02 15:21:10 +00:00
Jonathan Adeline c50b83587c Redesign checkbox & switch restyling 2023-11-02 05:48:47 +00:00
Bram Wiepjes 94af7f96f7 Enable linking to multiple link to table entries in the form view 2023-10-23 12:52:24 +00:00