Support primitive types in filters (#15402)

When using primitive types such as array, number and boolean, we display
a text field in filters because fieldmetadataId is empty. We should
instead support these as we would do for our own fields.

Adding also a fix for https://github.com/twentyhq/twenty/issues/15282

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Thomas Trompette
2025-10-28 14:13:10 +00:00
committed by GitHub
co-authored by greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
parent 98b4e8431b
commit da0e5ba342
7 changed files with 75 additions and 12 deletions
@@ -0,0 +1,11 @@
export const parseBooleanFromStringValue = (value: unknown): boolean | unknown => {
if (value === 'true') {
return true;
}
if (value === 'false') {
return false;
}
return value;
};