Skip to content

refactor(landing): one WelcomePageContent behind / and /welcome - #381

Merged
PastaPastaPasta merged 1 commit into
stagingfrom
refactor/landing-page
Sep 7, 2026
Merged

refactor(landing): one WelcomePageContent behind / and /welcome#381
PastaPastaPasta merged 1 commit into
stagingfrom
refactor/landing-page

Conversation

@PastaPastaPasta

Copy link
Copy Markdown
Owner

Summary

  • app/page.tsx and app/welcome/page.tsx each carried the same 30-line hydration skeleton; the only difference was that / redirects a logged-in viewer to /feed. Both are now three-line wrappers.
  • WelcomePageContent owns the hydration gate, the skeleton (LandingSkeleton), and an opt-in redirectAuthenticated prop that / sets.
  • /welcome stays: the sidebar logo links to it so a logged-in user can still see the landing page.

Part of the anti-slop cleanup series (after #370#380).

Test plan

  • npm run lint (zero warnings), tsc --noEmit, npm run test, npx knip, npm run build all green locally
  • CI
  • Manual: / logged out shows the landing page; / logged in lands on /feed; sidebar logo → /welcome while logged in shows the landing page with "Go to Feed"

🤖 Generated with Claude Code

The two routes duplicated a 30-line hydration skeleton and differed only in whether a logged-in viewer is bounced to /feed. The skeleton and the hydration gate move into the component; the root route passes redirectAuthenticated and /welcome does not, so the sidebar logo can always reach the landing page.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying yappr-v2 with  Cloudflare Pages  Cloudflare Pages

Latest commit: daaddd6
Status:⚡️  Build in progress...

View logs

@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: a5577867-acf7-42ed-a736-7a2f12c1b690

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@PastaPastaPasta
PastaPastaPasta merged commit f64a000 into staging Sep 7, 2026
8 of 9 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