fix(ui): clear the 3 ui-primitives guard hits (#1153) #1170

Closed
kayg wants to merge 0 commits from fix/guards-1153-ui-primitives into dev
Owner

.dv-confirm takes the shared pillbar recipe, .cm-unhide and tasks/DragCard.svelte take bounce, so ci/check-ui-primitives.mjs passes. The DragCard change is its own commit (one class binding, one deleted scale: line) so a conflict with the Tasks Float lane is easy to resolve. Computed-style evidence in the comments.

Part of #1153. Do not merge before review.

🤖 Generated with Claude Code

`.dv-confirm` takes the shared `pillbar` recipe, `.cm-unhide` and `tasks/DragCard.svelte` take `bounce`, so `ci/check-ui-primitives.mjs` passes. The DragCard change is its own commit (one class binding, one deleted `scale:` line) so a conflict with the Tasks Float lane is easy to resolve. Computed-style evidence in the comments. Part of #1153. Do not merge before review. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The ui-primitives guard flagged a hand-drawn pill within a pill (.dv-confirm)
and a local :active scale (.cm-unhide). They take .pillbar (Toolbar's recipe)
and .bounce (base.css press). The unhide press now glides 150 ms like every pill.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
fix(tasks): DragCard takes the shared bounce press (#1153)
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
d5bd0036ec
Own commit so a conflict with the Tasks Float lane is easy to resolve: one
class binding (bounce while the card is not open) and one deleted scale line.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Computed styles on dev 42c219afd vs this branch, Playwright chromium-1440 + webkit-1440 (dev-02), rest/hover/pressed:

element chromium-1440 webkit-1440
.dv-confirm (gap, padding, radius, bg, animation, size, 2 buttons) 24/24 equal 24/24 equal
.cm-unhide (size, radius, bg, colour, scale rest + pressed 0.97) 18/24 equal; diff = transition only same
DragCard .card (padding, radius, bg, border, scale rest + pressed 0.97, transition-delay 80ms) 39/42 equal; diff = class list only 38/42; diff = class list, plus one dev hover sample caught mid-transition (settled value oklab(0.260059…) equals the fix's)

The only real difference: .cm-unhide transition was all 0s (the press snapped) and is now scale, background-color 0.15s cubic-bezier(0.23,1,0.32,1), the shared press every pill has (orchestrator OK'd this). Guard on this branch: check-ui-primitives "no hand-made pills or local presses", its unit test passes. DragCard is its own commit (d5bd0036e) for easy conflict resolution with the Tasks Float lane.

Integration check (dev 42c219afd + all 7 branches merged, 95b8a6e8a, dev-02): check-size-budgets fails only on NoteList.svelte 595 > 567 (slice 3c's, untouched); check-file-docs, check-ui-primitives, check-layers, check-web-cycles, check-case-paths, check-no-evidence all pass; apps/web lint 0, packages/editor check, apps/web check (0 errors), packages/editor test, packages/ui test:primitives green. Each branch alone only clears its own guard (the other three Rust files are still over on a lone branch).

🤖 Generated with Claude Code

Computed styles on dev `42c219afd` vs this branch, Playwright chromium-1440 + webkit-1440 (dev-02), rest/hover/pressed: | element | chromium-1440 | webkit-1440 | |---|---|---| | `.dv-confirm` (gap, padding, radius, bg, animation, size, 2 buttons) | 24/24 equal | 24/24 equal | | `.cm-unhide` (size, radius, bg, colour, scale rest + pressed 0.97) | 18/24 equal; diff = transition only | same | | `DragCard .card` (padding, radius, bg, border, scale rest + pressed 0.97, transition-delay 80ms) | 39/42 equal; diff = class list only | 38/42; diff = class list, plus one dev hover sample caught mid-transition (settled value `oklab(0.260059…)` equals the fix's) | The only real difference: `.cm-unhide` transition was `all 0s` (the press snapped) and is now `scale, background-color 0.15s cubic-bezier(0.23,1,0.32,1)`, the shared press every pill has (orchestrator OK'd this). Guard on this branch: `check-ui-primitives` "no hand-made pills or local presses", its unit test passes. DragCard is its own commit (`d5bd0036e`) for easy conflict resolution with the Tasks Float lane. **Integration check** (dev `42c219afd` + all 7 branches merged, `95b8a6e8a`, dev-02): `check-size-budgets` fails only on `NoteList.svelte` 595 > 567 (slice 3c's, untouched); `check-file-docs`, `check-ui-primitives`, `check-layers`, `check-web-cycles`, `check-case-paths`, `check-no-evidence` all pass; `apps/web lint` 0, `packages/editor check`, `apps/web check` (0 errors), `packages/editor test`, `packages/ui test:primitives` green. Each branch alone only clears its own guard (the other three Rust files are still over on a lone branch). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

Merged into dev with --no-ff together with #1169–#1175 (dev df16d3a24, orchestrator 16 Nov ~05:20 IST). Combined tree gated on dev-02: cargo fmt --check, clippy -D warnings, workspace tests all pass; every guard passes except the size-budget line for NoteList.svelte (595 > 567, slice 3c's file). I checked the four Rust splits myself: only moved code, plus visibility, mod, use and cfg lines.

Merged into dev with `--no-ff` together with #1169–#1175 (dev `df16d3a24`, orchestrator 16 Nov ~05:20 IST). Combined tree gated on dev-02: `cargo fmt --check`, `clippy -D warnings`, workspace tests all pass; every guard passes except the size-budget line for `NoteList.svelte` (595 > 567, slice 3c's file). I checked the four Rust splits myself: only moved code, plus visibility, mod, use and cfg lines.
kayg closed this pull request 2026-11-15 23:27:49 +00:00
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!1170
No description provided.