mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
1.2 KiB
1.2 KiB
Deployment Notes
FEATURE_DESIGN_SYSTEM rollout
- Default:
false(legacy styling). The flag lives injs/constants.jsand is exposed throughwindow.__BITVID_RUNTIME_FLAGS__at runtime. - Enable for canaries: Before deploying a canary, run
window.__BITVID_RUNTIME_FLAGS__.FEATURE_DESIGN_SYSTEM = true(or callsetFeatureDesignSystemEnabled(true)) in the browser console. The change propagates immediately, flipping every[data-ds]container todata-ds="new"so controllers can hydrate the updated primitives. - Disable / rollback: Set the flag back to
falsevia the runtime object or redeploy with the default configuration. All root containers revert todata-ds="legacy", forcing controllers and templates to stay on the existing class list. - Template contract: Every layout, view, and partial now includes
data-dson the root element. Keep this attribute intact when editing HTML so the runtime can swap modes without re-rendering. - Controllers: UI controllers receive a
designSystemcontext in their constructors. Callcontext.isNew()before attaching new components or classes, and lean oncontext.getMode()when logging or telemetry need to differentiate between legacy and new renders.