Skip to content

fix(dashboard): make the LiveView dashboard start and render - #3

Merged
developerfred merged 2 commits into
mainfrom
chore/repo-hygiene
Oct 18, 2026
Merged

developerfred merged 2 commits into
mainfrom
chore/repo-hygiene

Conversation

@developerfred

Copy link
Copy Markdown
Owner

Follow-up to #1 and #2. #2 was stacked on chore/repo-hygiene and was merged into that branch after #1 had already landed on main, so the dashboard fix never reached main. This PR carries that single commit (de4fdcf) over; the diff against main is exactly the content reviewed in #2.

What it fixes

Every dashboard page returned 500 and the dashboard could not start: ELIXIR_CLAW_START_DASHBOARD was never read, the endpoint lacked port, secret_key_base, PubSub, session plug, error views and the LiveView client script, and the layout read @inner_block instead of @inner_content.

Adds ElixirClaw.Dashboard (runtime config, binds to 127.0.0.1 by default since there is no authentication), error views, a root layout serving the LiveView JS from the deps, README docs for the variables, and tests (lazy_html as a test-only dependency).

Verification

  • 96 tests, 0 failures (16 :hardware excluded) on macOS and in an elixir:1.19 Linux container; format and --warnings-as-errors clean
  • Dashboard pages, /api/* and JS assets return 200 with ELIXIR_CLAW_START_DASHBOARD=true; LiveView connects in the browser
  • GitHub Actions

See #2 for the known limitations (demo data from DashboardStub, run with mix run rather than the escript, unique-key registry).

The dashboard returned 500 on every page and could not actually start:
ELIXIR_CLAW_START_DASHBOARD was documented but never read, and the endpoint
had no port, secret key base, PubSub, session plug, error views or LiveView
client script. The layout also read @inner_block instead of @inner_content.

Add ElixirClaw.Dashboard (runtime config, localhost by default), compile-time
endpoint config, error views, a root layout that serves the LiveView JS from
the deps, and tests (lazy_html as a test dependency).
fix(dashboard): make the LiveView dashboard start and render
@developerfred
developerfred merged commit 4217768 into main Oct 18, 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