Skip to content

[FEAT] Add keyboard shortcuts for common dashboard actions (time range, refresh, sign out) #3247

Description

@Nareshkumawat-star

Is your feature request related to a problem?
DevTrack is a developer productivity tool, but developers who prefer keyboard-first workflows have to use the mouse for every interaction — switching time ranges, refreshing data, and navigating widgets.

Describe the solution you'd like

Shortcuts to implement:

  • 1 → switch to 7d range
  • 2 → switch to 14d range
  • 3 → switch to 30d range
  • 4 → switch to 90d range
  • R → refresh all data
  • ? or Cmd+/ → toggle keyboard shortcuts help modal
  • Escape → close any open modal/panel

Implementation approach

  • Add a useKeyboardShortcuts custom hook in src/lib/
  • Register window.addEventListener('keydown', ...) with useEffect cleanup
  • Skip shortcuts when focus is inside an <input> or <textarea>
  • Show a dismissible shortcut reference modal at src/components/ShortcutsModal.tsx
  • Persist dismissed state in localStorage

Why this matters
This is a developer tool — the users are developers who expect keyboard shortcuts.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleInactive for 21+ days

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions