From eccb916ff84f306b034f551deb73ca28c1044623 Mon Sep 17 00:00:00 2001 From: Guido X Jansen Date: Thu, 5 Mar 2026 23:30:43 +0100 Subject: [PATCH] feat(layout): add "Your Data" link to footer navigation (#184) * chore: add .claude/worktrees to gitignore * feat(layout): add "Your Data" link to footer navigation Link to the seed "Your Data" page (/p/your-data) from the forum footer, positioned first in the footer nav to surface AT Protocol's public data model prominently. --- src/components/layout/forum-layout.test.tsx | 8 +++++++- src/components/layout/forum-layout.tsx | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/layout/forum-layout.test.tsx b/src/components/layout/forum-layout.test.tsx index a2a8641..7aa59fa 100644 --- a/src/components/layout/forum-layout.test.tsx +++ b/src/components/layout/forum-layout.test.tsx @@ -165,9 +165,15 @@ describe('ForumLayout', () => { expect(logos.length).toBeGreaterThan(0) }) + it('links footer your data to /p/your-data', () => { + render(Content) + const yourDataLink = screen.getByRole('link', { name: /your data/i }) + expect(yourDataLink).toHaveAttribute('href', '/p/your-data') + }) + it('links footer privacy to /p/privacy-policy', () => { render(Content) - const privacyLink = screen.getByRole('link', { name: /privacy/i }) + const privacyLink = screen.getByRole('link', { name: /^privacy$/i }) expect(privacyLink).toHaveAttribute('href', '/p/privacy-policy') }) diff --git a/src/components/layout/forum-layout.tsx b/src/components/layout/forum-layout.tsx index 496a69c..7d4cc33 100644 --- a/src/components/layout/forum-layout.tsx +++ b/src/components/layout/forum-layout.tsx @@ -134,6 +134,11 @@ export function ForumLayout({ children, sidebar, publicSettings }: ForumLayoutPr