Skip to content

Tidy the viewer for a file that didn't load - #100

Merged
Tarquinen merged 1 commit into
devfrom
fix-viewer-pen
Nov 16, 2026
Merged

Tarquinen merged 1 commit into
devfrom
fix-viewer-pen

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

The full-screen viewer was untidy for a file that didn't load:

  • The draw pen showed on a video that could never load. It now shows on a video only once it has loaded, and is enabled once a frame has rendered, as before
  • An empty action bar showed on a file that didn't load. It's now hidden
  • In a gallery, the "File Not Found" block sat at the left of the screen. It's now centred, as it already was for a single file
  • The status titles ("File Not Found", the opening and document titles) had no colour set, so they were dark on black in the light theme. They now use the text colour

The not-found state in a gallery, before and after, in light and dark:

File Not Found in the gallery viewer, before and after

The pen on a missing video, before and after, and on a loaded one:

Viewer pen on a missing and a loaded video

Checked on the emulator against session-lab, in light and dark: a missing video in a gallery, a missing single file, the opening state, a document page, a loaded video, and swiping between gallery pages. scripts/check.sh :feature:media passes. Split out of #99.

Tarquinen added a commit that referenced this pull request Nov 16, 2026
A file named in inline code always got a card, even when it wasn't there. A
bare name like `busy-composer.mp4` resolved to the session folder root, so its
card opened "File Not Found" when the file was somewhere else or nowhere.

- A video, audio, PDF or document card for a file in the session folder now
  shows only after a 2-byte read finds the file. If it's missing, the name stays
  plain inline code, with no link and no card. Other errors keep the card.
- A bare name that isn't at the root is looked up with /api/fs/find and kept
  only on an exact name match. One match opens that file; none or several give
  no card.
- Files outside the folder aren't read up front. A tap that finds one missing
  removes its card.
- Checks run only for rows on screen, once per file, at most 4 at a time,
  shared across rows. Missing files are checked again when the session opens or
  resumes and after each reply, so a file the agent writes later gets its card.

Verified on the emulator against a session-lab fixture covering each case, in
light and dark. Scrolling 40 replies made 45 reads and 43 finds, each for a
different file, with at most 4 in flight. scripts/check.sh passes for media,
transcript and session.

The viewer's pen fix is split out into #100.
The full-screen viewer showed the draw pen on a video that could never load and an empty action bar on a file that didn't load. In a gallery, the "File Not Found" block sat at the left of the screen, and the viewer's status titles had no colour, so they were dark on black in the light theme. The pen now shows on a video only once it has loaded, the action bar is hidden on a file that hasn't loaded, the gallery's file page is centred, and the status titles use the text colour. Split out of #99. Verified: scripts/check.sh :feature:media passes on the VM; checked on the emulator with session-lab in light and dark on a missing video in a gallery, a missing single file, the opening state, a document page, a loaded video and swiping between gallery pages.
@Tarquinen Tarquinen changed the title Show the viewer's pen only on a video that has loaded Tidy the viewer for a file that didn't load Nov 16, 2026
@Tarquinen
Tarquinen merged commit 70993a0 into dev Nov 16, 2026
3 checks passed

This branch was previously deployed

1 inactive deployment
release — 25f8828f Deployed Nov 16, 2026 by Tarquinen via check #339
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant