From d835bba680f3f9591d86fc6cd501bc4ae1094685 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 14 Jan 2026 12:26:56 +0000 Subject: [PATCH 1/6] Initial plan From 9ae7a02c4bc8a4f59c77addac440b68c6ca48048 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 14 Jan 2026 12:37:15 +0000 Subject: [PATCH 2/6] Enhance Studio demo visual aesthetics with modern design Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com> --- apps/playground/src/pages/Home.tsx | 104 +++++++++++++++------- apps/playground/src/pages/Studio.tsx | 128 ++++++++++++++------------- 2 files changed, 137 insertions(+), 95 deletions(-) diff --git a/apps/playground/src/pages/Home.tsx b/apps/playground/src/pages/Home.tsx index 2ca3df85b5..dd8f459de8 100644 --- a/apps/playground/src/pages/Home.tsx +++ b/apps/playground/src/pages/Home.tsx @@ -19,59 +19,82 @@ export const Home = () => { const [activeCategory, setActiveCategory] = useState('Layouts'); return ( -
+
{/* Hero Section */} -
+
-
-
+
+
- Object UI Studio + Object UI Studio
+ + + GitHub
-
-
-

+
+
+ {/* Decorative elements */} +
+
+
+
+ +
+ + + + + Interactive Visual Editor +
+ +

Build Stunning Interfaces,
- Purely from JSON. + Purely from JSON.

-

+

Object UI transforms JSON schemas into fully functional, accessible, and responsive React applications. - Select a template below to start building. +
+ Select a template below to start building.

{/* Category Filter */} -
+
{Object.keys(exampleCategories).map((category) => ( ))}
{/* Examples 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(' '); @@ -80,32 +103,47 @@ export const Home = () => {
navigate(`/studio/${key}`)} - className="group relative bg-white rounded-2xl border border-gray-200 overflow-hidden hover:shadow-xl transition-all duration-300 cursor-pointer hover:border-indigo-200 flex flex-col h-64" + className="group relative bg-white rounded-2xl border-2 border-gray-200 overflow-hidden hover:shadow-2xl hover:shadow-indigo-500/20 transition-all duration-300 cursor-pointer hover:border-indigo-400 hover:-translate-y-1 flex flex-col h-72" > + {/* Gradient overlay on hover */} +
+ {/* Mock Preview Window */} -
-
-
-
-
-
+
+ {/* Decorative grid */} +
+ +
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-

+
+

{title}

-
- Launch Studio +
+
+ Launch Studio + +
+
+ Try Now +
diff --git a/apps/playground/src/pages/Studio.tsx b/apps/playground/src/pages/Studio.tsx index 116e58866c..66da09ece2 100644 --- a/apps/playground/src/pages/Studio.tsx +++ b/apps/playground/src/pages/Studio.tsx @@ -89,26 +89,28 @@ const StudioToolbarContext = ({ }; return ( -
+
-
+
- Object Studio - / - {exampleTitle} + + Object Studio + / + {exampleTitle} +
-
- - +
+ + {jsonError ? 'Error' : 'Ready'}
@@ -118,13 +120,13 @@ const StudioToolbarContext = ({ {/* Center: View Mode Switcher */}
-
+
)} -
+
@@ -286,14 +288,14 @@ const StudioEditor = ({ exampleId, initialJson }: { exampleId: ExampleKey, initi

) : viewMode === 'preview' ? ( -
-
+
+
{/* Viewport Size Toggles */} -
+
@@ -332,19 +334,18 @@ const StudioEditor = ({ exampleId, initialJson }: { exampleId: ExampleKey, initi className={` bg-background h-full min-h-[500px] ${viewportSize === 'mobile' - ? 'rounded-[3rem] border-[8px] border-slate-800 shadow-2xl' + ? 'rounded-[3rem] border-[10px] border-gray-800 shadow-2xl shadow-gray-900/50' : viewportSize === 'tablet' - ? 'rounded-[2rem] border-[8px] border-slate-800 shadow-2xl' - : 'rounded-xl border border-gray-200 shadow-xl' - } + ? 'rounded-[2rem] border-[10px] border-gray-800 shadow-2xl shadow-gray-900/50' + : 'rounded-2xl border-2 border-gray-300 shadow-2xl'} ${viewportSize !== 'desktop' ? 'overflow-hidden' : 'p-6'} transition-all duration-300 `} > {/* Mobile/Tablet Bar */} {viewportSize !== 'desktop' && ( -
-
+
+
)} @@ -357,17 +358,20 @@ const StudioEditor = ({ exampleId, initialJson }: { exampleId: ExampleKey, initi ) : (
{jsonError ? ( -
-

- +

+

+ Invalid JSON

-

{jsonError}

+

{jsonError}

) : ( -
-
-

Rendering...

+
+
+
+
+
+

Rendering your UI...

)}
@@ -410,18 +414,18 @@ const StudioEditor = ({ exampleId, initialJson }: { exampleId: ExampleKey, initi
{/* Side Preview */} -
-
-
-
-
-
+
+
+
+
+
{schema && !jsonError ? ( From 26f6a97046ee4e0d578a58ac9a36f5fe204dca2b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 14 Jan 2026 12:39:37 +0000 Subject: [PATCH 3/6] Refactor inline styles to CSS utility classes for better maintainability Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com> --- apps/playground/src/index.css | 18 ++++++++++++++++++ apps/playground/src/pages/Home.tsx | 5 +---- apps/playground/src/pages/Studio.tsx | 15 +++------------ 3 files changed, 22 insertions(+), 16 deletions(-) diff --git a/apps/playground/src/index.css b/apps/playground/src/index.css index d924e2434c..67b593e52a 100644 --- a/apps/playground/src/index.css +++ b/apps/playground/src/index.css @@ -67,3 +67,21 @@ @apply bg-background text-foreground; } } + +@layer utilities { + /* Dot grid background patterns */ + .bg-dot-pattern { + background-image: radial-gradient(circle, #cbd5e1 1.5px, transparent 1.5px); + background-size: 32px 32px; + } + + .bg-dot-pattern-sm { + background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px); + background-size: 20px 20px; + } + + /* Custom spinner animation */ + .animate-spin-reverse { + animation: spin 1s linear infinite reverse; + } +} diff --git a/apps/playground/src/pages/Home.tsx b/apps/playground/src/pages/Home.tsx index dd8f459de8..f3703822b0 100644 --- a/apps/playground/src/pages/Home.tsx +++ b/apps/playground/src/pages/Home.tsx @@ -111,10 +111,7 @@ export const Home = () => { {/* Mock Preview Window */}
{/* Decorative grid */} -
+
diff --git a/apps/playground/src/pages/Studio.tsx b/apps/playground/src/pages/Studio.tsx index 66da09ece2..9b1c7eba2c 100644 --- a/apps/playground/src/pages/Studio.tsx +++ b/apps/playground/src/pages/Studio.tsx @@ -323,11 +323,7 @@ const StudioEditor = ({ exampleId, initialJson }: { exampleId: ExampleKey, initi
-
+

Rendering your UI...

@@ -414,12 +410,7 @@ const StudioEditor = ({ exampleId, initialJson }: { exampleId: ExampleKey, initi
{/* Side Preview */} -
+
From 2c90da65aeeaa551e3fe094da639d760ef06e6fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=80=A1?= Date: Wed, 14 Jan 2026 20:53:11 +0800 Subject: [PATCH 4/6] =?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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/playground/src/pages/Home.tsx b/apps/playground/src/pages/Home.tsx index f3703822b0..8a421a3198 100644 --- a/apps/playground/src/pages/Home.tsx +++ b/apps/playground/src/pages/Home.tsx @@ -47,7 +47,7 @@ export const Home = () => { {/* Decorative elements */}
-
+
From a8abdac259932eda7adf57a1b2aa15dd08accd86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=80=A1?= Date: Wed, 14 Jan 2026 20:53:18 +0800 Subject: [PATCH 5/6] =?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, 2 insertions(+), 2 deletions(-) diff --git a/apps/playground/src/pages/Home.tsx b/apps/playground/src/pages/Home.tsx index 8a421a3198..0f5acd25bf 100644 --- a/apps/playground/src/pages/Home.tsx +++ b/apps/playground/src/pages/Home.tsx @@ -122,8 +122,8 @@ export const Home = () => {
-
-
+
+
From cb6ad15d5916505dcdbe98b0c8c696a86c3f762e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=80=A1?= Date: Wed, 14 Jan 2026 20:53:26 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Studio.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/Studio.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/playground/src/pages/Studio.tsx b/apps/playground/src/pages/Studio.tsx index 9b1c7eba2c..808590f4a9 100644 --- a/apps/playground/src/pages/Studio.tsx +++ b/apps/playground/src/pages/Studio.tsx @@ -364,6 +364,7 @@ const StudioEditor = ({ exampleId, initialJson }: { exampleId: ExampleKey, initi ) : (
+ {/* Dual spinner: outer uses animate-spin and inner uses animate-spin-reverse for a counter-rotating loading effect */}