Skip to content

Add stopwatch dashboard widget#659

Merged
multiplex55 merged 1 commit intomasterfrom
codex/add-stopwatch-widget-to-dashboard
Jan 8, 2026
Merged

Add stopwatch dashboard widget#659
multiplex55 merged 1 commit intomasterfrom
codex/add-stopwatch-widget-to-dashboard

Conversation

@multiplex55
Copy link
Copy Markdown
Owner

Motivation

  • Provide an on-dashboard view for stopwatches so active and paused timers can be monitored with names and elapsed time shown.
  • Expose in-dashboard controls to Pause, Resume, and Stop stopwatches to match the plugin's existing actions.
  • Keep the dashboard widget behaviour consistent with other widgets by supporting refresh intervals and manual refresh.

Description

  • Added src/dashboard/widgets/stopwatch.rs implementing StopwatchWidget with StopwatchConfig, a TimedCache of StopwatchRows, refresh logic, and a header_ui refresh button.
  • The widget queries stopwatches via crate::plugins::stopwatch::all_stopwatches() and formats elapsed time with crate::plugins::stopwatch::format_elapsed(id) for display.
  • Each entry renders buttons that produce WidgetActions with actions stopwatch:pause:<id>, stopwatch:resume:<id>, and stopwatch:stop:<id>, and sets appropriate query_overrides.
  • Registered and exported the widget by adding StopwatchWidget to WidgetRegistry::with_defaults and the module exports in src/dashboard/widgets/mod.rs.

Testing

  • No automated tests were executed for this change.

Codex Task

@multiplex55 multiplex55 merged commit 48ebfbd into master Jan 8, 2026
1 check passed
@multiplex55 multiplex55 deleted the codex/add-stopwatch-widget-to-dashboard branch January 9, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant