Skip to content

Commit bb29e1f

Browse files
committed
[TOOL-4033] Playground: UI revamp and cleanup, Improved engine playgrounds, updated theme (#6720)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR primarily focuses on removing unused assets and files, updating configurations, and enhancing UI components across the `playground-web` application. It also adds new constants and improves code structure for better maintainability. ### Detailed summary - Deleted numerous unused image files and TypeScript files. - Updated `postcss.config.js` and added Tailwind CSS configurations. - Enhanced UI components with consistent styling changes. - Introduced new constants for `mintExample` and `claimExample`. - Improved API handling in the `engine` actions. - Refactored several components to use `PageLayout` for better structure. - Added code examples for minting and airdrop functionalities. > The following files were skipped due to too many changes: `apps/playground-web/src/app/engine/airdrop/_components/airdrop-code.tsx`, `apps/playground-web/src/app/connect/pay/commerce/page.tsx`, `apps/playground-web/src/components/code/code-example.tsx`, `apps/playground-web/src/app/connect/in-app-wallet/ecosystem/page.tsx`, `apps/playground-web/src/components/blocks/APIHeader.tsx`, `apps/playground-web/src/app/connect/account-abstraction/connect/page.tsx`, `apps/playground-web/src/app/connect/pay/fund-wallet/page.tsx`, `apps/playground-web/src/app/connect/account-abstraction/sponsor/page.tsx`, `apps/playground-web/src/components/blocks/NetworkSelectors.tsx`, `apps/playground-web/src/app/connect/ui/page.tsx`, `apps/playground-web/src/app/connect/in-app-wallet/sponsor/page.tsx`, `apps/playground-web/src/components/in-app-wallet/custom-login-form.tsx`, `apps/playground-web/src/app/connect/pay/transactions/page.tsx`, `apps/playground-web/src/app/connect/in-app-wallet/page.tsx`, `apps/playground-web/src/components/in-app-wallet/profile-sections.tsx`, `apps/playground-web/src/app/connect/account-abstraction/native-aa/page.tsx`, `apps/playground-web/src/app/engine/airdrop/_components/airdrop-preview.tsx`, `apps/playground-web/src/components/headless-ui/token-examples.tsx`, `apps/playground-web/src/components/headless-ui/nft-examples.tsx`, `apps/playground-web/src/app/connect/sign-in/headless/page.tsx`, `apps/playground-web/src/app/connect/auth/page.tsx`, `apps/playground-web/src/app/globals.css`, `apps/playground-web/src/app/engine/webhooks/_components/webhooks-preview.tsx`, `apps/playground-web/src/app/connect/pay/embed/LeftSection.tsx`, `apps/playground-web/src/app/engine/airdrop/_components/airdrop-card.tsx`, `apps/playground-web/src/app/connect/blockchain-api/page.tsx`, `apps/playground-web/src/app/engine/minting/_components/mint-preview.tsx`, `apps/playground-web/src/components/headless-ui/account-examples.tsx`, `pnpm-lock.yaml` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 7682298 commit bb29e1f

File tree

146 files changed

+2839
-6434
lines changed

Some content is hidden

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

146 files changed

+2839
-6434
lines changed

apps/playground-web/knip.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://unpkg.com/knip@5/schema.json",
3+
"next": true,
4+
"ignore": ["src/components/ui/**", "src/app/insight/utils.ts"],
5+
"project": ["src/**"],
6+
"ignoreDependencies": ["server-only"],
7+
"ignoreBinaries": ["biome"]
8+
}

apps/playground-web/package.json

+6-9
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,30 @@
88
"start": "next start",
99
"format": "biome format ./src --write",
1010
"prelint": "biome check ./src",
11-
"lint": "eslint ./src",
11+
"lint": "biome check ./src && knip && eslint ./src",
1212
"prefix": "biome check ./src --fix",
1313
"fix": "eslint ./src --fix",
1414
"typecheck": "tsc --noEmit",
1515
"update-insight-blueprints": "bun scripts/updateInsightBlueprints.ts"
1616
},
1717
"dependencies": {
18-
"@abstract-foundation/agw-client": "^1.6.2",
1918
"@abstract-foundation/agw-react": "^1.5.4",
2019
"@hookform/resolvers": "^3.9.1",
21-
"@radix-ui/react-accordion": "^1.2.4",
2220
"@radix-ui/react-checkbox": "^1.1.5",
23-
"@radix-ui/react-dialog": "1.1.7",
24-
"@radix-ui/react-dropdown-menu": "^2.1.7",
2521
"@radix-ui/react-label": "^2.1.3",
2622
"@radix-ui/react-popover": "^1.1.7",
23+
"@radix-ui/react-progress": "^1.1.3",
2724
"@radix-ui/react-radio-group": "^1.2.4",
28-
"@radix-ui/react-scroll-area": "^1.2.4",
2925
"@radix-ui/react-select": "^2.1.7",
3026
"@radix-ui/react-separator": "^1.1.3",
3127
"@radix-ui/react-slot": "^1.2.0",
3228
"@radix-ui/react-switch": "^1.1.4",
33-
"@radix-ui/react-tabs": "^1.1.4",
3429
"@radix-ui/react-tooltip": "1.2.0",
3530
"@tanstack/react-query": "5.72.1",
3631
"@thirdweb-dev/engine": "^0.0.18",
3732
"class-variance-authority": "^0.7.1",
3833
"clsx": "^2.1.1",
39-
"jose": "6.0.10",
34+
"date-fns": "4.1.0",
4035
"lucide-react": "0.487.0",
4136
"next": "15.2.4",
4237
"next-themes": "^0.4.6",
@@ -52,17 +47,19 @@
5247
"shiki": "1.27.0",
5348
"tailwind-merge": "^2.6.0",
5449
"thirdweb": "workspace:*",
55-
"timeago.js": "^4.0.2",
5650
"use-debounce": "^10.0.4",
5751
"zod": "3.24.2"
5852
},
5953
"devDependencies": {
6054
"@types/node": "22.14.0",
6155
"@types/react": "19.1.0",
6256
"@types/react-dom": "19.1.1",
57+
"autoprefixer": "^10.4.21",
6358
"eslint": "8.57.0",
59+
"eslint-config-biome": "1.9.4",
6460
"eslint-config-next": "15.2.4",
6561
"eslint-plugin-react-compiler": "19.0.0-beta-e993439-20250405",
62+
"knip": "5.47.0",
6663
"postcss": "8.5.3",
6764
"tailwindcss": "3.4.17",
6865
"tailwindcss-animate": "^1.0.7",

apps/playground-web/postcss.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
};

apps/playground-web/postcss.config.mjs

-8
This file was deleted.
Binary file not shown.
-21 KB
Binary file not shown.

apps/playground-web/public/auth.png

-34.5 KB
Binary file not shown.
-644 KB
Binary file not shown.
-112 KB
Binary file not shown.
Binary file not shown.
-32.9 KB
Binary file not shown.
-51.1 KB
Binary file not shown.

apps/playground-web/public/pay.png

-32.8 KB
Binary file not shown.

apps/playground-web/public/ub.png

-54.4 KB
Binary file not shown.

apps/playground-web/src/app/api/airdrop/route.ts

-143
This file was deleted.

0 commit comments

Comments
 (0)