Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Commit 44e206f

Browse files
authored
Merge pull request #711 from aibtcdev/ai-t1
add title - The current Order
2 parents eab5f9f + 6d467d9 commit 44e206f

10 files changed

Lines changed: 744 additions & 127 deletions

File tree

src/app/aibtc-charter/page.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,9 @@ export default function AIBTCCharterPage() {
4040
);
4141
}
4242

43-
return <MissionContent description={dao.description} />;
43+
return (
44+
<div className="px-1 md:px-16">
45+
<MissionContent description={dao.description} />
46+
</div>
47+
);
4448
}

src/app/application-layout.tsx

Lines changed: 48 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,12 @@ export default function ApplicationLayout({
267267
>
268268
AIBTC Charter
269269
</Link>
270+
<Link
271+
href="/leaderboard"
272+
className="text-sm font-medium text-foreground/80 hover:text-foreground transition-colors duration-200"
273+
>
274+
Leaderboard
275+
</Link>
270276
{/* Notification Bell - commented out per requirements */}
271277
{/* {isAuthenticated && (
272278
<div className="mr-3">
@@ -346,16 +352,25 @@ export default function ApplicationLayout({
346352
{/* Sidebar Header */}
347353
<div className="flex items-center justify-between p-4 border-b border-border/20 relative z-10">
348354
<div className="flex items-center gap-3">
349-
<Image
350-
src="/logos/aibtcdev-avatar-1000px.png"
351-
alt="AIBTC"
352-
width={24}
353-
height={24}
354-
className="shadow-lg shadow-primary/20"
355-
/>
356-
<span className="text-lg font-bold text-foreground">
357-
Menu
358-
</span>
355+
<div className="flex flex-col gap-1">
356+
<Image
357+
src="/logos/aibtcdev-primary-logo-black-wide-1000px.png"
358+
alt="AIBTCDEV"
359+
width={100}
360+
height={24}
361+
className="h-6 w-auto block dark:hidden"
362+
/>
363+
<Image
364+
src="/logos/aibtcdev-primary-logo-white-wide-1000px.png"
365+
alt="AIBTCDEV"
366+
width={100}
367+
height={24}
368+
className="h-6 w-auto hidden dark:block"
369+
/>
370+
<span className="text-[10px] text-muted-foreground whitespace-nowrap">
371+
The Bitcoin Coordination Network
372+
</span>
373+
</div>
359374
</div>
360375
<Button
361376
variant="ghost"
@@ -367,12 +382,31 @@ export default function ApplicationLayout({
367382
</Button>
368383
</div>
369384

370-
{/* Navigation - Empty since items moved to dropdown */}
385+
{/* Navigation */}
371386
<nav className="flex-1 px-4 py-6 relative z-10 overflow-y-auto">
372387
<div className="space-y-3">
373-
<div className="text-center text-muted-foreground text-sm py-8">
374-
Use the dropdown menu above to navigate
375-
</div>
388+
<a
389+
href="https://docs.aibtc.com/how-aibtc-works"
390+
target="_blank"
391+
className="block px-4 py-3 text-sm font-medium text-foreground/80 hover:text-foreground hover:bg-primary/10 rounded-sm transition-colors duration-200"
392+
onClick={() => setLeftPanelOpen(false)}
393+
>
394+
How it works
395+
</a>
396+
<Link
397+
href="/aibtc-charter"
398+
className="block px-4 py-3 text-sm font-medium text-foreground/80 hover:text-foreground hover:bg-primary/10 rounded-sm transition-colors duration-200"
399+
onClick={() => setLeftPanelOpen(false)}
400+
>
401+
AIBTC Charter
402+
</Link>
403+
<Link
404+
href="/leaderboard"
405+
className="block px-4 py-3 text-sm font-medium text-foreground/80 hover:text-foreground hover:bg-primary/10 rounded-sm transition-colors duration-200"
406+
onClick={() => setLeftPanelOpen(false)}
407+
>
408+
Leaderboard
409+
</Link>
376410
</div>
377411
</nav>
378412
</div>

src/app/leaderboard/page.tsx

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
"use client";
2+
3+
import { useQuery } from "@tanstack/react-query";
4+
import { Loader } from "@/components/reusables/Loader";
5+
import LeaderboardView from "@/components/leaderboard/LeaderboardView";
6+
import { fetchAllUserMetrics } from "@/services/metrics.service";
7+
8+
export const runtime = "edge";
9+
10+
export default function LeaderboardPage() {
11+
const {
12+
data: metrics,
13+
isLoading,
14+
error,
15+
} = useQuery({
16+
queryKey: ["userMetrics"],
17+
queryFn: () => fetchAllUserMetrics(),
18+
staleTime: 30000, // 30 seconds
19+
});
20+
21+
if (isLoading) {
22+
return (
23+
<div className="flex justify-center items-center h-[100vh] w-full">
24+
<Loader />
25+
</div>
26+
);
27+
}
28+
29+
if (error) {
30+
return (
31+
<div className="flex justify-center items-center min-h-[200px] w-full">
32+
<div className="text-center">
33+
<h2 className="text-xl font-semibold mb-2">Error Loading Metrics</h2>
34+
<p className="text-muted-foreground">
35+
Failed to load user metrics. Please try again later.
36+
</p>
37+
</div>
38+
</div>
39+
);
40+
}
41+
42+
return <LeaderboardView metrics={metrics || []} />;
43+
}

src/components/aidaos/RootDAOPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ export function RootDAOPage({ children, daoName }: RootDAOPageProps) {
482482
</div>
483483
<div className="flex items-center gap-2">
484484
<span className="font-bold">Rewards:</span>
485-
<span className="font-medium">$3,630</span>
485+
<span className="font-medium">$4,005</span>
486486
</div>
487487
</div>
488488
</div>
@@ -533,6 +533,7 @@ submit daily at aibtc.com`}
533533
avatarUrl="/logos/aibtcdev-avatar-250px.png"
534534
verified={true}
535535
link="https://x.com/aibtcdev/status/1985732853540470816"
536+
title="The Current Order"
536537
/>
537538
</div>
538539
</div>

src/components/auth/XLinking.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export function XLinking({
129129
<div className="animate-spin rounded-sm h-6 w-6 border-2 border-primary border-t-transparent"></div>
130130
</div>
131131
) : needsXLink ? (
132-
<div className="flex items-start justify-between gap-3 p-4 bg-primary/5 rounded-sm">
132+
<div className="flex items-start justify-between gap-3 p-4 rounded-sm">
133133
<div className="flex items-start gap-2 flex-1">
134134
<svg
135135
className="w-4 h-4 flex-shrink-0 mt-0.5"

0 commit comments

Comments
 (0)