feat(composer): compose spoiler, annotation, and tooltip controls (#1491)

Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
Co-authored-by: npub1223z34hd7vtwc6qj4s7flsxkj644nlre2nthu7lrrmkumhu3xddsrx9r6w <52a228d6edf316ec6812ac3c9fc0d696ab59fc7954d77e7be31eedcddf91335b@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
Taylor Ho
2026-07-06 16:36:01 -07:00
committed by GitHub
parent 36ac5243ff
commit 1aa87bb26b
17 changed files with 1373 additions and 256 deletions

View File

@@ -8602,6 +8602,13 @@ export function maybeInstallE2eTauriMocks() {
return await resolveMockUploadDescriptors(activeConfig);
case "upload_media_bytes":
return (await resolveMockUploadDescriptors(activeConfig))[0];
case "fetch_media_bytes": {
// The real command fetches relay media through Rust reqwest. In E2E
// the browser fetch suffices — specs serve the URL via page.route.
const response = await fetch((payload as { url: string }).url);
if (!response.ok) throw new Error(`fetch failed: ${response.status}`);
return Array.from(new Uint8Array(await response.arrayBuffer()));
}
case "download_image":
case "download_file":
// The save dialog can't run headlessly; report a successful save so the