Skip to content

feat(desktop): blur state, count and list changes in the activity notch - #1329

Merged
nixuuu merged 1 commit into
devfrom
feat/notch-transition-polish
Nov 27, 2026
Merged

nixuuu merged 1 commit into
devfrom
feat/notch-transition-polish

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 27, 2026

Copy link
Copy Markdown
Member

What changes

The activity notch felt flat: values swapped without motion, colors were muted and the list faded in as one block. Every change now passes through a short blur.

Motion

  • Count: only changed digits animate. The old digit leaves with blur in the direction of the change, the new one rises blurred, springs slightly past full size and settles. Several digits follow one another from left to right.
  • State glyph: pops in from a blurred quarter size, overshoots slightly, and a ring in the new state's color spreads from it.
  • Row status: the old pill leaves upward with blur, the new one rises from below.
  • Opening: rows slide out from under the header one after another, with blur, as the outline reaches them. From the fifth row on they share a delay, so a full list still settles soon after the outline.
  • Appearing: the wings sharpen out of blur.
  • The outline itself still grows without overshoot, because the native window ends exactly at the open size.

Style

  • Statuses are pills tinted with the state color. Working has a slow light sweep, like the app's live labels.
  • The count uses the text color instead of muted gray.
  • Project marks are 20 px, and the open outline has rounder bottom corners.
  • The header press scale no longer waits for the appear delay.

prefers-reduced-motion turns all of this off.

The motion styles and swap script moved into activity-notch-motion-styles.ts and activity-notch-motion-script.ts, because activity-notch-page.ts was close to the 400-line limit. docs/desktop.md describes the new behavior.

Verification

  • Locally: oxlint and oxfmt on the changed files, plus tsc for apps/desktop.
  • Rendered the notch page in Chromium with a stubbed bridge and checked frames during opening, digit changes (9→10), glyph state changes and row status swaps.
  • Not verified: the real Electron overlay on macOS or Windows. The live integration test (CANOPY_LIVE=1, macOS/Windows only) was not run because this machine is Linux.
  • Copy audit: no UI text changed; labels and accessible names are the same as before.

🤖 Generated with Claude Code

Digits, state glyphs and row status labels now swap through a short blur:
changed digits leave in the direction of the change and settle with a
small spring, the glyph pops in with a ring in the new state's colour, and
status pills leave upward while the new one rises from below. Opening the
notch reveals rows one after another as the outline reaches them.

Statuses are tinted pills with a light sweep while working, the count uses
the text colour, project marks are larger and the open outline has rounder
bottom corners. Reduced motion turns all of it off.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nixuuu
nixuuu enabled auto-merge (squash) November 27, 2026 08:59
@nixuuu
nixuuu merged commit f20c4a3 into dev Nov 27, 2026
11 checks passed
@nixuuu
nixuuu deleted the feat/notch-transition-polish branch November 27, 2026 09:01
nixuuu added a commit that referenced this pull request Nov 27, 2026
## Change

- Pause the working ring in the collapsed Activity notch and run the
label shimmer only while the panel is visible. Opening the panel
restores both animations when motion is enabled.
- Extend the native Electron fixture to cover the running animations
before and after expansion. Fix a deadlock in the fixture by installing
its fade observer before waiting for the probe result.
- Update the Desktop documentation.

Refs: #1285
Refs: #1329

## Verification

- In an isolated Electron 45.4.1 overlay on macOS with four working
rows, the median combined renderer and GPU process CPU usage dropped
from about 24% of one core to below 0.5%. Measured both revisions twice
with macOS `top`. The measurement covers the overlay.
- The focused Electron integration test passed on macOS with normal
motion and in a separate run with reduced motion emulated. The new
assertion failed against the previous styles because both animations ran
in the collapsed overlay.
- Desktop typecheck, lint on the edited TypeScript files and `git diff
--check` passed locally. Windows and repository-wide checks run in CI.
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