Skip to main content

05 — Flex Frontend Configs

What it is: A data dump of UI settings and language strings for each Flex program. The backend stores and returns it; it does zero validation on the content. The frontend owns all type enforcement.


Table: tbl_flex_frontend_configs

Up to 8 rows per program — one per (configKey, category) combination.

FieldNotes
programIdFK to tbl_flex_programs
configKeywhich page/section this config is for
categorylanguages (text strings) or settings (booleans/options)
valueJSONB — backend doesn't validate this at all

Config key matrix

configKeycategoryWhat's inside
programDefinitionlanguagestagline, stepper labels, pack/BYO headings, benefits, upsell text
programDefinitionsettingsadd-on enabled, program-level booleans
programLogisticslanguages"How It Works" steps, FAQs
registrationPagelanguagesheading, subheading, button text, T&C
inventoryPagelanguagesauto-seat modal, loading messages, filter labels
inventoryPagesettingsauto-seat mode, filter toggles, loading timing
checkoutPagelanguagescheckout headings, confirmation text, order summary, T&C
checkoutPagesettingssave card enabled, payment options

Key rules

  • Read-only on this backend — dashboard writes all configs
  • The GET endpoint auto-resolves the active program and returns all non-deleted rows grouped by configKey → category
  • Backend does not validate JSONB — if the frontend expects a field, the dashboard must put it there