Skip to content

refactor(layout): PageShell and PageHeader behind the three-column frame - #382

Merged
PastaPastaPasta merged 2 commits into
stagingfrom
refactor/page-shell
Sep 7, 2026
Merged

refactor(layout): PageShell and PageHeader behind the three-column frame#382
PastaPastaPasta merged 2 commits into
stagingfrom
refactor/page-shell

Conversation

@PastaPastaPasta

Copy link
Copy Markdown
Owner

Summary

  • components/layout/page-shell.tsx: PageShell (Sidebar, 700px centre <main>, RightSidebar; mainClassName for centred spinner/empty frames, hideRightSidebar for wide views) and PageHeader (the sticky translucent bar; borderless for headers with their own tab strip; reads potato mode itself).
  • 24 pages rebuilt on them: 50 frame copies and 23 header copies removed. Pages with modals after the frame wrap in a fragment.
  • 20 pages no longer subscribe to the settings store just to pick the header blur; FeedHeader drops its potatoMode prop.
  • Not touched: app/blog/page.tsx (its own wide-mode frame with a different centre column) and the landing page (its own hero layout).

Markup is unchanged: the same three div/main wrappers with the same classes, and the same header classes.

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

Test plan

  • npm run lint (zero warnings), tsc --noEmit, npm run test, npx knip, npm run build all green locally
  • CI
  • Manual: feed, a post, a profile, settings (modals still mount), store view loading/empty states, potato mode toggle removes the header blur

🤖 Generated with Claude Code

Twenty-four pages each carried the same Sidebar / 700px main column / RightSidebar frame (fifty copies counting loading and empty states) and twenty-three carried the same sticky translucent header with the potato-mode blur toggle. components/layout/page-shell.tsx holds both once. Pages that put modals after the frame wrap in a fragment; centred spinner and empty-state frames pass mainClassName; the two headers that own a tab strip pass borderless.

Every page that only read potatoMode for the header no longer subscribes to the settings store; FeedHeader drops its potatoMode prop for the same reason. Blog stays on its own wide-mode frame.
@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: d64f1999-3a4c-4dfe-a666-96fde1d6c416

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.

The regex conversion skipped this page because its early-return frame has no main column; the full-page return was the canonical 700px frame and belongs on PageShell like the rest.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 7, 2026

Copy link
Copy Markdown

Deploying yappr-v2 with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3b3828f
Status: ✅  Deploy successful!
Preview URL: https://2c57258a.yappr-v2.pages.dev
Branch Preview URL: https://refactor-page-shell.yappr-v2.pages.dev

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 7, 2026

Copy link
Copy Markdown

Deploying yappr with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3b3828f
Status: ✅  Deploy successful!
Preview URL: https://1aa1adad.yappr.pages.dev
Branch Preview URL: https://refactor-page-shell.yappr.pages.dev

View logs

@PastaPastaPasta
PastaPastaPasta merged commit 59f42dd into staging Sep 7, 2026
10 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