Skip to content

Conversation

@tristandubbeld
Copy link
Contributor

Summary

Creates a minimal GraphQL fragment for recentlyAccessedSandboxes, removing fields not used on the Recent page.

Changes

  • Created RECENTLY_ACCESSED_SANDBOX_FRAGMENT colocated with the query (similar to searchTeamSandboxes)
  • Removed unused fields from sandboxFragmentDashboard:
    • description, insertedAt, updatedAt, removedAt, isFrozen, viewCount, likeCount, authorId, teamId, permissions
  • Kept essential fields for Recent page display:
    • id, alias, title, lastAccessedAt, privacy, restricted, draft, isV2, screenshotUrl
    • Template info (source, customTemplate, forkedTemplate)
    • collection and author for display
  • Updated TypeScript types to include RecentlyAccessedSandboxFragment in:
    • DashboardSandboxStructure.RECENT_SANDBOXES
    • DashboardSandbox union type
    • DashboardSandboxFragment union type

Impact

Reduces payload size for the recently accessed sandboxes query by fetching only fields used on the Recent page.

@codesandbox
Copy link

codesandbox bot commented Nov 25, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@tristandubbeld tristandubbeld merged commit 8135aa4 into main Nov 25, 2025
12 checks passed
@tristandubbeld tristandubbeld deleted the tristan/csb-712-remove-irrelevant-fields-for-the-right-recentlyaccessedsandboxes branch November 25, 2025 13:48
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