Skip to content

Inline viewer under a tree row: a failed viewer load has no way out but a reload #429

Open

Description

@neuromechanist

Found in the review of #428 (the Try again button for #416). That PR covers the dialog and the embed, which open through the viewer session. The inline viewer under a tree row on the dataset page has its own path in src/pages/dataset/[id].astro and was left alone.

When the viewer's code fails to load there, the row shows "Viewer failed to load. ... instead." and the visitor's only retry is to collapse and reopen the row. In Chromium and WebKit that hits the same remembered failure of the dynamic import() (checked in #428: one network request, two failures), so only a page reload recovers, and nothing says so.

Proposal: for that message, offer the same Reload page action the dialog now has, reusing the preview__retry class from eeg-viewer.css. The reload cannot reopen the row, so decide what it should land on (the dataset page with the row's recording named through ?view= would open the dialog on it instead).

Also check the same message for the store-outage case ("The viewer could not load this recording."), where the row's collapse and reopen does work and a button would only save a click.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions