Skip to content

explorer: make the map stats panel (Resolution / Clusters / Samples / Load time) collapsible, collapsed by default #254

@rdhyee

Description

@rdhyee

Why

The 4-box stats panel (Resolution, Clusters Loaded, Samples Loaded, Load Time) is great for power users but confusing for novices (RY, 2026-06-01). Make it collapsible, collapsed by default, with a clear expand affordance.

Scope (self-contained, low risk — good parallel task)

  • The .stats-compact grid lives in the first .panel-section of .side-panel in explorer.qmd (~L600s). Element ids: #sPhase, #sPoints, #sSamples, #sTime.
  • Add a small header/toggle (e.g. a 'Stats ▾' disclosure) that shows/hides the four boxes. Default collapsed.
  • Optional: persist open/closed in localStorage and/or a URL param, mirroring the facet sections' pattern (the Material/Sampled-Feature/Specimen-Type .filter-header onclick toggle is a copyable model).
  • Keep updating the values while collapsed (cheap) so expanding shows current numbers.

Acceptance

  • On load, stats are collapsed; clicking the disclosure reveals them; state is obvious. No layout shift that buries the results panel further. Smoke gate green.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions