Skip to content

feat(routing): per-segment loading.tsx for marketing/auth/chatbot/wizard#32

Open
abdout wants to merge 1 commit into
mainfrom
feat/per-segment-loading
Open

feat(routing): per-segment loading.tsx for marketing/auth/chatbot/wizard#32
abdout wants to merge 1 commit into
mainfrom
feat/per-segment-loading

Conversation

@abdout
Copy link
Copy Markdown
Contributor

@abdout abdout commented Apr 25, 2026

Summary

  • Adds 4 new `loading.tsx` files, one per route group (`(marketing)`, `(auth)`, `chatbot`, `wizard`), each with a tailored skeleton matching the segment's layout.
  • The existing `[lang]/loading.tsx` still acts as the fallback for any segment without its own.

Changes

  • `src/app/[lang]/(marketing)/loading.tsx` — heading + 3-card grid
  • `src/app/[lang]/(auth)/loading.tsx` — narrow centered column with form-row skeletons
  • `src/app/[lang]/chatbot/loading.tsx` — header bar + 2×2 question-tile grid
  • `src/app/[lang]/wizard/loading.tsx` — split layout with form-side skeleton

Test plan

  • Throttled-3G navigation to `/en/pricing` shows marketing skeleton
  • `/ar/login` shows auth-form skeleton (RTL safe — uses `mx-auto` centering)
  • `/en/chatbot` shows chatbot skeleton
  • `/en/wizard` shows wizard split-layout skeleton

Closes #31

🤖 Generated with Claude Code

Adds tailored skeletons for the four route groups so streaming
boundaries match the segment layout rather than falling back to the
generic [lang]/loading.tsx.

Closes #31

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 25, 2026

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

Project Deployment Actions Updated (UTC)
marketing Ready Ready Preview, Comment Apr 25, 2026 1:58pm

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.

feat(routing): per-segment loading.tsx for marketing/auth/chatbot/wizard

1 participant