Skip to content

Include ZIP filename in Studio export success/failure toast - #1811

Draft
groupthinking with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-studio-export-toast
Draft

Include ZIP filename in Studio export success/failure toast#1811
groupthinking with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-studio-export-toast

Conversation

Copilot AI commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Canonical issue

Linked by system automation.

Outcome

Studio export now emits one live-region toast with a clear outcome message that always includes the .zip filename on both success and failure paths.

Scope

  • Included:
    • Toast message contract: studioExportToastMessage now appends filename for error/empty outcomes, not just success.
    • Studio export wiring: OneLoopStudio.exportPkg derives the export filename once and passes it to all toast branches (empty, success, catch).
    • Regression coverage: export toast test now asserts filename presence in failure text.
    • Example:
      const toast = studioExportToastMessage({
        ok: false,
        error: 'Disk full',
        filename: 'AI Gold Rushes.zip',
      });
      // => "Disk full (AI Gold Rushes.zip)"
  • Explicitly excluded:
    • No changes to export package generation/download behavior.
    • No additional toasts, UI flow changes, or accessibility role changes.

Risk

  • Risk level: low
  • Failure mode: toast text formatting regressions (message composition only).
  • Rollback: revert touched files in apps/web/src/components/OneLoopStudio.tsx and apps/web/src/lib/studio-pipeline-status.ts.

Verification

Head SHA: 91083bb

  • Focused tests
  • Required CI
  • Review threads resolved

Production evidence

Not applicable for this PR: change is local UI toast copy/format behavior with no deploy/runtime contract change.

Agent handoff

  • One canonical issue is linked
  • No competing PR implements the same issue
  • Acceptance criteria are satisfied
  • Required checks pass on the current head
  • Human decision is requested only for product, security, irreversible infrastructure, or production approval

@vercel

vercel Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
v0-uvai Ready Ready Preview, v0 Sep 8, 2026 11:08pm UTC

Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix Studio export toast to include ZIP filename Include ZIP filename in Studio export success/failure toast Sep 8, 2026
Copilot AI requested a review from groupthinking September 8, 2026 23:08
};

const exportPkg = () => {
const filename = studioExportFilename(selected?.title || 'uvai-project');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Export toast displays an unsanitized filename (e.g. AI Gold Rushes.zip) that does not match the sanitized ZIP actually downloaded (e.g. ai-gold-rushes.zip).

Fix on Vercel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Studio export toast success/failure to include ZIP filename

2 participants