Skip to content

Commit d9b08eb

Browse files
committed
feat: rename Console to Studio across the application and update related documentation
1 parent e2beace commit d9b08eb

14 files changed

Lines changed: 142 additions & 142 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ os doctor # Check environment health
148148
| Package | Description | Status |
149149
| :--- | :--- | :--- |
150150
| [`@objectstack/cli`](packages/cli) | CLI: init, dev, serve, studio, compile, validate, generate | 🟢 Active |
151-
| [`@objectstack/console`](apps/console) | Admin Console UI (Object Explorer, Schema Inspector) | 🟢 Active |
151+
| [`@objectstack/studio`](apps/studio) | Studio UI (Object Explorer, Schema Inspector) | 🟢 Active |
152152
| [`@objectstack/docs`](apps/docs) | Documentation site (Fumadocs + Next.js) | 🟢 Active |
153153

154154
### Examples

apps/studio/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @objectstack/console
1+
# @objectstack/studio
22

33
## 0.9.16
44

apps/studio/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# ObjectStack Console
1+
# ObjectStack Studio
22

3-
The official **ObjectStack Platform Console** - a metadata-driven admin interface for managing data and configuration.
3+
The official **ObjectStack Studio** - a metadata-driven admin interface for managing data and configuration.
44

55
## 🎯 Overview
66

7-
ObjectStack Console provides a modern, responsive admin interface that:
7+
ObjectStack Studio provides a modern, responsive admin interface that:
88

99
- **Auto-generates UI** from your metadata definitions
1010
- **CRUD Operations** with built-in validation
@@ -67,7 +67,7 @@ Copy `.env.example` to `.env.local` to customize:
6767
## 📁 Project Structure
6868

6969
```
70-
apps/console/
70+
apps/studio/
7171
├── src/
7272
│ ├── App.tsx # Main application component
7373
│ ├── main.tsx # Entry point with MSW bootstrap

apps/studio/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
88
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap" rel="stylesheet">
99
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
10-
<title>ObjectStack Console</title>
10+
<title>ObjectStack Studio</title>
1111
</head>
1212
<body>
1313
<div id="root"></div>

apps/studio/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "@objectstack/console",
2+
"name": "@objectstack/studio",
33
"version": "1.1.0",
4-
"description": "ObjectStack Platform Console - A metadata-driven admin interface for managing data and configuration",
4+
"description": "ObjectStack Studio - A metadata-driven admin interface for managing data and configuration",
55
"private": true,
66
"type": "module",
77
"scripts": {
88
"msw:init": "msw init -y public",
99
"dev": "pnpm msw:init && vite",
10-
"build": "pnpm msw:init && tsc && vite build",
10+
"build": "pnpm msw:init && vite build",
1111
"typecheck": "tsc --noEmit",
1212
"test": "vitest run",
1313
"test:bdd": "objectstack test",

apps/studio/vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://openapi.vercel.sh/vercel.json",
33
"framework": "vite",
44
"installCommand": "cd ../.. && pnpm install",
5-
"buildCommand": "cd ../.. && pnpm turbo run build --filter=@objectstack/console",
5+
"buildCommand": "cd ../.. && pnpm turbo run build --filter=@objectstack/studio",
66
"outputDirectory": "dist",
77
"build": {
88
"env": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build": "turbo run build --filter=!@objectstack/docs",
88
"dev": "turbo run dev --filter=@example/app-host",
9-
"dev:console": "pnpm --filter @objectstack/console dev",
9+
"dev:studio": "pnpm --filter @objectstack/studio dev",
1010
"studio": "pnpm --filter @objectstack/cli build && node packages/cli/bin/objectstack.js studio",
1111
"test": "turbo run test --filter=@objectstack/spec",
1212
"clean": "turbo run clean && rm -rf dist",

packages/cli/src/bin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ${chalk.bold('Workflow:')}
4646
${chalk.dim('$')} os generate object task ${chalk.dim('# Add metadata')}
4747
${chalk.dim('$')} os validate ${chalk.dim('# Check configuration')}
4848
${chalk.dim('$')} os dev ${chalk.dim('# Start dev server')}
49-
${chalk.dim('$')} os studio ${chalk.dim('# Dev server + Console UI')}
49+
${chalk.dim('$')} os studio ${chalk.dim('# Dev server + Studio UI')}
5050
${chalk.dim('$')} os compile ${chalk.dim('# Build for production')}
5151
5252
${chalk.dim('Aliases: objectstack | os')}

packages/cli/src/commands/dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const devCommand = new Command('dev')
99
.description('Start development mode with hot-reload')
1010
.argument('[package]', 'Package name or filter pattern', 'all')
1111
.option('-w, --watch', 'Enable watch mode (default)', true)
12-
.option('--ui', 'Enable Console UI at /_studio/')
12+
.option('--ui', 'Enable Studio UI at /_studio/')
1313
.option('-v, --verbose', 'Verbose output')
1414
.action(async (packageName, options) => {
1515
printHeader('Development Mode');

packages/cli/src/commands/serve.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ import {
1616
} from '../utils/format.js';
1717
import {
1818
STUDIO_PATH,
19-
resolveConsolePath,
20-
hasConsoleDist,
19+
resolveStudioPath,
20+
hasStudioDist,
2121
spawnViteDevServer,
22-
createConsoleProxyPlugin,
23-
createConsoleStaticPlugin,
24-
} from '../utils/console.js';
22+
createStudioProxyPlugin,
23+
createStudioStaticPlugin,
24+
} from '../utils/studio.js';
2525

2626
// Helper to find available port
2727
const getAvailablePort = async (startPort: number): Promise<number> => {
@@ -53,7 +53,7 @@ export const serveCommand = new Command('serve')
5353
.argument('[config]', 'Configuration file path', 'objectstack.config.ts')
5454
.option('-p, --port <port>', 'Server port', '3000')
5555
.option('--dev', 'Run in development mode (load devPlugins)')
56-
.option('--ui', 'Enable Console UI at /_studio/')
56+
.option('--ui', 'Enable Studio UI at /_studio/')
5757
.option('--no-server', 'Skip starting HTTP server plugin')
5858
.action(async (configPath, options) => {
5959
let port = parseInt(options.port);
@@ -228,31 +228,31 @@ export const serveCommand = new Command('serve')
228228
}
229229
}
230230

231-
// ── Console UI (--ui) ───────────────────────────────────────────
231+
// ── Studio UI (--ui) ───────────────────────────────────────────
232232
let viteProcess: import('child_process').ChildProcess | null = null;
233233

234234
if (options.ui) {
235-
const consolePath = resolveConsolePath();
236-
if (!consolePath) {
237-
console.warn(chalk.yellow(` ⚠ @objectstack/console not found — skipping UI`));
235+
const studioPath = resolveStudioPath();
236+
if (!studioPath) {
237+
console.warn(chalk.yellow(` ⚠ @objectstack/studio not found — skipping UI`));
238238
} else if (isDev) {
239239
// Dev mode → spawn Vite dev server & proxy through Hono
240240
try {
241-
const result = await spawnViteDevServer(consolePath, { serverPort: port });
241+
const result = await spawnViteDevServer(studioPath, { serverPort: port });
242242
viteProcess = result.process;
243-
await kernel.use(createConsoleProxyPlugin(result.port));
244-
trackPlugin('ConsoleUI');
243+
await kernel.use(createStudioProxyPlugin(result.port));
244+
trackPlugin('StudioUI');
245245
} catch (e: any) {
246246
console.warn(chalk.yellow(` ⚠ Console UI failed to start: ${e.message}`));
247247
}
248248
} else {
249249
// Production mode → serve pre-built static files
250-
const distPath = path.join(consolePath, 'dist');
251-
if (hasConsoleDist(consolePath)) {
252-
await kernel.use(createConsoleStaticPlugin(distPath));
253-
trackPlugin('ConsoleUI');
250+
const distPath = path.join(studioPath, 'dist');
251+
if (hasStudioDist(studioPath)) {
252+
await kernel.use(createStudioStaticPlugin(distPath));
253+
trackPlugin('StudioUI');
254254
} else {
255-
console.warn(chalk.yellow(` ⚠ Console dist not found — run "pnpm --filter @objectstack/console build" first`));
255+
console.warn(chalk.yellow(` ⚠ Studio dist not found — run "pnpm --filter @objectstack/studio build" first`));
256256
}
257257
}
258258
}

0 commit comments

Comments
 (0)