Skip to content

Commit 280d6fe

Browse files
committed
Playground: Revamp
1 parent ed65f4c commit 280d6fe

File tree

99 files changed

+4113
-1624
lines changed

Some content is hidden

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

99 files changed

+4113
-1624
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
export function TokenIcon(props: { className?: string }) {
2+
return (
3+
<svg
4+
xmlns="http://www.w3.org/2000/svg"
5+
width="24"
6+
height="24"
7+
viewBox="0 0 24 24"
8+
fill="none"
9+
role="presentation"
10+
className={props.className}
11+
>
12+
<path
13+
d="M15.9377 15.9377C19.3603 15.4795 22 12.548 22 9C22 5.13401 18.866 2 15 2C11.452 2 8.52049 4.63967 8.06227 8.06227M16 15C16 18.866 12.866 22 9 22C5.13401 22 2 18.866 2 15C2 11.134 5.13401 8 9 8C12.866 8 16 11.134 16 15Z"
14+
stroke="currentColor"
15+
strokeWidth="2"
16+
strokeLinecap="round"
17+
strokeLinejoin="round"
18+
/>
19+
</svg>
20+
);
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
export function WalletProductIcon(props: { className?: string }) {
2+
return (
3+
<svg
4+
xmlns="http://www.w3.org/2000/svg"
5+
width="24"
6+
height="24"
7+
viewBox="0 0 24 24"
8+
fill="none"
9+
role="presentation"
10+
className={props.className}
11+
>
12+
<path
13+
d="M16 7.99995V4.5006C16 3.66887 16 3.253 15.8248 2.99742C15.6717 2.77413 15.4346 2.62245 15.1678 2.57703C14.8623 2.52505 14.4847 2.69932 13.7295 3.04787L4.85901 7.14194C4.18551 7.45279 3.84875 7.60822 3.60211 7.84927C3.38406 8.06237 3.21762 8.3225 3.1155 8.60978C3 8.93474 3 9.30563 3 10.0474V14.9999M16.5 14.4999H16.51M3 11.2L3 17.7999C3 18.9201 3 19.4801 3.21799 19.9079C3.40973 20.2843 3.71569 20.5902 4.09202 20.782C4.51984 20.9999 5.07989 20.9999 6.2 20.9999H17.8C18.9201 20.9999 19.4802 21 19.908 20.782C20.2843 20.5902 20.5903 20.2843 20.782 19.9079C21 19.4801 21 18.9201 21 17.7999V11.2C21 10.0798 21 9.51979 20.782 9.09197C20.5903 8.71565 20.2843 8.40969 19.908 8.21794C19.4802 7.99995 18.9201 7.99995 17.8 7.99995L6.2 7.99995C5.0799 7.99995 4.51984 7.99995 4.09202 8.21794C3.7157 8.40968 3.40973 8.71564 3.21799 9.09197C3 9.51979 3 10.0798 3 11.2ZM17 14.4999C17 14.7761 16.7761 14.9999 16.5 14.9999C16.2239 14.9999 16 14.7761 16 14.4999C16 14.2238 16.2239 13.9999 16.5 13.9999C16.7761 13.9999 17 14.2238 17 14.4999Z"
14+
stroke="currentColor"
15+
strokeWidth="2"
16+
strokeLinecap="round"
17+
strokeLinejoin="round"
18+
/>
19+
</svg>
20+
);
21+
}

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/TeamSidebarLayout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"use client";
22
import {
3+
AtomIcon,
34
BookTextIcon,
45
BoxIcon,
56
ChartNoAxesColumnIcon,
@@ -51,7 +52,7 @@ export function TeamSidebarLayout(props: {
5152
},
5253
],
5354
subMenu: {
54-
icon: WalletCardsIcon,
55+
icon: AtomIcon,
5556
label: "Ecosystems",
5657
},
5758
},

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/ProjectSidebarLayout.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ import {
44
BellIcon,
55
BookTextIcon,
66
BoxIcon,
7-
CoinsIcon,
87
HomeIcon,
98
LockIcon,
109
RssIcon,
1110
SettingsIcon,
12-
WalletIcon,
1311
} from "lucide-react";
1412
import { FullWidthSidebarLayout } from "@/components/blocks/full-width-sidebar-layout";
1513
import { Badge } from "@/components/ui/badge";
1614
import { ContractIcon } from "@/icons/ContractIcon";
1715
import { InsightIcon } from "@/icons/InsightIcon";
1816
import { PayIcon } from "@/icons/PayIcon";
1917
import { SmartAccountIcon } from "@/icons/SmartAccountIcon";
18+
import { TokenIcon } from "@/icons/TokenIcon";
19+
import { WalletProductIcon } from "@/icons/WalletProductIcon";
2020

2121
export function ProjectSidebarLayout(props: {
2222
layoutPath: string;
@@ -48,7 +48,7 @@ export function ProjectSidebarLayout(props: {
4848
links: [
4949
{
5050
href: `${layoutPath}/wallets`,
51-
icon: WalletIcon,
51+
icon: WalletProductIcon,
5252
label: "Wallets",
5353
},
5454
{
@@ -85,7 +85,7 @@ export function ProjectSidebarLayout(props: {
8585
},
8686
{
8787
href: `${layoutPath}/tokens`,
88-
icon: CoinsIcon,
88+
icon: TokenIcon,
8989
label: (
9090
<span className="flex items-center gap-2">
9191
Tokens <Badge>New</Badge>

apps/playground-web/next.config.mjs

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,37 @@ const nextConfig = {
113113
},
114114
{
115115
source: "/wallets/account-abstraction/sponsor",
116-
destination: "/wallets/account-abstraction/eip-4337",
116+
destination: "/account-abstraction/eip-4337",
117117
permanent: false,
118118
},
119119
{
120120
source: "/wallets/account-abstraction/7702",
121-
destination: "/wallets/account-abstraction/eip-7702",
121+
destination: "/account-abstraction/eip-7702",
122122
permanent: false,
123123
},
124124
{
125125
source: "/wallets/account-abstraction/5792",
126-
destination: "/wallets/account-abstraction/eip-5792",
126+
destination: "/account-abstraction/eip-5792",
127+
permanent: false,
128+
},
129+
{
130+
source: "/wallets/account-abstraction/native-aa",
131+
destination: "/account-abstraction/native-aa",
132+
permanent: false,
133+
},
134+
{
135+
source: "/wallets/headless/token-components",
136+
destination: "/tokens/token-components",
137+
permanent: false,
138+
},
139+
{
140+
source: "/wallets/headless/nft-components",
141+
destination: "/tokens/nft-components",
142+
permanent: false,
143+
},
144+
{
145+
source: "/wallets/in-app-wallet/ecosystem",
146+
destination: "/wallets/ecosystem-wallet",
127147
permanent: false,
128148
},
129149
];

apps/playground-web/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"@abstract-foundation/agw-react": "^1.6.4",
44
"@hookform/resolvers": "^3.9.1",
55
"@radix-ui/react-checkbox": "^1.3.2",
6+
"@radix-ui/react-collapsible": "^1.1.11",
7+
"@radix-ui/react-dialog": "1.1.14",
68
"@radix-ui/react-label": "^2.1.7",
79
"@radix-ui/react-popover": "^1.1.14",
810
"@radix-ui/react-progress": "^1.1.7",
6.6 KB
Loading

apps/playground-web/public/og/icons/contract.svg

Lines changed: 30 additions & 0 deletions
Loading
Lines changed: 96 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)