Skip to content

Mark what an undo took back with the change tint, and show it over a box's rows - #6449

Merged
max-sixty merged 1 commit into
mainfrom
undo-take-at-once
Nov 19, 2026
Merged

max-sixty merged 1 commit into
mainfrom
undo-take-at-once

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

What ⌘Z, or a notice's Undo, took back now takes the yellow tint a newly arrived message and a revision's changed block already take (backgroundFlash), in place of the outline #6447 added. The held notice stays. max-sixty asked for this after #6447 landed, judging the tint better to look at for a mark that lasts a moment, so the page now marks every change it shows the same way.

The tint needed a fix to show on a widget at all: backgroundFlash animated only the element's own background, and an option row paints its own ground over the box's, so on the options box (the most common thing an undo marks) the tint was invisible. A revision changing such a widget showed no tint either. It now also tints each box drawn inside the element that paints a background, and those animations end with the element's, which is still the one it returns, so lf-tabs and the public backgroundFlash keep their contract.

To weigh: the walk reads one computed style per descendant of the tinted element, once per flash, so a revision that changes a large block pays for its size once.

Checks: the undo test now waits for the rows' tint as well as the box's, and times out against the old backgroundFlash. test_a_decided_change_folds_away_rather_than_vanishing now allows the undo's tint on the struck paragraph after its last undo, and still requires its fold to be gone. Of the 215 browser tests that flash, tint, undo or read notices, all pass but test_an_acknowledgment_uses_status_until_an_active_claim_restores_a_disclosure, which fails on main too; pnpm run test:runtime and check:browser pass. Firefox stills, light and dark, are on max-sixty's page.

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

…box's rows

max-sixty asked, after #6447 landed the undo's ring, for the tint a revision's
changed blocks already take instead, judging the tint better to look at and
best suited to a mark that lasts a moment. So ⌘Z, or a notice's Undo, now marks what it took back
with `backgroundFlash`, the tint of a newly arrived message and of a
revision's changed block, and the ring's keyframes and its entry among the
band marks in tokens.css go. The held notice stays.

On the options box the tint didn't show at all: `backgroundFlash` animated the
element's own background, and each option row paints its own ground over it.
A revision changing such a widget showed no tint either. `backgroundFlash` now
tints each box inside the element that paints a background, ending them with
the element's animation, which it still returns.

The undo test now waits for the rows' tint as well as the box's; it times out
against the old `backgroundFlash`.
@max-sixty
max-sixty merged commit 373e4cd into main Nov 19, 2026
5 checks passed
@max-sixty
max-sixty deleted the undo-take-at-once branch November 19, 2026 01:44
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