Artifact-registration mail messages now expose the task that produced the artifact so users can jump straight to it from the mailbox.
- MailboxArtifactAttachment renders a "View task" button when message.metadata.taskId is present and an onOpenTask handler is supplied, alongside the existing Open artifact affordance
- MailboxModal and MailboxView thread taskId metadata and onOpenTask through to MailboxArtifactAttachment for both the message-list and detail-pane renders
- MainContent wires MailboxView's onOpenTask to the shared fetchTaskDetail -> openDetailTask path, with a toast on failure, so mailbox reuses the existing task-detail flow
- docs/dashboard-guide.md documents the new View task affordance for artifact notifications
- adds a minor changeset for @runfusion/fusion describing the new mail notification behavior
- extends MailboxArtifactAttachment and MailboxView tests to cover the new taskId/onOpenTask wiring
Files changed:
.changeset/fn-7924-artifact-mail-view-task-link.md | 7 ++++
docs/dashboard-guide.md | 2 +-
.../app/components/MailboxArtifactAttachment.tsx | 20 ++++++++++
packages/dashboard/app/components/MailboxModal.css | 2 +-
packages/dashboard/app/components/MailboxModal.tsx | 6 +++
packages/dashboard/app/components/MailboxView.tsx | 6 +++
.../__tests__/MailboxArtifactAttachment.test.tsx | 35 ++++++++++++++++-
.../app/components/__tests__/MailboxView.test.tsx | 45 +++++++++++++++++++++-
.../app/components/dashboard/MainContent.tsx | 6 +++
9 files changed, 124 insertions(+), 5 deletions(-)
Fusion-Task-Id: FN-7924
Fusion-Task-Lineage: 800102e1-9025-40da-8130-9ab0e8acd747
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>