Skip to content

Read public dashboards directly in Server Components - #1185

Open
jasonhedman wants to merge 2 commits into
json/lazy-trpc-authfrom
json/server-dashboard-reads
Open

Read public dashboards directly in Server Components#1185
jasonhedman wants to merge 2 commits into
json/lazy-trpc-authfrom
json/server-dashboard-reads

Conversation

@jasonhedman

@jasonhedman jasonhedman commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Read public dashboard data directly through the existing native cached service functions in Server Components, then pass results to interactive charts and tables. This removes tRPC prefetch, hydration wrappers, and suspense query hooks from Discover, Networks, Facilitators, facilitator details, and server details.

Keep URL-driven filters, sorting and pagination, component-level Suspense boundaries, and existing matching skeletons. Independent statistics reads run concurrently. Service schemas supply the same defaults as the previous router calls; server-origin validation remains shared with metadata.

Review the route-local async data components first, then their client views. The server overview test checks immediate shell rendering, concurrent analytics reads, and missing-origin behavior. This PR depends on the preceding lazy-auth PR and native cache stack.

Validation: pnpm check passed all 35 tasks (255 app tests), including UI contract/integrity; production next build passed and reports partial prerendering for the public routes. Independent review found no actionable issues. Browser verification confirmed Networks rendering, URL timeframe changes, matching loading states, and refreshed data. Full service-list/detail validation remains blocked by the configured scan database credentials (28P01 authentication failure); the local AgentCash catalog was also unavailable.

@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
x402scan Ready Ready Preview Sep 9, 2026 7:18pm UTC

Request Review

@jasonhedman
jasonhedman removed this pull request from stack #1183 September 9, 2026 14:39
@jasonhedman
jasonhedman added this pull request to stack #1128 September 9, 2026 14:40
@jasonhedman
jasonhedman marked this pull request as ready for review September 9, 2026 14:43
@jasonhedman
jasonhedman force-pushed the json/server-dashboard-reads branch from 644b97e to fed3251 Compare September 9, 2026 15:02
@jasonhedman
jasonhedman force-pushed the json/server-dashboard-reads branch from fed3251 to bcaa3af Compare September 9, 2026 15:11
@jasonhedman
jasonhedman force-pushed the json/server-dashboard-reads branch from bcaa3af to 704bc37 Compare September 9, 2026 15:13
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.

1 participant