9 Commits
Author SHA1 Message Date
Tsering PaljorandJeremie Pardou 87fbf1f2bb feat: Add Runtime Formula for formatting numbers (#5262)
* Add new skill for creating/updating runtime formulas.

* Add abs() formula function

* Add getErrorMessage() to arg type to return a human-readable error message.

* Update skill to ensure getErrorMessage() is overridden when appropriate.

* Add null() runtime formula.

* Add number_format() runtime formula.

* Fix tests

* Add changelog entry

* Add date_interval() runtime formula.

* Fix test

* Add runtime formula: to_datetime()

* Update changelog

* Fix backend test

* Fix frontend test

* Add new ensure_date_interval() ensurer.

* Update descriptions and examples.

* Remove references to Moment.js

* Refactor validate_type_of_args() to return the index of the invalid arg.

* Refactor to_datetime() to use ensure_datetime()

* Use ensure_date_interval ensurer for IntervalStringBaserowRuntimeFormulaArgumentType

* Update skill with sections on ensurers.

* Add optional strict arg to ensure_datetime()

* Fix tests

* Simplify the ensure_string() to return total seconds for timedelta.

* ensure_date_interval() should also try to convert numbers to a timedelta.

* Fix test

* Use ensure_integer() in ensure_date_interval()

* Rename DateInterval to Duration

* Return an array of all possible errors.

* Use database duration parser for consistency

* Remove contrib references in core.

* Add additional test coverage

* Rename duration to to_duration

* Attempt to fix CI

* Reverting some changes

* Ensure empty string '' isn't accepted as a datetime format.

---------

Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
2026-05-26 14:47:13 +07: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
Cezary Statkiewicz 1fa2af432d 3110 formula duration field filtering 2024-12-12 18:18:59 +00:00
Cezary Statkiewicz bc4bb74012 Fix/2567 negative duration field values 2024-05-09 12:36:37 +00:00
Cezary Statkiewicz ea8dd97902 #2284 support new duration formats 2024-04-24 17:27:33 +00:00
Davide Silvestri 83cbe6ced2 2️⃣ Support for duration in formula: add backend/frontend support 2024-01-18 12:31:59 +00:00
Davide Silvestri 7ba8d0bf6b 1️⃣ Support for duration in formula: add formats with days 2024-01-18 08:36:56 +00:00
Davide Silvestri 6fdbfe029d Resolve "Make duration field type searchable, add view filters and aggregations" 2023-12-19 12:24:05 +00:00
Eimantas Stonys 895039d1d3 Basic version of the Duration Field Type 2023-12-18 21:40:02 +00:00