From 9df1a55c48648ce438d05c9ed5130e9cc4a8aa75 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Fri, 15 May 2026 04:14:56 +0200 Subject: [PATCH] feat(frontend): federation tab on own profile --- .../app/users/[username]/page.tsx | 53 ++++++++++++------- 1 file changed, 35 insertions(+), 18 deletions(-) diff --git a/thoughts-frontend/app/users/[username]/page.tsx b/thoughts-frontend/app/users/[username]/page.tsx index 4cb347f..659e17b 100644 --- a/thoughts-frontend/app/users/[username]/page.tsx +++ b/thoughts-frontend/app/users/[username]/page.tsx @@ -53,6 +53,8 @@ import { buildThoughtThreads } from "@/lib/utils"; import { ThoughtThread } from "@/components/thought-thread"; import { Button } from "@/components/ui/button"; import Link from "next/link"; +import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; +import { FederationPanel } from "@/components/federation/federation-panel"; interface ProfilePageProps { params: Promise<{ username: string }>; @@ -250,24 +252,39 @@ export default async function ProfilePage({ params }: ProfilePageProps) { id="profile-card__thoughts" className="col-span-1 lg:col-span-3 space-y-4" > - {thoughtThreads.map((thought) => ( - - ))} - {thoughtThreads.length === 0 && ( - -

- This user hasn't posted any public thoughts yet. -

-
- )} + + + Thoughts + {isOwnProfile && ( + Federation + )} + + + {thoughtThreads.map((thought) => ( + + ))} + {thoughtThreads.length === 0 && ( + +

+ This user hasn't posted any public thoughts yet. +

+
+ )} +
+ {isOwnProfile && ( + + + + )} +