Skip to content

feat(platform): add loading state for /me/ai-usage - #162

Merged
clickmatos merged 1 commit into
mainfrom
feat/me-ai-usage-loading-state
Aug 13, 2026
Merged

feat(platform): add loading state for /me/ai-usage#162
clickmatos merged 1 commit into
mainfrom
feat/me-ai-usage-loading-state

Conversation

@clickmatos

Copy link
Copy Markdown
Contributor

Summary

Every [tenant] route got a loading.tsx skeleton in an earlier pass
(#155), but /me/ai-usage lives outside the [tenant] segment
(src/app/me/ai-usage/) and was missed — clicking "Meu uso de IA" in the
user menu showed nothing while the page's Supabase query
(getPersonalAIUsage) resolved.

Added a skeleton mirroring the page's real layout (header, 4 summary
cards, trend chart card, per-repo table card), matching the same
convention as every other loading.tsx in the app.

Test plan

  • npx tsc --noEmit — clean
  • npm run lint — clean
  • npm run test — 267/267 passing
  • Manual check: click "Meu uso de IA" in the user menu and confirm
    the skeleton renders while the page loads (this sandbox has no
    Supabase/NextAuth credentials configured, so I couldn't drive this
    through an authenticated browser session — the change follows the
    identical pattern already shipped and working for every other route's
    loading.tsx)

🤖 Generated with Claude Code

Every [tenant] route got a loading.tsx skeleton in an earlier pass, but
/me/ai-usage lives outside the [tenant] segment and was missed — clicking
"Meu uso de IA" showed nothing while the page's Supabase query resolved.

Mirrors the page's real layout: header, 4 summary cards, trend chart
card, per-repo table card — same convention as every other loading.tsx
in the app.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 13, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
clickbus-iris Ready Ready Preview Aug 13, 2026 9:21pm

Request Review

@clickmatos
clickmatos merged commit 3511450 into main Aug 13, 2026
5 checks passed
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