Skip to content

Dataset page: View data button opening the enlarge viewer directly #260

Closed

Description

@neuromechanist

Follow-on to #253 (user feedback 2026-09-01): now that the enlarge dialog has subject/task dropdowns and prev/next, the file tree no longer needs to be the only way into the viewer. Add a top-level "View data" button to the dataset action bar (next to Download / Compute instructions, see ActionBar.astro) that opens the enlarge dialog directly on the dataset's first viewable recording and starts streaming it; from there the #253 controls cover the rest of the dataset.

Design notes:

  • The action bar is SSR'd but viewability is only known client-side (zarr index fetch). Render the button hidden (or disabled with a "checking..." state) and activate it from the same annotateZarrRows/index-ready path once stores is non-empty; keep it hidden when the index has zero stores so datasets without any converted recording (e.g. pre-backfill on004696) don't advertise a dead button.
  • "First viewable recording" = first store in the user's current nav order (reuse orderedRecordings from recording-nav.ts), not raw index order.
  • Opening from the button is the ADR 0012 "detached" mode from the start: the dialog owns the viewer, no originating inline row exists. Closing destroys the instance.
  • Respect the Viewer: optional full-recording background streaming with capped cache #254 preload setting: if "Preload full recording" is on, background streaming starts as usual once the viewer mounts.
  • Keyboard/AT: the button is a plain button that opens a dialog — aria-haspopup="dialog" applies here (unlike the tree rows, website#217).

Part of epic #256. Depends on #253 (merged first); coordinate with #255 for [id].astro overlap.

Activity

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

    @neuromechanist
    ContributorAuthor

    Shipped in PR #262, 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