Skip to content

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':

image

By using the new "Boolean" Collection Field Type, the same column can now be represented with a checkbox:

image

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.

  1. A Data Source pointing to your Database table
  2. 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:

  1. The Editing view now shows Checkboxes for the Boolean column
  2. If you click Preview, the preview page also shows the Checkboxes
  3. 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)

Merge request reports