Skip to content

Comments

Fix SuperJSON import to use default export#623

Merged
jthrilly merged 2 commits intopedigree-stablefrom
copilot/sub-pr-619-again
Feb 10, 2026
Merged

Fix SuperJSON import to use default export#623
jthrilly merged 2 commits intopedigree-stablefrom
copilot/sub-pr-619-again

Conversation

Copy link
Contributor

Copilot AI commented Feb 10, 2026

  • Fix SuperJSON import in app/dashboard/_components/ProtocolsTable/ProtocolsTableClient.tsx to use default import instead of named import
  • Verify the change doesn't break functionality
  • Run linting and type checking
  • Reply to initial review comment
  • Code review completed (no issues found)
  • Security scan completed (no issues found)
  • Verified no other incorrect SuperJSON imports exist in the codebase

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel
Copy link

vercel bot commented Feb 10, 2026

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

Project Deployment Actions Updated (UTC)
fresco-sandbox Ready Ready Preview, Comment Feb 10, 2026 4:39pm

Request Review

Co-authored-by: jthrilly <1387940+jthrilly@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 10, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • checkpoint.prisma.io
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node /home/REDACTED/work/Fresco/Fresco/node_modules/.pnpm/prisma@7.3.0_@types&#43;react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1_typescript@5.9.3/node_modules/prisma/build/child {&#34;product&#34;:&#34;prisma&#34;,&#34;version&#34;:&#34;7.3.0&#34;,&#34;cli_install_type&#34;:&#34;local&#34;,&#34;information&#34;:&#34;&#34;,&#34;local_timestamp&#34;:&#34;2026-02-10T16:31:13Z&#34;,&#34;project_hash&#34;:&#34;ae2c8f24&#34;,&#34;cli_path&#34;:&#34;/home/REDACTED/work/Fresco/Fresco/node_modules/prisma/build/index.js&#34;,&#34;cli_path_hash&#34;:&#34;fb3d3539&#34; (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Address feedback from review on Pedigree stable PR Fix SuperJSON import to use default export Feb 10, 2026
Copilot AI requested a review from jthrilly February 10, 2026 16:35
@jthrilly
Copy link
Member

@copilot - please check for any other imports in the format import { SuperJSON } from 'superjson' and update to the new format.

Copy link
Contributor Author

Copilot AI commented Feb 10, 2026

@copilot - please check for any other imports in the format import { SuperJSON } from 'superjson' and update to the new format.

I've checked the entire codebase and confirmed there are no other instances of import { SuperJSON } from 'superjson'. All SuperJSON imports are now using the correct default import pattern:

  • import SuperJSON from 'superjson' (used in InterviewShell.tsx, ProtocolsTableClient.tsx, ParticipantsTableClient.tsx, RecruitmentTestSection.tsx, and preview pages)
  • import superjson from 'superjson' (used in actions/interviews.ts and export components)

The only named imports from superjson are for stringify, which is a valid named export (used in queries/protocols.ts, queries/interviews.ts, queries/participants.ts).

All imports are now correct and no further changes are needed.

@jthrilly jthrilly marked this pull request as ready for review February 10, 2026 16:37
Copilot AI review requested due to automatic review settings February 10, 2026 16:37
@jthrilly jthrilly merged commit af950d4 into pedigree-stable Feb 10, 2026
2 of 3 checks passed
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the SuperJSON import in the dashboard protocols table client component to use the library’s default export, aligning with existing SuperJSON usage elsewhere in the repo and preventing import/runtime errors.

Changes:

  • Replace import { SuperJSON } from 'superjson' with import SuperJSON from 'superjson' in ProtocolsTableClient.tsx.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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