feat: Blits UI foundation — Hello World, tenant fonts, state/storage, Nx 23 - #3
Merged
Conversation
added 5 commits
July 1, 2026 14:03
- nx migrate 21.6.11 -> 23.0.1 (9 migrations applied clean). - Remove NX_ISOLATE_PLUGINS=false from all scripts — builds (single + run-many) work without it on Nx 23; the plugin-isolation workaround is obsolete.
- Fonts are tenant-declared (customers/<line>/config.json `fonts`: default + families) and tenant-owned (customers/<line>/public/fonts). build-tv materializes the active tenant's public/ into the app before Vite (Blits' msdf generator scans <appRoot>/public), so only the active brand's assets ship. runtime-config exposes FontSet; core drives Blits.Launch fonts from it. - New @x-tv/storage lib: createStorage(namespace) — namespaced (xtv.<ns>.) persistence over Blits' storage plugin with in-memory fallback, usable anywhere (bootstrap, libs, components). device-info deviceId migrated to it. - Register Blits appState plugin in core (seeded from config) for global reactive state. Drop unused zustand dependency.
Root Blits app renders a HelloWorld component (Tempo Std headline, Open Sans caption echoing customer · platform · profile) — a deployable screen to confirm the .wgt/.ipk pipeline on a real TV. Uses the tenant brand fonts.
HelloWorld now reads global reactive state (this.$appState — customer, platform, locale, seeded in core) via a computed, instead of a passed prop. Demonstrates the appState wiring end to end.
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.
Summary
Blits UI foundation on top of the CCL production baseline.
nx migrate; removed the obsoleteNX_ISOLATE_PLUGINS=falseworkaround from all scripts.customers/<line>/config.json(fonts), files tenant-owned incustomers/<line>/public/fonts.build-tvmaterializes the active tenant'spublic/into the app before Vite (Blits' msdf generator scans<appRoot>/public), so only the active brand's assets ship. CCL uses Tempo Std (headings) + Open Sans (body) from the legacy app.@x-tv/storagelib:createStorage(namespace), namespaced (xtv.<ns>.) persistence over Blits' storage plugin with in-memory fallback, usable anywhere. Registered BlitsappStateplugin (global reactive state, seeded from config). MigrateddeviceIdto it. Dropped unusedzustand.this.$appState(customer · platform · locale). Builds into deployable.wgt/.ipkto verify the pipeline on real hardware.docs/state-and-storage.md(state layers + persistence + decision guide); linked from CLAUDE.md + README.Verification
typecheck · 9 vitest tests · Biome (98 files) · all three platforms build (
.wgt+sssp_config.xml,.ipk; Android.apkneeds gradle).Per-brand isolation preserved (a CCL bundle carries no other-tenant tokens/assets).