Skip to content

fix(desktop): keep the activity notch visible and animate it - #1302

Merged
nixuuu merged 1 commit into
devfrom
fix/notch-focus-transitions
Nov 26, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/notch-focus-transitions

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 26, 2026

Copy link
Copy Markdown
Member

Desktop behavior

  • Keep the Activity notch visible while activity is available, whether or not the main Canopy window has focus. Selecting a row opens the conversation and collapses the list.
  • Animate the shape's width and height around the display's notch and crossfade status icons and labels. Keep the native window large enough to show the closing animation before it shrinks. Respect the system's reduced-motion preference.

Verification

  • Desktop typecheck, lint on edited files, and all four activity-notch geometry tests passed locally.
  • Chromium exercised intermediate sizes on hover open and close, status crossfades, reduced motion, and a narrow layout.
  • The Electron integration fixture passed on Linux with the notch enabled for the test. It exercised focus changes, geometry, IPC, route selection, and cleanup. CI runs the fixture on macOS and Windows. Manual native pointer and camera-cutout checks are pending.
  • Copy audit passed. “Show activity at the top of your screen while Canopy is in the background.” became “Show activity at the top of your screen.” The description still tells users that expanding reveals project logos or initials.

Fixes: #1281

@nixuuu
nixuuu enabled auto-merge (squash) November 26, 2026 10:46
@nixuuu
nixuuu merged commit bc4c8c3 into dev Nov 26, 2026
24 checks passed
@nixuuu
nixuuu deleted the fix/notch-focus-transitions branch November 26, 2026 10:51
nixuuu added a commit that referenced this pull request Nov 26, 2026
## Activity notch

- Replace numbered thread labels in the expanded notch with the same
titles shown in Threads. Changes to a title update the existing row.
Threads without a title show **Untitled thread**.
- Keep titles on one line with ellipsis when needed. The tooltip and
accessible name retain the full title. Project marks and activity status
stay beside the title.
- Project names, transcript content, and conversation routes stay out of
the overlay renderer. Bot rows keep their numbered labels.

## Verification

- Desktop and web typecheck and lint on edited files passed.
- The Electron integration fixture passed on Linux with the notch
enabled for the test. It checked a title-only update, literal rendering
of punctuation, untitled fallback, and redaction. The CI fixture covers
macOS and Windows.
- Verified short, typical, and long titles in Chromium at 496 px and 260
px, including access to the full title and room for the status.
- Copy audit passed. “Thread 1” became the actual thread title, with
“Untitled thread” for an empty title. The button name still begins with
“Open” and includes the activity status.

Related: #1302
nixuuu added a commit that referenced this pull request Nov 26, 2026
## Summary

- Give the Activity notch list a stable width during expansion and
collapse. Reveal rows once they fit and fade them before the closing
edge reaches them. Fast reversals continue from the current outline.
- Use the Canopy thread list's status colors, icons and working
indicator. Animate changed count digits, row movement and the overlay's
appearance and disappearance.
- Keep the native window alive until the fade finishes. Ignore a fade
completion from older activity after new rows arrive, and cover that
case in the Electron integration fixture.

## Verification

- Chromium exercised the real renderer with a fixture bridge. Sampled
opening and closing every 2 ms with all seven rows visible. Checked
rapid reversal, keyboard and focus behavior, row and status updates, a
335 px viewport, and reduced motion.
- Desktop typecheck, lint and formatting on edited files, and four
Activity notch geometry tests passed locally.
- The native Electron fixture requires macOS or Windows and is left to
CI. Physical camera cutout and native pointer checks need a desktop
session.

UI copy is unchanged.

Fixes: #1302
nixuuu added a commit that referenced this pull request Nov 27, 2026
## Summary

- After the collapse animation, the native Activity notch window
narrowed and moved right with `setBounds`, while the renderer still
placed the outline from the old left edge until the new layout arrived
over IPC. For a frame the notch showed off center.
- The native window now keeps the open panel's left edge and width
(centered on the camera) and changes only its height, so nothing moves
sideways.
- The transparent sides of the wider window pass the pointer through
(`setIgnoreMouseEvents` with forwarding). The renderer makes the window
interactive only while the pointer is over the outline, through a new
`canopy:activity-notch-interactive` channel that the main process checks
like the other notch channels.
- The Electron fixture now asserts the same left edge and width in the
compact and expanded states. `docs/desktop.md` describes the behaviour.

Fixes: #1302

## Verification

- A screen recording of the bug, sampled at 60 fps, showed the
off-center frame right as the window narrowed after the animation.
- Chromium rendered the real notch page in a window of the new fixed
width with a stub bridge. Through compact, opening, closing and compact
again, the outline's center stayed at the window's center in every
sampled frame.
- Local: desktop typecheck, lint and formatting on the edited files,
plus the Activity notch geometry tests.
- Left to CI: the native Electron fixture, which needs macOS or Windows.
- Still needs a desktop session on macOS: menu items next to the notch
stay clickable, and hovering still expands the list.
- Known trade-off on Windows touch screens: tapping the notch without
hovering first now reaches the window underneath.

UI copy is unchanged.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
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