Skip to content

Commit 79a968f

Browse files
committed
Merge branch 'main' into copilot/refactor-playground-for-evaluation
2 parents 2947fbb + 8a23f2d commit 79a968f

9 files changed

Lines changed: 33 additions & 20 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
- main
77
paths:
88
- 'docs/**'
9-
- 'apps/playground/**'
109
- 'packages/**'
1110
- '.github/workflows/deploy-docs.yml'
1211
workflow_dispatch:
@@ -58,16 +57,6 @@ jobs:
5857
- name: Build documentation
5958
run: pnpm docs:build
6059

61-
- name: Build Studio (Playground)
62-
run: pnpm --filter @apps/playground... build
63-
env:
64-
NODE_ENV: production
65-
66-
- name: Copy Studio to docs dist
67-
run: |
68-
mkdir -p docs/.vitepress/dist/studio
69-
cp -r apps/playground/dist/* docs/.vitepress/dist/studio/
70-
7160
- name: Setup Pages
7261
uses: actions/configure-pages@v4
7362

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[![React](https://img.shields.io/badge/React-18+-61dafb.svg)](https://reactjs.org/)
1212
[![Tailwind CSS](https://img.shields.io/badge/Tailwind-3.0+-38bdf8.svg)](https://tailwindcss.com/)
1313

14-
[**Documentation**](https://www.objectui.org) | [**Quick Start**](#quick-start) | [**Examples**](#examples) | [**Studio**](https://www.objectui.org/studio/)
14+
[**Documentation**](https://www.objectui.org) | [**Quick Start**](#quick-start) | [**Examples**](#examples) | [**Studio**](https://play.objectstack.ai)
1515

1616
</div>
1717

@@ -159,7 +159,7 @@ export default App
159159

160160
Explore our interactive drag-and-drop designer:
161161

162-
🚀 [**Launch Object UI Studio**](https://www.objectui.org/studio/) - Design visually, export JSON instantly.
162+
🚀 [**Launch Object UI Studio**](https://play.objectstack.ai) - Design visually, export JSON instantly.
163163

164164
## 📦 Packages
165165

apps/playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "module",
77
"scripts": {
88
"dev": "vite",
9-
"build": "tsc -b && vite build",
9+
"build": "vite build",
1010
"lint": "eslint .",
1111
"preview": "vite preview"
1212
},

apps/playground/src/pages/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export const Home = () => {
111111
return (
112112
<div
113113
key={key}
114-
onClick={() => navigate(`/studio/${key}`)}
114+
onClick={() => navigate(`/${key}`)}
115115
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"
116116
>
117117
{/* Gradient overlay on hover */}

apps/playground/tsconfig.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,21 @@
1919
"noUnusedLocals": true,
2020
"noUnusedParameters": true,
2121
"noFallthroughCasesInSwitch": true,
22-
"noUncheckedSideEffectImports": true
22+
"noUncheckedSideEffectImports": true,
23+
24+
"baseUrl": ".",
25+
"paths": {
26+
"@object-ui/components": ["../../packages/components/src"],
27+
"@object-ui/core": ["../../packages/core/src"],
28+
"@object-ui/react": ["../../packages/react/src"],
29+
"@object-ui/types": ["../../packages/types/src"],
30+
"@object-ui/designer": ["../../packages/designer/src"],
31+
"@object-ui/plugin-charts": ["../../packages/plugin-charts/src"],
32+
"@object-ui/plugin-editor": ["../../packages/plugin-editor/src"],
33+
"@object-ui/plugin-kanban": ["../../packages/plugin-kanban/src"],
34+
"@object-ui/plugin-markdown": ["../../packages/plugin-markdown/src"],
35+
"@/*": ["../../packages/components/src/*"]
36+
}
2337
},
2438
"include": ["src"]
2539
}

apps/playground/vite.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@ import path from 'path';
55
// https://vitejs.dev/config/
66
export default defineConfig({
77
plugins: [react()],
8-
base: process.env.NODE_ENV === 'production' ? '/studio/' : '/',
8+
base: '/',
99
resolve: {
1010
alias: {
1111
'@object-ui/components': path.resolve(__dirname, '../../packages/components/src'),
1212
'@object-ui/core': path.resolve(__dirname, '../../packages/core/src'),
1313
'@object-ui/react': path.resolve(__dirname, '../../packages/react/src'),
14+
'@object-ui/types': path.resolve(__dirname, '../../packages/types/src'),
15+
'@object-ui/designer': path.resolve(__dirname, '../../packages/designer/src'),
16+
'@object-ui/plugin-charts': path.resolve(__dirname, '../../packages/plugin-charts/src'),
17+
'@object-ui/plugin-editor': path.resolve(__dirname, '../../packages/plugin-editor/src'),
18+
'@object-ui/plugin-kanban': path.resolve(__dirname, '../../packages/plugin-kanban/src'),
19+
'@object-ui/plugin-markdown': path.resolve(__dirname, '../../packages/plugin-markdown/src'),
1420
'@': path.resolve(__dirname, '../../packages/components/src'),
1521
}
1622
},

docs/guide/studio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The **Object UI Studio** is a powerful, interactive visual editor that allows yo
66

77
<div class="tip custom-block">
88
<p><strong>Try it now!</strong></p>
9-
<p>Access the Studio at: <a href="/studio/" target="_blank">/studio/</a></p>
9+
<p>Access the Studio at: <a href="https://play.objectstack.ai" target="_blank">play.objectstack.ai</a></p>
1010
</div>
1111

1212
## Features

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ hero:
1111
actions:
1212
- theme: brand
1313
text: Try Studio Now
14-
link: /studio/
14+
link: https://play.objectstack.ai
1515
- theme: alt
1616
text: Get Started
1717
link: /guide/introduction
@@ -82,7 +82,7 @@ That's it! This JSON automatically creates a beautiful, accessible, and function
8282
<p class="custom-block-title" style="color: #6366f1;">✨ Experience Object UI Studio</p>
8383
<p>Explore our interactive visual editor with drag-and-drop design, live preview, and instant JSON export. Perfect for prototyping and learning!</p>
8484
<p style="margin-top: 12px;">
85-
<a href="/studio/" style="display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 8px; text-decoration: none; font-weight: 600; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); transition: all 0.3s;">
85+
<a href="https://play.objectstack.ai" target="_blank" style="display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 8px; text-decoration: none; font-weight: 600; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); transition: all 0.3s;">
8686
🚀 Launch Studio
8787
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>
8888
</a>

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"private": true,
44
"license": "MIT",
55
"homepage": "https://www.objectui.org",
6+
"engines": {
7+
"node": ">=18",
8+
"pnpm": ">=9"
9+
},
610
"workspaces": [
711
"packages/*",
812
"examples/*",

0 commit comments

Comments
 (0)