Skip to content

Commit 4eeb49a

Browse files
committed
🤖 Add SSH runtime workspaces to Storybook stories
Add workspaces with SSH runtime config to App stories so the runtime badge is visible in Storybook: - SingleProject: feature/auth workspace on dev-server.example.com - MultipleProjects: api-v2 on prod-server.example.com, db-migration on staging.example.com This allows visual testing and demonstration of the runtime badge UI. Generated with `cmux`
1 parent 28ee689 commit 4eeb49a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/App.stories.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ export const SingleProject: Story = {
166166
projectPath: "/home/user/projects/my-app",
167167
projectName: "my-app",
168168
namedWorkspacePath: "/home/user/.cmux/src/my-app/feature-auth",
169+
runtimeConfig: {
170+
type: "ssh",
171+
host: "dev-server.example.com",
172+
srcBaseDir: "/home/user/.cmux/src",
173+
},
169174
},
170175
{
171176
id: "my-app-bugfix",
@@ -249,13 +254,23 @@ export const MultipleProjects: Story = {
249254
projectPath: "/home/user/projects/backend",
250255
projectName: "backend",
251256
namedWorkspacePath: "/home/user/.cmux/src/backend/api-v2",
257+
runtimeConfig: {
258+
type: "ssh",
259+
host: "prod-server.example.com",
260+
srcBaseDir: "/home/user/.cmux/src",
261+
},
252262
},
253263
{
254264
id: "5e6f7a8b9c",
255265
name: "db-migration",
256266
projectPath: "/home/user/projects/backend",
257267
projectName: "backend",
258268
namedWorkspacePath: "/home/user/.cmux/src/backend/db-migration",
269+
runtimeConfig: {
270+
type: "ssh",
271+
host: "staging.example.com",
272+
srcBaseDir: "/home/user/.cmux/src",
273+
},
259274
},
260275
{
261276
id: "6f7a8b9c0d",

0 commit comments

Comments
 (0)