Add dashboard gesture widgets, usage logging, and stats snapshot#776
Merged
multiplex55 merged 3 commits intomasterfrom Jan 31, 2026
Merged
Add dashboard gesture widgets, usage logging, and stats snapshot#776multiplex55 merged 3 commits intomasterfrom
multiplex55 merged 3 commits intomasterfrom
Conversation
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.
Motivation
Description
src/dashboard/widgets/:gesture_cheat_sheet.rs(top-N gestures + primary binding + enable toggle + settings),gesture_recent.rs(recent gesture usage list + binding index), andgesture_health.rs(counts: zero bindings, duplicate tokens, disabled gestures + quick actions).src/dashboard/widgets/mod.rsand added helper actionsgesture_focus_actionandgesture_toggle_actionfor invoking gesture dialog focus and toggle behavior.GestureSnapshotand wiredDashboardDataCache::refresh_gesturesto loadmouse_gestures.jsonand a new usage logmouse_gestures_usage.jsonso widgets read fromDashboardDataCache::snapshot()(src/dashboard/data_cache.rs).src/mouse_gestures/usage.rsand recorded usage in the gesture runtime (src/mouse_gestures/service.rs).mouse_gestures::selection(serializable args for focus/toggle),mouse_gestures::stats(computes gesture stats), and updated GUI plumbing to watch gesture files and handlemg:dialog:focusandmg:toggleactions that open/focus the gesture dialog or toggle a gesture (src/gui/mod.rs,src/gui/mouse_gestures_dialog.rs).src/mouse_gestures/stats.rsand updatedtests/dashboard_config.rsto assert the new widget registry entries exist.Testing
gesture_stats_detects_unbound_and_duplicatesinsrc/mouse_gestures/stats.rsand a registry assertion test intests/dashboard_config.rs(these will run in CI).cargo test gesture_stats_detects_unbound_and_duplicates -- --nocapture, but the build failed due to a missing system library required by a dependency (alsaforalsa-sys), so local test execution was blocked by the environment; tests are expected to run in CI where system deps are present.Codex Task