mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
Preview annotations should keep the selected element readable. The selected rectangle now carries a stronger translucent blue fill, while the numbered badge is a separate high-contrast fixed overlay placed outside the selected rect and clamped to the viewport. Constraint: No issue number was provided for this task. Constraint: Preserve the DOM-captured annotation path introduced for viewport-safe screenshots. Rejected: Put the badge inside the selected box | it obscures compact buttons and labels. Rejected: Return to canvas-side badge drawing | that reintroduces the separate coordinate system. Confidence: high Scope-risk: narrow Directive: Keep numbered badges outside compact selected targets unless visual evidence shows a better non-obscuring placement. Tested: cd desktop && bun run test --run src/preview-agent/screenshot.test.ts src/preview-agent/picker.test.ts src/preview-agent/metadata.test.ts src/preview-agent/protocol.test.ts src/preview-agent/bridge.test.ts src/preview-agent/editBubble.test.ts Tested: cd desktop && bun run lint Tested: cd desktop && bun run build:preview-agent Tested: bun run check:desktop Tested: git diff --check Not-tested: Real Tauri webview visual smoke.