Add new Boolean collection field type
What is in this MR
This MR adds a new Collection Field Type of Boolean. It is displayed as a Checkbox in the UI.
Currently, we only support two Collection Field Types: Text and Link. If there was a Database with a boolean column, that column would be represented in the Application Builder as the string 'true'
or 'false'
:
By using the new "Boolean" Collection Field Type, the same column can now be represented with a checkbox:
How to test this MR
Preparation for Testing
To test this feature, you'll need ensure your local Baserow instance has the following.
Database App
You need a Database table containing at least one column of type Boolean.
App Builder App
Your App must have the following.
- A Data Source pointing to your Database table
- A Table element that references the Database table
Testing
Select the Table element and ensure that you have at least one Field
defined.
Set the field's Type
to Boolean
and set the Value
to your Database table's Boolean column.
You should now be able to do/verify the following:
- The Editing view now shows Checkboxes for the Boolean column
- If you click
Preview
, the preview page also shows the Checkboxes - If you click
Publish
, the published page also shows the Checkboxes
Merge Request Checklist
-
changelog.md has been updated if required. -
New/updated Premium/Enterprise features are separated correctly in the premium or enterprise folder -
The latest Chrome and Firefox have been used to test any new frontend features -
Documentation has been updated -
Quality Standards are met -
Performance: tables are still fast with 100k+ rows, 100+ field tables -
The redoc API pages have been updated for any REST API changes -
Our custom API docs are updated for changes to endpoints accessed via api tokens -
The UI/UX has been updated following UI Style Guide
Closes #2359 (closed)