gsxdsm
5ff7a20738
FN-7976: fix mailbox artifact open and view-task popups
Fix Mailbox/Artifacts media auth and ensure View task always opens a usable popup.
- Add artifactMediaUrlWithToken for authenticated img/video/audio/link loads while keeping artifactMediaUrl token-free for fetch and HTML previews
- Load script-capable HTML artifact previews via Authorization + revocable blob URL so tokens never reach allow-scripts iframes
- Keep non-board/list task popups (Mailbox, Documents) visible even when board/list-only popup gating is enabled
- Upgrade duplicate popOut entries so reopening a task refreshes snapshot and origin
- Document the behavior and add a patch changeset
Files changed:
.changeset/fn-7976-mailbox-artifact-fixes.md | 7 +++
docs/dashboard-guide.md | 2 +-
packages/dashboard/app/App.tsx | 15 +++--
.../app/__tests__/App.taskPopupViewGating.test.tsx | 10 ++-
.../dashboard/app/__tests__/api-artifacts.test.ts | 12 +++-
.../api/__tests__/legacy-artifact-media.test.ts | 27 ++++++++
packages/dashboard/app/api/legacy.ts | 21 +++++--
.../dashboard/app/components/ArtifactsGallery.tsx | 72 ++++++++++++++++++----
.../dashboard/app/components/DocumentsView.tsx | 4 +-
.../app/components/MailboxArtifactAttachment.tsx | 6 +-
.../dashboard/app/components/TaskDocumentsTab.tsx | 6 +-
.../components/__tests__/DocumentsView.test.tsx | 31 ++++++----
.../__tests__/MailboxArtifactAttachment.test.tsx | 24 ++++----
.../app/components/__tests__/MailboxView.test.tsx | 8 +--
.../components/__tests__/TaskDocumentsTab.test.tsx | 16 ++---
.../app/hooks/__tests__/usePoppedOutTasks.test.ts | 9 ++-
packages/dashboard/app/hooks/usePoppedOutTasks.ts | 17 +++--
17 files changed, 206 insertions(+), 81 deletions(-)
Fusion-Task-Id: FN-7976
Fusion-Task-Lineage: 4c25b3a6-5836-4629-b33e-647f213e3261
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-15 15:30:55 -07:00
..
2026-07-15 15:30:55 -07:00
2026-06-27 15:56:42 -07:00
2026-06-22 15:23:43 -07:00
2026-07-01 07:50:52 -07:00
2026-07-08 00:14:52 -07:00
2026-04-12 17:55:07 -07:00
2026-06-08 13:32:58 -07:00
2026-05-26 21:57:31 -07:00
2026-05-20 03:19:44 -07:00
2026-07-14 18:47:53 -07:00
2026-06-27 09:28:29 -07:00
2026-07-13 08:58:51 -07:00
2026-07-10 23:42:10 -07:00
2026-07-02 20:16:43 -07:00
2026-06-23 20:03:44 -07:00
2026-07-12 12:49:37 -07:00
2026-05-15 22:24:12 -07:00
2026-07-14 18:47:53 -07:00
2026-05-13 15:05:05 -07:00
2026-04-23 23:02:36 -07:00
2026-06-17 04:51:31 -07:00
2026-06-29 21:02:34 -07:00
2026-07-05 16:10:36 -07:00
2026-06-23 19:52:52 -07:00
2026-06-23 20:14:14 -07:00
2026-07-12 21:33:50 -07:00
2026-07-12 22:12:18 -07:00
2026-05-15 15:19:56 -07:00
2026-07-01 15:39:34 -07:00
2026-06-13 19:40:15 -07:00
2026-05-23 20:44:01 -07:00
2026-07-02 11:38:31 -07:00
2026-07-02 23:42:14 -07:00
2026-07-04 21:28:19 -07:00
2026-07-03 00:12:10 -07:00
2026-06-23 11:26:51 -07:00
2026-04-20 12:59:58 -07:00
2026-05-21 18:15:26 -07:00
2026-05-20 03:19:44 -07:00
2026-05-03 14:10:11 -07:00
2026-05-03 07:47:45 -07:00
2026-05-17 11:33:56 -07:00
2026-06-22 04:18:35 -07:00
2026-06-25 08:35:44 -07:00
2026-05-17 11:33:56 -07:00
2026-07-03 07:47:03 -07:00
2026-05-20 03:19:44 -07:00
2026-04-23 23:02:36 -07:00
2026-06-03 19:06:53 -07:00
2026-05-20 04:12:40 -07:00
2026-03-26 00:10:53 -04:00
2026-07-03 21:45:21 -07:00
2026-06-03 22:35:28 -07:00
2026-06-26 13:57:00 -07:00
2026-07-12 19:39:42 -07:00
2026-05-16 09:21:06 -07:00
2026-06-03 13:02:23 -07:00
2026-04-24 23:16:29 -07:00
2026-06-27 09:28:29 -07:00
2026-06-27 12:15:42 -07:00
2026-06-10 09:21:48 -07:00
2026-04-25 18:22:37 -07:00
2026-07-11 17:16:49 -07:00
2026-05-23 15:57:48 -07:00
2026-07-13 19:07:58 -07:00
2026-06-10 09:21:48 -07:00
2026-07-02 18:28:06 -07:00
2026-06-21 13:25:40 -07:00
2026-07-14 15:07:26 -07:00
2026-06-13 11:46:53 -07:00
2026-07-09 19:58:03 -07:00
2026-05-02 08:05:33 -07:00
2026-06-30 08:20:07 -07:00
2026-04-09 13:01:19 -07:00
2026-06-10 09:21:48 -07:00
2026-07-13 19:07:58 -07:00
2026-06-30 01:50:52 -07:00
2026-05-05 12:14:20 -07:00
2026-05-06 02:14:05 -07:00
2026-04-16 10:04:44 -07:00
2026-07-15 15:30:55 -07:00
2026-05-21 18:15:26 -07:00
2026-04-23 23:02:35 -07:00
2026-07-03 03:15:17 -04:00
2026-06-07 02:26:00 +07:00
2026-04-23 23:02:36 -07:00
2026-06-03 19:06:53 -07:00
2026-06-10 09:21:48 -07:00
2026-04-24 08:55:02 -07:00
2026-06-10 09:21:48 -07:00
2026-04-10 02:59:38 -07:00
2026-05-19 08:13:07 -07:00
2026-05-21 18:15:26 -07:00
2026-07-08 15:24:01 -07:00
2026-06-23 20:03:44 -07:00
2026-06-17 03:29:39 -07:00
2026-05-01 13:08:07 -07:00
2026-04-13 18:21:31 -07:00
2026-04-20 10:16:13 -07:00
2026-05-08 08:37:26 -07:00
2026-05-07 23:21:05 -07:00
2026-06-23 19:28:22 -07:00
2026-05-29 21:32:09 -07:00
2026-07-05 13:15:56 -07:00
2026-07-12 11:23:23 -07:00
2026-07-11 18:52:28 -07:00
2026-07-11 00:01:10 -07:00
2026-07-03 07:47:03 -07:00
2026-05-23 00:03:22 -07:00
2026-06-03 20:52:44 -07:00
2026-07-14 17:18:06 -07:00
2026-04-27 01:40:07 -07:00
2026-06-10 09:21:48 -07:00
2026-07-01 15:39:33 -07:00
2026-07-07 22:06:23 -07:00
2026-06-29 23:17:49 -07:00
2026-07-12 12:49:37 -07:00
2026-04-23 23:02:36 -07:00
2026-07-03 23:16:58 -07:00
2026-06-10 09:21:48 -07:00