Skip to content

Add download json button to Standalone Activities table#3675

Open
laurakwhit wants to merge 2 commits into
mainfrom
DT-4257-download-json
Open

Add download json button to Standalone Activities table#3675
laurakwhit wants to merge 2 commits into
mainfrom
DT-4257-download-json

Conversation

@laurakwhit

Copy link
Copy Markdown
Collaborator

Description & motivation 💭

Creates a shared DownloadJsonButton component and adds it to the /activities page table.

Screenshots (if applicable) 📸

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Make sure "Download JSON" button works as expected on

  • the /workflows table
  • the activities table
  • the /archival table

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

DT-4257

Docs

Any docs updates needed?

@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
holocene Ready Ready Preview, Comment Jul 14, 2026 11:01pm

Request Review

@laurakwhit laurakwhit marked this pull request as ready for review July 14, 2026 22:54
@laurakwhit laurakwhit requested a review from a team as a code owner July 14, 2026 22:54
Comment on lines +10 to +12
a.href = URL.createObjectURL(file);
a.download = fileName;
a.click();

@tegan-temporal tegan-temporal Jul 14, 2026

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.

Suggested change
a.href = URL.createObjectURL(file);
a.download = fileName;
a.click();
const objUrl = URL.createObjectURL(file);
a.href = objUrl;
a.download = fileName;
a.click();
URL.revokeObjectURL(objUrl);

if you don't revoke the object url after you're done I think it's a memory leak

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.

2 participants