Files
moreminimore-vibe/e2e-tests
Mohamed Aziz Mejri a4ab1a7f84 Annotator (#1861)
<!-- This is an auto-generated description by cubic. -->
## Summary by cubic
Adds an in-app screenshot annotator to the Preview panel for Pro users
so you can capture the current app view, draw or add text, and submit an
annotated image to chat.

- **New Features**
- Pen button in PreviewIframe to toggle annotator; captures a screenshot
via worker messaging and displays it in a Konva canvas.
- Tools: select, freehand draw, and draggable text; supports undo/redo,
delete, and resizing with Transformer. Canvas scales to the container.
Includes a color picker.
- Submit exports a PNG and attaches it to the chat via useAttachments;
prefills the chat input; annotator auto-closes after submit.
  - Pro-only: non-Pro users see an upsell screen.
- State atoms added: annotatorModeAtom, screenshotDataUrlAtom,
attachmentsAtom; PreviewIframe now handles dyad-screenshot-response
messages.

- **Dependencies**
  - Added konva, react-konva, perfect-freehand, and html-to-image.
- Proxy now injects html-to-image and the new dyad-screenshot-client.js
for screenshot capture.

<sup>Written for commit 580aca271c5993a0dc7426e36e34393e073bd67b.
Summary will update automatically on new commits.</sup>

<!-- End of auto-generated description by cubic. -->
2025-12-13 19:40:31 +01:00
..
2025-12-13 19:40:31 +01:00
2025-12-13 19:40:31 +01:00
2025-07-10 10:23:22 -07:00
2025-06-24 14:35:05 -07:00
2025-09-09 00:18:48 -07:00
2025-06-05 22:26:17 -07:00
2025-06-17 16:59:26 -07:00
2025-05-31 23:04:28 -07:00
2025-06-02 22:35:55 -07:00
2025-05-31 22:01:48 -07:00
2025-08-18 13:25:11 -07:00
2025-06-02 22:46:35 -07:00
2025-10-20 15:03:16 -07:00
2025-06-02 22:49:02 -07:00
2025-06-02 16:19:47 -07:00
2025-10-28 11:36:20 -07:00