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

Commit bedf723

Browse files
authored
Merge pull request #704 from aibtcdev/staging
Staging
2 parents cd66b6e + 4a2b889 commit bedf723

149 files changed

Lines changed: 2865 additions & 1909 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cursor/rules/style.mdc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ These rules govern TailwindCSS styling across all TypeScript files in a Next.js
4141
<button
4242
className={
4343
variant === 'primary'
44-
? 'flex px-4 py-2 text-base font-inter font-bold bg-primary text-foreground rounded-lg hover:scale-105 hover:shadow-lg focus:ring-2 ring-primary motion-reduce:transition-none sm:px-6 sm:text-lg'
45-
: 'flex px-4 py-2 text-base font-inter font-medium bg-transparent border border-secondary text-secondary rounded-lg hover:scale-105 focus:ring-2 ring-secondary motion-reduce:transition-none sm:px-6 sm:text-lg'
44+
? 'flex px-4 py-2 text-base font-inter font-bold bg-primary text-foreground rounded-sm hover:scale-105 hover:shadow-lg focus:ring-2 ring-primary motion-reduce:transition-none sm:px-6 sm:text-lg'
45+
: 'flex px-4 py-2 text-base font-inter font-medium bg-transparent border border-secondary text-secondary rounded-sm hover:scale-105 focus:ring-2 ring-secondary motion-reduce:transition-none sm:px-6 sm:text-lg'
4646
}
4747
aria-label={variant === 'primary' ? 'Primary action' : 'Secondary action'}
4848
>
@@ -55,7 +55,7 @@ These rules govern TailwindCSS styling across all TypeScript files in a Next.js
5555
```typescript
5656
// lib/utils/tailwind.ts
5757
export const cardStyles = {
58-
default: 'grid p-4 text-base font-inter bg-background text-foreground rounded-xl shadow-sm hover:shadow-lg hover:translate-z-5 transition duration-300 ease-in-out motion-reduce:transition-none sm:p-6 sm:text-lg',
58+
default: 'grid p-4 text-base font-inter bg-background text-foreground rounded-sm shadow-sm hover:shadow-lg hover:translate-z-5 transition duration-300 ease-in-out motion-reduce:transition-none sm:p-6 sm:text-lg',
5959
};
6060
```
6161

@@ -99,7 +99,7 @@ These rules govern TailwindCSS styling across all TypeScript files in a Next.js
9999
import { FC } from 'react';
100100
const Card: FC = () => (
101101
<div
102-
className="p-4 bg-blue-500 text-lg flex rounded-lg transition"
102+
className="p-4 bg-blue-500 text-lg flex rounded-sm transition"
103103
style={{ background: 'blue' }} // Uses custom CSS
104104
>
105105
Card Content

.cursor/rules/styles.mdc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ The `styles` folder manages TypeScript-related configurations for TailwindCSS, i
3636
```typescript
3737
// styles/tailwind.ts
3838
export const buttonStyles = {
39-
primary: 'flex px-4 py-2 text-base font-inter font-bold bg-primary text-foreground rounded-lg hover:scale-105 hover:shadow-lg focus:ring-2 ring-primary motion-reduce:transition-none sm:px-6 sm:text-lg',
40-
secondary: 'flex px-4 py-2 text-base font-inter font-medium bg-transparent border border-secondary text-secondary rounded-lg hover:scale-105 focus:ring-2 ring-secondary motion-reduce:transition-none sm:px-6 sm:text-lg',
39+
primary: 'flex px-4 py-2 text-base font-inter font-bold bg-primary text-foreground rounded-sm hover:scale-105 hover:shadow-lg focus:ring-2 ring-primary motion-reduce:transition-none sm:px-6 sm:text-lg',
40+
secondary: 'flex px-4 py-2 text-base font-inter font-medium bg-transparent border border-secondary text-secondary rounded-sm hover:scale-105 focus:ring-2 ring-secondary motion-reduce:transition-none sm:px-6 sm:text-lg',
4141
};
4242

4343
export const cardStyles = {
44-
default: 'grid p-4 text-base font-inter bg-background text-foreground rounded-xl shadow-sm hover:shadow-lg hover:translate-z-5 transition duration-300 ease-in-out motion-reduce:transition-none sm:p-6 sm:text-lg',
44+
default: 'grid p-4 text-base font-inter bg-background text-foreground rounded-sm shadow-sm hover:shadow-lg hover:translate-z-5 transition duration-300 ease-in-out motion-reduce:transition-none sm:p-6 sm:text-lg',
4545
};
4646
```
4747

@@ -90,5 +90,5 @@ The `styles` folder manages TypeScript-related configurations for TailwindCSS, i
9090

9191
```typescript
9292
// styles/tailwind.ts
93-
export const cardStyle = 'p-4 bg-primary text-lg flex rounded-lg transition'; // Incorrect class order, missing responsive variants, no accessibility focus
93+
export const cardStyle = 'p-4 bg-primary text-lg flex rounded-sm transition'; // Incorrect class order, missing responsive variants, no accessibility focus
9494
```

package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"cmdk": "^1.1.1",
6161
"cronstrue": "^2.61.0",
6262
"date-fns": "^4.1.0",
63-
"framer-motion": "^11.18.2",
63+
"framer-motion": "^12.23.24",
6464
"lucide-react": "^0.508.0",
6565
"next": "^15.3.3",
6666
"next-themes": "^0.4.6",

src/app/account/page.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ function AccountPageContent() {
1717
const { toast } = useToast();
1818
const searchParams = useSearchParams();
1919
const [isClient, setIsClient] = useState(false);
20-
const [activeTab, setActiveTab] = useState("profile");
20+
const [activeTab, setActiveTab] = useState("wallets");
2121

22-
// Get the tab parameter from URL, default to "profile"
23-
const initialTab = searchParams.get("tab") || "profile";
22+
// Get the tab parameter from URL, default to "wallets"
23+
const initialTab = searchParams.get("tab") || "wallets";
2424

2525
const { data: agents = [] } = useQuery({
2626
queryKey: ["agents", userId],
@@ -94,9 +94,9 @@ function AccountPageContent() {
9494
};
9595
default:
9696
return {
97-
title: "Wallets",
98-
description:
99-
"View your connected wallet, agent account, and agent wallet information.",
97+
// title: "Settings",
98+
// description:
99+
// "View your connected wallet, agent account, and agent wallet information.",
100100
};
101101
}
102102
};

src/app/aibtc-charter/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 { MissionContent } from "@/components/aidaos/MissionContent";
5+
import { fetchDAOByName } from "@/services/dao.service";
6+
import { Loader } from "@/components/reusables/Loader";
7+
8+
export const runtime = "edge";
9+
10+
export default function AIBTCCharterPage() {
11+
const { data: dao, isLoading } = useQuery({
12+
queryKey: ["dao", "AIBTC-BREW"],
13+
queryFn: () => fetchDAOByName("AIBTC-BREW"),
14+
});
15+
16+
if (isLoading) {
17+
return (
18+
<div className="flex justify-center items-center min-h-[400px] w-full">
19+
<div className="text-center space-y-4">
20+
<Loader />
21+
<p className="text-zinc-400">Loading charter...</p>
22+
</div>
23+
</div>
24+
);
25+
}
26+
27+
if (!dao) {
28+
return (
29+
<div className="flex justify-center items-center min-h-[400px] w-full">
30+
<div className="text-center space-y-4">
31+
<h2 className="text-2xl font-semibold text-white">
32+
Charter Not Found
33+
</h2>
34+
<p className="text-zinc-400">
35+
Could not find the AIBTC Brew charter information.
36+
</p>
37+
</div>
38+
</div>
39+
);
40+
}
41+
42+
return <MissionContent description={dao.description} />;
43+
}

0 commit comments

Comments
 (0)