Skip to content

feat(dashboard): make v2 the default + add setup/assets mix aliases#8

Merged
kasvith merged 2 commits intomainfrom
feat/dashboard-v2-default
May 2, 2026
Merged

feat(dashboard): make v2 the default + add setup/assets mix aliases#8
kasvith merged 2 commits intomainfrom
feat/dashboard-v2-default

Conversation

@kasvith
Copy link
Copy Markdown
Contributor

@kasvith kasvith commented May 2, 2026

Summary

Two changes that follow up on PR #7:

  • Cherry-picks cfac43d (formerly e1f6838) — the dashboard rewrite that collapses to LiveView-first with a single React island. This was developed on feat/dashboard but the PR merge stopped at f78c665, leaving the legacy non-v2 React shell and the old assets/src/v2/ folder still on main. After this PR, v2 is the default: the v2/ directory is gone, files live at assets/src/react/, assets/src/hooks/, and assets/src/main.ts.
  • New mix aliases for the dashboard package (b0c8aa9):
    • mix setupdeps.get + cmd --cd assets pnpm install
    • mix assets.setuppnpm install only
    • mix assets.buildpnpm build (vite production build into priv/static/durable_dashboard/)
    • mix hex.build and mix hex.publish — both run assets.build first so the Hex tarball ships fresh, production-built JS/CSS to consumers.

Test plan

  • cd durable_dashboard && mix setup (deps + pnpm install both run)
  • cd durable_dashboard && mix assets.build (vite emits app.css, app.js, flow_graph-.js, vendor-xyflow-.js)
  • cd durable_dashboard && MIX_ENV=test mix compile --warnings-as-errors
  • cd durable_dashboard && mix test (73 tests pass)
  • find durable_dashboard -type d -name '*v2*' returns nothing
  • git grep "_v2\|/v2/" durable_dashboard/{lib,test,assets/src} returns nothing

kasvith added 2 commits May 2, 2026 16:52
Strip the legacy React shell and shadcn copy-paste UI in favor of HEEx
LiveViews plus one ReactFlow island for the workflow graph (mounted
via phx-hook). Remaining JS lives in assets/src/react/, assets/src/hooks/,
and a new entry in assets/src/main.ts. All other UI moves to
lib/durable_dashboard/components/* HEEx primitives codified in DESIGN.md.

Also includes:
- New durable_dashboard/README.md
- "Dashboard" section in durable/README.md describing the macro install
- Workspace .gitignore entry for /tmp/
…blish

mix setup        - deps.get + pnpm install (assets.setup)
mix assets.build - vite build into priv/static
hex.build/publish runs assets.build first so the tarball ships fresh,
production-built JS/CSS to consumers.
@kasvith kasvith merged commit 2cb04b7 into main May 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant