Skip to content

bug(dashboard): OverviewPage keyboard hint shows R=refresh but no handler exists #4404

@OneStepAt4time

Description

@OneStepAt4time

Description

The OverviewPage renders keyboard shortcut hints at the bottom showing "R refresh", but there is no keydown handler for the R key. Only N (new session) is implemented.

Location

dashboard/src/pages/OverviewPage.tsx lines ~229-234:

<span><kbd>R</kbd> refresh</span>

The useEffect keyboard handler only handles n key:

if (e.key === ' && !isInput && ...) {
    e.preventDefault();
    setModalOpen(true);
}

Expected Behavior

Either:

  1. Implement the R shortcut (call fetchAnalytics), OR
  2. Remove the hint from the UI

Fix

Add R handler:

if (e.key === ' && !isInput && !e.ctrlKey && !e.metaKey && !e.altKey) {
    e.preventDefault();
    void fetchAnalytics();
}

Or remove the misleading hint.

Environment

  • Aegis Dashboard (all versions with CCMeter overview)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2bugSomething isn't workingdashboardreleasedIncluded in a published release

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions