Skip to content

Viewer: navigate between recordings (next run/task/subject) with entity dropdowns #253

Closed

Description

@neuromechanist

User feedback: once the viewer is open, moving to the next recording (next run, next task, next subject) should not require closing the viewer, scrolling the tree, and clicking another file.

Data is already available client-side. The zarr index.json lists every viewable recording path for the dataset, and BIDS paths parse cleanly into entities (sub, ses, task, run). Navigation can be driven entirely from the index — no new backend.

Proposed UX (strategic placement, per feedback):

  • Enlarge (dialog) mode is the primary home. It has the horizontal space: add sub and task dropdowns plus prev/next controls in the dialog header row. Switching swaps the mounted store in place (same store-open path the tree click uses; reuse the prefetch machinery to warm the next recording).
  • Tucked-in (inline) mode: likely no dropdowns — the viewer sits under a specific file, so re-anchoring it under a different row is confusing. At most a compact next/prev pair that scrolls to and opens the sibling recording's inline panel. Decide during implementation; shipping enlarge-only first is acceptable.
  • Gear setting: "Next moves through" — defines the iteration order for prev/next: runs, then tasks, then subjects (default) vs subjects first (e.g. clinicians comparing the same task across subjects) vs plain file order. Persisted with the other viewer settings.

Notes:

  • Only offer recordings that are actually viewable (present in the index stores); skip failures.
  • Keep the current view state (window position, scale, filters, channel selection) across navigation where channel montages are compatible; reset per-recording state that does not transfer.
  • Unmount cleanup matters here (eeg-viewer: superseded and closed mounts leave zarr fetches in flight #208): rapid next/next must abort superseded fetches.

Activity

  1. added
    enhancement
    feature
    on Sep 1, 2026
  2. neuromechanist commented on Sep 1, 2026

    @neuromechanist
    ContributorAuthor

    Shipped in PR #258, merged to staging via epic PR #270 (merge commit 9e047c1). Closing by hand: closing keywords only fire on the default branch.

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

    enhancementfeature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions