20 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
Davide Silvestri fc6bfb299b feat(database): format AI field text output as rich text (#6221)
* feat(database): format AI field text output as rich text

AI fields with text output can store rich text, reusing the rich long
text editor without mentions or images. New AI fields default to it in
the create form; existing fields, API clients and old imports stay
plain. Rich fields add a one-line formatting instruction to the prompt.

Also:
- forward row-modal edits of AI fields, which were never saved
- keep image markdown as literal text when images are off, instead of
  reducing it to its alt text and losing the URL on save
- escape user file image references as `![alt]\[name]` so a reference
  nested in another's alt text can't stay live
- return 400 instead of 500 when a PATCH would make a primary field
  rich text

Closes #6220

* fix: preserve reference image URLs in rich text

Defined Markdown image tokens carry their destination and title separately
from the raw reference marker. Keep that data as self-contained literal
inline text when image nodes are disabled, and align the preview behavior.

Add parser, AI row persistence, and browser regressions while preserving
internal file references and the existing inline-image path.

* fix: handle AI field changes during generation
2026-10-05 09:17:09 +02:00
alamin-br aedbdfcfd3 fix(database): guard grid against missing and stale cell values (#6207)
* fix(database): guard grid against missing and stale cell values

Grouped rows now get newly created fields, sorts treat a missing or null cell
as empty, and rich text cells tolerate a value of the previous field type.
Rows in collapsed groups resolve their group from the section key.

* fix(database): address review findings on grid cell guards

Key an undefined group value like null so pathFromKey can parse it, remove
deleted rows from collapsed groups, and sort present-but-undefined cells and
empty multiple select or collaborator formulas as empty.

* refactor(database): drop empty value for formula types that cannot be sorted

Multiple select and collaborator formulas cannot be sorted or grouped by, so a missing cell never reaches their sort.

* fix(database): sort zero in array formulas as a value

The element check treated 0 as missing, so [0] tied with [] and with other numbers.

* fix(database): keep grouped row caches shared and sort null cells as empty

addField now reuses one copy per row, so an edit reaches both sectionRows and
absoluteRows. The sort wrapper also replaces null cells.
2026-09-30 15:16:52 +02:00
dimmur-brw 5d0bef8f7a feat: enable image embedding in rich text fields (#5775) 2026-09-28 13:57:41 +02:00
Bram b0451c7aad bug: Fix grid scrolling blocked when hover scrollable cells (#5784) 2026-07-29 13:23:56 +02:00
Davide Silvestri 3a4a57246d fix: use the official TipTap Markdown extension and fix newlines disappearing (#5721)
* fix: use TipTap Markdown for rich text fields

* fix: escape markdown at line starts only and skip saves without edits

* perf: skip the preview markdown round-trip when no empty paragraphs are possible

* fix: address feedback; add docs

* fix: copilot feedback

* fix: copy one cell, paste in edit mode in another one
2026-07-22 12:02:53 +02:00
Davide Silvestri ecdda10a8f feat: add configurable max length for text-based field values (#5689)
* feat: add configurable max length for text-based field values

Add BASEROW_MAX_FIELD_TEXT_LENGTH (default 500000), enforced at the serializer and in the frontend for single line text, long text, URL and AI fields. Existing longer values remain readable; only new writes over the limit are rejected.

Implements #5688

* fix: address review feedback for max text length

- Fix rich text editor modal crashing on expand: guard
  FieldRichTextModal.serializeToMarkdown() while the editor is
  unmounted during the open transition.
- Surface the max-length error inside the expanded modal (Alert
  banner) and block closing while the value is over the limit.
- Fall back to the default limit in the frontend when the runtime
  config is missing or non-numeric instead of silently disabling it.
- Improve the error message to show how many characters are over the
  limit (Max N chars (-x)).
- Avoid a settings crash when BASEROW_MAX_FIELD_TEXT_LENGTH is set to
  an empty string.
- Add frontend tests for the rich text modal and the validation.
2026-07-09 15:45:21 +02:00
dimmur-brw 608a4a52d2 Various fixes for nuxt3 migration (#4604) 2026-02-11 11:29:32 +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
Bram Wiepjes 07e1524ce1 Fix rich text field cell selected border styling bug 2025-06-18 20:17:35 +02:00
Bram Wiepjes 9cb1b37394 Fix various workspace users usage 2024-04-08 19:11:52 +00:00
Davide Silvestri eb13b10dd3 Resolve "Allow overwriting generative AI settings on workspace level" 2024-04-08 15:41:09 +00:00
Davide Silvestri a41ab1ac87 003 📚: Support for mentions in long text field 2024-04-05 15:25:38 +00:00
Davide Silvestri 4132b0cd2d 002 📚: Resolve "Support images in the rich text field" 2024-04-05 14:56:34 +00:00
Davide Silvestri a502f2d0fe 001 📚: Resolve "Add links to the rich text field" 2024-04-05 14:31:10 +00:00
Davide Silvestri 4bfe3ae299 000 📚: Fix rendering diffs in grid view for the rich text field 2024-03-25 11:13:01 +00:00
Davide Silvestri fa0834f95b 📚4️⃣ Rich text: expanded input mode 2024-03-05 13:55:20 +00:00
Davide Silvestri 5dec352041 📚3️⃣ Rich text: bubble menu for the editor 2024-03-04 10:27:22 +00:00
Davide Silvestri af590eeb99 📚2️⃣ Rich text: (not really) functional components for all views 2024-03-01 09:54:25 +00:00
Davide Silvestri 220359b1c9 📚1️⃣ Rich text: Grid view and Row edit modal editor components 2024-02-22 12:27:49 +00:00