Skip to content

Tint the project circle icons orange at rest - #21

Merged
kaishin merged 3 commits into
mainfrom
loop/build/tint-icons-orange
Nov 23, 2026
Merged

kaishin merged 3 commits into
mainfrom
loop/build/tint-icons-orange

Conversation

@kaishin

@kaishin kaishin commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Backlog item

`Tint the project circle icons orange at rest (Tasker #543) (Goal 6a952708a8fb)` from `TODO.md`, criteria C1 and C2: every circular project icon that appeared grayscale now uses the same orange monochrome treatment at rest (including the non-interactive TBA mark) while staying recognizable, and the existing hover, keyboard-focus and reduced-motion behaviour keeps working in both themes.

Change

  • `src/components/CircleLink.astro` — the at-rest `filter: grayscale(1) contrast(1.05)` on the disc image is replaced with an orange monochrome tint: a `.disc:has(:global(img))::after` overlay filled with the existing `var(--accent)` token and `mix-blend-mode: color`, so the accent hue is applied over the image's own luminance and each artwork keeps its recognizability. No sepia/hue-rotate approximations and no hardcoded colours. `.disc` gains `isolation: isolate` to contain the blend, and the overlay is `pointer-events: none`. On hover and keyboard focus the tint fades out (`opacity: 0`, 0.5 s, the same easing as before) so the image comes to full colour; the scale, ring trace, shadow and label transitions are unchanged. Under `prefers-reduced-motion: reduce` the tint reveal keeps a short linear opacity transition and the hover/focus image transform stays `none`, so the colour reveal still happens with no scale or movement.
  • `src/pages/[...lang]/index.astro` — the TBA `.monogram` (極秘) now uses `var(--accent)` instead of `var(--muted-foreground)`, so the non-interactive mark reads as the same orange as the icons at rest.

The contact circle, logo, lattice, artwork files, copy, layout and breakpoints are untouched. No dependencies added.

Validation

  • `pnpm check` — 0 errors, 0 warnings (14 files)
  • `pnpm format:check` — all files match Prettier
  • `pnpm build` — completed; compiled CSS inspected: Astro scopes `.disc:has(img)` correctly, and the only remaining `grayscale` occurrences are Tailwind's built-in utility layer, not component CSS

Browser evidence

Built site served locally and driven in a real WebKit browser (agweb, 1280×900), with computed-style probes (`getComputedStyle`) at each state:

  • Light, rest — Circle and Combolab show the orange monochrome tint (overlay `mix-blend-mode: color`, `opacity: 1`, background `rgb(237, 103, 44)`), artwork recognizable; TBA 極秘 reads the same orange on the light card; contact circle unchanged.
  • Dark, rest — same reading on the dark card; the tint still derives from `var(--accent)`.
  • Hover (Circle, light and dark) — tint fades to full colour (`opacity: 1 → 0` measured), ring traces in (`stroke-dashoffset: 100.5px → 0`), accent glow and accent name colour all present; Combolab beside it stays tinted.
  • Keyboard focus (Combolab, light and dark) — full-colour reveal, traced ring and the accent focus outline (`outline: 2px solid var(--accent)`, offset 14 px) all confirmed; `focus({focusVisible: true})` used to drive the keyboard-focus state because the harness's WebKit does not tab into links without full keyboard access.
  • Reduced motion — the harness emulates colour scheme only, so the reduced-motion path was verified in the compiled CSS instead of live: inside the `prefers-reduced-motion: reduce` block the tint reveal keeps an opacity transition (0.3 s linear) and the hover/focus image transform is forced to `none` — the colour reveal happens without scale or movement.

No pre-existing or new check failures.


Built by: pi harness, model zai/glm-5.3-flash

@netlify

netlify Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for 4rays ready!

Name Link
🔨 Latest commit 35da8a5
🔍 Latest deploy log https://app.netlify.com/projects/4rays/deploys/6b036b29b59022b4a43249b6
😎 Deploy Preview https://deploy-preview-21--4rays.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T16:52:20.962732Z e52481f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@kaishin

kaishin commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

[p0] The effect is very glitchy on Safari, which is a regression since before this PR it worked fine.

@kaishin

kaishin commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Owner feedback:

The effect is broken on Safari. Fix it before merging, and see my comment on the PR for details.

@kaishin

kaishin commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Accepted

  • [p0] The effect is very glitchy on Safari: fixed in c2b7631. Two causes: the blend layer that produced the tint faded while the artwork beneath it scaled, so WebKit recomposited the blend group every frame (the Safari flicker), and on the way to full colour the transition lerped between the orange tint and the artwork hue, passing through muddy purples. The blend layer and the image under it are now completely static — the tint still comes from var(--accent) with mix-blend-mode: color — and the reveal is a crossfade of a colour copy of the image above the tint that first fades in as a matching grayscale, then un-grays to full colour. The transition path is now the same neutral desaturation path as the pre-PR filter fade that worked on Safari, with no animation inside the blend group. Hover/focus reveal, ring trace, scale, reduced-motion behaviour, and the light/dark rest tint are unchanged.

Verification: Check & Build passed on c2b7631. The hover cycle was recorded frame-by-frame in WebKit before and after the change: the old frames show the purple hue-mix, the new frames step cleanly orange → desaturated orange → grayscale → full colour with no blend artifacts.

@kaishin

kaishin commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Accepted

  • The effect is broken on Safari: fixed in c2b7631, as detailed in the reply to the [p0] comment above. The tint blend layer no longer animates (WebKit recomposited it every frame while the artwork scaled beneath, causing the flicker), and the reveal now crossfades a colour copy of the image over the static tint through a matching grayscale, so it follows the same neutral desaturation path as the pre-PR filter fade. Rest tint, hover/focus reveal, ring trace, reduced-motion behaviour, and both themes are unchanged.

Verification: Check & Build passed on c2b7631; frame-by-frame WebKit capture of the hover cycle shows a clean transition with no artifacts.

@kaishin

kaishin commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Owner feedback:

The hover transition now passes through grayscale, and that looks very jarring. Please make it go straight to the tinted state without the grayscale step in between.

@kaishin

kaishin commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Accepted

  • The hover transition passing through grayscale looks jarring: removed in 35da8a5. The reveal copy now fades straight between the tinted state and full colour with no grayscale step in either direction; the fade runs on the copy above the tint, so the Safari fix (a completely static blend group that WebKit never recomposites) is unchanged. Timing, ring trace, scale, reduced-motion behaviour, and the light/dark rest tint stay as they were.

Verification: Check & Build passed on 35da8a5. A frame-by-frame WebKit capture of the hover cycle shows tint → colour and colour → tint directly, with no grayscale frames.

@kaishin
kaishin merged commit 69f542e into main Nov 23, 2026
5 checks passed
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