feat(dashboard): first-run empty state #40

Manually merged
jfro merged 1 commit from feat/20-first-run into main 2026-11-01 21:27:55 +00:00
Owner

Closes #20

With no sources, the dashboard said "All systems healthy". It now shows a first-run panel instead: what Lamplighter does, an Add your first source button (→ /settings/sources/new), and the source types it works with (from Sources.list_types/0, so new types show up on their own).

  • Sources.any_sources?/0 (Repo.exists?), counting disabled sources too, so disabling your only source doesn't bring the welcome back.
  • First run hides the health headline and type summaries. The report feed still shows if reports exist (e.g. left over from a deleted source).
  • Once a source exists, the dashboard is unchanged.

Tests: three new first-run tests in dashboard_live_test.exs; the existing dashboard tests now set up a source. mix precommit: 811 passed.

First run (no sources)

Desktop 1280px:
first run desktop

390px:
first run 390

With one example source (Uptime Kuma)

Desktop 1280px:
one source desktop

390px:
one source 390

No horizontal overflow at 390px (scrollWidth 390) or desktop.

Closes #20 With no sources, the dashboard said "All systems healthy". It now shows a first-run panel instead: what Lamplighter does, an **Add your first source** button (→ `/settings/sources/new`), and the source types it works with (from `Sources.list_types/0`, so new types show up on their own). - `Sources.any_sources?/0` (`Repo.exists?`), counting disabled sources too, so disabling your only source doesn't bring the welcome back. - First run hides the health headline and type summaries. The report feed still shows if reports exist (e.g. left over from a deleted source). - Once a source exists, the dashboard is unchanged. Tests: three new first-run tests in `dashboard_live_test.exs`; the existing dashboard tests now set up a source. `mix precommit`: 811 passed. ### First run (no sources) Desktop 1280px: ![first run desktop](https://git.knope.dev/attachments/a4bec76c-4977-4780-8460-2141bddd8317) 390px: ![first run 390](https://git.knope.dev/attachments/304cf741-8309-43cb-9af6-01d9791792c9) ### With one example source (Uptime Kuma) Desktop 1280px: ![one source desktop](https://git.knope.dev/attachments/233e2aaa-4d11-4ccb-9d27-7624f98eea0d) 390px: ![one source 390](https://git.knope.dev/attachments/809cb5e8-c326-4584-8b43-b31054c8979b) No horizontal overflow at 390px (scrollWidth 390) or desktop.
feat(dashboard): explain Lamplighter and link to adding a source on first run
All checks were successful
CI / test (pull_request) Successful in 28s
d131ccae89
Closes #20
jfro manually merged commit 0e8721c9b5 into main 2026-11-01 21:27:55 +00:00
Sign in to join this conversation.
No description provided.