feat: add app-config driven native tab visibility#353
Merged
najuna-brian merged 1 commit intoOpenDataEnsemble:devfrom Feb 24, 2026
Merged
Conversation
r0ssing
approved these changes
Feb 24, 2026
Contributor
r0ssing
left a comment
There was a problem hiding this comment.
Looks great! I was wondering if a blacklist would have been better 🤔, but I think you're right to choose a whitelist! This will mean that if in the future wr add some new button to Formulus, people would have to update their custom apps to get it, instead of it popping up automatically.. I think this is a good design principle, so we ensure minimal 'surprises' for the users 🦒🤙
Contributor
Author
|
Properly stated about the whitelist and it what I had in mind choosing it over blacklist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds native tab visibility control from
app.config.jsonfor custom apps.Custom apps can now decide which bottom tabs are shown using:
navigation.tabs: ["Home", "Sync", "More"](whitelist, ordered)navigation.tabs: [](hide tab bar)navigationkey (default behavior: show all native tabs)Supported visible tab IDs:
Home,Forms,Observations,Sync,MoreCloses #350
What changed
VISIBLE_MAIN_TABS,VisibleMainTab)navigation.tabsMainTabNavigatorto:navigation.tabsfromAppConfigServicetabs: []Settings,About, andHelpremain hidden tab routes (unchanged behavior).How it works (flow)
Example for custom apps (
app.config.json){ "$schema": "https://ode.dev/schemas/app-config-v1.json", "name": "My Custom App", "version": "1.0.0", "navigation": { "tabs": ["Home", "Sync", "More"] }, "theme": { "light": { "...": "..." }, "dark": { "...": "..." } } }Behavior notes
openFormplayer,getObservations, etc.).