Skip to content

feat(notch-hover-panel): morph the panel from the Dynamic Island - #559

Open
AndrewDi wants to merge 2 commits into
mactools-app:mainfrom
AndrewDi:feat/notch-panel-morph
Open

AndrewDi wants to merge 2 commits into
mactools-app:mainfrom
AndrewDi:feat/notch-panel-morph

Conversation

@AndrewDi

@AndrewDi AndrewDi commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Problem and result

The Dynamic Island hover panel currently opens a separate popover below the notch. This change expands the panel from the notch as a single shape, like Spotlight, and folds it back when the pointer leaves. Returning during a pointer-driven close reverses the animation, while an explicit dismissal (Escape, another claim) stays closed. A Classic style keeps the previous below-the-notch popover, and the animation speed is adjustable for the Dynamic Island style.

Closes #541.

This is an alternative implementation of the same behavior as #542. It follows that approach and adds a near-black system-default panel surface in dark mode, a configurable animation speed, and a fix for the explicit-dismissal edge case raised in the #542 review.

Changes

  • Add a spring-animated notch panel window that morphs between the collapsed island and the expanded panel and respects Reduce Motion.
  • Keep wide camera cutouts flush with the display top and fit the header groups beside or below the housing.
  • Add a Panel style setting: Dynamic Island (default) or Classic.
  • Add an Animation speed setting from 0.5× to 2× that scales the morph timing without changing its final shape. It is disabled for the Classic style.
  • Use the component theme for the system-default panel surface, so dark mode reads as near-black next to the notch instead of the window background. Light mode and custom themes are unchanged.
  • Keep explicit dismissals closed when the pointer returns during a pointer-driven close, and add a controller regression test for that sequence.
  • Update plugin metadata, localization, README, plugin documentation, the generated site catalog, and changelog fragments.

Compatibility: the morph requires a Mac display with a Dynamic Island; Classic stays available on other notched displays. No new permissions or network access. Existing notch-hover.* preferences are preserved. The plugin advertises the panel-style and animation-speed capabilities, so older hosts keep the previous behavior and hide controls they cannot honor.

Verification

  • make build-app passes (0 errors).
  • Focused XCTest: NotchHoverPanelControllerTests, NotchHoverPanelGeometryTests, and NotchMenuBarPanelTests — 32 tests pass, including the explicit-dismissal regression test, the animation-speed persistence and clamping checks, and a model test that faster speeds settle sooner without changing the final shape. The dismissal test was also run against the pre-fix code and failed as expected.
  • make validate-changelog passes and git diff --check is clean.
  • make script-tests reports 8 failures confined to test_plugin_build_cache, caused by the local xcrun fixture (missing DEVELOPER_DIR path). No scripts/ files are changed in this PR, and the failures reproduce independently of it.

UI evidence

Not attached yet. The morph needs a display with a Dynamic Island for a meaningful capture, so I verified behavior from the code paths and focused tests only. I can add light/dark before-and-after captures and a short recording once reviewed.

Checklist

  • Core behavior and relevant risks are verified using existing tests, focused additions, or manual checks; results or limitations are recorded.
  • UI evidence is attached where applicable; shared components, themes, localization, and accessibility are respected.
  • User-facing documentation and changelog fragments are updated when required.
  • Plugin metadata, runtime contracts, action policies, and minimum-host compatibility agree.
  • Licensing and third-party notices are complete; no credentials, local configuration, or unrelated generated files are included.

Open the hover panel as a single shape that expands from the notch and
contracts back into it on exit, with a spring animation that respects
Reduce Motion. Wide camera cutouts keep the panel flush with the display
top, and a Classic style keeps the original popover below the notch.

The system-default panel surface now uses the component theme, so dark
mode reads as near-black next to the notch.

Explicit dismissals stay closed when the pointer returns during the close
animation, so Escape cannot be reversed by hovering.
@AndrewDi

AndrewDi commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

@xcv58 PTAL

Scale the Dynamic Island morph between 0.5x and 2x from the plugin
settings. The host reads the stored preference when it creates the notch
panel and scales the spring timing, while the Classic popover stays
unchanged. Older hosts hide the control through a new host capability
flag.

This branch has not been deployed

No deployments
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.

[Feature] Make the notch hover panel morph open like Spotlight

1 participant