Skip to content

refactor(pages): one InfoPage shell behind about, legal and contract pages - #388

Merged
PastaPastaPasta merged 1 commit into
stagingfrom
refactor/info-pages
Sep 8, 2026
Merged

refactor(pages): one InfoPage shell behind about, legal and contract pages#388
PastaPastaPasta merged 1 commit into
stagingfrom
refactor/info-pages

Conversation

@PastaPastaPasta

Copy link
Copy Markdown
Owner

Summary

  • components/layout/info-page.tsx: InfoPage (back link, gradient title band, card, optional header extra, section spacing, "Last updated" footer), InfoSection (title with optional icon), Prose (body copy), TestnetNotice (the amber legal-page box).
  • Six pages rebuilt on it: about, about/private-feeds (frame only; it keeps its own Section/SubSection/callout helpers), privacy, terms, cookies, contract (wide column, stats row as headerExtra).
  • The about page's feature grid and resource links become data + one FeatureCard; the cookies page's two storage cards share StorageCard/StorageEntry.
  • 723 lines out, 448 in. Copy is unchanged; the about-topology test id the e2e suite reads is preserved.

Why not MDX: no MDX plugin is installed, and these pages carry icons, links, a computed contract id and a topology stamp, so a component shell was the smaller change.

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

Test plan

  • npm run lint (zero warnings), tsc --noEmit, npm run test, npx knip, npm run build all green locally
  • CI
  • Manual: each of the six pages renders with its title band, back link, sections and footer; /contract copy button; /about/private-feeds anchors still scroll

🤖 Generated with Claude Code

…pages

Six standalone pages each carried the same back link, gradient title band, card frame and Last-updated footer, and the four prose pages repeated a section heading and body-copy pattern per section. components/layout/info-page.tsx holds InfoPage (back target, width, header extra, spacing, footer), InfoSection, Prose and TestnetNotice. The prose pages read as their sections now; the private-feeds page keeps its own richer section helpers and only swaps the frame; the contract viewer passes its stats row as header content.

Copy is unchanged. The about page's data-testid the e2e suite reads is kept.
@coderabbitai

coderabbitai Bot commented Sep 8, 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: 31c89017-db29-435f-a705-7a23880cd4b6

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 814c3f2 into staging Sep 8, 2026
8 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