Skip to content

Read placement's version where a saved draft's place is asked - #6422

Closed
max-sixty wants to merge 1 commit into
mainfrom
saved-at-placement-version
Closed

max-sixty wants to merge 1 commit into
mainfrom
saved-at-placement-version

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Main is broken: #6417 added savedAt in anchor-placement.js reading placement through placement() and reads, which #6413 replaced with placement's version, and the two landed one after the other. On main, collecting the margin with a saved comment draft throws ReferenceError: placement is not defined, and pnpm run check:browser fails. This reads placement as placedAt does: settle, the version signal for a drawing view, then the version.

Tests: pnpm run check:browser passes again; tests/runtime/anchor-placement.test.mjs and annotation-inventory.test.mjs pass (neither drives savedAt against a real placement, which is why both passed on main too).

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

#6417 added `savedAt` reading placement through `placement()` and `reads`, which
#6413 replaced with placement's version as the two landed together, so on main a
collection of the margin with a saved draft threw a ReferenceError and the type
check failed. It now settles placement and reads its version as `placedAt` does.
@max-sixty max-sixty closed this Nov 18, 2026
@max-sixty
max-sixty deleted the saved-at-placement-version branch November 18, 2026 21:54
max-sixty added a commit that referenced this pull request Nov 18, 2026
…6424)

A picked option now stands on a neutral grey, the card mixed 18% toward
the settled colour, instead of the chips' beige ground it took after
#6098. On the reading theme that beige has three times the paper's
chroma (OKLCH 0.937 / 0.017 against the card's 0.997 / 0.005), so across
a whole card it reads as khaki, and as olive under the pointer right
after the click. It also sat level with the pointer's grey wash, so a
picked card differed from a hovered one only in hue, and a plain chip on
the picked card lost its ground.

Just picked, pointer still on the card, before → after (light, then
dark):

<img
src="https://gist.githubusercontent.com/max-sixty/d9a0a9cafabfb36461ed5e4de524ecdc/raw/1cb714e936ce0b393496951be6aa04fa1a9e785b/picked-light-before.png"
width="380"> <img
src="https://gist.githubusercontent.com/max-sixty/d9a0a9cafabfb36461ed5e4de524ecdc/raw/1cb714e936ce0b393496951be6aa04fa1a9e785b/picked-light-after.png"
width="380">

<img
src="https://gist.githubusercontent.com/max-sixty/d9a0a9cafabfb36461ed5e4de524ecdc/raw/1cb714e936ce0b393496951be6aa04fa1a9e785b/picked-dark-before.png"
width="380"> <img
src="https://gist.githubusercontent.com/max-sixty/d9a0a9cafabfb36461ed5e4de524ecdc/raw/1cb714e936ce0b393496951be6aa04fa1a9e785b/picked-dark-after.png"
width="380">

Worth weighing: the fill stays, rather than a ring alone, because with
the keyboard on a group the blue focus ring covers the pick's ring and a
digit replaces its check, so the fill is the only thing left saying
which card is picked. The grey is a step deeper than the pointer's wash
for that reason, which makes the picked card under the pointer the
heaviest block on the page. An opened settled group now washes a hovered
option in the same grey as a live one, and a picked card standing alone
takes the picked ground too, so the pick is never the one card without a
fill. The settled tint stays on answers, Done and the thread summary
region (#6379).

Max asked whether the brownish pick was intended; it came from reusing
the chip token. The grey follows his lean away from it and is his to
reverse.

Tests: the picked-cell ring test now measures the ring against the
cell's own ground, and still fails with the ring removed; `leaf-dev
stills` shows only option picks and the settled hover changing. The
`test` job's browser type check fails on the undefined `placement` and
`reads` in `browser/runtime/anchor-placement.js`, inherited from main,
which #6420 and #6422 fix.

> _This was written by Claude Code on behalf of max-sixty_
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