deepseek-harness/packages/client/ui-theme/tests
Chinesezjc 0401c3c6c7 test(ui-theme): resolve elevated surfaces from the palette, not from rebinds
The check added last commit derived its elevated set from the sheets that
already rebind, which cannot catch the omission it targets: such a set only
confirms what someone already remembered, and a surface nobody has rebound
yet defines itself as unelevated. Review found the case that proves it —
TodoPanel scrolls in .list on a --dsw-specific-tip card, the same dark rung
as the menu surface, unrebound and with the derived check green.

Resolves the set from the palette's own dark elevation ladder instead: the
surface tokens whose dark value lands on bg-layer-2 or bg-layer-3, which is
the step the l1/l2 split encodes. A new palette token on an elevated rung is
in scope the moment it is defined.

Scope is by token family rather than geometry: only --dsw-alias-bg-* and
--dsw-specific-* name a surface. The button, interactive, and markdown
families reach the same rungs while naming a control or an inline span that
no scroll container renders a bar against, and shape cannot separate them
since a floating button carries a radius, a shadow, and a fixed size —
ChatView's .toBottom pill was the false positive that showed this.

Adds the missing TodoPanel rebind. Mutation-checked all four rebinds in
turn: each is named with its surface. The palette anchoring has its own
control — narrowing the family pattern turns it red on --dsw-specific-menu.
2026-07-28 18:31:52 +08:00
..
appearance-row.spec.tsx feat: slash system / input service / agent scope 2026-07-27 03:28:39 +08:00
apply.spec.ts test(gui): apply-level suites for the feature-owned settings rows 2026-07-26 02:57:54 +08:00
invariant.spec.ts refactor(gui): features register their own settings surfaces 2026-07-26 02:51:36 +08:00
scrollbar-styles.spec.ts test(ui-theme): resolve elevated surfaces from the palette, not from rebinds 2026-07-28 18:31:52 +08:00
settings-store.spec.ts docs(gui): regenerate graphs and sync the note's English pair 2026-07-26 02:54:29 +08:00
theme.spec.ts fix(client): lint conformance for the preference services 2026-07-26 01:30:46 +08:00