2 Commits
Author SHA1 Message Date
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
Bram Wiepjes 4a47f21551 Resolve "User reports that a table is slow having 21 columns" 2021-03-09 20:53:39 +00:00