feat(platform): add loading state for /me/ai-usage - #162
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Every
[tenant]route got aloading.tsxskeleton in an earlier pass(#155), but
/me/ai-usagelives outside the[tenant]segment(
src/app/me/ai-usage/) and was missed — clicking "Meu uso de IA" in theuser 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.tsxin the app.Test plan
npx tsc --noEmit— cleannpm run lint— cleannpm run test— 267/267 passingthe 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