openpencil/tests/e2e/chat
Danila Poyarkov f8d2dbc7e6
feat(chat): attach dropped images and style tables, menus, and link prompts in replies (#955)
* feat(chat): attach images by dropping them on the chat

Images could be attached with the attach button or by pasting, but a
drop on the chat did nothing: the window's document drop handler left
images to the canvas, so they were dropped silently.

Images dropped anywhere on the chat panel now attach, through the same
path as the attach button and paste, with the same limits and errors.
While images are dragged over the panel, an outline over the composer
says where they go, or why they cannot be attached while a reply runs or
four images are already attached. SVG images are drawn as PNGs, since
vision models take raster images. A drag without images, such as a
.fig, is left to the window, which opens documents.

The canvas and the chat share AppDropOverlay, a typed feedback component
with a light tint over surfaces and a cover over fields.

* fix(chat): style tables, menus, and link prompts in AI replies

vue-stream-markdown drew tables with semibold, filled rows at 14px, with
copy, download, and fullscreen buttons above each; its tooltips doubled
with the browser's, and the link confirmation it teleports out of the
message had no app colors, since the token mapping sat on the message
element only.

The token mapping now lives in markdown.css on the renderer's
.stream-markdown elements, so teleported dialogs and menus use app
colors. Tables use regular weight, a light header, and the chat density's
size, with copy as their only action; task items show their checkbox in
place of the bullet; the copy menu and link prompt follow the app's
menus and dialogs. Hover labels use the app's tooltip, while click menus
keep the renderer's. Links no longer request each site's favicon.

* fix(chat): keep an SVG drawn after sending out of the next message

Drawing a dropped SVG as PNG takes a moment. A message sent or cleared
meanwhile no longer gets the image added to the following draft: each
draft has a generation that sending and clearing advance, and an image
finished for an earlier one is dropped.
2026-10-07 18:18:15 +00:00
..
streaming feat(collab): show MCP agents, follow streamed JSX, and follow your agents as they work (#725) 2026-10-07 10:04:58 +00:00
attachments.spec.ts feat(chat): attach dropped images and style tables, menus, and link prompts in replies (#955) 2026-10-07 18:18:15 +00:00
composer.spec.ts feat: persist AI conversations and add chat history (#661) 2026-09-08 11:19:07 +03:00
file-identity.spec.ts fix(ai): polish chat history and stabilize chat tests (#923) 2026-10-07 09:53:05 +00:00
history-save.webkit.spec.ts fix(ai): keep saving chat history in Safari Private Browsing (#920) 2026-10-06 13:57:56 +00:00
history.spec.ts feat(ai): refine tool change and run views (#858) 2026-10-06 11:56:06 +00:00
lazy-connection.spec.ts fix: protect unsaved documents and defer credential access (#713) 2026-09-17 15:25:15 +03:00
markdown.spec.ts feat(chat): attach dropped images and style tables, menus, and link prompts in replies (#955) 2026-10-07 18:18:15 +00:00
menu.spec.ts fix(ai): polish chat history and stabilize chat tests (#923) 2026-10-07 09:53:05 +00:00
navigation.spec.ts fix(ai): reach the custom model option and update stale chat specs (#719) 2026-09-17 16:34:08 +03:00
profiles.spec.ts fix(ai): polish chat history and stabilize chat tests (#923) 2026-10-07 09:53:05 +00:00
real-llm.spec.ts feat(desktop): show updates in a Software Update window (#936) 2026-10-06 14:57:31 +00:00
reasoning.spec.ts fix(ai): polish chat history and stabilize chat tests (#923) 2026-10-07 09:53:05 +00:00
recovery.spec.ts feat: persist AI conversations and add chat history (#661) 2026-09-08 11:19:07 +03:00
responses.spec.ts feat(ai): render tool calls as summarized, highlighted cards (#811) 2026-10-03 22:04:31 +04:00
restore.spec.ts feat: persist AI conversations and add chat history (#661) 2026-09-08 11:19:07 +03:00
turns.spec.ts fix(ai): polish chat history and stabilize chat tests (#923) 2026-10-07 09:53:05 +00:00