feat(disclaimer): add content disclaimer component and integrate into… - #8040
feat(disclaimer): add content disclaimer component and integrate into…#8040fairlighteth wants to merge 4 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. WalkthroughThe PR adds a configured ChangesContent disclaimer
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This localized disclaimer change is merge-ready after normal checks and review; no actionable merge-blocking risk remains. Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant LearnOrTokensLayout
participant ContentDisclaimer
participant CONFIG
participant Browser
LearnOrTokensLayout->>ContentDisclaimer: render after page content
ContentDisclaimer->>CONFIG: read title and body
ContentDisclaimer->>Browser: render accessible note
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description includes the required Summary, To Test, Background, and Self-checks sections. It explains the implementation, route coverage, testing steps, and local verification. The unchecked self-check items are non-critical. ✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
Summary
Linear: FE-456
Adds a shared content disclaimer before the footer across CoW DAO’s Learn and token pages.
CONFIG.contentDisclaimerContentDisclaimercomponent usingrole="note"/learnand all nested Learn pages, including articles and topics/tokensand all token detail pages1.3remtextTo Test
Start cow-fi with
pnpm start:cowfi.Check the Learn routes:
/learn/learn/articles/tokens/tokens/[tokenId]detail pageBackground
FE-456 requested a disclaimer on the Learn index and article detail pages so visitors landing directly on content still see it.
The disclaimer is mounted at the route-layout level instead of individual pages. This ensures consistent coverage for all current and future routes under
/learn/**and/tokens/**without duplicating the implementation.Local verification completed on
/learn, an article detail page,/tokens, and a token detail page. The cow-fi test suite passes with 36 tests.Self-checks
Summary by CodeRabbit
New Features
Bug Fixes
Tests