feat(dashboard): add compact myspeed widget with recent results and t… - #162
Merged
Merged
Conversation
…est trigger Introduce a dedicated compact dashboard widget for MySpeed instances. - Add DashboardWidgetKind.myspeed with label, icon, and serviceKinds mapping. - Implement DashboardMySpeedWidget rendering DOWN, UP, and PING metrics using MySpeedMetricBox. - Adhere strictly to dynamic theme colors across badge, metrics, and indicators. - Display dedicated timestamp pill box alongside server information. - Add compact 'Run test' button with confirmation dialog, API trigger, AnimatedSwitcher running spinner, and automatic status polling to refresh recent results upon completion. - Integrate into DashboardBoard widget builder and refresh cycle. - Add comprehensive widget tests covering metrics rendering, confirmation dialog, execution state, dynamic theme colors, and navigation.
… tests at any age MySpeed keeps a failed run as a row with an error and no speeds, so the model now carries that error and a helper picks the newest run that produced figures. A new provider reads the five newest tests across the whole history: the day's window is empty for a weekly schedule, and the History tab's thousand rows are far more than a card needs.
…e history The card read the day's list and, when that was empty, the History tab's keep-alive thousand-row list; pull to refresh reloaded that list for every MySpeed instance, and a run's end fetched it too. The card now reads the newest few tests at any age, shows the latest one that produced figures, and leaves the History to the History tab.
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.
Introduced a dedicated compact dashboard widget for MySpeed instances.