Commit 8994d22
committed
Make onboarding a wizard: transport choice, live test, member pickers
Onboarding is now three steps: connect, choose the update transport, then
choose which members to surface.
The transport step tests the chosen method before continuing, so problems
surface up front instead of silently later. The live stream connects and
waits for the snapshot; polling does a fetch; webhook does a reachability
precheck (a URL Sheaf can reach, plus the notification scopes, without
waiting on an async delivery). Hard failures (bad auth, missing scope,
stream disabled, no reachable URL) block with a clear message and nudge
toward a working transport; the webhook LAN case proceeds and is flagged at
runtime.
The member step populates include/exclude pickers from the system's actual
members and groups, with free text still allowed for anything not listed, and
falls back to text boxes if the lists can't be loaded. The options flow gains
the same pickers.1 parent 663c301 commit 8994d22
7 files changed
Lines changed: 493 additions & 115 deletions
File tree
- custom_components/sheaf
- translations
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
42 | 50 | | |
43 | 51 | | |
44 | 52 | | |
| |||
0 commit comments