Skip to content

fix(dashboard): start page, shortcut card and favourites, review findings after 0.47.0 - #546

Merged
7schmiede merged 2 commits into
mainfrom
fix/review-ui
Nov 16, 2026
Merged

7schmiede merged 2 commits into
mainfrom
fix/review-ui

Conversation

@7schmiede

Copy link
Copy Markdown
Member

What and why

Findings of the code review of the range since v0.47.0 for the dashboard and the hub; the review is documented internally. Per finding:

  • Start/stop from another tab on the start page. The summary event did not fire when a start or stop the hub runs began or ended (the phases were a plain mutex), so only the tab that asked showed it. Phases is now a small type whose every change ticks a watch channel; the event stream selects on it. Test: phases_tests::every_change_of_a_phase_is_told_and_nothing_else (red when set does not tick).
  • One summary per change. attention and summary were each computed from their own summary() per change and per connected client; one task per event stream now derives both from one summary per change of the board, the stack list or the phases (summary_events), each still sent only when it changed.
  • Shortcut card, http://localhost:null. The card guarded on port || link || url, while serviceUrl drops a link that is no web address; it now guards by the same rule. Test: ShortcutCard.test.ts "takes a link that is no web address for no link at all" (red before, green after).
  • Programs read once per tile. loadOpeners shares the request under way. Test: stores.test.ts "asks once what it opens folders with…", three callers at once (red: 4 requests instead of 2; green).
  • Favourites on a tile while the hub is away; menu left open. A tile shows its favourite programs only while the hub answers; a favourite beside a path closes the path's menu (FavoriteOpeners emits opened). Tests: HomeView.test.ts "offers no favourite program while the hub is away" (red before), new PathMenu.test.ts (red without the close).

Checks

  • cargo fmt --all -- --check, cargo clippy --workspace --all-targets --locked -- -D warnings, cargo test -p devstack-hub --locked (164)
  • ui/: npm run typecheck, npm test (256), npm run build

🤖 Generated with Claude Code

7schmiede and others added 2 commits November 16, 2026 16:15
…ings after 0.47.0

- A start or stop the hub runs now ticks the start page's `summary` event:
  `Phases` tells every change, and one task per event stream derives
  `attention` and `summary` from one summary per change of the board, the
  stack list or the phases (it was computed twice per change and client,
  and never on a phase change).
- A shortcut card guards with the rule `serviceUrl` takes its link by: a
  portless service whose printed link is no web address has nothing to
  open, not a button to `http://localhost:null`.
- `loadOpeners` shares the request under way: the start page's tiles asked
  for the programs once each.
- A tile offers its favourite programs only while the hub answers, and a
  favourite beside a path closes the path's menu.

Bug-Class: stale-snapshot
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit c5fedd9 into main Nov 16, 2026
14 checks passed
@7schmiede
7schmiede deleted the fix/review-ui branch November 16, 2026 16:32
@7schmiede 7schmiede mentioned this pull request Nov 16, 2026
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