feat(dashboard): first-run empty state #40
No reviewers
Labels
No labels
bug
docs
duplicate
enhancement
help wanted
invalid
nice-to-have
pre-1.0
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/lamplighter!40
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/20-first-run"
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?
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 (fromSources.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.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:

390px:

With one example source (Uptime Kuma)
Desktop 1280px:

390px:

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