Skip to content

Reset History count and facets after Clear #828

Closed

Description

@EVWorth

Severity: P2

What happens

  1. Open ?mock=connected, expand HISTORY, open the Filters panel (sliders icon).
  2. Click the trash icon, then click it again to confirm.

The list says "No history yet", but the footer reads "0 of 37", and the filter panel still offers connection chips (Local dev, MariaDB sandbox, Production (read-only), Staging) and database chips (analytics, information_schema, shop) for entries that no longer exist.

Cause

src/stores/historyStore.ts:382-390: clearHistory empties entries only; matchCount and the facet lists are left from the last query.

Fix

On a successful clear, also reset matchCount to 0 and empty the facets (or re-run the list/count/facet loads).

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 24, 2026
    dce1758
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions