Repository navigation
fix(dashboard): start page, shortcut card and favourites, review findings after 0.47.0 - #546
Merged
Merged
Conversation
…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>
# Conflicts: # CHANGELOG.md
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
summaryevent 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.Phasesis 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 whensetdoes not tick).attentionandsummarywere each computed from their ownsummary()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.http://localhost:null. The card guarded onport || link || url, whileserviceUrldrops 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).loadOpenersshares 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).FavoriteOpenersemitsopened). Tests:HomeView.test.ts"offers no favourite program while the hub is away" (red before), newPathMenu.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