Commit 82f9dcf
Overlay UX (cli-k0z7h): per-window child overlay, anchored composer, Lucide icon toolbar
Fix the three demo UX issues, root-caused first (composer landed on the AXWindow
because nearestIdentified escalated past label-less SwiftUI AXGroups, compounded
by an NSScreen.main-vs-primary coordinate assumption):
- Window model + layering (issue 2): OverlayController rewritten to attach the
overlay as a CHILD window of the host app's own window (addChildWindow .above)
instead of a status-bar float over the whole desktop; NSApp.activate on start;
a single per-window axOrigin transform (no NSScreen.main assumption) shared by
click/highlight/composer, correct on any display.
- Composer anchored (issue 1): nearestIdentified no longer climbs to AXWindow;
composer placed adjacent to the selected element (ComposerPlacement: below/flip
-above, on-screen clamp, accent caret connector), tracked with the selection.
- Icon toolbar (issue 3): compact dark Lucide icon pill (hand-ported Lucide
glyphs as SwiftUI Shapes, offline/zero-dep) with tooltips + pending badge;
every icon maps to a real capability.
Build clean (Swift 6, warnings as errors); 40 tests pass (added ComposerPlacement
+ Lucide + coordinate tests); probe PASS (hitTest resolves to the control).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent bc0e0b3 commit 82f9dcf
10 files changed
Lines changed: 963 additions & 87 deletions
File tree
- Sources/AnnotKit
- Overlay
- iOS
- macOS
- Tests/AnnotKitTests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
40 | 52 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
0 commit comments