You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inline viewer under a tree row: a failed viewer load has no way out but a reload #429
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