[HOMEASSIST-6] Shared build and deploy pipeline to ha/www with panel registration #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/HOMEASSIST-6"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ticket
HOMEASSIST-6 Dashboards: shared build and deploy pipeline to ha/www with panel registration
Summary
panelBuildConfig()in packages/ui gives a library-mode ES build with React bundled in andprocess.env.NODE_ENVdefined as production.bun run build [dashboard] [--watch]builds the panel. Flags pass through the dispatcher, and the workspace name goes before any flags.bun run deploy <dashboard>builds, then copies to$HA_WWW_DIR/<dashboard>/<panel>.<hash>.js. It keeps the newest previous hash, prunes older ones, validates the dashboard name and prints themodule_url.mapdashboard is rewired:buildis now the panel build, the old SPA build isbuild:harness, and the old deploy pathha-map/is replaced bymap/.panel_customsnippet (module_url, sidebar_title, sidebar_icon, require_admin), the restart step and a migration note.module_urlin configuration.yaml must be updated and HA restarted when the bundle content changes.HA_WWW_DIRworked. It was not verified against a live HA.🤖 Generated with Claude Code
https://claude.ai/code/session_01A6WV37dDVNs4Zhq7RQB4ku