mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
985 B
985 B
Deployment Notes
FEATURE_DESIGN_SYSTEM rollout
- Default:
true(design system styling). The flag lives injs/constants.jsand is exposed throughwindow.__BITVID_RUNTIME_FLAGS__at runtime. - Enable for canaries: No action required—the new primitives ship enabled by default.
- Disable / rollback: Set the flag to
falsevia the runtime object or redeploy with an override. All root containers revert todata-ds="new", 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.