From bb1ca297c30359b1e28324a52041b203c211124b Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 15 Jan 2026 03:16:17 +0000
Subject: [PATCH 1/4] Initial plan
From 29360cd3db513568f46143f545c9f00ca4ea732d Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 15 Jan 2026 03:22:26 +0000
Subject: [PATCH 2/4] Simplify studio homepage with professional development
tool design
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
---
apps/playground/src/pages/Home.tsx | 185 ++++++++++++-----------------
1 file changed, 77 insertions(+), 108 deletions(-)
diff --git a/apps/playground/src/pages/Home.tsx b/apps/playground/src/pages/Home.tsx
index 70894a12c..493b535c2 100644
--- a/apps/playground/src/pages/Home.tsx
+++ b/apps/playground/src/pages/Home.tsx
@@ -20,26 +20,26 @@ export const Home = () => {
return (
- {/* Hero Section */}
-
-
-
-
-
+ {/* Header */}
+
+
+
+
+
-
Object UI Studio
+
Object UI Studio
-
+
navigate('/studio/new')}
- className="flex items-center gap-2 px-4 py-2 text-sm font-semibold bg-primary text-primary-foreground hover:bg-primary/90 rounded-lg transition-all shadow-sm hover:shadow"
+ className="flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium bg-primary text-primary-foreground hover:bg-primary/90 rounded-md transition-colors"
>
- New Design
+ New
navigate('/my-designs')}
- className="flex items-center gap-2 px-4 py-2 text-sm font-semibold bg-secondary text-secondary-foreground hover:bg-secondary/80 border border-border rounded-lg transition-all shadow-sm hover:shadow"
+ className="flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium hover:bg-muted rounded-md transition-colors"
>
My Designs
@@ -47,7 +47,7 @@ export const Home = () => {
@@ -58,122 +58,91 @@ export const Home = () => {
-
-
- {/* Decorative elements */}
-
-
-
-
-
-
-
- Interactive Visual Editor
-
-
-
- Build Stunning Interfaces,
- Purely from JSON.
-
-
- Object UI transforms JSON schemas into fully functional, accessible, and responsive React applications.
-
- Select a template below or start from scratch.
-
-
-
-
navigate('/studio/new')}
- className="flex items-center gap-2 px-6 py-3 text-lg font-bold bg-primary text-primary-foreground hover:bg-primary/90 rounded-xl shadow-lg transition-all transform hover:scale-105"
- >
-
- Start New Design
-
-
navigate('/my-designs')}
- className="flex items-center gap-2 px-6 py-3 text-lg font-bold bg-secondary text-secondary-foreground hover:bg-secondary/80 border-2 border-border rounded-xl shadow-lg transition-all transform hover:scale-105"
- >
-
- Open Saved
-
+
+ {/* Quick Actions */}
+
+
+
Quick Start
+
+
navigate('/studio/new')}
+ className="flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium bg-primary text-primary-foreground hover:bg-primary/90 rounded-md transition-colors"
+ >
+
+ New Design
+
+
navigate('/my-designs')}
+ className="flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium hover:bg-muted rounded-md transition-colors"
+ >
+
+ Open Saved
+
+
{/* Category Filter */}
-
- {Object.keys(exampleCategories).map((category) => (
-
setActiveCategory(category)}
- className={`
- group flex items-center gap-2 px-5 py-2.5 rounded-xl text-sm font-semibold transition-all duration-200
- ${activeCategory === category
- ? 'bg-primary text-primary-foreground shadow-lg scale-105'
- : 'bg-secondary text-secondary-foreground hover:bg-secondary/80 border-2 border-border hover:shadow-md'}
- `}
- >
-
- {category}
- {activeCategory === category && (
-
- {exampleCategories[category as keyof typeof exampleCategories].length}
+
+
+ {Object.keys(exampleCategories).map((category) => (
+ setActiveCategory(category)}
+ className={`
+ flex items-center gap-1.5 px-3 py-2 text-sm font-medium transition-colors border-b-2 -mb-px
+ ${activeCategory === category
+ ? 'border-primary text-primary'
+ : 'border-transparent text-muted-foreground hover:text-foreground hover:border-border'}
+ `}
+ >
+
+ {category}
+
+ ({exampleCategories[category as keyof typeof exampleCategories].length})
- )}
-
- ))}
+
+ ))}
+
- {/* Examples Grid */}
-
+ {/* Templates Grid */}
+
{exampleCategories[activeCategory as keyof typeof exampleCategories].map((key) => {
- // Try to parse the example to get a description or just format the title
const title = key.split('-').map(w => w.charAt(0).toUpperCase() + w.slice(1)).join(' ');
return (
navigate(`/${key}`)}
- className="group relative bg-card rounded-2xl border-2 border-border overflow-hidden hover:shadow-2xl transition-all duration-300 cursor-pointer hover:border-primary hover:-translate-y-1 flex flex-col h-72"
+ onClick={() => navigate(`/studio/${key}`)}
+ className="group bg-card rounded-lg border border-border overflow-hidden hover:border-primary hover:shadow-md transition-all cursor-pointer"
>
- {/* Overlay on hover */}
-
-
- {/* Mock Preview Window */}
-
- {/* Decorative grid */}
-
-
-
-
-
-
+ {/* Preview */}
+
-
-
+ {/* Info */}
+
From 4c8e4f853af92265c3da26218e634f6f36c38ff3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=84=E6=80=A1?=
Date: Thu, 15 Jan 2026 12:12:45 +0800
Subject: [PATCH 3/4] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Home.tsx?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---
apps/playground/src/pages/Home.tsx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/apps/playground/src/pages/Home.tsx b/apps/playground/src/pages/Home.tsx
index 493b535c2..36f3eb336 100644
--- a/apps/playground/src/pages/Home.tsx
+++ b/apps/playground/src/pages/Home.tsx
@@ -98,7 +98,9 @@ export const Home = () => {
>
{category}
-
+
({exampleCategories[category as keyof typeof exampleCategories].length})
From 96a3331a0290d65f756e9241ac21147e6f6e77da Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=84=E6=80=A1?=
Date: Thu, 15 Jan 2026 12:12:52 +0800
Subject: [PATCH 4/4] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Home.tsx?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---
apps/playground/src/pages/Home.tsx | 7 -------
1 file changed, 7 deletions(-)
diff --git a/apps/playground/src/pages/Home.tsx b/apps/playground/src/pages/Home.tsx
index 36f3eb336..7afa91c72 100644
--- a/apps/playground/src/pages/Home.tsx
+++ b/apps/playground/src/pages/Home.tsx
@@ -64,13 +64,6 @@ export const Home = () => {
Quick Start
-
navigate('/studio/new')}
- className="flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium bg-primary text-primary-foreground hover:bg-primary/90 rounded-md transition-colors"
- >
-
- New Design
-
navigate('/my-designs')}
className="flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium hover:bg-muted rounded-md transition-colors"