Skip to content

fix(chrome): drop darwin footer gradient + remove dead gradual-blur escape hatch - #214

Merged
jackwener merged 1 commit into
mainfrom
yuejing/fe-bug-hunt-8
Jun 24, 2026
Merged

fix(chrome): drop darwin footer gradient + remove dead gradual-blur escape hatch#214
jackwener merged 1 commit into
mainfrom
yuejing/fe-bug-hunt-8

Conversation

@jackwener

Copy link
Copy Markdown
Member

PR-FE-BUG-HUNT-8 picking up kenji's aesthetic-audit reminder 9 findings #2 + #3.

#2 — darwin sidebar footer gradient

`html[data-os="darwin"] .maka-session-panel-footer` was setting a 180deg `transparent → oklch(.../0.30)` linear-gradient. The panel above already has a 50% glass base + 8px backdrop blur — the footer doesn't need material — but the fade IS the same "上面灰下面白" pattern WAWQAQ called out twice in chat sweep (`1e693dee` / `5d3b10e5`). Replaced with flat `oklch(...) / 0.15` + hairline border-top.

#3 — `[data-gradual-blur-layer]` block

A 56-line block that let any element opt into a linear-gradient mask + `backdrop-filter: blur(6px)` + raw `z-index: 5` just by wearing the data attribute. Kenji called it a "blur escape hatch" — a future surface could re-introduce non-token blur and z-index without going through design-system review.

`grep -rn data-gradual-blur-layer --include=*.tsx` confirms zero JSX consumers. The CSS is dead. Removing it kills the escape hatch + retires one of the four raw z-index numbers kenji flagged in finding #4. `notes/reference-atlas.md` references stay — those describe what reference upstream does, not what we ship.

Diff

`1 file changed, 20 insertions(+), 61 deletions(-)` — net delete. Darwin-only footer change, no JSX touched, no contracts touched (no test pinned this attr).

Conflict check

Far from PR #202 styles.css edit area (onboarding ~1500-1700 + cubic-bezier sweep on `transition` rules). PR #210 touches main.tsx debounce, not styles.css. No expected merge conflicts.

Verification

Disk still ~100%, couldn't run `pnpm install && pnpm test`. CSS-only changes — darwin footer + dead-block delete. Visually verifying on first-merger's machine recommended.

…scape hatch
Kenji aesthetic-audit reminder 9 (msg `bacde601` 2026-06-24,
findings #2 + #3): two chrome design-system holes still leaking
gradients / non-token blur into the app.
## #2 — darwin sidebar footer gradient
`html[data-os="darwin"] .maka-session-panel-footer` was setting:
`background: linear-gradient(180deg, transparent 0%, oklch(.../0.30) 100%)`
The panel above already has a 50% glass base + 8px backdrop blur,
so the footer doesn't need any additional material — but the
180deg fade IS the same "上面灰下面白" pattern WAWQAQ called out
twice before in chat sweep (`1e693dee` / `5d3b10e5`). Replaced
with flat `oklch(...) / 0.15` + hairline border-top.
## #3 — `[data-gradual-blur-layer]` block
A 56-line block that let any element opt into:
- `linear-gradient(to bottom/top, var(--background) → transparent)`
- `backdrop-filter: blur(6px)`
- raw `z-index: 5`
just by wearing the `data-gradual-blur-layer` attribute. Kenji
called it a "blur escape hatch" — a future surface could re-
introduce blur and a non-token z-index without going through
any review of the design system.
`grep -rn data-gradual-blur-layer --include=*.tsx` confirms zero
JSX consumers — the CSS is dead. Removing the entire block kills
the escape hatch + retires one of the four raw z-index numbers
kenji flagged in finding #4.
`notes/reference-atlas.md` references stay — those describe what
reference upstream does, not what we ship.
## Diff
1 file changed, 18 insertions(+), 60 deletions(-) net delete.
No JSX touched. No tests touched (no contract pinned this attr).
Footer change is darwin-only so non-darwin platforms unaffected.
Far from PR #202 styles.css edit area (onboarding ~1500-1700 +
cubic-bezier sweep on transition rules). PR #210 touches main.tsx
debounce, not styles.css. No merge conflicts.
@jackwener
jackwener merged commit 231a254 into mainJun 24, 2026
@jackwener
jackwener deleted the yuejing/fe-bug-hunt-8 branch June 24, 2026 17:32
jackwener added a commit that referenced this pull request Jun 24, 2026
Kenji aesthetic-audit reminder 9 (msg `bacde601` 2026-06-24,
finding #4): four bare integer z-index sites in styles.css
(line 407 z-4, 3858 z-2, 7193 z-35, 14463 z-5) sidestep the
`--z-*` token scale defined in maka-tokens.css. PR #214 already
took out the gradual-blur-layer site (z-5). This PR closes the
remaining three.
## Changes
1. `maka-tokens.css`: add two new tokens preserving the previous
raw values exactly:
- `--z-panel-action: 4`
- `--z-settings-fullpage: 35`
2. `styles.css` line 407 (`.maka-workspace-top-actions`):
`z-index: 4` → `var(--z-panel-action)`. Identical stacking.
3. `styles.css` line 7193 (`.settingsModal.settingsPage`):
`z-index: 35` → `var(--z-settings-fullpage)`. 35 sits between
`--z-titlebar` (40) and `--z-sticky` (20) so the OS titlebar
still owns top of the stack. Preserved visual behavior exactly.
4. `styles.css` line 3858 (`.maka-skill-featured-art span:nth-child(2)`):
bare `z-index: 2` kept. This is local stacking among 3 decorative
sticker spans inside a fixed-size container — they never escape
the parent and don't need a global token. Added explicit
allowlist comment.
5. New `apps/desktop/src/main/__tests__/z-index-contract.test.ts`
enforces:
- every bare `z-index: <integer>;` must be tokenized or
allowlisted (with a documented reason)
- allowlist entries must be present in styles.css (no stale
entries)
- the 10 semantic `--z-*` tokens stay defined in maka-tokens.css
Future PRs that re-introduce a bare z-index will fail this test
unless they explicitly bump the allowlist.
## Diff
3 files: maka-tokens.css +7, styles.css +17/-2, new test +~110 lines.
No visual change. Far from PR #202 (transition sweep), PR #210
(main.tsx debounce), PR #214 (footer/gradual-blur). No conflict.
## Verification
Disk still ~100%, couldn't run `pnpm install && pnpm test`.
Contract test is greenfield — first run will validate the 4 sites
in this same PR.
Sign up for freeto 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

@jackwener