Skip to content

Conversation

@Pleasurecruise
Copy link

Fix #110

Introduces a new Pinia store to track keyboard and mouse usage statistics, including per-key and per-button counts. Adds UI controls and localization for enabling/disabling statistics, mouse click tracking, and resetting statistics. Displays total input count overlay on main window when hovering and statistics are enabled.

Introduces a new Pinia store to track keyboard and mouse usage statistics,
including per-key and per-button counts. Adds UI controls and localization
for enabling/disabling statistics, mouse click tracking, and resetting
statistics. Displays total input count overlay on main window when hovering
and statistics are enabled.
Copilot AI review requested due to automatic review settings December 29, 2025 20:16
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds keyboard and mouse usage statistics tracking functionality to address feature request #110. The implementation introduces a new Pinia store for tracking statistics with persistence, UI controls in the preferences panel, and a visual counter overlay on the main window.

Key Changes:

  • Created a new statistics store with separate tracking for keyboard keys and mouse buttons (left/right)
  • Added settings UI with toggles for enabling statistics, mouse click tracking, and a reset button with confirmation
  • Integrated statistics overlay display on main window when hovering and statistics are enabled
  • Added localization support for all new UI elements across 4 languages (zh-CN, en-US, vi-VN, pt-BR)

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/stores/statistics.ts New Pinia store for tracking keyboard and mouse statistics with Tauri persistence
src/pages/preference/components/cat/index.vue Added statistics settings section with enable/disable toggles and reset button
src/pages/main/index.vue Integrated statistics counter overlay that displays total input count when hovering
src/composables/useDevice.ts Added statistics recording hooks for keyboard presses and mouse clicks, exposed isHovering state
src/locales/zh-CN.json Added Chinese translations for statistics-related UI labels, hints, and buttons
src/locales/vi-VN.json Added Vietnamese translations for statistics-related UI labels, hints, and buttons
src/locales/pt-BR.json Added Portuguese (Brazil) translations for statistics-related UI labels, hints, and buttons
src/locales/en-US.json Added English translations for statistics-related UI labels, hints, and buttons

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Pleasurecruise
Copy link
Author

hi @ayangweb 👋 Do you have any suggestions or comments regarding this PR?

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