10 Commits
Author SHA1 Message Date
Tsering Paljor e5c9ee178e fix: Escape backslash chars in formula field (#5514)
* Ensure backslash chars are escaped in formula field.

* Add changelog entry
2026-06-23 09:00:55 +07:00
Jonathan Adeline 552ce22d16 chore: Bump to Nuxt4 (#5197) 2026-06-17 16:10:09 +04:00
Tsering Paljor 472e877d79 feat: Improve duration support in advanced formulas (#5426)
* Refactor to_duration() to accept an optional format arg.

* Add tests for duration utils

* Add tests for new DurationFormation* arg type

* Expand tests for RuntimeToDuration

* Add duration_format()

* Add tests for RuntimeDurationFormat

* Add a Utility formula category, and recategorize some functions

* Allow formula validation visitor allows validating deferred args.

* Improve test coverage

* Add changelog

* Fix frontend test failure

* Remove changes around deferred arg validation

* Clean up stale logic

* Fix docstring

* Ensure tokenize_duration_format/tokenizeDurationFormat supports fractional seconds.

* Use rounding instead of truncating for fractional precision to match the existing format_duration_value()

* Add missing test coverage for duration field formatting.

* Add support to tokenizer to escape tokens.

* format_duration_value/formatDurationFalue is now just a shim that wraps a call to the unified formatValueWithDurationFormat.

* Fix to_duration() example.
2026-06-15 15:09:34 +07:00
Jonathan Adeline f63563aa93 feat: FormulaInputField expert mode enhancements (#4866) 2026-05-05 14:05:57 +04:00
Peter Evans d7115aefb8 feat: improve Baserow formula function argument validation (#4536) 2026-03-30 16:33:15 +01:00
Peter Evans 06dd5c15c9 Changing the ampersand/pipe ordering, or otherwise complex formulas using them don't work. At the moment with the previous code, 1 > 2 || 3 < 4 is being parsed as 1 > (2 || 3) < 4 instead of (1 > 2) || (3 < 4). (#4516) 2026-01-08 11:10:38 +00:00
Jonathan Adeline 0c0ed17faf Advanced formula editor enhancements (#4246)
* handle logical operator

* fix linebreak management

* fix i18n key

* fix doFunc function

* display linebreak as a ... linebreak

* fix test

* fix premium and entreprise test config

* fix linebreak in advanced mode
2025-11-14 11:11:06 +00:00
Jérémie Pardou 3554e61e88 Don't validate formula parameter value (#4207) 2025-11-11 18:01:33 +01:00
Davide Silvestri dbb847f88d Add && and || operators to the formula language 2024-04-10 07:51:40 +00:00
Alexander Haller 5efdd27a39 Move formula to core 2023-09-04 12:17:41 +00:00