Skip to content

Add a full-screen button to a recording's bar - #3458

Merged
max-sixty merged 5 commits into
mainfrom
recording-full-screen
Oct 21, 2026
Merged

max-sixty merged 5 commits into
mainfrom
recording-full-screen

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

A recording's bar now has a Full screen button after its timeline, and f
standing on the video does the same. Leaf's recordings are mostly screen
captures, and in a column about 680px wide their interface text shows at about
half size; full screen makes it readable.

The bar lives in chrome outside the video element, and full screen shows only
the video, so while the video fills the screen it gets the browser's own
controls back:

  • Entering puts focus on the video, adds controls, and withdraws the bar's key
    scope, so Space, the arrows and a press on the picture reach the browser's
    controls and each acts once. The bar's own press on the picture stands down
    for the same reason.
  • Leaving, by Escape or the browser's button, removes controls and projects
    the scope again, so the bar, Space, the arrows and f work as before.
  • A video whose document may not go full screen, such as one in a frame without
    allow="fullscreen", gets no button and no key. On an iPhone, whose Safari
    has no element full screen, the button opens the video's own player
    (webkitEnterFullscreen); that path is unobserved.

Routes: the key is f in the recording's scope, so the hints, the command
reference and aria-keyshortcuts name it, and no page command binds f. A
finger taps the button, which shows whenever the recording is paused.

Checked with leaf-dev probe --journey on the feature gallery's recording in
Playwright Chromium 153 and Firefox 155: the button and f each enter full
screen with controls and focus on the video, Space and a press on the picture
each toggle playback once there, and leaving restores the bar and its keys.
notes/browser-support.md records it. The new test
tests/browser/controls/test_recording_bar.py covers the key route and the
touch route.

The module header's rejection of full screen is gone; a volume button stays
rejected, since recordings are silent.

Max's decision #23 on the overnight report, option "Add fullscreen only".

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 5 commits October 20, 2026 23:55
Undoing a playground's submission now withdraws only the decision. The controls
keep the values the user left, ready to adjust and send again, and Reset still
returns them to the authored defaults. Before, undo replaced the working values
with the previous choice's values or, when none was left, the authored defaults,
so on alert-thresholds a page budget raised from 10 to 12, sent and undone jumped
back to 10.

A newly chosen action, from this tab or another, still replaces the working
values. The playground tells it from an earlier choice an undo makes current
again by log order: a choice replaces the values only when it is pending or its
seq is past every choice the tab has drawn. A refused choice now behaves like an
undo, leaving the values the user sent in the controls.

This reverses the rule in lf-playground.js's header, "a newly chosen action or
its undo must replace them", which the header now states the other way.

Tests: the alert-thresholds case is new; the contributor-draft test and the
structured-data explorer journey now expect undo and refusal to keep the edits
and Reset to restore the defaults.

Max's decision #26b on the overnight report.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Every `lf-text-document` now scrolls its listing in a box `--lf-bound` tall
(28rem by default), the same box a preview document's Source tab uses, and the
page keeps that size from its first paint. Before, a document without `preview`
was as tall as its text. The text arrives with the state answer after first
paint, so the listing grew when it landed and pushed the rest of the page down.
A short document now shows empty room under its last line, and a long one reads
by scrolling inside the box rather than at full length in the page.

The change is in the widget's registry entry and theme:

- `lf-text-document` declares `x-bound: start`, so delivery marks every document
  as a bounded block, which makes its listing a reading region whether or not
  the author wrote `data-bound`. The listing's `max-block-size` becomes a fixed
  `block-size`.
- Until the module draws the figure, the empty host wears the figure's frame,
  draws its label (or its source name) as the caption with the caption's rule,
  so it wraps the same way, and reserves the tab strip and the box. Its first box
  equals its drawn one in Chromium and Firefox, at 1440px and 390px, with and
  without a preview (483.4px and 530.4px).

Measured with `leaf-dev probe` on a page that opens with a 20-line document and
a paragraph under it: on main the paragraph moves from 114px to 547px at 1440px
wide (0.018 layout shift) and off the screen at 390px (0.030); on this branch
nothing moves at either width (0). On a page with three documents, one of them a
3-line one, the only shift left is inside a listing (0.12 at 1440px): the
module draws an empty listing under "· no data" before the text arrives, then
widens its gutter. TODO.md carries that as "Draw a text document's listing once
its text has arrived".

The widget-quality report no longer finds `keeps-first-box` on
`lf-text-document`, so its entry leaves `tests/known_widget_findings.py`, and
the TODO entry for this defect is gone. In the code-review test, reopening a
card anchored to the whole document now opens over the document's box rather
than under it, so the test accepts either.

Max's decision #4 on the overnight report, option C with the fixed height.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A recording's bar now has a Full screen button after its timeline, and `f`
standing on the video does the same. Leaf's recordings are mostly screen
captures, and in a column about 680px wide their interface text shows at about
half size; full screen makes it readable.

The bar lives in chrome outside the video element, and full screen shows only
the video, so while the video fills the screen it gets the browser's own
controls back:

- Entering puts focus on the video, adds `controls`, and withdraws the bar's key
  scope, so Space, the arrows and a press on the picture reach the browser's
  controls and each acts once. The bar's own press on the picture stands down
  for the same reason.
- Leaving, by Escape or the browser's button, removes `controls` and projects
  the scope again, so the bar, Space, the arrows and `f` work as before.
- A video whose document may not go full screen, such as one in a frame without
  `allow="fullscreen"`, gets no button and no key. On an iPhone, whose Safari
  has no element full screen, the button opens the video's own player
  (`webkitEnterFullscreen`); that path is unobserved.

Routes: the key is `f` in the recording's scope, so the hints, the command
reference and `aria-keyshortcuts` name it, and no page command binds `f`. A
finger taps the button, which shows whenever the recording is paused.

Checked with `leaf-dev probe --journey` on the feature gallery's recording in
Playwright Chromium 153 and Firefox 155: the button and `f` each enter full
screen with `controls` and focus on the video, Space and a press on the picture
each toggle playback once there, and leaving restores the bar and its keys.
`notes/browser-support.md` records it. The new test
`tests/browser/controls/test_recording_bar.py` covers the key route and the
touch route.

The module header's rejection of full screen is gone; a volume button stays
rejected, since recordings are silent.

Max's decision #23 on the overnight report, option "Add fullscreen only".

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 57e5d04 into main Oct 21, 2026
3 checks passed
@max-sixty
max-sixty deleted the recording-full-screen branch October 21, 2026 07:36
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.

2 participants