Skip to content

Conversation

@ben-fornefeld
Copy link
Member

@ben-fornefeld ben-fornefeld commented Nov 18, 2025

Note

Move Templates from server actions to tRPC (queries/mutations) with React Query, add prefetch/hydration, and refine telemetry and prefetch utilities.

  • Templates data layer (tRPC + React Query)
    • Add templatesRouter with getTemplates, getDefaultTemplatesCached, updateTemplate, deleteTemplate; register in trpcAppRouter.
    • Update TemplatesTable and cells to use useTRPC + useSuspenseQuery/useMutation with optimistic updates and error toasts; remove server actions and old fetching modules.
    • Convert templates page to RSC prefetch + HydrateClient + Suspense with LoadingLayout and client-side ErrorBoundary handling.
  • Prefetch utilities
    • Introduce non-blocking prefetch(...) and keep prefetchAsync(...); update Sandboxes/Templates pages to use non-awaited prefetch.
  • Telemetry middleware
    • Simplify handler signature; adjust logging/status behavior for internal errors (log serialized error, obfuscate only when cause exists); tweak success log message.
  • Removals/Cleanup
    • Remove legacy templates server actions and helpers (server/templates/*, templates route loading.tsx).

Written by Cursor Bugbot for commit bb321c8. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Nov 18, 2025

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

Project Deployment Preview Comments Updated (UTC)
web Ready Ready Preview Comment Nov 19, 2025 11:51am
web-juliett Ready Ready Preview Comment Nov 19, 2025 11:51am

@ben-fornefeld ben-fornefeld merged commit 3c4dfe7 into main Nov 19, 2025
6 checks passed
@ben-fornefeld ben-fornefeld deleted the feat/builds-list-and-details branch November 19, 2025 11:52
...(templatesData?.templates ?? []),
],
[templatesData, defaultTemplatesData]
)
Copy link

Choose a reason for hiding this comment

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

Bug: Template display order reversed

The templates array now places default templates before team templates, reversing the original order where team templates appeared first. Since there's no default sorting applied, this changes the display order in the UI. The original code had team templates first, then default templates.

Fix in Cursor Fix in Web

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants