Let’s talk about categorical data folks. As of today Bubble can codify a data value as only having two states (via the Yes / No
field type) or an infinite number of states (via any other field type). There is no in between.
For example if I want to categorize a user who fits into one of 5 states like:
ADMIN
OWNER
CO_OWNER
-
MANAGER
or COMMUNITY_MANAGER
then I would have to make a field of type text and assign her one of those categories by typing in the appropriate text. But by making this field of type text
I could also accidentally assign her the role OWNE
or COMMUNITY_MANGER
or ANYTHINGelseByAccidentBecauseThisISjustTEXT
. Bubble wont protect me from miscategorizing.
Using categories to drive app logic is a very common design pattern and I think Bubblers would benefit alot if we could define our own categories. Because then we’d get access to them in the same way we get dropdown access to the Yes
or No
categories and all the errors associated with mistyping categories would be gone. Plus, if a service tried to set a category to something it can’t be (say, via API), then bubble could respond appropriately. So futuristic!