From ca43c2f68debbb38d2a20c231dd8b0b71e795dd1 Mon Sep 17 00:00:00 2001 From: usrnk1 <7547651+usrnk1@users.noreply.github.com> Date: Fri, 27 Nov 2026 19:26:48 +0100 Subject: [PATCH] feat(app): rename Component Lab to Lab, with pages and states (#66618) --- .opencode/skills/component-tests/SKILL.md | 12 +-- .../{components-lab.spec.ts => lab.spec.ts} | 12 +-- .../component-tests/plugin-host.fixture.tsx | 2 +- ...uch.stories.tsx => composer-touch.lab.tsx} | 0 ...{composer.stories.tsx => composer.lab.tsx} | 2 +- ...ment.stories.tsx => quote-comment.lab.tsx} | 0 ...ne.stories.tsx => home.standalone.lab.tsx} | 2 +- ...alog.stories.tsx => delete-dialog.lab.tsx} | 0 .../src/{components-lab => lab}/browser.tsx | 79 ++++++++++--------- .../{components-lab => lab}/catalog.test.ts | 6 +- .../src/{components-lab => lab}/catalog.ts | 8 +- .../dialog-story-runtime.tsx | 2 +- .../focus-rings.lab.tsx} | 0 .../focus-visibility.lab.tsx} | 2 +- .../{components-lab => lab}/force-focus.ts | 0 .../src/{components-lab => lab}/inspector.css | 10 +-- .../app/src/{components-lab => lab}/lab.tsx | 30 +++---- .../{components-lab => lab}/machine.test.ts | 0 .../src/{components-lab => lab}/machine.ts | 0 .../{components-lab => lab}/motion.test.ts | 0 .../app/src/{components-lab => lab}/motion.ts | 0 ...e.stories.tsx => draft.standalone.lab.tsx} | 2 +- ....stories.tsx => dialog.standalone.lab.tsx} | 2 +- ...{wordmark.stories.tsx => wordmark.lab.tsx} | 0 ...tories.tsx => chatgpt-usage-limit.lab.tsx} | 0 ...me.stories.tsx => chatgpt-welcome.lab.tsx} | 0 ...s.stories.tsx => connected-models.lab.tsx} | 0 ....stories.tsx => dialog.standalone.lab.tsx} | 2 +- ...-dialog.stories.tsx => mcp-dialog.lab.tsx} | 0 ....stories.tsx => manage.standalone.lab.tsx} | 2 +- ...s.tsx => select-dialog.standalone.lab.tsx} | 2 +- ....stories.tsx => unpaid.standalone.lab.tsx} | 2 +- packages/app/src/runtime/i18n/am.ts | 14 ++-- packages/app/src/runtime/i18n/ar.ts | 22 +++--- packages/app/src/runtime/i18n/az.ts | 14 ++-- packages/app/src/runtime/i18n/bg.ts | 14 ++-- packages/app/src/runtime/i18n/bn.ts | 14 ++-- packages/app/src/runtime/i18n/br.ts | 16 ++-- packages/app/src/runtime/i18n/bs.ts | 16 ++-- packages/app/src/runtime/i18n/ca.ts | 16 ++-- packages/app/src/runtime/i18n/cs.ts | 18 ++--- packages/app/src/runtime/i18n/da.ts | 14 ++-- packages/app/src/runtime/i18n/de.ts | 14 ++-- packages/app/src/runtime/i18n/dv.ts | 14 ++-- packages/app/src/runtime/i18n/dz.ts | 14 ++-- packages/app/src/runtime/i18n/el.ts | 14 ++-- packages/app/src/runtime/i18n/en.ts | 14 ++-- packages/app/src/runtime/i18n/es.ts | 16 ++-- packages/app/src/runtime/i18n/et.ts | 14 ++-- packages/app/src/runtime/i18n/fa.ts | 14 ++-- packages/app/src/runtime/i18n/fi.ts | 14 ++-- packages/app/src/runtime/i18n/fo.ts | 14 ++-- packages/app/src/runtime/i18n/fr.ts | 16 ++-- packages/app/src/runtime/i18n/he.ts | 16 ++-- packages/app/src/runtime/i18n/hi.ts | 14 ++-- packages/app/src/runtime/i18n/hr.ts | 16 ++-- packages/app/src/runtime/i18n/hu.ts | 14 ++-- packages/app/src/runtime/i18n/hy.ts | 14 ++-- packages/app/src/runtime/i18n/id.ts | 14 ++-- packages/app/src/runtime/i18n/is.ts | 14 ++-- packages/app/src/runtime/i18n/it.ts | 16 ++-- packages/app/src/runtime/i18n/ja.ts | 14 ++-- packages/app/src/runtime/i18n/ka.ts | 14 ++-- packages/app/src/runtime/i18n/km.ts | 14 ++-- packages/app/src/runtime/i18n/ko.ts | 14 ++-- packages/app/src/runtime/i18n/lo.ts | 14 ++-- packages/app/src/runtime/i18n/lt.ts | 18 ++--- packages/app/src/runtime/i18n/lv.ts | 16 ++-- packages/app/src/runtime/i18n/mk.ts | 14 ++-- packages/app/src/runtime/i18n/mn.ts | 14 ++-- packages/app/src/runtime/i18n/ms.ts | 14 ++-- packages/app/src/runtime/i18n/my.ts | 14 ++-- packages/app/src/runtime/i18n/ne.ts | 14 ++-- packages/app/src/runtime/i18n/nl.ts | 14 ++-- packages/app/src/runtime/i18n/no.ts | 14 ++-- packages/app/src/runtime/i18n/pa.ts | 14 ++-- packages/app/src/runtime/i18n/pl.ts | 18 ++--- packages/app/src/runtime/i18n/ro.ts | 16 ++-- packages/app/src/runtime/i18n/ru.ts | 18 ++--- packages/app/src/runtime/i18n/si.ts | 14 ++-- packages/app/src/runtime/i18n/sk.ts | 18 ++--- packages/app/src/runtime/i18n/sl.ts | 18 ++--- packages/app/src/runtime/i18n/sq.ts | 14 ++-- packages/app/src/runtime/i18n/sr.ts | 16 ++-- packages/app/src/runtime/i18n/sv.ts | 14 ++-- packages/app/src/runtime/i18n/tg.ts | 14 ++-- packages/app/src/runtime/i18n/th.ts | 14 ++-- packages/app/src/runtime/i18n/tk.ts | 14 ++-- packages/app/src/runtime/i18n/tr.ts | 14 ++-- packages/app/src/runtime/i18n/uk.ts | 18 ++--- packages/app/src/runtime/i18n/ur.ts | 14 ++-- packages/app/src/runtime/i18n/uz.ts | 14 ++-- packages/app/src/runtime/i18n/vi.ts | 14 ++-- packages/app/src/runtime/i18n/zh.ts | 14 ++-- packages/app/src/runtime/i18n/zht.ts | 14 ++-- .../{dialogs.stories.tsx => dialogs.lab.tsx} | 0 ...ems.stories.tsx => titlebar-items.lab.tsx} | 0 .../{dialog.stories.tsx => dialog.lab.tsx} | 0 .../{screen.stories.tsx => screen.lab.tsx} | 0 .../registry/{row.stories.tsx => row.lab.tsx} | 0 ...dialog.stories.tsx => fork-dialog.lab.tsx} | 0 ...ge.stories.tsx => jump-to-message.lab.tsx} | 0 ...ips.stories.tsx => activity-chips.lab.tsx} | 0 ...cks.stories.tsx => composer-docks.lab.tsx} | 4 +- ...sx => free-limit-panel.standalone.lab.tsx} | 2 +- ...sx => location-missing.standalone.lab.tsx} | 2 +- ...-panel.stories.tsx => queue-panel.lab.tsx} | 0 ...odo-pill.stories.tsx => todo-pill.lab.tsx} | 0 ...ies.tsx => session-header-actions.lab.tsx} | 0 ...ch.stories.tsx => question-switch.lab.tsx} | 0 ...rver-unavailable-panel.standalone.lab.tsx} | 2 +- ...s.tsx => session-menus.standalone.lab.tsx} | 2 +- ...een.stories.tsx => session-screen.lab.tsx} | 0 ...rk.stories.tsx => background-work.lab.tsx} | 0 .../{quote.stories.tsx => quote.lab.tsx} | 0 ...rch-bar.stories.tsx => search-bar.lab.tsx} | 0 .../{sources.stories.tsx => sources.lab.tsx} | 0 ...e.stories.tsx => shell.standalone.lab.tsx} | 2 +- ...il.stories.tsx => timeline-detail.lab.tsx} | 0 ....stories.tsx => dialog.standalone.lab.tsx} | 2 +- packages/app/src/shell/routes/routes.tsx | 6 +- ...ox-card.stories.tsx => inbox-card.lab.tsx} | 0 ...ox-list.stories.tsx => inbox-list.lab.tsx} | 0 .../src/shell/titlebar/navigation-story.tsx | 2 +- ... => sidebar-customized.standalone.lab.tsx} | 0 ...ories.tsx => tab-strip.standalone.lab.tsx} | 0 ....stories.tsx => dialog.standalone.lab.tsx} | 2 +- .../files/content-cache-accounting.test.ts | 2 +- ....stories.tsx => dialog.standalone.lab.tsx} | 2 +- packages/app/vite.js | 10 +-- .../{panel.stories.tsx => panel.lab.tsx} | 0 packages/gui-plugins/src/debug/bar.tsx | 4 +- packages/gui-plugins/src/debug/i18n/am.ts | 4 +- packages/gui-plugins/src/debug/i18n/ar.ts | 4 +- packages/gui-plugins/src/debug/i18n/az.ts | 4 +- packages/gui-plugins/src/debug/i18n/bg.ts | 4 +- packages/gui-plugins/src/debug/i18n/bn.ts | 4 +- packages/gui-plugins/src/debug/i18n/br.ts | 4 +- packages/gui-plugins/src/debug/i18n/bs.ts | 4 +- packages/gui-plugins/src/debug/i18n/ca.ts | 4 +- packages/gui-plugins/src/debug/i18n/cs.ts | 4 +- packages/gui-plugins/src/debug/i18n/da.ts | 4 +- packages/gui-plugins/src/debug/i18n/de.ts | 4 +- packages/gui-plugins/src/debug/i18n/dv.ts | 4 +- packages/gui-plugins/src/debug/i18n/dz.ts | 4 +- packages/gui-plugins/src/debug/i18n/el.ts | 5 +- packages/gui-plugins/src/debug/i18n/en.ts | 4 +- packages/gui-plugins/src/debug/i18n/es.ts | 4 +- packages/gui-plugins/src/debug/i18n/et.ts | 4 +- packages/gui-plugins/src/debug/i18n/fa.ts | 4 +- packages/gui-plugins/src/debug/i18n/fi.ts | 4 +- packages/gui-plugins/src/debug/i18n/fo.ts | 4 +- packages/gui-plugins/src/debug/i18n/fr.ts | 4 +- packages/gui-plugins/src/debug/i18n/he.ts | 4 +- packages/gui-plugins/src/debug/i18n/hi.ts | 4 +- packages/gui-plugins/src/debug/i18n/hr.ts | 4 +- packages/gui-plugins/src/debug/i18n/hu.ts | 4 +- packages/gui-plugins/src/debug/i18n/hy.ts | 4 +- packages/gui-plugins/src/debug/i18n/id.ts | 4 +- packages/gui-plugins/src/debug/i18n/is.ts | 4 +- packages/gui-plugins/src/debug/i18n/it.ts | 4 +- packages/gui-plugins/src/debug/i18n/ja.ts | 4 +- packages/gui-plugins/src/debug/i18n/ka.ts | 4 +- packages/gui-plugins/src/debug/i18n/km.ts | 4 +- packages/gui-plugins/src/debug/i18n/ko.ts | 4 +- packages/gui-plugins/src/debug/i18n/lo.ts | 4 +- packages/gui-plugins/src/debug/i18n/lt.ts | 4 +- packages/gui-plugins/src/debug/i18n/lv.ts | 4 +- packages/gui-plugins/src/debug/i18n/mk.ts | 4 +- packages/gui-plugins/src/debug/i18n/mn.ts | 4 +- packages/gui-plugins/src/debug/i18n/ms.ts | 4 +- packages/gui-plugins/src/debug/i18n/my.ts | 5 +- packages/gui-plugins/src/debug/i18n/ne.ts | 4 +- packages/gui-plugins/src/debug/i18n/nl.ts | 4 +- packages/gui-plugins/src/debug/i18n/no.ts | 4 +- packages/gui-plugins/src/debug/i18n/pa.ts | 4 +- packages/gui-plugins/src/debug/i18n/pl.ts | 4 +- packages/gui-plugins/src/debug/i18n/ro.ts | 4 +- packages/gui-plugins/src/debug/i18n/ru.ts | 4 +- packages/gui-plugins/src/debug/i18n/si.ts | 4 +- packages/gui-plugins/src/debug/i18n/sk.ts | 4 +- packages/gui-plugins/src/debug/i18n/sl.ts | 4 +- packages/gui-plugins/src/debug/i18n/sq.ts | 4 +- packages/gui-plugins/src/debug/i18n/sr.ts | 4 +- packages/gui-plugins/src/debug/i18n/sv.ts | 4 +- packages/gui-plugins/src/debug/i18n/tg.ts | 4 +- packages/gui-plugins/src/debug/i18n/th.ts | 4 +- packages/gui-plugins/src/debug/i18n/tk.ts | 4 +- packages/gui-plugins/src/debug/i18n/tr.ts | 4 +- packages/gui-plugins/src/debug/i18n/uk.ts | 4 +- packages/gui-plugins/src/debug/i18n/ur.ts | 4 +- packages/gui-plugins/src/debug/i18n/uz.ts | 4 +- packages/gui-plugins/src/debug/i18n/vi.ts | 4 +- packages/gui-plugins/src/debug/i18n/zh.ts | 4 +- packages/gui-plugins/src/debug/i18n/zht.ts | 4 +- .../{browser.stories.tsx => browser.lab.tsx} | 0 .../{dialog.stories.tsx => dialog.lab.tsx} | 0 .../{page.stories.tsx => page.lab.tsx} | 0 .../{panel.stories.tsx => panel.lab.tsx} | 0 .../{dialog.stories.tsx => dialog.lab.tsx} | 0 ...hats-new.stories.tsx => whats-new.lab.tsx} | 0 packages/gui-plugins/tsconfig.json | 2 +- ...prompt.stories.tsx => dock-prompt.lab.tsx} | 0 ...e-media.stories.tsx => file-media.lab.tsx} | 0 ...mment.stories.tsx => line-comment.lab.tsx} | 0 ...{markdown.stories.tsx => markdown.lab.tsx} | 0 ...iew.stories.tsx => session-review.lab.tsx} | 0 ...stories.tsx => tool-count-summary.lab.tsx} | 0 ...rd.stories.tsx => tool-error-card.lab.tsx} | 0 ...age.stories.tsx => prompt-message.lab.tsx} | 0 ...tories.tsx => user-message-quotes.lab.tsx} | 0 .../src/storybook/current-session-fixtures.ts | 2 +- ....stories.tsx => codemode-captured.lab.tsx} | 0 ...r.stories.tsx => compare-renderer.lab.tsx} | 0 .../{compare.stories.tsx => compare.lab.tsx} | 0 ...yground.stories.tsx => playground.lab.tsx} | 0 ...us.stories.tsx => subagent-status.lab.tsx} | 0 ...blocks.stories.tsx => code-blocks.lab.tsx} | 0 ...mentary.stories.tsx => commentary.lab.tsx} | 0 ...or-card.stories.tsx => error-card.lab.tsx} | 0 ...cing.stories.tsx => error-spacing.lab.tsx} | 0 ...anges.stories.tsx => file-changes.lab.tsx} | 0 .../{mermaid.stories.tsx => mermaid.lab.tsx} | 0 ...tories.tsx => research-and-agents.lab.tsx} | 0 ...work.stories.tsx => terminal-work.lab.tsx} | 0 ...e-row.stories.tsx => timeline-row.lab.tsx} | 0 ....stories.tsx => user-message-fold.lab.tsx} | 0 ...d-group.stories.tsx => read-group.lab.tsx} | 0 ...ries.tsx => subagent-row-variants.lab.tsx} | 0 ...l-group.stories.tsx => tool-group.lab.tsx} | 0 ... => session-progress-indicator-v2.lab.tsx} | 0 packages/session-ui/tsconfig.json | 2 +- packages/stories/playwright/README.md | 8 +- packages/stories/src/index-plugin.ts | 6 +- packages/stories/src/lab.tsx | 10 +-- packages/stories/vite.config.ts | 6 +- packages/ui/package.json | 3 +- packages/ui/script/generate-icon-usage.ts | 2 +- .../{button.stories.tsx => button.lab.tsx} | 0 ...button.stories.tsx => icon-button.lab.tsx} | 0 ...utton.stories.tsx => split-button.lab.tsx} | 0 ...er.stories.tsx => animated-number.lab.tsx} | 0 ...{app-icon.stories.tsx => app-icon.lab.tsx} | 0 .../{card.stories.tsx => card.lab.tsx} | 0 ...psible.stories.tsx => collapsible.lab.tsx} | 0 ...-menu.stories.tsx => context-menu.lab.tsx} | 0 ...ew.stories.tsx => diagram-preview.lab.tsx} | 0 ...rface.stories.tsx => dock-surface.lab.tsx} | 0 ...e.stories.tsx => document-surface.lab.tsx} | 0 ...ails.stories.tsx => error-details.lab.tsx} | 0 .../{favicon.stories.tsx => favicon.lab.tsx} | 0 ...ile-icon.stories.tsx => file-icon.lab.tsx} | 0 .../{font.stories.tsx => font.lab.tsx} | 0 ...er-card.stories.tsx => hover-card.lab.tsx} | 0 ...view.stories.tsx => image-preview.lab.tsx} | 0 .../{list.stories.tsx => list.lab.tsx} | 0 .../{logo.stories.tsx => logo.lab.tsx} | 0 ...scroll.stories.tsx => menu-scroll.lab.tsx} | 0 .../{popover.stories.tsx => popover.lab.tsx} | 0 ...s.stories.tsx => preview-controls.lab.tsx} | 0 ...{progress.stories.tsx => progress.lab.tsx} | 0 ...icon.stories.tsx => provider-icon.lab.tsx} | 0 ...ndle.stories.tsx => resize-handle.lab.tsx} | 0 ...ber.stories.tsx => rolling-number.lab.tsx} | 0 ...l-view.stories.tsx => scroll-view.lab.tsx} | 0 .../{spinner.stories.tsx => spinner.lab.tsx} | 0 ...es.tsx => sticky-accordion-header.lab.tsx} | 0 ...t-field.stories.tsx => text-field.lab.tsx} | 0 ...reveal.stories.tsx => text-reveal.lab.tsx} | 0 ...stories.tsx => text-strikethrough.lab.tsx} | 0 ...g.stories.tsx => thinking-heading.lab.tsx} | 0 ...ext.stories.tsx => truncated-text.lab.tsx} | 0 ...ewriter.stories.tsx => typewriter.lab.tsx} | 0 ...ccordion.stories.tsx => accordion.lab.tsx} | 0 .../{avatar.stories.tsx => avatar.lab.tsx} | 0 .../{badge.stories.tsx => badge.lab.tsx} | 0 ...anges.stories.tsx => diff-changes.lab.tsx} | 0 .../{keybind.stories.tsx => keybind.lab.tsx} | 0 ...mment.stories.tsx => line-comment.lab.tsx} | 0 .../project-avatar/procedural-kit.ts | 2 +- .../data-display/project-avatar/procedural.ts | 3 +- ...tar.stories.tsx => project-avatar.lab.tsx} | 0 ...tories.tsx => project-icon-styles.lab.tsx} | 0 ...ring.stories.tsx => activity-ring.lab.tsx} | 0 .../{loader.stories.tsx => loader.lab.tsx} | 0 ...le.stories.tsx => progress-circle.lab.tsx} | 0 .../{toast.stories.tsx => toast.lab.tsx} | 0 ...{checkbox.stories.tsx => checkbox.lab.tsx} | 0 .../{field.stories.tsx => field.lab.tsx} | 0 ...input.stories.tsx => inline-input.lab.tsx} | 0 .../{radio.stories.tsx => radio.lab.tsx} | 0 ...ste.stories.tsx => redirect-paste.lab.tsx} | 0 ...h-list.stories.tsx => search-list.lab.tsx} | 0 .../{select.stories.tsx => select.lab.tsx} | 0 .../{switch.stories.tsx => switch.lab.tsx} | 0 ...t-input.stories.tsx => text-input.lab.tsx} | 0 ...{textarea.stories.tsx => textarea.lab.tsx} | 0 ...ypeahead.stories.tsx => typeahead.lab.tsx} | 0 ...con-grid.stories.tsx => icon-grid.lab.tsx} | 0 ....tsx => icon-potential-duplicates.lab.tsx} | 0 ...unused.stories.tsx => icon-unused.lab.tsx} | 0 .../icon/{icon.stories.tsx => icon.lab.tsx} | 0 .../{divider.stories.tsx => divider.lab.tsx} | 0 .../menu/{menu.stories.tsx => menu.lab.tsx} | 0 ....stories.tsx => segmented-control.lab.tsx} | 0 ...tories.tsx => tab-state-indicator.lab.tsx} | 0 .../tabs/{tabs.stories.tsx => tabs.lab.tsx} | 0 .../{dialog.stories.tsx => dialog.lab.tsx} | 0 .../{tooltip.stories.tsx => tooltip.lab.tsx} | 0 ...tokens.stories.tsx => blue-tokens.lab.tsx} | 0 .../{slash.stories.tsx => slash.lab.tsx} | 0 ...immer.stories.tsx => text-shimmer.lab.tsx} | 0 ...{wordmark.stories.tsx => wordmark.lab.tsx} | 0 packages/ui/tsconfig.build.json | 2 +- packages/ui/tsconfig.json | 2 +- 315 files changed, 735 insertions(+), 732 deletions(-) rename packages/app/component-tests/{components-lab.spec.ts => lab.spec.ts} (58%) rename packages/app/src/composer/{composer-touch.stories.tsx => composer-touch.lab.tsx} (100%) rename packages/app/src/composer/{composer.stories.tsx => composer.lab.tsx} (99%) rename packages/app/src/composer/editor/{quote-comment.stories.tsx => quote-comment.lab.tsx} (100%) rename packages/app/src/home/{home.standalone.stories.tsx => home.standalone.lab.tsx} (99%) rename packages/app/src/home/sessions/{delete-dialog.stories.tsx => delete-dialog.lab.tsx} (100%) rename packages/app/src/{components-lab => lab}/browser.tsx (90%) rename packages/app/src/{components-lab => lab}/catalog.test.ts (92%) rename packages/app/src/{components-lab => lab}/catalog.ts (94%) rename packages/app/src/{components-lab => lab}/dialog-story-runtime.tsx (99%) rename packages/app/src/{components-lab/focus-rings.stories.tsx => lab/focus-rings.lab.tsx} (100%) rename packages/app/src/{components-lab/focus-visibility.stories.tsx => lab/focus-visibility.lab.tsx} (99%) rename packages/app/src/{components-lab => lab}/force-focus.ts (100%) rename packages/app/src/{components-lab => lab}/inspector.css (53%) rename packages/app/src/{components-lab => lab}/lab.tsx (83%) rename packages/app/src/{components-lab => lab}/machine.test.ts (100%) rename packages/app/src/{components-lab => lab}/machine.ts (100%) rename packages/app/src/{components-lab => lab}/motion.test.ts (100%) rename packages/app/src/{components-lab => lab}/motion.ts (100%) rename packages/app/src/new-session/{draft.standalone.stories.tsx => draft.standalone.lab.tsx} (99%) rename packages/app/src/new-session/location/{dialog.standalone.stories.tsx => dialog.standalone.lab.tsx} (98%) rename packages/app/src/new-session/{wordmark.stories.tsx => wordmark.lab.tsx} (100%) rename packages/app/src/providers/connect/{chatgpt-usage-limit.stories.tsx => chatgpt-usage-limit.lab.tsx} (100%) rename packages/app/src/providers/connect/{chatgpt-welcome.stories.tsx => chatgpt-welcome.lab.tsx} (100%) rename packages/app/src/providers/connect/{connected-models.stories.tsx => connected-models.lab.tsx} (100%) rename packages/app/src/providers/connect/{dialog.standalone.stories.tsx => dialog.standalone.lab.tsx} (99%) rename packages/app/src/providers/connect/{mcp-dialog.stories.tsx => mcp-dialog.lab.tsx} (100%) rename packages/app/src/providers/models/{manage.standalone.stories.tsx => manage.standalone.lab.tsx} (95%) rename packages/app/src/providers/models/{select-dialog.standalone.stories.tsx => select-dialog.standalone.lab.tsx} (98%) rename packages/app/src/providers/models/{unpaid.standalone.stories.tsx => unpaid.standalone.lab.tsx} (96%) rename packages/app/src/runtime/plugin/{dialogs.stories.tsx => dialogs.lab.tsx} (100%) rename packages/app/src/runtime/plugin/{titlebar-items.stories.tsx => titlebar-items.lab.tsx} (100%) rename packages/app/src/servers/connect/{dialog.stories.tsx => dialog.lab.tsx} (100%) rename packages/app/src/servers/connect/{screen.stories.tsx => screen.lab.tsx} (100%) rename packages/app/src/servers/registry/{row.stories.tsx => row.lab.tsx} (100%) rename packages/app/src/session/commands/{fork-dialog.stories.tsx => fork-dialog.lab.tsx} (100%) rename packages/app/src/session/commands/{jump-to-message.stories.tsx => jump-to-message.lab.tsx} (100%) rename packages/app/src/session/composer/{activity-chips.stories.tsx => activity-chips.lab.tsx} (100%) rename packages/app/src/session/composer/{composer-docks.stories.tsx => composer-docks.lab.tsx} (97%) rename packages/app/src/session/composer/{free-limit-panel.standalone.stories.tsx => free-limit-panel.standalone.lab.tsx} (94%) rename packages/app/src/session/composer/{location-missing.standalone.stories.tsx => location-missing.standalone.lab.tsx} (99%) rename packages/app/src/session/composer/{queue-panel.stories.tsx => queue-panel.lab.tsx} (100%) rename packages/app/src/session/composer/{todo-pill.stories.tsx => todo-pill.lab.tsx} (100%) rename packages/app/src/session/header/{session-header-actions.stories.tsx => session-header-actions.lab.tsx} (100%) rename packages/app/src/session/{question-switch.stories.tsx => question-switch.lab.tsx} (100%) rename packages/app/src/session/{server-unavailable-panel.standalone.stories.tsx => server-unavailable-panel.standalone.lab.tsx} (98%) rename packages/app/src/session/{session-menus.standalone.stories.tsx => session-menus.standalone.lab.tsx} (99%) rename packages/app/src/session/{session-screen.stories.tsx => session-screen.lab.tsx} (100%) rename packages/app/src/session/timeline/{background-work.stories.tsx => background-work.lab.tsx} (100%) rename packages/app/src/session/timeline/{quote.stories.tsx => quote.lab.tsx} (100%) rename packages/app/src/session/timeline/{search-bar.stories.tsx => search-bar.lab.tsx} (100%) rename packages/app/src/session/timeline/{sources.stories.tsx => sources.lab.tsx} (100%) rename packages/app/src/settings/{shell.standalone.stories.tsx => shell.standalone.lab.tsx} (97%) rename packages/app/src/settings/{timeline-detail.stories.tsx => timeline-detail.lab.tsx} (100%) rename packages/app/src/shell/commands/{dialog.standalone.stories.tsx => dialog.standalone.lab.tsx} (99%) rename packages/app/src/shell/titlebar/{inbox-card.stories.tsx => inbox-card.lab.tsx} (100%) rename packages/app/src/shell/titlebar/{inbox-list.stories.tsx => inbox-list.lab.tsx} (100%) rename packages/app/src/shell/titlebar/{sidebar-customized.standalone.stories.tsx => sidebar-customized.standalone.lab.tsx} (100%) rename packages/app/src/shell/titlebar/{tab-strip.standalone.stories.tsx => tab-strip.standalone.lab.tsx} (100%) rename packages/app/src/usage/{dialog.standalone.stories.tsx => dialog.standalone.lab.tsx} (98%) rename packages/app/src/workspaces/selection/{dialog.standalone.stories.tsx => dialog.standalone.lab.tsx} (97%) rename packages/gui-plugins/src/browser/{panel.stories.tsx => panel.lab.tsx} (100%) rename packages/gui-plugins/src/file/{browser.stories.tsx => browser.lab.tsx} (100%) rename packages/gui-plugins/src/pairing/{dialog.stories.tsx => dialog.lab.tsx} (100%) rename packages/gui-plugins/src/pairing/{page.stories.tsx => page.lab.tsx} (100%) rename packages/gui-plugins/src/review/{panel.stories.tsx => panel.lab.tsx} (100%) rename packages/gui-plugins/src/ssh/{dialog.stories.tsx => dialog.lab.tsx} (100%) rename packages/gui-plugins/src/updater/{whats-new.stories.tsx => whats-new.lab.tsx} (100%) rename packages/session-ui/src/components/{dock-prompt.stories.tsx => dock-prompt.lab.tsx} (100%) rename packages/session-ui/src/components/{file-media.stories.tsx => file-media.lab.tsx} (100%) rename packages/session-ui/src/components/{line-comment.stories.tsx => line-comment.lab.tsx} (100%) rename packages/session-ui/src/components/{markdown.stories.tsx => markdown.lab.tsx} (100%) rename packages/session-ui/src/components/{session-review.stories.tsx => session-review.lab.tsx} (100%) rename packages/session-ui/src/components/{tool-count-summary.stories.tsx => tool-count-summary.lab.tsx} (100%) rename packages/session-ui/src/components/{tool-error-card.stories.tsx => tool-error-card.lab.tsx} (100%) rename packages/session-ui/src/message/{prompt-message.stories.tsx => prompt-message.lab.tsx} (100%) rename packages/session-ui/src/message/{user-message-quotes.stories.tsx => user-message-quotes.lab.tsx} (100%) rename packages/session-ui/src/timeline-next/stories/{codemode-captured.stories.tsx => codemode-captured.lab.tsx} (100%) rename packages/session-ui/src/timeline-next/stories/{compare-renderer.stories.tsx => compare-renderer.lab.tsx} (100%) rename packages/session-ui/src/timeline-next/stories/{compare.stories.tsx => compare.lab.tsx} (100%) rename packages/session-ui/src/timeline-next/stories/{playground.stories.tsx => playground.lab.tsx} (100%) rename packages/session-ui/src/timeline-next/stories/{subagent-status.stories.tsx => subagent-status.lab.tsx} (100%) rename packages/session-ui/src/timeline/{code-blocks.stories.tsx => code-blocks.lab.tsx} (100%) rename packages/session-ui/src/timeline/{commentary.stories.tsx => commentary.lab.tsx} (100%) rename packages/session-ui/src/timeline/{error-card.stories.tsx => error-card.lab.tsx} (100%) rename packages/session-ui/src/timeline/{error-spacing.stories.tsx => error-spacing.lab.tsx} (100%) rename packages/session-ui/src/timeline/{file-changes.stories.tsx => file-changes.lab.tsx} (100%) rename packages/session-ui/src/timeline/{mermaid.stories.tsx => mermaid.lab.tsx} (100%) rename packages/session-ui/src/timeline/{research-and-agents.stories.tsx => research-and-agents.lab.tsx} (100%) rename packages/session-ui/src/timeline/{terminal-work.stories.tsx => terminal-work.lab.tsx} (100%) rename packages/session-ui/src/timeline/{timeline-row.stories.tsx => timeline-row.lab.tsx} (100%) rename packages/session-ui/src/timeline/{user-message-fold.stories.tsx => user-message-fold.lab.tsx} (100%) rename packages/session-ui/src/tools/{read-group.stories.tsx => read-group.lab.tsx} (100%) rename packages/session-ui/src/tools/{subagent-row-variants.stories.tsx => subagent-row-variants.lab.tsx} (100%) rename packages/session-ui/src/tools/{tool-group.stories.tsx => tool-group.lab.tsx} (100%) rename packages/session-ui/src/v2/components/{session-progress-indicator-v2.stories.tsx => session-progress-indicator-v2.lab.tsx} (100%) rename packages/ui/src/actions/button/{button.stories.tsx => button.lab.tsx} (100%) rename packages/ui/src/actions/icon-button/{icon-button.stories.tsx => icon-button.lab.tsx} (100%) rename packages/ui/src/actions/split-button/{split-button.stories.tsx => split-button.lab.tsx} (100%) rename packages/ui/src/components/{animated-number.stories.tsx => animated-number.lab.tsx} (100%) rename packages/ui/src/components/{app-icon.stories.tsx => app-icon.lab.tsx} (100%) rename packages/ui/src/components/{card.stories.tsx => card.lab.tsx} (100%) rename packages/ui/src/components/{collapsible.stories.tsx => collapsible.lab.tsx} (100%) rename packages/ui/src/components/{context-menu.stories.tsx => context-menu.lab.tsx} (100%) rename packages/ui/src/components/{diagram-preview.stories.tsx => diagram-preview.lab.tsx} (100%) rename packages/ui/src/components/{dock-surface.stories.tsx => dock-surface.lab.tsx} (100%) rename packages/ui/src/components/{document-surface.stories.tsx => document-surface.lab.tsx} (100%) rename packages/ui/src/components/{error-details.stories.tsx => error-details.lab.tsx} (100%) rename packages/ui/src/components/{favicon.stories.tsx => favicon.lab.tsx} (100%) rename packages/ui/src/components/{file-icon.stories.tsx => file-icon.lab.tsx} (100%) rename packages/ui/src/components/{font.stories.tsx => font.lab.tsx} (100%) rename packages/ui/src/components/{hover-card.stories.tsx => hover-card.lab.tsx} (100%) rename packages/ui/src/components/{image-preview.stories.tsx => image-preview.lab.tsx} (100%) rename packages/ui/src/components/{list.stories.tsx => list.lab.tsx} (100%) rename packages/ui/src/components/{logo.stories.tsx => logo.lab.tsx} (100%) rename packages/ui/src/components/{menu-scroll.stories.tsx => menu-scroll.lab.tsx} (100%) rename packages/ui/src/components/{popover.stories.tsx => popover.lab.tsx} (100%) rename packages/ui/src/components/{preview-controls.stories.tsx => preview-controls.lab.tsx} (100%) rename packages/ui/src/components/{progress.stories.tsx => progress.lab.tsx} (100%) rename packages/ui/src/components/{provider-icon.stories.tsx => provider-icon.lab.tsx} (100%) rename packages/ui/src/components/{resize-handle.stories.tsx => resize-handle.lab.tsx} (100%) rename packages/ui/src/components/{rolling-number.stories.tsx => rolling-number.lab.tsx} (100%) rename packages/ui/src/components/{scroll-view.stories.tsx => scroll-view.lab.tsx} (100%) rename packages/ui/src/components/{spinner.stories.tsx => spinner.lab.tsx} (100%) rename packages/ui/src/components/{sticky-accordion-header.stories.tsx => sticky-accordion-header.lab.tsx} (100%) rename packages/ui/src/components/{text-field.stories.tsx => text-field.lab.tsx} (100%) rename packages/ui/src/components/{text-reveal.stories.tsx => text-reveal.lab.tsx} (100%) rename packages/ui/src/components/{text-strikethrough.stories.tsx => text-strikethrough.lab.tsx} (100%) rename packages/ui/src/components/{thinking-heading.stories.tsx => thinking-heading.lab.tsx} (100%) rename packages/ui/src/components/{truncated-text.stories.tsx => truncated-text.lab.tsx} (100%) rename packages/ui/src/components/{typewriter.stories.tsx => typewriter.lab.tsx} (100%) rename packages/ui/src/data-display/accordion/{accordion.stories.tsx => accordion.lab.tsx} (100%) rename packages/ui/src/data-display/avatar/{avatar.stories.tsx => avatar.lab.tsx} (100%) rename packages/ui/src/data-display/badge/{badge.stories.tsx => badge.lab.tsx} (100%) rename packages/ui/src/data-display/diff-changes/{diff-changes.stories.tsx => diff-changes.lab.tsx} (100%) rename packages/ui/src/data-display/keybind/{keybind.stories.tsx => keybind.lab.tsx} (100%) rename packages/ui/src/data-display/line-comment/{line-comment.stories.tsx => line-comment.lab.tsx} (100%) rename packages/ui/src/data-display/project-avatar/{project-avatar.stories.tsx => project-avatar.lab.tsx} (100%) rename packages/ui/src/data-display/project-avatar/{project-icon-styles.stories.tsx => project-icon-styles.lab.tsx} (100%) rename packages/ui/src/feedback/activity-ring/{activity-ring.stories.tsx => activity-ring.lab.tsx} (100%) rename packages/ui/src/feedback/loader/{loader.stories.tsx => loader.lab.tsx} (100%) rename packages/ui/src/feedback/progress-circle/{progress-circle.stories.tsx => progress-circle.lab.tsx} (100%) rename packages/ui/src/feedback/toast/{toast.stories.tsx => toast.lab.tsx} (100%) rename packages/ui/src/forms/checkbox/{checkbox.stories.tsx => checkbox.lab.tsx} (100%) rename packages/ui/src/forms/field/{field.stories.tsx => field.lab.tsx} (100%) rename packages/ui/src/forms/inline-input/{inline-input.stories.tsx => inline-input.lab.tsx} (100%) rename packages/ui/src/forms/radio/{radio.stories.tsx => radio.lab.tsx} (100%) rename packages/ui/src/forms/redirect-paste/{redirect-paste.stories.tsx => redirect-paste.lab.tsx} (100%) rename packages/ui/src/forms/search-list/{search-list.stories.tsx => search-list.lab.tsx} (100%) rename packages/ui/src/forms/select/{select.stories.tsx => select.lab.tsx} (100%) rename packages/ui/src/forms/switch/{switch.stories.tsx => switch.lab.tsx} (100%) rename packages/ui/src/forms/text-input/{text-input.stories.tsx => text-input.lab.tsx} (100%) rename packages/ui/src/forms/textarea/{textarea.stories.tsx => textarea.lab.tsx} (100%) rename packages/ui/src/forms/typeahead/{typeahead.stories.tsx => typeahead.lab.tsx} (100%) rename packages/ui/src/icons/icon/{icon-grid.stories.tsx => icon-grid.lab.tsx} (100%) rename packages/ui/src/icons/icon/{icon-potential-duplicates.stories.tsx => icon-potential-duplicates.lab.tsx} (100%) rename packages/ui/src/icons/icon/{icon-unused.stories.tsx => icon-unused.lab.tsx} (100%) rename packages/ui/src/icons/icon/{icon.stories.tsx => icon.lab.tsx} (100%) rename packages/ui/src/layout/divider/{divider.stories.tsx => divider.lab.tsx} (100%) rename packages/ui/src/navigation/menu/{menu.stories.tsx => menu.lab.tsx} (100%) rename packages/ui/src/navigation/segmented-control/{segmented-control.stories.tsx => segmented-control.lab.tsx} (100%) rename packages/ui/src/navigation/{tab-state-indicator.stories.tsx => tab-state-indicator.lab.tsx} (100%) rename packages/ui/src/navigation/tabs/{tabs.stories.tsx => tabs.lab.tsx} (100%) rename packages/ui/src/overlays/dialog/{dialog.stories.tsx => dialog.lab.tsx} (100%) rename packages/ui/src/overlays/tooltip/{tooltip.stories.tsx => tooltip.lab.tsx} (100%) rename packages/ui/src/styles/{blue-tokens.stories.tsx => blue-tokens.lab.tsx} (100%) rename packages/ui/src/typography/slash/{slash.stories.tsx => slash.lab.tsx} (100%) rename packages/ui/src/typography/text-shimmer/{text-shimmer.stories.tsx => text-shimmer.lab.tsx} (100%) rename packages/ui/src/typography/wordmark/{wordmark.stories.tsx => wordmark.lab.tsx} (100%) diff --git a/.opencode/skills/component-tests/SKILL.md b/.opencode/skills/component-tests/SKILL.md index cea29788039..b78adef06ab 100644 --- a/.opencode/skills/component-tests/SKILL.md +++ b/.opencode/skills/component-tests/SKILL.md @@ -15,14 +15,14 @@ Read these first rather than repeating them: ## Stories and `mount` -- **Location.** Put the story next to the production component under `src/` of `ui`, `session-ui`, `app` or `gui-plugins`. The story server indexes `*.stories.tsx` files in those four trees (`packages/stories/vite.config.ts`, `src/index-plugin.ts`), reading each file's `export default { title, id }` and its `export const` stories from source. -- **Story ID.** It is the meta `id` if one is set (`packages/session-ui/src/components/session-review.stories.tsx:25`). Otherwise it is the kebab-cased `title`, then `--`, then the kebab-cased export. Check it at `http://127.0.0.1:6006/?id=` on a running story server (`bun --cwd packages/stories dev`). A wrong ID renders nothing (the page throws `No story has the id …`), so `mount` waits out its full 30 s root wait (`story.ts:39`) and then fails. +- **Location.** Put the Lab page next to the production component under `src/` of `ui`, `session-ui`, `app` or `gui-plugins`. The story server indexes `*.lab.tsx` files in those four trees (`packages/stories/vite.config.ts`, `src/index-plugin.ts`), reading each page's `export default { title, id }` and its `export const` states (the stories a test mounts) from source. Name a page that needs the story server's fixture runtime `*.standalone.lab.tsx`: the in-app Lab skips those. +- **Story ID.** It is the meta `id` if one is set (`packages/session-ui/src/components/session-review.lab.tsx:25`). Otherwise it is the kebab-cased `title`, then `--`, then the kebab-cased export. Check it at `http://127.0.0.1:6006/?id=` on a running story server (`bun --cwd packages/stories dev`). A wrong ID renders nothing (the page throws `No story has the id …`), so `mount` waits out its full 30 s root wait (`story.ts:39`) and then fails. - **URL args.** `mount(id, { args, globals })` writes them into the URL as `key:value` pairs (`story.ts:20-36`). The frame reads every one: a value becomes a boolean or number when the story's own default for that key is one, `!true`/`!false`/`!null`/`!undefined` keep Storybook's meaning, and anything else stays text. - - Give every arg a typed default. With `args: { split: false }` (`session-review.stories.tsx:129`), `split:false` arrives as a boolean. + - Give every arg a typed default. With `args: { split: false }` (`session-review.lab.tsx:129`), `split:false` arrives as a boolean. - A value containing `;` would split the pair list, so pick such values inside the story, from a `scenario`-style arg. - **Globals** are `theme` (default `light`), `direction` and `locale` (`packages/stories/src/frame.tsx`). - **Portaled UI.** `mount` returns `#story-root`. Dialogs, menus and drawers render outside it, so locate them from `page` (`packages/app/component-tests/composer.spec.ts:101-107`). -- **Server state** comes from the `resolve.alias` list in `packages/stories/vite.config.ts`, which points app server, SDK and sync modules at `packages/stories/mocks/app/**`. Extend a mock rather than adding a server. The app's components lab renders the same stories inside the real app instead, so a story must not depend on a mock-only export. Tests reset mock state on every mount. +- **Server state** comes from the `resolve.alias` list in `packages/stories/vite.config.ts`, which points app server, SDK and sync modules at `packages/stories/mocks/app/**`. Extend a mock rather than adding a server. The app's Lab (`/components`) renders the same pages inside the real app instead, so a story must not depend on a mock-only export. Tests reset mock state on every mount. - **Requests the mocks do not answer.** Route them with `page.route`. That includes server endpoints such as `/api/fs/read` (`packages/session-ui/component-tests/read-image.spec.ts:20`) and external URLs such as favicons (`packages/session-ui/component-tests/markdown.spec.ts:217`). ## Fixtures imported by URL @@ -44,10 +44,10 @@ Use these when the contract is not visible in a story, such as construction coun ## Vite pre-bundling and reloads -`packages/stories/vite.config.ts` sets `optimizeDeps.entries`: every `*.stories.tsx` and `*.worker.ts` under the four `src/` trees, every module a component spec names by a `./` or `../` string literal ending in `.ts`/`.tsx` (collected at the top of the file), and the frame's `index.html`. Vite pre-bundles their bare imports before the first page loads. A dependency the scan misses is found on first import instead. If that changes chunks already served, Vite logs `✨ optimized dependencies changed. reloading` and sends `full-reload` with path `*` to every page in every worker, and requests with a stale `?v=` hash get a 504 "Outdated Optimize Dep". +`packages/stories/vite.config.ts` sets `optimizeDeps.entries`: every `*.lab.tsx` and `*.worker.ts` under the four `src/` trees, every module a component spec names by a `./` or `../` string literal ending in `.ts`/`.tsx` (collected at the top of the file), and the frame's `index.html`. Vite pre-bundles their bare imports before the first page loads. A dependency the scan misses is found on first import instead. If that changes chunks already served, Vite logs `✨ optimized dependencies changed. reloading` and sends `full-reload` with path `*` to every page in every worker, and requests with a stale `?v=` hash get a 504 "Outdated Optimize Dep". - **The bar is zero reloads.** A cold run of either suite should print neither `new dependencies optimized` nor `optimized dependencies changed`, so these lines are the signal to watch. -- **Keep new code reachable by the scan.** A module path built at runtime, in a template literal, or without its extension is not collected, and neither is a spec named other than `*.spec.ts`. Name stories `*.stories.tsx`: the story index and the scan read only that extension. Name workers `*.worker.ts`, since the scan does not follow `new Worker(new URL(…))`. Add an `optimizeDeps.include` entry only for a dependency the scan cannot reach. Vite names it in `✨ new dependencies optimized: …`, and `DEBUG=vite:deps` replaces that line with scan and discovery detail. +- **Keep new code reachable by the scan.** A module path built at runtime, in a template literal, or without its extension is not collected, and neither is a spec named other than `*.spec.ts`. Name Lab pages `*.lab.tsx`: the story index and the scan read only that extension. Name workers `*.worker.ts`, since the scan does not follow `new Worker(new URL(…))`. Add an `optimizeDeps.include` entry only for a dependency the scan cannot reach. Vite names it in `✨ new dependencies optimized: …`, and `DEBUG=vite:deps` replaces that line with scan and discovery detail. - **Symptoms.** "page.evaluate: Execution context was destroyed", "Failed to fetch dynamically imported module …/@fs/…", or fixture state that is gone right after `mount` ("Registrations: 1" not found, an empty tab strip). - **Only `mount()` survives a reload,** because it navigates back to the same URL. A reload loses everything set up after it: `page.evaluate` imports, mounted fixtures, state from earlier clicks, and the elements your locators pointed at. Another worker's discovery can trigger it at any moment. - **Fix reloads in the scan, never with retries, timeouts or import order.** The import-everything-before-mount `Promise.all` in `browser-pane-restore.spec.ts:43-58` (comment at `:56`) only narrowed the window. Before the entries existed, that file's `:123` and `:150` were retried in 31 CI jobs each, and failed attempts cost about 39-47 s (Linux) and 34 s (Windows) of worker time per run. diff --git a/packages/app/component-tests/components-lab.spec.ts b/packages/app/component-tests/lab.spec.ts similarity index 58% rename from packages/app/component-tests/components-lab.spec.ts rename to packages/app/component-tests/lab.spec.ts index d83e4d295fb..eb1b1900c32 100644 --- a/packages/app/component-tests/components-lab.spec.ts +++ b/packages/app/component-tests/lab.spec.ts @@ -1,11 +1,11 @@ import { expect, story } from "../../stories/playwright/story" -story("opens a component from the standalone catalog and previews its states", async ({ page }) => { +story("opens a page from the standalone Lab and previews its states", async ({ page }) => { await page.goto("/") await expect(page.getByRole("tree")).toBeVisible({ timeout: 30_000 }) - await page.getByRole("button", { name: /Search components/ }).click() + await page.getByRole("button", { name: /Search pages/ }).click() - const search = page.getByPlaceholder("Search components") + const search = page.getByPlaceholder("Search pages") await search.fill("Composer docks") await search.press("Enter") @@ -13,10 +13,10 @@ story("opens a component from the standalone catalog and previews its states", a await expect(page.getByText("Rename the Alpha export", { exact: true })).toBeVisible() }) -story("edits a story's state argument from the inspector", async ({ page }) => { - await page.goto("/?story=../../app/src/composer/composer-touch.stories.tsx") +story("edits a page's state argument from the inspector", async ({ page }) => { + await page.goto("/?page=../../app/src/composer/composer-touch.lab.tsx") await page - .getByRole("region", { name: "components-lab controls" }) + .getByRole("region", { name: "lab controls" }) .getByRole("button", { name: "state", exact: true }) .click() await page.getByRole("menuitemradio", { name: "shell", exact: true }).click() diff --git a/packages/app/component-tests/plugin-host.fixture.tsx b/packages/app/component-tests/plugin-host.fixture.tsx index c7152da23d3..9691e1ea7b6 100644 --- a/packages/app/component-tests/plugin-host.fixture.tsx +++ b/packages/app/component-tests/plugin-host.fixture.tsx @@ -720,7 +720,7 @@ export function mountSessionRegion(input: { * theme picker's choices as Settings › Appearance lists them; `disable` and `enable` toggle a plugin as * Extensions › Plugins does. With `pending`, the plugin list has not arrived until `load()`. `applied` counts the * provider's `onThemeApplied` calls, which show a desktop window. `preview`, `previewScheme`, `commit` and `cancel` - * drive the provider's preview, as the components lab does. + * drive the provider's preview, as the Lab does. */ export function mountThemes(input: { definitions: readonly Entry[]; pending?: true }) { const container = document.createElement("div") diff --git a/packages/app/src/composer/composer-touch.stories.tsx b/packages/app/src/composer/composer-touch.lab.tsx similarity index 100% rename from packages/app/src/composer/composer-touch.stories.tsx rename to packages/app/src/composer/composer-touch.lab.tsx diff --git a/packages/app/src/composer/composer.stories.tsx b/packages/app/src/composer/composer.lab.tsx similarity index 99% rename from packages/app/src/composer/composer.stories.tsx rename to packages/app/src/composer/composer.lab.tsx index fc13a2d72c1..514b34a40df 100644 --- a/packages/app/src/composer/composer.stories.tsx +++ b/packages/app/src/composer/composer.lab.tsx @@ -305,7 +305,7 @@ function ComposerStory(props: { if (props.suggestions === "command" || props.suggestions === "context") suggest(props.suggestions) }) - // The components lab keeps this story mounted across states that differ only in args, so the composer follows them + // The Lab keeps this story mounted across states that differ only in args, so the composer follows them // in place and its own transitions play. The prompt is compared by value: the lab updates its args store in place. // One effect, so the prompt lands before the suggestions open on it: an empty draft opens them inline, typing the // trigger, so a change of either starts over from the state's prompt. diff --git a/packages/app/src/composer/editor/quote-comment.stories.tsx b/packages/app/src/composer/editor/quote-comment.lab.tsx similarity index 100% rename from packages/app/src/composer/editor/quote-comment.stories.tsx rename to packages/app/src/composer/editor/quote-comment.lab.tsx diff --git a/packages/app/src/home/home.standalone.stories.tsx b/packages/app/src/home/home.standalone.lab.tsx similarity index 99% rename from packages/app/src/home/home.standalone.stories.tsx rename to packages/app/src/home/home.standalone.lab.tsx index a39b8ab969d..c27c373b59f 100644 --- a/packages/app/src/home/home.standalone.stories.tsx +++ b/packages/app/src/home/home.standalone.lab.tsx @@ -1,7 +1,7 @@ import type { SessionInfo } from "@opencode/client/promise" import { createEffect, createMemo, on, onCleanup, Show } from "solid-js" import { createStore } from "solid-js/store" -import { DialogStoryRuntime, STORY_PROJECTS, STORY_SERVER } from "@/components-lab/dialog-story-runtime" +import { DialogStoryRuntime, STORY_PROJECTS, STORY_SERVER } from "@/lab/dialog-story-runtime" import { normalizeProjectInfo } from "@/runtime/server/global-sync/utils" import { useServer } from "@/runtime/server/current" import { useLanguage } from "@/runtime/i18n/language" diff --git a/packages/app/src/home/sessions/delete-dialog.stories.tsx b/packages/app/src/home/sessions/delete-dialog.lab.tsx similarity index 100% rename from packages/app/src/home/sessions/delete-dialog.stories.tsx rename to packages/app/src/home/sessions/delete-dialog.lab.tsx diff --git a/packages/app/src/components-lab/browser.tsx b/packages/app/src/lab/browser.tsx similarity index 90% rename from packages/app/src/components-lab/browser.tsx rename to packages/app/src/lab/browser.tsx index cc876cd70fc..f359784679d 100644 --- a/packages/app/src/components-lab/browser.tsx +++ b/packages/app/src/lab/browser.tsx @@ -53,7 +53,7 @@ const gridIcon = ` @@ -79,16 +79,17 @@ export function LabBrowser(props: { const dispatchBrowse = (event: LabBrowseEvent) => { const next = transitionLabBrowse(browse, event) browse = next.state - next.effects.forEach(() => focusTree?.(props.params.story)) + next.effects.forEach(() => focusTree?.(page())) } + const page = () => props.params.page const entries = () => catalog()?.entries ?? [] const grid = () => props.params.view === "grid" - const selected = createMemo(() => (grid() ? undefined : entries().find((entry) => entry.file === props.params.story))) + const selected = createMemo(() => (grid() ? undefined : entries().find((entry) => entry.file === page()))) const open = (file: string) => { - dispatchBrowse({ type: "story.opened", fromTree: stories.contains(document.activeElement) }) - props.setParams({ story: file, view: undefined }) + dispatchBrowse({ type: "story.opened", fromTree: pages.contains(document.activeElement) }) + props.setParams({ page: file, view: undefined }) } const rows = createMemo(() => folder(entries(), [])) @@ -138,7 +139,7 @@ export function LabBrowser(props: { { capture: true }, ) - // A story's modal overlay (a menu or dialog open by default) sets `pointer-events: none` on the body, which would + // A page's modal overlay (a menu or dialog open by default) sets `pointer-events: none` on the body, which would // freeze the lab around it. The lab stays usable while it's open. const unblock = document.createElement("style") @@ -158,22 +159,26 @@ export function LabBrowser(props: { if (failed) toast(language.plural("lab.failed", failed)) }) - // The story's knobs panel mounts in the inspector pane. + // The page's knobs panel mounts in the inspector pane. const inspector = pane(() => null) - const stories = pane(() => ( + const pages = pane(() => ( row.detail} - label={language.t("lab.components")} + label={language.t("lab.pages")} expanded={rows().map((row) => row.id)} - selection={props.params.story ? [props.params.story] : []} - // Digits pick the story's states. + selection={page() ? [page()!] : []} + // Digits pick the page's states. typeahead={(key) => !/^[0-9]$/.test(key)} onReady={(tree) => { - // Opens the folders down to the story in the address, and later ones picked from the palette. - createEffect(() => props.params.story && tree.reveal(props.params.story)) + // Opens the folders down to the page in the address, and later ones picked from the palette. + createEffect(() => { + const file = page() + + if (file) tree.reveal(file) + }) toggle = (id) => tree.expand(id, !tree.isExpanded(id)) focusTree = (id) => tree.focus(id) }} @@ -224,7 +229,7 @@ export function LabBrowser(props: { )) - const inTree = (event: Event) => event.target instanceof Node && stories.contains(event.target) + const inTree = (event: Event) => event.target instanceof Node && pages.contains(event.target) makeEventListener(window, "pointerdown", (event) => dispatchBrowse({ type: "pointer.down", inTree: inTree(event) }), { capture: true, @@ -250,13 +255,13 @@ export function LabBrowser(props: { storage: null, panes: [ { - id: "stories", + id: "pages", size: 260, min: 200, max: 420, collapsible: true, - title: language.t("lab.components"), - element: stories, + title: language.t("lab.pages"), + element: pages, actions: [ { label: language.t("lab.search"), icon: searchIcon, shortcut: "Mod+K", run: search }, { @@ -276,7 +281,7 @@ export function LabBrowser(props: { ], }) - createEffect(() => layout.pane("stories").title(language.t("lab.components"), entries().length)) + createEffect(() => layout.pane("pages").title(language.t("lab.pages"), entries().length)) createEffect(() => layout.pane("inspector").title(selected()?.title.split("/").join(" / ") ?? "")) createEffect(on(scheme, (next) => restyle(layout.element, { theme: next }), { defer: true })) onCleanup(() => layout.dispose()) @@ -284,12 +289,12 @@ export function LabBrowser(props: { return ( -
+
) } -/** One story on the app's background, with its args and states as a knobs panel in the inspector. */ +/** One page on the app's background, with its args and states as a knobs panel in the inspector. */ function Stage(props: { entry: LabEntry inspector: HTMLElement @@ -351,7 +356,7 @@ function Stage(props: { return } - // Coalesced: a story registers its replay buttons one by one. + // Coalesced: a page registers its replay buttons one by one. if (effect.type === "motion.queue") return queueMicrotask(() => dispatch({ type: "motion.flushed" })) const next = storyMotion(entry.motion) @@ -388,8 +393,8 @@ function Stage(props: { ), } - // The story's Knobs join its args here, so the inspector is the one place for its controls. Registering a knob or a - // replay button (as the story mounts) rebuilds it where it was. + // The page's Knobs join its args here, so the inspector is the one place for its controls. Registering a knob or a + // replay button (as the page mounts) rebuilds it where it was. let motion = storyMotion(entry.motion) const [shown, setShown] = createSignal(motion, { equals: sameMotion }) @@ -397,7 +402,7 @@ function Stage(props: { const scopes = motionScopes(motion) return defineControls( - "components-lab", + "lab", { ...states, ...fields, ...motionFields(motion) }, { storage: null, @@ -408,7 +413,7 @@ function Stage(props: { presets: Object.fromEntries( entry.states.slice(1).map((state, offset) => [state.name, knobArgs(fields, stateArgs(entry, offset + 1))]), ), - // A state leaves the Knobs where they are: they're the story's tuning, not part of a state. + // A state leaves the Knobs where they are: they're the page's tuning, not part of a state. inPresets: scopes.inPresets, scopedPresets: scopes.scopedPresets, onChange: (patch, values, meta) => { @@ -461,8 +466,8 @@ function Stage(props: { } return ( - // Contained layout makes the canvas hold its stories' dialogs, which the provider below portals into it. - // A press inside the story (its own replay buttons, a dock) stops Play rather than being undone by it. + // Contained layout makes the canvas hold its pages' dialogs, which the provider below portals into it. + // A press inside the page (its own replay buttons, a dock) stops Play rather than being undone by it.
path.every((segment, index) => entry.title.split("/")[index] === segment)) @@ -526,7 +531,7 @@ function folder(entries: LabEntry[], path: string[]): Row[] { } // knobs' split takes each pane's content as a node; Solid keeps it reactive where it sits. -/** The library's stories on a canvas that pans and zooms, each in its first state; clicking one opens it on its own. */ +/** The library's pages on a canvas that pans and zooms, each in its first state; clicking one opens it on its own. */ function Grid(props: { entries: LabEntry[] scheme: "dark" | "light" @@ -562,7 +567,7 @@ function Grid(props: { render: (card: HTMLElement) => createRoot((dispose) => { // The shell keeps its size and hit target as previews enter and leave the viewport. - card.dataset.labStory = entry.file + card.dataset.labPage = entry.file const [visible, setVisible] = createSignal(false) visibility.set(card, setVisible) observer.observe(card) @@ -583,13 +588,13 @@ function Grid(props: { }) // The canvas captures the pointer to pan, so a card never sees its click: a press that ends where it began opens - // the story it began on. + // the page it began on. let press: { file: string; x: number; y: number } | undefined const down = (event: PointerEvent) => { - const file = event.target instanceof Element ? event.target.closest("[data-lab-story]") : null + const file = event.target instanceof Element ? event.target.closest("[data-lab-page]") : null - press = file?.dataset.labStory ? { file: file.dataset.labStory, x: event.clientX, y: event.clientY } : undefined + press = file?.dataset.labPage ? { file: file.dataset.labPage, x: event.clientX, y: event.clientY } : undefined } const up = (event: PointerEvent) => { @@ -610,7 +615,7 @@ function Grid(props: { return
} -// A story's first state at its natural size, holding its own dialogs as the stage does. +// A page's first state at its natural size, holding its own dialogs as the stage does. function Tile(props: { entry: LabEntry; plugin: LabPlugin }) { const [canvas, setCanvas] = createSignal() const component = props.entry.component @@ -626,7 +631,7 @@ function Tile(props: { entry: LabEntry; plugin: LabPlugin }) { "flex-col": props.entry.fullscreen, }} > - {/* The provider waits for the card, so a story that opens a dialog at once opens it inside. */} + {/* The provider waits for the card, so a page that opens a dialog at once opens it inside. */} {(container) => (
@@ -649,7 +654,7 @@ function Tile(props: { entry: LabEntry; plugin: LabPlugin }) { } function isDialogEntry(entry: LabEntry) { - return entry.title.startsWith("App/Dialogs/") || entry.file.endsWith("/overlays/dialog/dialog.stories.tsx") + return entry.title.startsWith("App/Dialogs/") || entry.file.endsWith("/overlays/dialog/dialog.lab.tsx") } function tileSize(entry: LabEntry) { @@ -705,7 +710,7 @@ function bindPresetNumbers(inspector: HTMLElement, count: number, select: (numbe if (number * 10 > count) return select(number) - // A prefix can be a preset on its own. Wait for the next digit before mounting a story that might take focus. + // A prefix can be a preset on its own. Wait for the next digit before mounting a page that might take focus. pending = { number, timer: setTimeout(() => { diff --git a/packages/app/src/components-lab/catalog.test.ts b/packages/app/src/lab/catalog.test.ts similarity index 92% rename from packages/app/src/components-lab/catalog.test.ts rename to packages/app/src/lab/catalog.test.ts index ff5ffcf7605..09975343103 100644 --- a/packages/app/src/components-lab/catalog.test.ts +++ b/packages/app/src/lab/catalog.test.ts @@ -25,7 +25,7 @@ const module = { describe("labEntry", () => { test("keeps the states in source order, each over the meta's args", () => { - const entry = labEntry("docks.stories.tsx", module, source) + const entry = labEntry("docks.lab.tsx", module, source) expect(entry.states.map((state) => state.name)).toEqual(["Empty", "Queue 3", "Answered"]) expect(stateArgs(entry, 1)).toEqual({ queued: 3, question: false, size: "normal", label: "Send" }) @@ -34,7 +34,7 @@ describe("labEntry", () => { describe("labFields", () => { test("types each arg by its argType, else by its value", () => { - const entry = labEntry("docks.stories.tsx", module, source) + const entry = labEntry("docks.lab.tsx", module, source) const fields = labFields(entry) expect(fields).toEqual({ @@ -49,7 +49,7 @@ describe("labFields", () => { test("starts each knob at the first state's value", () => { const entry = labEntry( - "spinner.stories.tsx", + "spinner.lab.tsx", { default: { args: { variant: "radar" } }, Today: { args: { variant: "today" } }, Radar: {} }, "export const Today = {}\nexport const Radar = {}", ) diff --git a/packages/app/src/components-lab/catalog.ts b/packages/app/src/lab/catalog.ts similarity index 94% rename from packages/app/src/components-lab/catalog.ts rename to packages/app/src/lab/catalog.ts index 8e6510960c5..66b51980065 100644 --- a/packages/app/src/components-lab/catalog.ts +++ b/packages/app/src/lab/catalog.ts @@ -45,7 +45,7 @@ export type LabEntry = { states: LabState[] } -/** Loads every story file. A file that fails to import is reported rather than hiding the rest. */ +/** Loads every Lab page. A file that fails to import is reported rather than hiding the rest. */ export async function loadLabCatalog( modules: Record Promise>, sources: Record Promise>, @@ -73,7 +73,7 @@ export async function loadLabCatalog( } } -// A story file as the lab shows it. A module lists its exports alphabetically, so `source`, the file's text, gives the +// A page as the lab shows it. A module lists its exports alphabetically, so `source`, the file's text, gives the // order the author wrote the states in. export function labEntry(file: string, module: StoryModule, source: string): LabEntry { const meta = isStoryObject(module.default) ? module.default : {} @@ -111,9 +111,9 @@ export function labEntry(file: string, module: StoryModule, source: string): Lab } } -/** A story file's name: `composer-docks` for `…/composer-docks.stories.tsx`. */ +/** A page's name: `composer-docks` for `…/composer-docks.lab.tsx`. */ export function fileName(file: string) { - return file.replace(/^.*\//, "").replace(/\.stories\.tsx$/, "") + return file.replace(/^.*\//, "").replace(/\.lab\.tsx$/, "") } /** The args a state renders with: the meta's, then the state's own. */ diff --git a/packages/app/src/components-lab/dialog-story-runtime.tsx b/packages/app/src/lab/dialog-story-runtime.tsx similarity index 99% rename from packages/app/src/components-lab/dialog-story-runtime.tsx rename to packages/app/src/lab/dialog-story-runtime.tsx index 1f409034036..8bf6373d335 100644 --- a/packages/app/src/components-lab/dialog-story-runtime.tsx +++ b/packages/app/src/lab/dialog-story-runtime.tsx @@ -788,7 +788,7 @@ export function createMemoryStorage() { } // Standalone story-server fixtures only: web persistence does not honor the storage override. -// Callers use *.standalone.stories.tsx so the in-app lab never mounts these providers. +// Callers use *.standalone.lab.tsx so the in-app lab never mounts these providers. export function DialogStoryRuntime(props: ParentProps) { const servers = () => props.servers ?? [STORY_SERVER] diff --git a/packages/app/src/components-lab/focus-rings.stories.tsx b/packages/app/src/lab/focus-rings.lab.tsx similarity index 100% rename from packages/app/src/components-lab/focus-rings.stories.tsx rename to packages/app/src/lab/focus-rings.lab.tsx diff --git a/packages/app/src/components-lab/focus-visibility.stories.tsx b/packages/app/src/lab/focus-visibility.lab.tsx similarity index 99% rename from packages/app/src/components-lab/focus-visibility.stories.tsx rename to packages/app/src/lab/focus-visibility.lab.tsx index aa0a688b434..9cb66280615 100644 --- a/packages/app/src/components-lab/focus-visibility.stories.tsx +++ b/packages/app/src/lab/focus-visibility.lab.tsx @@ -623,7 +623,7 @@ const surfaces: Surface[] = [ Recent sessions Review focus states Check mobile layout - Update the component lab + Update the Lab
), diff --git a/packages/app/src/components-lab/force-focus.ts b/packages/app/src/lab/force-focus.ts similarity index 100% rename from packages/app/src/components-lab/force-focus.ts rename to packages/app/src/lab/force-focus.ts diff --git a/packages/app/src/components-lab/inspector.css b/packages/app/src/lab/inspector.css similarity index 53% rename from packages/app/src/components-lab/inspector.css rename to packages/app/src/lab/inspector.css index 3085e0a849a..375c07ea36a 100644 --- a/packages/app/src/components-lab/inspector.css +++ b/packages/app/src/lab/inspector.css @@ -1,22 +1,22 @@ -.knobs-panel.knobs-inline[data-controls="components-lab"] { +.knobs-panel.knobs-inline[data-controls="lab"] { border-radius: 0; } -.knobs-panel[data-controls="components-lab"] .knobs-presets-track { +.knobs-panel[data-controls="lab"] .knobs-presets-track { counter-reset: lab-preset; } -.knobs-panel[data-controls="components-lab"] .knobs-preset-chip { +.knobs-panel[data-controls="lab"] .knobs-preset-chip { counter-increment: lab-preset; padding-inline-start: 30px; text-align: start; } -.knobs-panel[data-controls="components-lab"] .knobs-preset-key { +.knobs-panel[data-controls="lab"] .knobs-preset-key { display: none; } -.knobs-panel[data-controls="components-lab"] .knobs-preset-chip::before { +.knobs-panel[data-controls="lab"] .knobs-preset-chip::before { content: counter(lab-preset); position: absolute; inset-inline-start: 6px; diff --git a/packages/app/src/components-lab/lab.tsx b/packages/app/src/lab/lab.tsx similarity index 83% rename from packages/app/src/components-lab/lab.tsx rename to packages/app/src/lab/lab.tsx index 811acb7d937..182297a64d1 100644 --- a/packages/app/src/components-lab/lab.tsx +++ b/packages/app/src/lab/lab.tsx @@ -14,30 +14,30 @@ import { LocationProvider } from "@/workspaces/location" import { LabBrowser } from "./browser" import { loadLabCatalog, type StoryModule } from "./catalog" -// Standalone stories mount fixture runtimes that must not access the live app's storage. +// Standalone pages mount fixture runtimes that must not access the live app's storage. // Vite needs the patterns as literals in each call. const modules = import.meta.glob([ - "../**/*.stories.tsx", - "../../../ui/src/**/*.stories.tsx", - "../../../session-ui/src/**/*.stories.tsx", - "../../../gui-plugins/src/**/*.stories.tsx", - "!../**/*.standalone.stories.tsx", + "../**/*.lab.tsx", + "../../../ui/src/**/*.lab.tsx", + "../../../session-ui/src/**/*.lab.tsx", + "../../../gui-plugins/src/**/*.lab.tsx", + "!../**/*.standalone.lab.tsx", ]) // Each file's text, for the order its states were written in. const sources = import.meta.glob( [ - "../**/*.stories.tsx", - "../../../ui/src/**/*.stories.tsx", - "../../../session-ui/src/**/*.stories.tsx", - "../../../gui-plugins/src/**/*.stories.tsx", - "!../**/*.standalone.stories.tsx", + "../**/*.lab.tsx", + "../../../ui/src/**/*.lab.tsx", + "../../../session-ui/src/**/*.lab.tsx", + "../../../gui-plugins/src/**/*.lab.tsx", + "!../**/*.standalone.lab.tsx", ], { query: "?raw", import: "default" }, ) -export default function ComponentsLab() { - const [params, setParams] = useSearchParams<{ story?: string; view?: string }>() +export default function Lab() { + const [params, setParams] = useSearchParams<{ page?: string; view?: string }>() return ( // The dev server and Beta only. Both are fixed at build time, so other builds, prod included, drop the import and never // contain the lab, its stories or knobs. Beta loads it as its own chunk, only when /components opens. -const ComponentsLab = +const Lab = import.meta.env.DEV || import.meta.env.VITE_OPENCODE_CHANNEL === "beta" - ? lazy(() => import("@/components-lab/lab")) + ? lazy(() => import("@/lab/lab")) : undefined const TargetSessionRouteContent = lazy(() => @@ -83,7 +83,7 @@ export function AppRoutes() { )} /> - {ComponentsLab && } + {Lab && } ) } diff --git a/packages/app/src/shell/titlebar/inbox-card.stories.tsx b/packages/app/src/shell/titlebar/inbox-card.lab.tsx similarity index 100% rename from packages/app/src/shell/titlebar/inbox-card.stories.tsx rename to packages/app/src/shell/titlebar/inbox-card.lab.tsx diff --git a/packages/app/src/shell/titlebar/inbox-list.stories.tsx b/packages/app/src/shell/titlebar/inbox-list.lab.tsx similarity index 100% rename from packages/app/src/shell/titlebar/inbox-list.stories.tsx rename to packages/app/src/shell/titlebar/inbox-list.lab.tsx diff --git a/packages/app/src/shell/titlebar/navigation-story.tsx b/packages/app/src/shell/titlebar/navigation-story.tsx index 63fff5e3474..0d13edd9439 100644 --- a/packages/app/src/shell/titlebar/navigation-story.tsx +++ b/packages/app/src/shell/titlebar/navigation-story.tsx @@ -8,7 +8,7 @@ import { STORY_DIRECTORY, STORY_PROJECTS, STORY_SERVER, -} from "@/components-lab/dialog-story-runtime" +} from "@/lab/dialog-story-runtime" import type { Platform } from "@/runtime/platform/platform" import { ServerConnection } from "@/runtime/server/registry" import { useGlobal } from "@/runtime/server/runtime" diff --git a/packages/app/src/shell/titlebar/sidebar-customized.standalone.stories.tsx b/packages/app/src/shell/titlebar/sidebar-customized.standalone.lab.tsx similarity index 100% rename from packages/app/src/shell/titlebar/sidebar-customized.standalone.stories.tsx rename to packages/app/src/shell/titlebar/sidebar-customized.standalone.lab.tsx diff --git a/packages/app/src/shell/titlebar/tab-strip.standalone.stories.tsx b/packages/app/src/shell/titlebar/tab-strip.standalone.lab.tsx similarity index 100% rename from packages/app/src/shell/titlebar/tab-strip.standalone.stories.tsx rename to packages/app/src/shell/titlebar/tab-strip.standalone.lab.tsx diff --git a/packages/app/src/usage/dialog.standalone.stories.tsx b/packages/app/src/usage/dialog.standalone.lab.tsx similarity index 98% rename from packages/app/src/usage/dialog.standalone.stories.tsx rename to packages/app/src/usage/dialog.standalone.lab.tsx index 60c03212bfb..4792c2c1111 100644 --- a/packages/app/src/usage/dialog.standalone.stories.tsx +++ b/packages/app/src/usage/dialog.standalone.lab.tsx @@ -2,7 +2,7 @@ import type { UsageLimitsBudget, UsageLimitsInfo } from "@opencode/client/promis import { Button } from "@opencode/ui/button" import { useDialog } from "@opencode/ui/context/dialog" import { onMount } from "solid-js" -import { DialogStoryRuntime, STORY_DIRECTORY, STORY_LOCKED_SERVER } from "@/components-lab/dialog-story-runtime" +import { DialogStoryRuntime, STORY_DIRECTORY, STORY_LOCKED_SERVER } from "@/lab/dialog-story-runtime" import { DialogUsage, UsageDialogContent } from "./dialog" import type { CurrentModel } from "./limits" diff --git a/packages/app/src/workspaces/files/content-cache-accounting.test.ts b/packages/app/src/workspaces/files/content-cache-accounting.test.ts index e95a73e3fd8..7a7a24c8014 100644 --- a/packages/app/src/workspaces/files/content-cache-accounting.test.ts +++ b/packages/app/src/workspaces/files/content-cache-accounting.test.ts @@ -61,7 +61,7 @@ describe("file content eviction", () => { expect(cache.evict()).toEqual([]) }) - // Every file provider (session, new session, components lab) used to share one cache, so one provider's directory + // Every file provider (session, new session, Lab) used to share one cache, so one provider's directory // change wiped the others' accounting and left their content unevictable. test("keeps each provider's accounting separate", () => { const first = createFileContentCache() diff --git a/packages/app/src/workspaces/selection/dialog.standalone.stories.tsx b/packages/app/src/workspaces/selection/dialog.standalone.lab.tsx similarity index 97% rename from packages/app/src/workspaces/selection/dialog.standalone.stories.tsx rename to packages/app/src/workspaces/selection/dialog.standalone.lab.tsx index a78edac3e7c..10a68a2d1b7 100644 --- a/packages/app/src/workspaces/selection/dialog.standalone.stories.tsx +++ b/packages/app/src/workspaces/selection/dialog.standalone.lab.tsx @@ -2,7 +2,7 @@ import { Button } from "@opencode/ui/button" import { useDialog } from "@opencode/ui/context/dialog" import { onMount } from "solid-js" import { createStore } from "solid-js/store" -import { DialogStoryRuntime, STORY_DIRECTORY, STORY_SERVER } from "@/components-lab/dialog-story-runtime" +import { DialogStoryRuntime, STORY_DIRECTORY, STORY_SERVER } from "@/lab/dialog-story-runtime" import { DirectoryPickerDialog } from "./dialog" function DirectoryPickerStory(props: { mode?: "directory" | "file"; start?: string }) { diff --git a/packages/app/vite.js b/packages/app/vite.js index 8134e5d4e9a..a5358dc4ecb 100644 --- a/packages/app/vite.js +++ b/packages/app/vite.js @@ -72,13 +72,13 @@ const bundleNestedWorkerDeps = { }, } -// The components lab globs every story, and the dependency scan cannot parse a .tsx story that calls import.meta.glob +// The Lab globs every story, and the dependency scan cannot parse a .tsx story that calls import.meta.glob // itself. The lab is a development tool, so its dependencies are found when it first opens rather than at startup. /** @type {import("rolldown").Plugin} */ -const skipComponentsLab = { - name: "opencode-desktop:skip-components-lab", +const skipLab = { + name: "opencode-desktop:skip-lab", resolveId(id) { - if (id === "@/components-lab/lab") return { id, external: true } + if (id === "@/lab/lab") return { id, external: true } }, } @@ -117,7 +117,7 @@ export default [ }, optimizeDeps: { exclude: [...workerDeps, ...officeDeps], - rolldownOptions: { plugins: [bundleNestedWorkerDeps, skipComponentsLab] }, + rolldownOptions: { plugins: [bundleNestedWorkerDeps, skipLab] }, }, } }, diff --git a/packages/gui-plugins/src/browser/panel.stories.tsx b/packages/gui-plugins/src/browser/panel.lab.tsx similarity index 100% rename from packages/gui-plugins/src/browser/panel.stories.tsx rename to packages/gui-plugins/src/browser/panel.lab.tsx diff --git a/packages/gui-plugins/src/debug/bar.tsx b/packages/gui-plugins/src/debug/bar.tsx index 76f7f8673af..d0a11f7ac3b 100644 --- a/packages/gui-plugins/src/debug/bar.tsx +++ b/packages/gui-plugins/src/debug/bar.tsx @@ -349,7 +349,7 @@ export default function DebugBar(props: {
{/* The lab's route exists only on the dev server and in Beta. */} {(import.meta.env.DEV || import.meta.env.VITE_OPENCODE_CHANNEL === "beta") && ( - + - {ctx.t("components.label")} + {ctx.t("lab.label")} diff --git a/packages/gui-plugins/src/debug/i18n/am.ts b/packages/gui-plugins/src/debug/i18n/am.ts index 8ebfdcf8364..897929f1509 100644 --- a/packages/gui-plugins/src/debug/i18n/am.ts +++ b/packages/gui-plugins/src/debug/i18n/am.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "እንደገና አጫውት", "motion.focus": "ትኩረት", "motion.enabled": "ነቅቷል", - "components.label": "ክፍሎች", - "components.tip": "የክፍሎች ቤተ ሙከራን ክፈት፡ እያንዳንዱ ታሪክ፣ ከቀጥታ መቆጣጠሪያዎች እና ሁኔታዎቹ ጋር", + "lab.label": "LAB", + "lab.tip": "Labን ክፈት፡ እያንዳንዱ ገጽ፣ ከቀጥታ መቆጣጠሪያዎች እና ሁኔታዎቹ ጋር", "speed.label": "ፍጥነት", "speed.tip": "ዓለም አቀፍ የአኒሜሽን ፍጥነት። በ0.5× እና 0.25× አልፈው ወደ 1× ለመመለስ ጠቅ ያድርጉ።", "slow.label": "ቀርፋፋ", diff --git a/packages/gui-plugins/src/debug/i18n/ar.ts b/packages/gui-plugins/src/debug/i18n/ar.ts index 76039781d1a..306a0d309d6 100644 --- a/packages/gui-plugins/src/debug/i18n/ar.ts +++ b/packages/gui-plugins/src/debug/i18n/ar.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "إعادة التشغيل", "motion.focus": "التركيز", "motion.enabled": "مفعّل", - "components.label": "COMPONENTS", - "components.tip": "فتح مختبر المكونات: كل قصة، مع عناصر تحكم مباشرة وحالاتها", + "lab.label": "LAB", + "lab.tip": "فتح Lab: كل صفحة، مع عناصر تحكم مباشرة وحالاتها", "speed.label": "SPEED", "speed.tip": "سرعة الرسوم المتحركة العامة. انقر للتنقل بين 0.5× و0.25× ثم العودة إلى 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/az.ts b/packages/gui-plugins/src/debug/i18n/az.ts index 338e64b1dfb..59759070ed6 100644 --- a/packages/gui-plugins/src/debug/i18n/az.ts +++ b/packages/gui-plugins/src/debug/i18n/az.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "Təkrar oynat", "motion.focus": "Fokus", "motion.enabled": "Aktiv", - "components.label": "COMPONENTS", - "components.tip": "Komponentlər laboratoriyasını aç: canlı idarəetmə və vəziyyətləri ilə hər story", + "lab.label": "LAB", + "lab.tip": "Lab-ı aç: canlı idarəetmə və vəziyyətləri ilə hər səhifə", "speed.label": "SPEED", "speed.tip": "Qlobal animasiya sürəti. 0.5× və 0.25×, sonra yenidən 1× arasında keçmək üçün klikləyin.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/bg.ts b/packages/gui-plugins/src/debug/i18n/bg.ts index 523e89f07fa..49336f9464f 100644 --- a/packages/gui-plugins/src/debug/i18n/bg.ts +++ b/packages/gui-plugins/src/debug/i18n/bg.ts @@ -44,8 +44,8 @@ export default { "motion.replay": "Повтаряне", "motion.focus": "Фокус", "motion.enabled": "Активирано", - "components.label": "COMPONENTS", - "components.tip": "Отваряне на лабораторията за компоненти: всяка story с контроли на живо и състоянията ѝ", + "lab.label": "LAB", + "lab.tip": "Отваряне на Lab: всяка страница с контроли на живо и състоянията ѝ", "speed.label": "SPEED", "speed.tip": "Глобална скорост на анимациите. Щракнете, за да превключите през 0,5× и 0,25× обратно до 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/bn.ts b/packages/gui-plugins/src/debug/i18n/bn.ts index 20aab80010d..80685e33e47 100644 --- a/packages/gui-plugins/src/debug/i18n/bn.ts +++ b/packages/gui-plugins/src/debug/i18n/bn.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "আবার চালান", "motion.focus": "ফোকাস", "motion.enabled": "সক্রিয়", - "components.label": "COMPONENTS", - "components.tip": "কম্পোনেন্ট ল্যাব খুলুন: প্রতিটি স্টোরি, লাইভ নিয়ন্ত্রণ ও এর অবস্থাসহ", + "lab.label": "LAB", + "lab.tip": "Lab খুলুন: প্রতিটি পৃষ্ঠা, লাইভ নিয়ন্ত্রণ ও এর অবস্থাসহ", "speed.label": "SPEED", "speed.tip": "গ্লোবাল অ্যানিমেশনের গতি। 0.5× ও 0.25× হয়ে আবার 1×-এ ফিরতে ক্লিক করুন।", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/br.ts b/packages/gui-plugins/src/debug/i18n/br.ts index de77fa8b48b..d2856cc05fd 100644 --- a/packages/gui-plugins/src/debug/i18n/br.ts +++ b/packages/gui-plugins/src/debug/i18n/br.ts @@ -42,8 +42,8 @@ export default { "motion.replay": "Repetir", "motion.focus": "Foco", "motion.enabled": "Ativado", - "components.label": "COMPONENTES", - "components.tip": "Abrir o laboratório de componentes: todas as stories, com controles ao vivo e seus estados", + "lab.label": "LAB", + "lab.tip": "Abrir o Lab: todas as páginas, com controles ao vivo e seus estados", "speed.label": "VELOCIDADE", "speed.tip": "Velocidade global das animações. Clique para alternar entre 0.5× e 0.25× e voltar a 1×.", "slow.label": "LENTO", diff --git a/packages/gui-plugins/src/debug/i18n/bs.ts b/packages/gui-plugins/src/debug/i18n/bs.ts index 40b4d33b4aa..9074366cb2f 100644 --- a/packages/gui-plugins/src/debug/i18n/bs.ts +++ b/packages/gui-plugins/src/debug/i18n/bs.ts @@ -43,8 +43,8 @@ export default { "motion.replay": "Ponovi", "motion.focus": "Fokus", "motion.enabled": "Omogućeno", - "components.label": "KOMPONENTE", - "components.tip": "Otvori laboratorij komponenti: sve priče, s kontrolama uživo i njihovim stanjima", + "lab.label": "LAB", + "lab.tip": "Otvori Lab: sve stranice, s kontrolama uživo i njihovim stanjima", "speed.label": "BRZINA", "speed.tip": "Globalna brzina animacija. Kliknite za prebacivanje na 0.5× i 0.25× pa nazad na 1×.", "slow.label": "SPORO", diff --git a/packages/gui-plugins/src/debug/i18n/ca.ts b/packages/gui-plugins/src/debug/i18n/ca.ts index 7d213373fe6..68f0a96042c 100644 --- a/packages/gui-plugins/src/debug/i18n/ca.ts +++ b/packages/gui-plugins/src/debug/i18n/ca.ts @@ -44,8 +44,8 @@ export default { "motion.replay": "Torna a reproduir", "motion.focus": "Focus", "motion.enabled": "Activat", - "components.label": "COMPONENTS", - "components.tip": "Obre el laboratori de components: totes les històries, amb controls en directe i els seus estats", + "lab.label": "LAB", + "lab.tip": "Obre el Lab: totes les pàgines, amb controls en directe i els seus estats", "speed.label": "VELOCITAT", "speed.tip": "Velocitat global de les animacions. Feu clic per passar per 0,5× i 0,25× i tornar a 1×.", "slow.label": "LENT", diff --git a/packages/gui-plugins/src/debug/i18n/cs.ts b/packages/gui-plugins/src/debug/i18n/cs.ts index 5e67e6dd09b..43b7c9c77bb 100644 --- a/packages/gui-plugins/src/debug/i18n/cs.ts +++ b/packages/gui-plugins/src/debug/i18n/cs.ts @@ -43,8 +43,8 @@ export default { "motion.replay": "Přehrát znovu", "motion.focus": "Zaměřit", "motion.enabled": "Povoleno", - "components.label": "COMPONENTS", - "components.tip": "Otevřít laboratoř komponent: všechny příběhy s živými ovládacími prvky a jejich stavy", + "lab.label": "LAB", + "lab.tip": "Otevřít Lab: všechny stránky s živými ovládacími prvky a jejich stavy", "speed.label": "SPEED", "speed.tip": "Globální rychlost animací. Kliknutím postupně přepnete 0,5× a 0,25× a zpět na 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/da.ts b/packages/gui-plugins/src/debug/i18n/da.ts index 95d0ae75f14..e6e6a8e9b34 100644 --- a/packages/gui-plugins/src/debug/i18n/da.ts +++ b/packages/gui-plugins/src/debug/i18n/da.ts @@ -42,8 +42,8 @@ export default { "motion.replay": "Afspil igen", "motion.focus": "Fokus", "motion.enabled": "Aktiveret", - "components.label": "COMPONENTS", - "components.tip": "Åbn komponentlaboratoriet: alle stories med live-kontroller og deres tilstande", + "lab.label": "LAB", + "lab.tip": "Åbn Lab: alle sider med live-kontroller og deres tilstande", "speed.label": "SPEED", "speed.tip": "Global animationshastighed. Klik for at skifte mellem 0,5× og 0,25× og tilbage til 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/de.ts b/packages/gui-plugins/src/debug/i18n/de.ts index dd46a96ac9c..da18b478e1c 100644 --- a/packages/gui-plugins/src/debug/i18n/de.ts +++ b/packages/gui-plugins/src/debug/i18n/de.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "Wiederholen", "motion.focus": "Fokus", "motion.enabled": "Aktiviert", - "components.label": "COMPONENTS", - "components.tip": "Komponenten-Lab öffnen: alle Stories mit Live-Steuerelementen und ihren Zuständen", + "lab.label": "LAB", + "lab.tip": "Lab öffnen: alle Seiten mit Live-Steuerelementen und ihren Zuständen", "speed.label": "SPEED", "speed.tip": "Globale Animationsgeschwindigkeit. Klicken, um 0,5× und 0,25× durchzugehen und zurück zu 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/dv.ts b/packages/gui-plugins/src/debug/i18n/dv.ts index 941557b3d63..dd5a4e01d70 100644 --- a/packages/gui-plugins/src/debug/i18n/dv.ts +++ b/packages/gui-plugins/src/debug/i18n/dv.ts @@ -42,8 +42,8 @@ export default { "motion.replay": "އަލުން ކުޅުވާ", "motion.focus": "ފޯކަސް", "motion.enabled": "އެނޭބަލްކޮށްފައި", - "components.label": "ކޮމްޕޯނަންޓްތައް", - "components.tip": "ކޮމްޕޯނަންޓް ލެބް ހުޅުވާ: ކޮންމެ ސްޓޯރީއެއް، ލައިވް ކޮންޓްރޯލްތަކާއި ސްޓޭޓްތަކާއެކު", + "lab.label": "LAB", + "lab.tip": "Lab ހުޅުވާ: ކޮންމެ ޕޭޖެއް، ލައިވް ކޮންޓްރޯލްތަކާއި އޭގެ ސްޓޭޓްތަކާއެކު", "speed.label": "ސްޕީޑް", "speed.tip": "ގްލޯބަލް އެނިމޭޝަން ސްޕީޑް. 0.5× އާއި 0.25× އިން 1× އަށް ދިއުމަށް ކްލިކް ކުރާ.", "slow.label": "ލަސް", diff --git a/packages/gui-plugins/src/debug/i18n/dz.ts b/packages/gui-plugins/src/debug/i18n/dz.ts index ac65d81c505..5a651bec347 100644 --- a/packages/gui-plugins/src/debug/i18n/dz.ts +++ b/packages/gui-plugins/src/debug/i18n/dz.ts @@ -43,8 +43,8 @@ export default { "motion.replay": "ལོག་གཏང་།", "motion.focus": "ཆེད་དམིགས།", "motion.enabled": "ལྕོགས་ཅན།", - "components.label": "COMPONENTS", - "components.tip": "ཆ་ཤས་ཀྱི་བརྟག་ཞིབ་ཁང་ཁ་ཕྱེ: story ག་ར་ ཐད་ཀར་ཚད་འཛིན་དང་ དེ་གི་གནས་སྟངས་ཚུ་དང་གཅིག་ཁར།", + "lab.label": "LAB", + "lab.tip": "Lab ཁ་ཕྱེ: ཤོག་ལེབ་ག་ར་ ཐད་ཀར་ཚད་འཛིན་དང་ དེ་གི་གནས་སྟངས་ཚུ་དང་གཅིག་ཁར།", "speed.label": "SPEED", "speed.tip": "སྤྱི་ཁྱབ་བསྒུལ་བཟོའི་མགྱོགས་ཚད། 0.5× དང་ 0.25× ལས་ 1× ལུ་ལོག་སོར་ནིའི་དོན་ལུ་ ཨེབ་གཏང་།", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/el.ts b/packages/gui-plugins/src/debug/i18n/el.ts index a8e5070826f..c59e5603cfd 100644 --- a/packages/gui-plugins/src/debug/i18n/el.ts +++ b/packages/gui-plugins/src/debug/i18n/el.ts @@ -44,9 +44,8 @@ export default { "motion.replay": "Επανάληψη", "motion.focus": "Εστίαση", "motion.enabled": "Ενεργό", - "components.label": "COMPONENTS", - "components.tip": - "Άνοιγμα του εργαστηρίου στοιχείων: κάθε story, με ζωντανά στοιχεία ελέγχου και τις καταστάσεις του", + "lab.label": "LAB", + "lab.tip": "Άνοιγμα του Lab: κάθε σελίδα, με ζωντανά στοιχεία ελέγχου και τις καταστάσεις της", "speed.label": "SPEED", "speed.tip": "Καθολική ταχύτητα κινούμενων εφέ. Κάντε κλικ για εναλλαγή μεταξύ 0,5× και 0,25× και πίσω στο 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/en.ts b/packages/gui-plugins/src/debug/i18n/en.ts index 0a9d680a6f5..5cc785c5b12 100644 --- a/packages/gui-plugins/src/debug/i18n/en.ts +++ b/packages/gui-plugins/src/debug/i18n/en.ts @@ -33,8 +33,8 @@ export default { "motion.replay": "Replay", "motion.focus": "Focus", "motion.enabled": "Enabled", - "components.label": "COMPONENTS", - "components.tip": "Open the components lab: every story, with live controls and its states", + "lab.label": "LAB", + "lab.tip": "Open the Lab: every page, with live controls and its states", "speed.label": "SPEED", "speed.tip": "Global animation speed. Click to step through 0.5× and 0.25× back to 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/es.ts b/packages/gui-plugins/src/debug/i18n/es.ts index faaf04550cc..1755a954366 100644 --- a/packages/gui-plugins/src/debug/i18n/es.ts +++ b/packages/gui-plugins/src/debug/i18n/es.ts @@ -43,8 +43,8 @@ export default { "motion.replay": "Repetir", "motion.focus": "Foco", "motion.enabled": "Activado", - "components.label": "COMPONENTS", - "components.tip": "Abrir el laboratorio de componentes: todas las historias, con controles en vivo y sus estados", + "lab.label": "LAB", + "lab.tip": "Abrir el Lab: todas las páginas, con controles en vivo y sus estados", "speed.label": "SPEED", "speed.tip": "Velocidad global de las animaciones. Haz clic para pasar por 0,5× y 0,25× y volver a 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/et.ts b/packages/gui-plugins/src/debug/i18n/et.ts index d3cd8cdc9b0..6297699050f 100644 --- a/packages/gui-plugins/src/debug/i18n/et.ts +++ b/packages/gui-plugins/src/debug/i18n/et.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "Esita uuesti", "motion.focus": "Fookus", "motion.enabled": "Lubatud", - "components.label": "KOMPONENDID", - "components.tip": "Ava komponentide labor: kõik lood koos reaalajas juhtelementide ja olekutega", + "lab.label": "LAB", + "lab.tip": "Ava Lab: kõik lehed koos reaalajas juhtelementide ja nende olekutega", "speed.label": "KIIRUS", "speed.tip": "Globaalne animatsioonikiirus. Klõpsa, et liikuda läbi 0,5× ja 0,25× tagasi 1×-ni.", "slow.label": "AEGLANE", diff --git a/packages/gui-plugins/src/debug/i18n/fa.ts b/packages/gui-plugins/src/debug/i18n/fa.ts index eb989bcd279..0069cb4b162 100644 --- a/packages/gui-plugins/src/debug/i18n/fa.ts +++ b/packages/gui-plugins/src/debug/i18n/fa.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "پخش دوباره", "motion.focus": "تمرکز", "motion.enabled": "فعال", - "components.label": "COMPONENTS", - "components.tip": "باز کردن آزمایشگاه مؤلفه‌ها: همه storyها با کنترل‌های زنده و حالت‌هایشان", + "lab.label": "LAB", + "lab.tip": "باز کردن Lab: همه صفحه‌ها با کنترل‌های زنده و حالت‌هایشان", "speed.label": "SPEED", "speed.tip": "سرعت کلی پویانمایی. برای رفتن به 0.5× و 0.25× و بازگشت به 1× کلیک کنید.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/fi.ts b/packages/gui-plugins/src/debug/i18n/fi.ts index 3d2c9af29c0..a811125bfd2 100644 --- a/packages/gui-plugins/src/debug/i18n/fi.ts +++ b/packages/gui-plugins/src/debug/i18n/fi.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "Toista uudelleen", "motion.focus": "Kohdistus", "motion.enabled": "Käytössä", - "components.label": "COMPONENTS", - "components.tip": "Avaa komponenttilaboratorio: jokainen story live-säätimineen ja tiloineen", + "lab.label": "LAB", + "lab.tip": "Avaa Lab: jokainen sivu live-säätimineen ja tiloineen", "speed.label": "SPEED", "speed.tip": "Animaatioiden yleinen nopeus. Napsauta vaihtaaksesi arvojen 0.5× ja 0.25× kautta takaisin arvoon 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/fo.ts b/packages/gui-plugins/src/debug/i18n/fo.ts index ef364572644..c79b95fc789 100644 --- a/packages/gui-plugins/src/debug/i18n/fo.ts +++ b/packages/gui-plugins/src/debug/i18n/fo.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "Spæl aftur", "motion.focus": "Fokus", "motion.enabled": "Virkið", - "components.label": "KOMPONENTAR", - "components.tip": "Lat komponentstovuna upp: allar søgur, við beinleiðis stýritólum og støðum teirra", + "lab.label": "LAB", + "lab.tip": "Lat Lab upp: allar síður, við beinleiðis stýritólum og støðum teirra", "speed.label": "FERÐ", "speed.tip": "Global animatiónsferð. Trýst fyri at stíga gjøgnum 0.5× og 0.25× aftur til 1×.", "slow.label": "SEINT", diff --git a/packages/gui-plugins/src/debug/i18n/fr.ts b/packages/gui-plugins/src/debug/i18n/fr.ts index aa5bf5a32e0..531696f0499 100644 --- a/packages/gui-plugins/src/debug/i18n/fr.ts +++ b/packages/gui-plugins/src/debug/i18n/fr.ts @@ -43,8 +43,8 @@ export default { "motion.replay": "Rejouer", "motion.focus": "Focus", "motion.enabled": "Activé", - "components.label": "COMPONENTS", - "components.tip": "Ouvrir le labo des composants : toutes les stories, avec leurs contrôles en direct et leurs états", + "lab.label": "LAB", + "lab.tip": "Ouvrir le Lab : toutes les pages, avec leurs contrôles en direct et leurs états", "speed.label": "SPEED", "speed.tip": "Vitesse globale des animations. Cliquez pour passer à 0,5× puis 0,25×, puis revenir à 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/he.ts b/packages/gui-plugins/src/debug/i18n/he.ts index bc86b1470c7..b5e0986c2a5 100644 --- a/packages/gui-plugins/src/debug/i18n/he.ts +++ b/packages/gui-plugins/src/debug/i18n/he.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "הפעל שוב", "motion.focus": "מיקוד", "motion.enabled": "מופעל", - "components.label": "COMPONENTS", - "components.tip": "פתח את מעבדת הרכיבים: כל הסיפורים, עם פקדים חיים והמצבים שלהם", + "lab.label": "LAB", + "lab.tip": "פתח את Lab: כל הדפים, עם פקדים חיים והמצבים שלהם", "speed.label": "SPEED", "speed.tip": "מהירות אנימציה גלובלית. לחץ כדי לעבור בין 0.5× ו-0.25× ובחזרה ל-1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/hi.ts b/packages/gui-plugins/src/debug/i18n/hi.ts index 3bb9b2d2bf4..562802616a9 100644 --- a/packages/gui-plugins/src/debug/i18n/hi.ts +++ b/packages/gui-plugins/src/debug/i18n/hi.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "फिर से चलाएँ", "motion.focus": "फ़ोकस", "motion.enabled": "सक्षम", - "components.label": "COMPONENTS", - "components.tip": "घटक लैब खोलें: हर स्टोरी, लाइव नियंत्रण और उसकी स्थितियों के साथ", + "lab.label": "LAB", + "lab.tip": "Lab खोलें: हर पेज, लाइव नियंत्रण और उसकी स्थितियों के साथ", "speed.label": "SPEED", "speed.tip": "ग्लोबल एनिमेशन गति। 0.5× और 0.25× से होते हुए वापस 1× पर जाने के लिए क्लिक करें।", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/hr.ts b/packages/gui-plugins/src/debug/i18n/hr.ts index 1d1872b1911..7c592e940e4 100644 --- a/packages/gui-plugins/src/debug/i18n/hr.ts +++ b/packages/gui-plugins/src/debug/i18n/hr.ts @@ -43,8 +43,8 @@ export default { "motion.replay": "Ponovi", "motion.focus": "Fokus", "motion.enabled": "Omogućeno", - "components.label": "COMPONENTS", - "components.tip": "Otvori laboratorij komponenti: sve priče, s kontrolama uživo i njihovim stanjima", + "lab.label": "LAB", + "lab.tip": "Otvori Lab: sve stranice, s kontrolama uživo i njihovim stanjima", "speed.label": "SPEED", "speed.tip": "Globalna brzina animacija. Kliknite za prebacivanje kroz 0.5× i 0.25× natrag na 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/hu.ts b/packages/gui-plugins/src/debug/i18n/hu.ts index 9e3eb4b0c3e..af59d1e6897 100644 --- a/packages/gui-plugins/src/debug/i18n/hu.ts +++ b/packages/gui-plugins/src/debug/i18n/hu.ts @@ -43,8 +43,8 @@ export default { "motion.replay": "Újrajátszás", "motion.focus": "Fókusz", "motion.enabled": "Engedélyezve", - "components.label": "KOMPONENSEK", - "components.tip": "A komponenslabor megnyitása: minden story élő vezérlőkkel és állapotokkal", + "lab.label": "LAB", + "lab.tip": "A Lab megnyitása: minden oldal élő vezérlőkkel és állapotaival", "speed.label": "SEBESSÉG", "speed.tip": "Globális animációsebesség. Kattintással lépkedhet: 0,5×, 0,25×, majd vissza 1×-re.", "slow.label": "LASSÚ", diff --git a/packages/gui-plugins/src/debug/i18n/hy.ts b/packages/gui-plugins/src/debug/i18n/hy.ts index 802aa7940ac..b9832a72079 100644 --- a/packages/gui-plugins/src/debug/i18n/hy.ts +++ b/packages/gui-plugins/src/debug/i18n/hy.ts @@ -43,8 +43,8 @@ export default { "motion.replay": "Վերարտադրել", "motion.focus": "Կենտրոնացում", "motion.enabled": "Միացված", - "components.label": "ԿՈՄՊՈՆԵՆՏՆԵՐ", - "components.tip": "Բացել կոմպոնենտների լաբորատորիան՝ բոլոր story-ները՝ կենդանի կառավարմամբ և վիճակներով", + "lab.label": "LAB", + "lab.tip": "Բացել Lab-ը՝ բոլոր էջերը՝ կենդանի կառավարմամբ և դրանց վիճակներով", "speed.label": "ԱՐԱԳՈՒԹՅՈՒՆ", "speed.tip": "Անիմացիայի գլոբալ արագություն։ Սեղմեք՝ անցնելու 0.5× և 0.25× արժեքներով, ապա վերադառնալու 1×-ին։", "slow.label": "ԴԱՆԴԱՂ", diff --git a/packages/gui-plugins/src/debug/i18n/id.ts b/packages/gui-plugins/src/debug/i18n/id.ts index 61dcc49db5e..1623986673c 100644 --- a/packages/gui-plugins/src/debug/i18n/id.ts +++ b/packages/gui-plugins/src/debug/i18n/id.ts @@ -42,8 +42,8 @@ export default { "motion.replay": "Putar ulang", "motion.focus": "Fokus", "motion.enabled": "Aktif", - "components.label": "KOMPONEN", - "components.tip": "Buka lab komponen: setiap story, dengan kontrol langsung dan statusnya", + "lab.label": "LAB", + "lab.tip": "Buka Lab: setiap halaman, dengan kontrol langsung dan statusnya", "speed.label": "KECEPATAN", "speed.tip": "Kecepatan animasi global. Klik untuk beralih ke 0.5× dan 0.25× lalu kembali ke 1×.", "slow.label": "LAMBAT", diff --git a/packages/gui-plugins/src/debug/i18n/is.ts b/packages/gui-plugins/src/debug/i18n/is.ts index 9413658797b..f32212a52b3 100644 --- a/packages/gui-plugins/src/debug/i18n/is.ts +++ b/packages/gui-plugins/src/debug/i18n/is.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "Spila aftur", "motion.focus": "Fókus", "motion.enabled": "Virkt", - "components.label": "COMPONENTS", - "components.tip": "Opna íhlutaprófunarstofuna: allar sögur, með lifandi stýringum og stöðum þeirra", + "lab.label": "LAB", + "lab.tip": "Opna Lab: allar síður, með lifandi stýringum og stöðum þeirra", "speed.label": "SPEED", "speed.tip": "Heildarhraði hreyfimynda. Smelltu til að fara í gegnum 0,5× og 0,25× og aftur í 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/it.ts b/packages/gui-plugins/src/debug/i18n/it.ts index 1d3f0d832fc..f654fa455d7 100644 --- a/packages/gui-plugins/src/debug/i18n/it.ts +++ b/packages/gui-plugins/src/debug/i18n/it.ts @@ -43,8 +43,8 @@ export default { "motion.replay": "Ripeti", "motion.focus": "Focus", "motion.enabled": "Attivato", - "components.label": "COMPONENTS", - "components.tip": "Apri il laboratorio dei componenti: ogni story, con controlli in tempo reale e i suoi stati", + "lab.label": "LAB", + "lab.tip": "Apri il Lab: ogni pagina, con controlli in tempo reale e i suoi stati", "speed.label": "SPEED", "speed.tip": "Velocità globale delle animazioni. Fai clic per passare a 0.5× e 0.25× e tornare a 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/ja.ts b/packages/gui-plugins/src/debug/i18n/ja.ts index 555f4daebab..e21a58fef73 100644 --- a/packages/gui-plugins/src/debug/i18n/ja.ts +++ b/packages/gui-plugins/src/debug/i18n/ja.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "再生", "motion.focus": "フォーカス", "motion.enabled": "有効", - "components.label": "COMPONENTS", - "components.tip": "コンポーネントラボを開く: すべてのストーリーを、ライブコントロールと各状態とともに表示", + "lab.label": "LAB", + "lab.tip": "Lab を開く: すべてのページを、ライブコントロールと各状態とともに表示", "speed.label": "SPEED", "speed.tip": "アニメーション全体の速度。クリックすると0.5×、0.25×と切り替わり、1×に戻ります。", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/ka.ts b/packages/gui-plugins/src/debug/i18n/ka.ts index a6e531d486b..f264619ecca 100644 --- a/packages/gui-plugins/src/debug/i18n/ka.ts +++ b/packages/gui-plugins/src/debug/i18n/ka.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "ხელახლა დაკვრა", "motion.focus": "ფოკუსი", "motion.enabled": "ჩართული", - "components.label": "COMPONENTS", - "components.tip": "კომპონენტების ლაბორატორიის გახსნა: ყველა story ცოცხალი მართვის ელემენტებითა და მდგომარეობებით", + "lab.label": "LAB", + "lab.tip": "Lab-ის გახსნა: ყველა გვერდი ცოცხალი მართვის ელემენტებითა და მისი მდგომარეობებით", "speed.label": "SPEED", "speed.tip": "ანიმაციის გლობალური სიჩქარე. დააწკაპუნეთ 0.5×-სა და 0.25×-ზე გადასასვლელად და 1×-ზე დასაბრუნებლად.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/km.ts b/packages/gui-plugins/src/debug/i18n/km.ts index 0bde031039a..a3dd47be0f9 100644 --- a/packages/gui-plugins/src/debug/i18n/km.ts +++ b/packages/gui-plugins/src/debug/i18n/km.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "ចាក់ឡើងវិញ", "motion.focus": "ផ្តោត", "motion.enabled": "បានបើក", - "components.label": "COMPONENTS", - "components.tip": "បើកមន្ទីរពិសោធន៍សមាសភាគ៖ គ្រប់រឿង ជាមួយការគ្រប់គ្រងផ្ទាល់ និងស្ថានភាពរបស់វា", + "lab.label": "LAB", + "lab.tip": "បើក Lab៖ គ្រប់ទំព័រ ជាមួយការគ្រប់គ្រងផ្ទាល់ និងស្ថានភាពរបស់វា", "speed.label": "SPEED", "speed.tip": "ល្បឿនចលនាសកល។ ចុចដើម្បីប្តូរទៅ 0.5× និង 0.25× រួចត្រឡប់ទៅ 1× វិញ។", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/ko.ts b/packages/gui-plugins/src/debug/i18n/ko.ts index 3d6387dfccd..380035792d7 100644 --- a/packages/gui-plugins/src/debug/i18n/ko.ts +++ b/packages/gui-plugins/src/debug/i18n/ko.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "다시 재생", "motion.focus": "포커스", "motion.enabled": "사용", - "components.label": "COMPONENTS", - "components.tip": "컴포넌트 랩 열기: 모든 스토리를 실시간 컨트롤 및 상태와 함께 확인", + "lab.label": "LAB", + "lab.tip": "Lab 열기: 모든 페이지를 실시간 컨트롤 및 상태와 함께 확인", "speed.label": "SPEED", "speed.tip": "전역 애니메이션 속도. 클릭하면 0.5×, 0.25×를 거쳐 1×로 돌아갑니다.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/lo.ts b/packages/gui-plugins/src/debug/i18n/lo.ts index 8b44d35ebe7..51a9cd3fb6f 100644 --- a/packages/gui-plugins/src/debug/i18n/lo.ts +++ b/packages/gui-plugins/src/debug/i18n/lo.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "ຫຼິ້ນຄືນ", "motion.focus": "ໂຟກັສ", "motion.enabled": "ເປີດໃຊ້ງານ", - "components.label": "COMPONENTS", - "components.tip": "ເປີດຫ້ອງທົດລອງອົງປະກອບ: ທຸກ story, ພ້ອມປຸ່ມຄວບຄຸມແບບສົດ ແລະສະຖານະຂອງມັນ", + "lab.label": "LAB", + "lab.tip": "ເປີດ Lab: ທຸກໜ້າ, ພ້ອມປຸ່ມຄວບຄຸມແບບສົດ ແລະສະຖານະຂອງມັນ", "speed.label": "SPEED", "speed.tip": "ຄວາມໄວອະນິເມຊັນທົ່ວໄປ. ຄລິກເພື່ອສະຫຼັບຜ່ານ 0.5× ແລະ 0.25× ແລ້ວກັບໄປ 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/lt.ts b/packages/gui-plugins/src/debug/i18n/lt.ts index 5ccc018d56a..c44b100d4b3 100644 --- a/packages/gui-plugins/src/debug/i18n/lt.ts +++ b/packages/gui-plugins/src/debug/i18n/lt.ts @@ -42,8 +42,8 @@ export default { "motion.replay": "Paleisti iš naujo", "motion.focus": "Fokusas", "motion.enabled": "Įjungta", - "components.label": "COMPONENTS", - "components.tip": "Atverti komponentų laboratoriją: visos istorijos su gyvais valdikliais ir jų būsenomis", + "lab.label": "LAB", + "lab.tip": "Atverti Lab: visi puslapiai su gyvais valdikliais ir jų būsenomis", "speed.label": "SPEED", "speed.tip": "Bendras animacijų greitis. Spustelėkite, kad perjungtumėte 0,5× ir 0,25× ir grįžtumėte į 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/lv.ts b/packages/gui-plugins/src/debug/i18n/lv.ts index e35bff80913..8da62d36e54 100644 --- a/packages/gui-plugins/src/debug/i18n/lv.ts +++ b/packages/gui-plugins/src/debug/i18n/lv.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "Atkārtot", "motion.focus": "Fokuss", "motion.enabled": "Iespējots", - "components.label": "KOMPONENTI", - "components.tip": "Atvērt komponentu laboratoriju: katrs stāsts ar reāllaika vadīklām un tā stāvokļiem", + "lab.label": "LAB", + "lab.tip": "Atvērt Lab: katra lapa ar reāllaika vadīklām un tās stāvokļiem", "speed.label": "ĀTRUMS", "speed.tip": "Globālais animāciju ātrums. Noklikšķiniet, lai pārslēgtu uz 0,5× un 0,25× un atpakaļ uz 1×.", "slow.label": "LĒNI", diff --git a/packages/gui-plugins/src/debug/i18n/mk.ts b/packages/gui-plugins/src/debug/i18n/mk.ts index 84a73e31bea..a7154c53f20 100644 --- a/packages/gui-plugins/src/debug/i18n/mk.ts +++ b/packages/gui-plugins/src/debug/i18n/mk.ts @@ -44,8 +44,8 @@ export default { "motion.replay": "Пушти повторно", "motion.focus": "Фокус", "motion.enabled": "Овозможено", - "components.label": "КОМПОНЕНТИ", - "components.tip": "Отвори ја лабораторијата за компоненти: секој приказ, со контроли во живо и неговите состојби", + "lab.label": "LAB", + "lab.tip": "Отвори го Lab: секоја страница, со контроли во живо и нејзините состојби", "speed.label": "БРЗИНА", "speed.tip": "Глобална брзина на анимациите. Кликнете за да минете низ 0.5× и 0.25× и назад до 1×.", "slow.label": "БАВНО", diff --git a/packages/gui-plugins/src/debug/i18n/mn.ts b/packages/gui-plugins/src/debug/i18n/mn.ts index dca502a36fe..032f1dbf670 100644 --- a/packages/gui-plugins/src/debug/i18n/mn.ts +++ b/packages/gui-plugins/src/debug/i18n/mn.ts @@ -43,8 +43,8 @@ export default { "motion.replay": "Дахин тоглуулах", "motion.focus": "Фокус", "motion.enabled": "Идэвхтэй", - "components.label": "COMPONENTS", - "components.tip": "Компонентын лабораторийг нээх: бүх story, шууд удирдлага болон төлөвүүдийн хамт", + "lab.label": "LAB", + "lab.tip": "Lab-ыг нээх: бүх хуудас, шууд удирдлага болон төлөвүүдийн хамт", "speed.label": "SPEED", "speed.tip": "Хөдөлгөөнт эффектийн ерөнхий хурд. 0.5× ба 0.25×-аар дамжиж 1× руу буцахын тулд дарна уу.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/ms.ts b/packages/gui-plugins/src/debug/i18n/ms.ts index 20aca15d5b3..4fc64e8b693 100644 --- a/packages/gui-plugins/src/debug/i18n/ms.ts +++ b/packages/gui-plugins/src/debug/i18n/ms.ts @@ -42,8 +42,8 @@ export default { "motion.replay": "Main semula", "motion.focus": "Fokus", "motion.enabled": "Didayakan", - "components.label": "KOMPONEN", - "components.tip": "Buka makmal komponen: setiap cerita, dengan kawalan langsung dan keadaannya", + "lab.label": "LAB", + "lab.tip": "Buka Lab: setiap halaman, dengan kawalan langsung dan keadaannya", "speed.label": "KELAJUAN", "speed.tip": "Kelajuan animasi global. Klik untuk melalui 0.5× dan 0.25× kembali ke 1×.", "slow.label": "PERLAHAN", diff --git a/packages/gui-plugins/src/debug/i18n/my.ts b/packages/gui-plugins/src/debug/i18n/my.ts index 9bd096e15b4..d06e9668147 100644 --- a/packages/gui-plugins/src/debug/i18n/my.ts +++ b/packages/gui-plugins/src/debug/i18n/my.ts @@ -43,9 +43,8 @@ export default { "motion.replay": "ပြန်ဖွင့်ရန်", "motion.focus": "အာရုံစိုက်ရန်", "motion.enabled": "ဖွင့်ထားသည်", - "components.label": "COMPONENTS", - "components.tip": - "Components lab ကို ဖွင့်ပါ: story တိုင်းကို တိုက်ရိုက်ထိန်းချုပ်မှုများနှင့် ၎င်း၏ အခြေအနေများဖြင့်", + "lab.label": "LAB", + "lab.tip": "Lab ကို ဖွင့်ပါ: စာမျက်နှာတိုင်းကို တိုက်ရိုက်ထိန်းချုပ်မှုများနှင့် ၎င်း၏ အခြေအနေများဖြင့်", "speed.label": "SPEED", "speed.tip": "အက်ပ်တစ်ခုလုံး၏ လှုပ်ရှားသက်ဝင်မှု အမြန်နှုန်း။ 0.5× နှင့် 0.25× ကိုဖြတ်ပြီး 1× သို့ ပြန်ရန် နှိပ်ပါ။", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/ne.ts b/packages/gui-plugins/src/debug/i18n/ne.ts index d01ef3214db..c398e9175a4 100644 --- a/packages/gui-plugins/src/debug/i18n/ne.ts +++ b/packages/gui-plugins/src/debug/i18n/ne.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "फेरि चलाउनुहोस्", "motion.focus": "फोकस", "motion.enabled": "सक्षम", - "components.label": "COMPONENTS", - "components.tip": "कम्पोनेन्ट ल्याब खोल्नुहोस्: प्रत्यक्ष नियन्त्रण र अवस्थाहरूसहित हरेक स्टोरी", + "lab.label": "LAB", + "lab.tip": "Lab खोल्नुहोस्: प्रत्यक्ष नियन्त्रण र अवस्थाहरूसहित हरेक पृष्ठ", "speed.label": "SPEED", "speed.tip": "ग्लोबल एनिमेसन गति। 0.5× र 0.25× हुँदै 1× मा फर्कन क्लिक गर्नुहोस्।", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/nl.ts b/packages/gui-plugins/src/debug/i18n/nl.ts index 77484f79ef4..0beaaa453c0 100644 --- a/packages/gui-plugins/src/debug/i18n/nl.ts +++ b/packages/gui-plugins/src/debug/i18n/nl.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "Opnieuw afspelen", "motion.focus": "Focus", "motion.enabled": "Ingeschakeld", - "components.label": "COMPONENTEN", - "components.tip": "Open het componentenlab: elke story, met live bedieningselementen en statussen", + "lab.label": "LAB", + "lab.tip": "Open het Lab: elke pagina, met live bedieningselementen en de bijbehorende statussen", "speed.label": "SNELHEID", "speed.tip": "Globale animatiesnelheid. Klik om via 0,5× en 0,25× terug te gaan naar 1×.", "slow.label": "TRAAG", diff --git a/packages/gui-plugins/src/debug/i18n/no.ts b/packages/gui-plugins/src/debug/i18n/no.ts index 329f60a195f..7e54e4037e3 100644 --- a/packages/gui-plugins/src/debug/i18n/no.ts +++ b/packages/gui-plugins/src/debug/i18n/no.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "Spill av på nytt", "motion.focus": "Fokus", "motion.enabled": "Aktivert", - "components.label": "KOMPONENTER", - "components.tip": "Åpne komponentlaben: alle stories, med direkte kontroller og tilstander", + "lab.label": "LAB", + "lab.tip": "Åpne Lab: alle sider, med direkte kontroller og tilstandene deres", "speed.label": "FART", "speed.tip": "Global animasjonshastighet. Klikk for å gå gjennom 0,5× og 0,25× tilbake til 1×.", "slow.label": "SAKTE", diff --git a/packages/gui-plugins/src/debug/i18n/pa.ts b/packages/gui-plugins/src/debug/i18n/pa.ts index 21999e60224..001b2717992 100644 --- a/packages/gui-plugins/src/debug/i18n/pa.ts +++ b/packages/gui-plugins/src/debug/i18n/pa.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "فیر چلاؤ", "motion.focus": "فوکس", "motion.enabled": "چالو", - "components.label": "COMPONENTS", - "components.tip": "کمپوننٹس لیب کھولو: ہر سٹوری، لائیو کنٹرولاں تے اوہدیاں حالتاں نال", + "lab.label": "LAB", + "lab.tip": "Lab کھولو: ہر صفحہ، لائیو کنٹرولاں تے اوہدیاں حالتاں نال", "speed.label": "SPEED", "speed.tip": "گلوبل اینیمیشن رفتار۔ 0.5× تے 0.25× توں ہو کے واپس 1× تک جان لئی کلک کرو۔", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/pl.ts b/packages/gui-plugins/src/debug/i18n/pl.ts index 65e3bfaca07..7dc48aaed14 100644 --- a/packages/gui-plugins/src/debug/i18n/pl.ts +++ b/packages/gui-plugins/src/debug/i18n/pl.ts @@ -42,8 +42,8 @@ export default { "motion.replay": "Odtwórz ponownie", "motion.focus": "Fokus", "motion.enabled": "Włączone", - "components.label": "KOMPONENTY", - "components.tip": "Otwórz laboratorium komponentów: każde story z kontrolkami na żywo i jego stanami", + "lab.label": "LAB", + "lab.tip": "Otwórz Lab: każda strona z kontrolkami na żywo i jej stanami", "speed.label": "SZYBKOŚĆ", "speed.tip": "Globalna szybkość animacji. Kliknij, aby przełączać kolejno 0,5×, 0,25× i z powrotem 1×.", "slow.label": "WOLNO", diff --git a/packages/gui-plugins/src/debug/i18n/ro.ts b/packages/gui-plugins/src/debug/i18n/ro.ts index 2e8e312ed87..22c04c5eefe 100644 --- a/packages/gui-plugins/src/debug/i18n/ro.ts +++ b/packages/gui-plugins/src/debug/i18n/ro.ts @@ -43,8 +43,8 @@ export default { "motion.replay": "Redă din nou", "motion.focus": "Focalizează", "motion.enabled": "Activat", - "components.label": "COMPONENTS", - "components.tip": "Deschide laboratorul de componente: fiecare story, cu controale în timp real și stările sale", + "lab.label": "LAB", + "lab.tip": "Deschide Lab: fiecare pagină, cu controale în timp real și stările sale", "speed.label": "SPEED", "speed.tip": "Viteza globală a animațiilor. Fă clic pentru a trece prin 0.5× și 0.25× înapoi la 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/ru.ts b/packages/gui-plugins/src/debug/i18n/ru.ts index f8f29ee13c8..3f5b041d912 100644 --- a/packages/gui-plugins/src/debug/i18n/ru.ts +++ b/packages/gui-plugins/src/debug/i18n/ru.ts @@ -42,8 +42,8 @@ export default { "motion.replay": "Повторить", "motion.focus": "Фокус", "motion.enabled": "Включено", - "components.label": "COMPONENTS", - "components.tip": "Открыть лабораторию компонентов: все истории с живыми элементами управления и их состояниями", + "lab.label": "LAB", + "lab.tip": "Открыть Lab: все страницы с живыми элементами управления и их состояниями", "speed.label": "SPEED", "speed.tip": "Общая скорость анимации. Нажимайте, чтобы переключать 0.5× и 0.25× и обратно к 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/si.ts b/packages/gui-plugins/src/debug/i18n/si.ts index 8cebcae26f5..2738debd710 100644 --- a/packages/gui-plugins/src/debug/i18n/si.ts +++ b/packages/gui-plugins/src/debug/i18n/si.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "නැවත වාදනය", "motion.focus": "අවධානය", "motion.enabled": "සක්‍රියයි", - "components.label": "COMPONENTS", - "components.tip": "සංරචක විද්‍යාගාරය විවෘත කරන්න: සජීවී පාලන සහ එහි තත්ත්ව සමඟ සෑම කතාවක්ම", + "lab.label": "LAB", + "lab.tip": "Lab විවෘත කරන්න: සජීවී පාලන සහ එහි තත්ත්ව සමඟ සෑම පිටුවක්ම", "speed.label": "SPEED", "speed.tip": "ගෝලීය සජීවිකරණ වේගය. 0.5× සහ 0.25× හරහා නැවත 1× දක්වා පියවරෙන් පියවර යාමට ක්ලික් කරන්න.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/sk.ts b/packages/gui-plugins/src/debug/i18n/sk.ts index 6c86ce50b27..fffe39ecdb1 100644 --- a/packages/gui-plugins/src/debug/i18n/sk.ts +++ b/packages/gui-plugins/src/debug/i18n/sk.ts @@ -43,8 +43,8 @@ export default { "motion.replay": "Prehrať znova", "motion.focus": "Zamerať", "motion.enabled": "Povolené", - "components.label": "KOMPONENTY", - "components.tip": "Otvoriť laboratórium komponentov: všetky príbehy s ovládaním naživo a ich stavmi", + "lab.label": "LAB", + "lab.tip": "Otvoriť Lab: všetky stránky s ovládaním naživo a ich stavmi", "speed.label": "RÝCHLOSŤ", "speed.tip": "Globálna rýchlosť animácií. Kliknutím prepínate 0,5× a 0,25× späť na 1×.", "slow.label": "POMALY", diff --git a/packages/gui-plugins/src/debug/i18n/sl.ts b/packages/gui-plugins/src/debug/i18n/sl.ts index 9e7ceab1a14..b2909114851 100644 --- a/packages/gui-plugins/src/debug/i18n/sl.ts +++ b/packages/gui-plugins/src/debug/i18n/sl.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "Ponovi", "motion.focus": "Fokus", "motion.enabled": "Omogočeno", - "components.label": "KOMPONENTE", - "components.tip": "Odpri laboratorij komponent: vse zgodbe s kontrolniki v živo in njihovimi stanji", + "lab.label": "LAB", + "lab.tip": "Odpri Lab: vse strani s kontrolniki v živo in njihovimi stanji", "speed.label": "HITROST", "speed.tip": "Globalna hitrost animacij. Kliknite za preklop med 0,5× in 0,25× ter nazaj na 1×.", "slow.label": "POČASI", diff --git a/packages/gui-plugins/src/debug/i18n/sq.ts b/packages/gui-plugins/src/debug/i18n/sq.ts index 28c4548eab8..55c8615a2f7 100644 --- a/packages/gui-plugins/src/debug/i18n/sq.ts +++ b/packages/gui-plugins/src/debug/i18n/sq.ts @@ -43,8 +43,8 @@ export default { "motion.replay": "Riluaj", "motion.focus": "Fokus", "motion.enabled": "Aktivizuar", - "components.label": "KOMPONENTËT", - "components.tip": "Hap laboratorin e komponentëve: çdo histori, me kontrolle të drejtpërdrejta dhe gjendjet e saj", + "lab.label": "LAB", + "lab.tip": "Hap Lab-in: çdo faqe, me kontrolle të drejtpërdrejta dhe gjendjet e saj", "speed.label": "SHPEJTËSIA", "speed.tip": "Shpejtësia globale e animacioneve. Klikoni për të kaluar nëpër 0.5× dhe 0.25× e përsëri në 1×.", "slow.label": "NGADALË", diff --git a/packages/gui-plugins/src/debug/i18n/sr.ts b/packages/gui-plugins/src/debug/i18n/sr.ts index 366cc8e37e7..049df869082 100644 --- a/packages/gui-plugins/src/debug/i18n/sr.ts +++ b/packages/gui-plugins/src/debug/i18n/sr.ts @@ -43,8 +43,8 @@ export default { "motion.replay": "Понови", "motion.focus": "Фокус", "motion.enabled": "Омогућено", - "components.label": "COMPONENTS", - "components.tip": "Отвори лабораторију компоненти: свака story, са контролама уживо и својим стањима", + "lab.label": "LAB", + "lab.tip": "Отвори Lab: свака страница, са контролама уживо и својим стањима", "speed.label": "SPEED", "speed.tip": "Глобална брзина анимација. Кликните да бисте прешли на 0.5× и 0.25×, па назад на 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/sv.ts b/packages/gui-plugins/src/debug/i18n/sv.ts index 70c4d9fe69b..51ca1277d88 100644 --- a/packages/gui-plugins/src/debug/i18n/sv.ts +++ b/packages/gui-plugins/src/debug/i18n/sv.ts @@ -42,8 +42,8 @@ export default { "motion.replay": "Spela upp igen", "motion.focus": "Fokus", "motion.enabled": "Aktiverad", - "components.label": "COMPONENTS", - "components.tip": "Öppna komponentlabbet: varje story, med live-kontroller och dess tillstånd", + "lab.label": "LAB", + "lab.tip": "Öppna Lab: varje sida, med live-kontroller och dess tillstånd", "speed.label": "SPEED", "speed.tip": "Global animationshastighet. Klicka för att stega genom 0,5× och 0,25× tillbaka till 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/tg.ts b/packages/gui-plugins/src/debug/i18n/tg.ts index 87173a1d5e7..5aa52794801 100644 --- a/packages/gui-plugins/src/debug/i18n/tg.ts +++ b/packages/gui-plugins/src/debug/i18n/tg.ts @@ -42,8 +42,8 @@ export default { "motion.replay": "Такрор", "motion.focus": "Фокус", "motion.enabled": "Фаъол", - "components.label": "COMPONENTS", - "components.tip": "Лабораторияи компонентҳоро кушоед: ҳар story бо идоракуниҳои зинда ва ҳолатҳояш", + "lab.label": "LAB", + "lab.tip": "Lab-ро кушоед: ҳар саҳифа бо идоракуниҳои зинда ва ҳолатҳояш", "speed.label": "SPEED", "speed.tip": "Суръати умумии аниматсия. Барои гузариш аз 0.5× ва 0.25× ва бозгашт ба 1× клик кунед.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/th.ts b/packages/gui-plugins/src/debug/i18n/th.ts index 85bcd1f514c..f47366d1e13 100644 --- a/packages/gui-plugins/src/debug/i18n/th.ts +++ b/packages/gui-plugins/src/debug/i18n/th.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "เล่นซ้ำ", "motion.focus": "โฟกัส", "motion.enabled": "เปิดใช้งาน", - "components.label": "COMPONENTS", - "components.tip": "เปิดห้องทดลองคอมโพเนนต์: ทุก story พร้อมตัวควบคุมแบบสดและสถานะต่าง ๆ", + "lab.label": "LAB", + "lab.tip": "เปิด Lab: ทุกหน้า พร้อมตัวควบคุมแบบสดและสถานะต่าง ๆ", "speed.label": "SPEED", "speed.tip": "ความเร็วภาพเคลื่อนไหวทั้งหมด คลิกเพื่อเปลี่ยนเป็น 0.5× และ 0.25× แล้วกลับเป็น 1×", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/tk.ts b/packages/gui-plugins/src/debug/i18n/tk.ts index 99372eb9268..4b4a0bd2b60 100644 --- a/packages/gui-plugins/src/debug/i18n/tk.ts +++ b/packages/gui-plugins/src/debug/i18n/tk.ts @@ -42,8 +42,8 @@ export default { "motion.replay": "Gaýtala", "motion.focus": "Fokus", "motion.enabled": "Açyk", - "components.label": "COMPONENTS", - "components.tip": "Komponentler laboratoriýasyny açyň: her story, göni dolandyryş elementleri we ýagdaýlary bilen", + "lab.label": "LAB", + "lab.tip": "Lab-y açyň: her sahypa, göni dolandyryş elementleri we ýagdaýlary bilen", "speed.label": "SPEED", "speed.tip": "Global animasiýa tizligi. 0.5× we 0.25×, soňra 1× arkaly geçmek üçin basyň.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/tr.ts b/packages/gui-plugins/src/debug/i18n/tr.ts index e398b682089..e506105b721 100644 --- a/packages/gui-plugins/src/debug/i18n/tr.ts +++ b/packages/gui-plugins/src/debug/i18n/tr.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "Yeniden oynat", "motion.focus": "Odak", "motion.enabled": "Etkin", - "components.label": "BİLEŞENLER", - "components.tip": "Bileşen laboratuvarını açın: canlı kontroller ve durumlarıyla tüm story'ler", + "lab.label": "LAB", + "lab.tip": "Lab'i açın: canlı kontroller ve durumlarıyla tüm sayfalar", "speed.label": "HIZ", "speed.tip": "Genel animasyon hızı. 0,5× ve 0,25× hızlarından geçip 1×'e dönmek için tıklayın.", "slow.label": "YAVAŞ", diff --git a/packages/gui-plugins/src/debug/i18n/uk.ts b/packages/gui-plugins/src/debug/i18n/uk.ts index e21147a986b..34c5ec1150d 100644 --- a/packages/gui-plugins/src/debug/i18n/uk.ts +++ b/packages/gui-plugins/src/debug/i18n/uk.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "Повторити", "motion.focus": "Фокус", "motion.enabled": "Увімкнено", - "components.label": "COMPONENTS", - "components.tip": "Відкрити лабораторію компонентів: усі історії з живими елементами керування та їхніми станами", + "lab.label": "LAB", + "lab.tip": "Відкрити Lab: усі сторінки з живими елементами керування та їхніми станами", "speed.label": "SPEED", "speed.tip": "Глобальна швидкість анімації. Клацайте, щоб перемикати 0,5× і 0,25× та назад до 1×.", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/ur.ts b/packages/gui-plugins/src/debug/i18n/ur.ts index 8d470733f22..7e2288a5728 100644 --- a/packages/gui-plugins/src/debug/i18n/ur.ts +++ b/packages/gui-plugins/src/debug/i18n/ur.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "دوبارہ چلائیں", "motion.focus": "فوکس", "motion.enabled": "فعال", - "components.label": "COMPONENTS", - "components.tip": "کمپوننٹس لیب کھولیں: ہر اسٹوری، براہ راست کنٹرولز اور اس کی حالتوں کے ساتھ", + "lab.label": "LAB", + "lab.tip": "Lab کھولیں: ہر صفحہ، براہ راست کنٹرولز اور اس کی حالتوں کے ساتھ", "speed.label": "SPEED", "speed.tip": "عالمی اینیمیشن کی رفتار۔ 0.5× اور 0.25× سے ہوتے ہوئے واپس 1× تک جانے کے لیے کلک کریں۔", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/uz.ts b/packages/gui-plugins/src/debug/i18n/uz.ts index 61952f87371..c9076076a7e 100644 --- a/packages/gui-plugins/src/debug/i18n/uz.ts +++ b/packages/gui-plugins/src/debug/i18n/uz.ts @@ -42,8 +42,8 @@ export default { "motion.replay": "Qayta ijro etish", "motion.focus": "Fokus", "motion.enabled": "Yoqilgan", - "components.label": "KOMPONENTLAR", - "components.tip": "Komponentlar laboratoriyasini ochish: har bir story jonli boshqaruvlar va holatlari bilan", + "lab.label": "LAB", + "lab.tip": "Lab'ni ochish: har bir sahifa jonli boshqaruvlar va holatlari bilan", "speed.label": "TEZLIK", "speed.tip": "Umumiy animatsiya tezligi. 0.5× va 0.25× orqali 1× ga qaytish uchun bosing.", "slow.label": "SEKIN", diff --git a/packages/gui-plugins/src/debug/i18n/vi.ts b/packages/gui-plugins/src/debug/i18n/vi.ts index ce47388b5aa..d77b44b4beb 100644 --- a/packages/gui-plugins/src/debug/i18n/vi.ts +++ b/packages/gui-plugins/src/debug/i18n/vi.ts @@ -42,8 +42,8 @@ export default { "motion.replay": "Phát lại", "motion.focus": "Tập trung", "motion.enabled": "Đã bật", - "components.label": "THÀNH PHẦN", - "components.tip": "Mở phòng thử thành phần: mọi story, với điều khiển trực tiếp và các trạng thái của chúng", + "lab.label": "LAB", + "lab.tip": "Mở Lab: mọi trang, với điều khiển trực tiếp và các trạng thái của chúng", "speed.label": "TỐC ĐỘ", "speed.tip": "Tốc độ hoạt ảnh toàn cục. Nhấp để chuyển qua 0.5× và 0.25× rồi trở về 1×.", "slow.label": "CHẬM", diff --git a/packages/gui-plugins/src/debug/i18n/zh.ts b/packages/gui-plugins/src/debug/i18n/zh.ts index fd843fa5b95..d89032263a2 100644 --- a/packages/gui-plugins/src/debug/i18n/zh.ts +++ b/packages/gui-plugins/src/debug/i18n/zh.ts @@ -40,8 +40,8 @@ export default { "motion.replay": "重放", "motion.focus": "聚焦", "motion.enabled": "已启用", - "components.label": "COMPONENTS", - "components.tip": "打开组件实验室:包含所有 story 及其实时控件和状态", + "lab.label": "LAB", + "lab.tip": "打开 Lab:包含所有页面及其实时控件和状态", "speed.label": "SPEED", "speed.tip": "全局动画速度。点击可依次切换 0.5× 和 0.25×,再回到 1×。", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/debug/i18n/zht.ts b/packages/gui-plugins/src/debug/i18n/zht.ts index c2e4ad02996..9d70a9cee75 100644 --- a/packages/gui-plugins/src/debug/i18n/zht.ts +++ b/packages/gui-plugins/src/debug/i18n/zht.ts @@ -41,8 +41,8 @@ export default { "motion.replay": "重播", "motion.focus": "聚焦", "motion.enabled": "已啟用", - "components.label": "COMPONENTS", - "components.tip": "開啟元件實驗室:所有 story,含即時控制項及其狀態", + "lab.label": "LAB", + "lab.tip": "開啟 Lab:所有頁面,含即時控制項及其狀態", "speed.label": "SPEED", "speed.tip": "全域動畫速度。按一下可依序切換 0.5× 和 0.25×,再回到 1×。", "slow.label": "SLOW", diff --git a/packages/gui-plugins/src/file/browser.stories.tsx b/packages/gui-plugins/src/file/browser.lab.tsx similarity index 100% rename from packages/gui-plugins/src/file/browser.stories.tsx rename to packages/gui-plugins/src/file/browser.lab.tsx diff --git a/packages/gui-plugins/src/pairing/dialog.stories.tsx b/packages/gui-plugins/src/pairing/dialog.lab.tsx similarity index 100% rename from packages/gui-plugins/src/pairing/dialog.stories.tsx rename to packages/gui-plugins/src/pairing/dialog.lab.tsx diff --git a/packages/gui-plugins/src/pairing/page.stories.tsx b/packages/gui-plugins/src/pairing/page.lab.tsx similarity index 100% rename from packages/gui-plugins/src/pairing/page.stories.tsx rename to packages/gui-plugins/src/pairing/page.lab.tsx diff --git a/packages/gui-plugins/src/review/panel.stories.tsx b/packages/gui-plugins/src/review/panel.lab.tsx similarity index 100% rename from packages/gui-plugins/src/review/panel.stories.tsx rename to packages/gui-plugins/src/review/panel.lab.tsx diff --git a/packages/gui-plugins/src/ssh/dialog.stories.tsx b/packages/gui-plugins/src/ssh/dialog.lab.tsx similarity index 100% rename from packages/gui-plugins/src/ssh/dialog.stories.tsx rename to packages/gui-plugins/src/ssh/dialog.lab.tsx diff --git a/packages/gui-plugins/src/updater/whats-new.stories.tsx b/packages/gui-plugins/src/updater/whats-new.lab.tsx similarity index 100% rename from packages/gui-plugins/src/updater/whats-new.stories.tsx rename to packages/gui-plugins/src/updater/whats-new.lab.tsx diff --git a/packages/gui-plugins/tsconfig.json b/packages/gui-plugins/tsconfig.json index 0c1d6ca9ab8..5651f3c1957 100644 --- a/packages/gui-plugins/tsconfig.json +++ b/packages/gui-plugins/tsconfig.json @@ -17,5 +17,5 @@ "types": ["vite/client", "bun"] }, "include": ["src"], - "exclude": ["src/**/*.stories.tsx"] + "exclude": ["src/**/*.lab.tsx"] } diff --git a/packages/session-ui/src/components/dock-prompt.stories.tsx b/packages/session-ui/src/components/dock-prompt.lab.tsx similarity index 100% rename from packages/session-ui/src/components/dock-prompt.stories.tsx rename to packages/session-ui/src/components/dock-prompt.lab.tsx diff --git a/packages/session-ui/src/components/file-media.stories.tsx b/packages/session-ui/src/components/file-media.lab.tsx similarity index 100% rename from packages/session-ui/src/components/file-media.stories.tsx rename to packages/session-ui/src/components/file-media.lab.tsx diff --git a/packages/session-ui/src/components/line-comment.stories.tsx b/packages/session-ui/src/components/line-comment.lab.tsx similarity index 100% rename from packages/session-ui/src/components/line-comment.stories.tsx rename to packages/session-ui/src/components/line-comment.lab.tsx diff --git a/packages/session-ui/src/components/markdown.stories.tsx b/packages/session-ui/src/components/markdown.lab.tsx similarity index 100% rename from packages/session-ui/src/components/markdown.stories.tsx rename to packages/session-ui/src/components/markdown.lab.tsx diff --git a/packages/session-ui/src/components/session-review.stories.tsx b/packages/session-ui/src/components/session-review.lab.tsx similarity index 100% rename from packages/session-ui/src/components/session-review.stories.tsx rename to packages/session-ui/src/components/session-review.lab.tsx diff --git a/packages/session-ui/src/components/tool-count-summary.stories.tsx b/packages/session-ui/src/components/tool-count-summary.lab.tsx similarity index 100% rename from packages/session-ui/src/components/tool-count-summary.stories.tsx rename to packages/session-ui/src/components/tool-count-summary.lab.tsx diff --git a/packages/session-ui/src/components/tool-error-card.stories.tsx b/packages/session-ui/src/components/tool-error-card.lab.tsx similarity index 100% rename from packages/session-ui/src/components/tool-error-card.stories.tsx rename to packages/session-ui/src/components/tool-error-card.lab.tsx diff --git a/packages/session-ui/src/message/prompt-message.stories.tsx b/packages/session-ui/src/message/prompt-message.lab.tsx similarity index 100% rename from packages/session-ui/src/message/prompt-message.stories.tsx rename to packages/session-ui/src/message/prompt-message.lab.tsx diff --git a/packages/session-ui/src/message/user-message-quotes.stories.tsx b/packages/session-ui/src/message/user-message-quotes.lab.tsx similarity index 100% rename from packages/session-ui/src/message/user-message-quotes.stories.tsx rename to packages/session-ui/src/message/user-message-quotes.lab.tsx diff --git a/packages/session-ui/src/storybook/current-session-fixtures.ts b/packages/session-ui/src/storybook/current-session-fixtures.ts index 2f485ea5ab7..5f6cdf4c2c7 100644 --- a/packages/session-ui/src/storybook/current-session-fixtures.ts +++ b/packages/session-ui/src/storybook/current-session-fixtures.ts @@ -1373,7 +1373,7 @@ export const largeCompletedDocument = { status: { type: "idle" }, diffs: [ { - file: "packages/session-ui/src/timeline/session-timeline.stories.tsx", + file: "packages/session-ui/src/timeline/session-timeline.lab.tsx", patch: "@@ -0,0 +1,16 @@", additions: 16, deletions: 0, diff --git a/packages/session-ui/src/timeline-next/stories/codemode-captured.stories.tsx b/packages/session-ui/src/timeline-next/stories/codemode-captured.lab.tsx similarity index 100% rename from packages/session-ui/src/timeline-next/stories/codemode-captured.stories.tsx rename to packages/session-ui/src/timeline-next/stories/codemode-captured.lab.tsx diff --git a/packages/session-ui/src/timeline-next/stories/compare-renderer.stories.tsx b/packages/session-ui/src/timeline-next/stories/compare-renderer.lab.tsx similarity index 100% rename from packages/session-ui/src/timeline-next/stories/compare-renderer.stories.tsx rename to packages/session-ui/src/timeline-next/stories/compare-renderer.lab.tsx diff --git a/packages/session-ui/src/timeline-next/stories/compare.stories.tsx b/packages/session-ui/src/timeline-next/stories/compare.lab.tsx similarity index 100% rename from packages/session-ui/src/timeline-next/stories/compare.stories.tsx rename to packages/session-ui/src/timeline-next/stories/compare.lab.tsx diff --git a/packages/session-ui/src/timeline-next/stories/playground.stories.tsx b/packages/session-ui/src/timeline-next/stories/playground.lab.tsx similarity index 100% rename from packages/session-ui/src/timeline-next/stories/playground.stories.tsx rename to packages/session-ui/src/timeline-next/stories/playground.lab.tsx diff --git a/packages/session-ui/src/timeline-next/stories/subagent-status.stories.tsx b/packages/session-ui/src/timeline-next/stories/subagent-status.lab.tsx similarity index 100% rename from packages/session-ui/src/timeline-next/stories/subagent-status.stories.tsx rename to packages/session-ui/src/timeline-next/stories/subagent-status.lab.tsx diff --git a/packages/session-ui/src/timeline/code-blocks.stories.tsx b/packages/session-ui/src/timeline/code-blocks.lab.tsx similarity index 100% rename from packages/session-ui/src/timeline/code-blocks.stories.tsx rename to packages/session-ui/src/timeline/code-blocks.lab.tsx diff --git a/packages/session-ui/src/timeline/commentary.stories.tsx b/packages/session-ui/src/timeline/commentary.lab.tsx similarity index 100% rename from packages/session-ui/src/timeline/commentary.stories.tsx rename to packages/session-ui/src/timeline/commentary.lab.tsx diff --git a/packages/session-ui/src/timeline/error-card.stories.tsx b/packages/session-ui/src/timeline/error-card.lab.tsx similarity index 100% rename from packages/session-ui/src/timeline/error-card.stories.tsx rename to packages/session-ui/src/timeline/error-card.lab.tsx diff --git a/packages/session-ui/src/timeline/error-spacing.stories.tsx b/packages/session-ui/src/timeline/error-spacing.lab.tsx similarity index 100% rename from packages/session-ui/src/timeline/error-spacing.stories.tsx rename to packages/session-ui/src/timeline/error-spacing.lab.tsx diff --git a/packages/session-ui/src/timeline/file-changes.stories.tsx b/packages/session-ui/src/timeline/file-changes.lab.tsx similarity index 100% rename from packages/session-ui/src/timeline/file-changes.stories.tsx rename to packages/session-ui/src/timeline/file-changes.lab.tsx diff --git a/packages/session-ui/src/timeline/mermaid.stories.tsx b/packages/session-ui/src/timeline/mermaid.lab.tsx similarity index 100% rename from packages/session-ui/src/timeline/mermaid.stories.tsx rename to packages/session-ui/src/timeline/mermaid.lab.tsx diff --git a/packages/session-ui/src/timeline/research-and-agents.stories.tsx b/packages/session-ui/src/timeline/research-and-agents.lab.tsx similarity index 100% rename from packages/session-ui/src/timeline/research-and-agents.stories.tsx rename to packages/session-ui/src/timeline/research-and-agents.lab.tsx diff --git a/packages/session-ui/src/timeline/terminal-work.stories.tsx b/packages/session-ui/src/timeline/terminal-work.lab.tsx similarity index 100% rename from packages/session-ui/src/timeline/terminal-work.stories.tsx rename to packages/session-ui/src/timeline/terminal-work.lab.tsx diff --git a/packages/session-ui/src/timeline/timeline-row.stories.tsx b/packages/session-ui/src/timeline/timeline-row.lab.tsx similarity index 100% rename from packages/session-ui/src/timeline/timeline-row.stories.tsx rename to packages/session-ui/src/timeline/timeline-row.lab.tsx diff --git a/packages/session-ui/src/timeline/user-message-fold.stories.tsx b/packages/session-ui/src/timeline/user-message-fold.lab.tsx similarity index 100% rename from packages/session-ui/src/timeline/user-message-fold.stories.tsx rename to packages/session-ui/src/timeline/user-message-fold.lab.tsx diff --git a/packages/session-ui/src/tools/read-group.stories.tsx b/packages/session-ui/src/tools/read-group.lab.tsx similarity index 100% rename from packages/session-ui/src/tools/read-group.stories.tsx rename to packages/session-ui/src/tools/read-group.lab.tsx diff --git a/packages/session-ui/src/tools/subagent-row-variants.stories.tsx b/packages/session-ui/src/tools/subagent-row-variants.lab.tsx similarity index 100% rename from packages/session-ui/src/tools/subagent-row-variants.stories.tsx rename to packages/session-ui/src/tools/subagent-row-variants.lab.tsx diff --git a/packages/session-ui/src/tools/tool-group.stories.tsx b/packages/session-ui/src/tools/tool-group.lab.tsx similarity index 100% rename from packages/session-ui/src/tools/tool-group.stories.tsx rename to packages/session-ui/src/tools/tool-group.lab.tsx diff --git a/packages/session-ui/src/v2/components/session-progress-indicator-v2.stories.tsx b/packages/session-ui/src/v2/components/session-progress-indicator-v2.lab.tsx similarity index 100% rename from packages/session-ui/src/v2/components/session-progress-indicator-v2.stories.tsx rename to packages/session-ui/src/v2/components/session-progress-indicator-v2.lab.tsx diff --git a/packages/session-ui/tsconfig.json b/packages/session-ui/tsconfig.json index 8bdee0b2e16..656f08bfac8 100644 --- a/packages/session-ui/tsconfig.json +++ b/packages/session-ui/tsconfig.json @@ -16,5 +16,5 @@ "strict": true, "types": ["vite/client", "bun"] }, - "exclude": ["**/*.stories.*", "**/*.mdx"] + "exclude": ["**/*.lab.tsx", "**/*.mdx"] } diff --git a/packages/stories/playwright/README.md b/packages/stories/playwright/README.md index 1b9a72f8079..77dd834e40f 100644 --- a/packages/stories/playwright/README.md +++ b/packages/stories/playwright/README.md @@ -1,8 +1,8 @@ # Component browser tests -Production Solid components are tested through their existing `*.stories.tsx` stories without booting the app, configuring a server, seeding browser storage, or navigating unrelated routes. +Production Solid components are tested through the states of their existing `*.lab.tsx` Lab pages without booting the app, configuring a server, seeding browser storage, or navigating unrelated routes. -To browse the full components lab in a browser, run `bun run --cwd packages/stories dev` from the repo root and open (or the port Vite prints). The tree, grid, and inspector use the same story fixtures as the individual `/?id=…` pages. +To browse the full Lab in a browser, run `bun run --cwd packages/stories dev` from the repo root and open (or the port Vite prints). The tree, grid, and inspector use the same fixtures as the individual `/?id=…` story frames. Keep each spec in the package that owns its production component: @@ -36,7 +36,7 @@ Component browser coverage deliberately remains separate from each package's def ## Adding a test -Keep inspectable scenarios next to the production component in a `*.stories.tsx` file. A story owns its fixtures, providers, state, and callbacks; its package-local spec owns user-visible interactions and assertions. +Keep inspectable scenarios next to the production component in a `*.lab.tsx` Lab page. A page owns its fixtures, providers, states, and callbacks; its package-local spec owns user-visible interactions and assertions. ```ts import { expect, story } from "../../stories/playwright/story" @@ -54,7 +54,7 @@ story("preserves collapsed state while a tool completes", async ({ mount }) => { }) ``` -The story ID is the story file's meta `id` (or its title, kebab-cased) followed by `--` and the kebab-cased story export, as Storybook named them. Open `http://127.0.0.1:6006/?id=` on a running story server, or the story in the app's components lab, to inspect exactly the scenario covered by the browser test. Preserve an original-source-path comment for every migrated E2E case. +The story ID is the page's meta `id` (or its title, kebab-cased) followed by `--` and the kebab-cased state export, as Storybook named them. It doesn't depend on the file name. Open `http://127.0.0.1:6006/?id=` on a running story server, or the page in the app's Lab, to inspect exactly the scenario covered by the browser test. Preserve an original-source-path comment for every migrated E2E case. Keep cross-route navigation, remote-server ownership, persistent session state, full-app virtualization, and workflows spanning independent surfaces in `packages/app/e2e/`. diff --git a/packages/stories/src/index-plugin.ts b/packages/stories/src/index-plugin.ts index 6681df70a2c..770e0327bed 100644 --- a/packages/stories/src/index-plugin.ts +++ b/packages/stories/src/index-plugin.ts @@ -5,7 +5,7 @@ import type { Plugin } from "vite" const id = "virtual:story-index" /** - * `virtual:story-index`: every story in `roots` by the id Storybook gave it (`--`), so the + * `virtual:story-index`: every story (a Lab page's state) in `roots` by the id Storybook gave it (`--`), so the * component tests keep their ids. Each entry loads only its own file. */ export function storyIndex(roots: string[]): Plugin { @@ -13,7 +13,7 @@ export function storyIndex(roots: string[]): Plugin { name: "opencode:story-index", resolveId: (source) => (source === id ? `\0${id}` : undefined), hotUpdate({ file }) { - if (!file.endsWith(".stories.tsx")) return + if (!file.endsWith(".lab.tsx")) return // The index reads the export names itself. Recompute them for the next /?id=… visit. const graph = this.environment.moduleGraph @@ -25,7 +25,7 @@ export function storyIndex(roots: string[]): Plugin { const files = roots.flatMap((root) => readdirSync(root, { recursive: true, encoding: "utf8" }) - .filter((file) => file.endsWith(".stories.tsx") && !file.includes("node_modules")) + .filter((file) => file.endsWith(".lab.tsx") && !file.includes("node_modules")) .map((file) => path.join(root, file).replaceAll("\\", "/")), ) diff --git a/packages/stories/src/lab.tsx b/packages/stories/src/lab.tsx index 673c9355a73..0b6d34d51f4 100644 --- a/packages/stories/src/lab.tsx +++ b/packages/stories/src/lab.tsx @@ -2,15 +2,15 @@ import "../../app/src/index.css" import { createSignal, onCleanup } from "solid-js" import { render } from "solid-js/web" -import { LabBrowser } from "../../app/src/components-lab/browser" -import { loadLabCatalog, type StoryModule } from "../../app/src/components-lab/catalog" +import { LabBrowser } from "../../app/src/lab/browser" +import { loadLabCatalog, type StoryModule } from "../../app/src/lab/catalog" import { PluginStory } from "./plugin" import { StoryProviders } from "./providers" // This origin uses the story mocks, so it can include the standalone dialog fixtures as well. -const modules = import.meta.glob("../../{app,ui,session-ui,gui-plugins}/src/**/*.stories.tsx") +const modules = import.meta.glob("../../{app,ui,session-ui,gui-plugins}/src/**/*.lab.tsx") -const sources = import.meta.glob("../../{app,ui,session-ui,gui-plugins}/src/**/*.stories.tsx", { +const sources = import.meta.glob("../../{app,ui,session-ui,gui-plugins}/src/**/*.lab.tsx", { query: "?raw", import: "default", }) @@ -50,5 +50,5 @@ function StandaloneLab() { ) } -document.title = "OpenCode Components Lab" +document.title = "OpenCode Lab" render(StandaloneLab, document.getElementById("story-root")!) diff --git a/packages/stories/vite.config.ts b/packages/stories/vite.config.ts index 89dc10155a8..643c4877dc6 100644 --- a/packages/stories/vite.config.ts +++ b/packages/stories/vite.config.ts @@ -6,7 +6,7 @@ import { defineConfig, searchForWorkspaceRoot } from "vite" import solid from "vite-plugin-solid" import { storyIndex } from "./src/index-plugin" -// The standalone components lab and the isolated story frames share the same mock runtime. +// The standalone Lab and the isolated story frames share the same mock runtime. const here = path.dirname(fileURLToPath(import.meta.url)) const packages = path.resolve(here, "..") const app = path.resolve(packages, "app/src") @@ -35,10 +35,10 @@ export default defineConfig({ publicDir: path.resolve(packages, "app/public"), optimizeDeps: { // Vite finds a dependency on its first import and reloads every open page, which would abort a component test - // mid-import. Crawl the stories, the workers (the scan does not follow `new Worker(new URL(…))`), the modules the + // mid-import. Crawl the Lab pages, the workers (the scan does not follow `new Worker(new URL(…))`), the modules the // component tests load, and the frame, so the first browser request never discovers a new dependency. entries: [ - "../{ui,session-ui,app,gui-plugins}/src/**/*.{stories.tsx,worker.ts}", + "../{ui,session-ui,app,gui-plugins}/src/**/*.{lab.tsx,worker.ts}", ...new Set(componentTestModules.map(entry)), "index.html", ], diff --git a/packages/ui/package.json b/packages/ui/package.json index ae2f9c5664c..47c0df2da83 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -20,8 +20,7 @@ "src/**/*.tsx", "!src/**/*.test.ts", "!src/**/*.test.tsx", - "!src/**/*.stories.ts", - "!src/**/*.stories.tsx", + "!src/**/*.lab.tsx", "src/**/*.css", "src/data-display/line-comment/*.svg", "src/theme/themes/*.json", diff --git a/packages/ui/script/generate-icon-usage.ts b/packages/ui/script/generate-icon-usage.ts index 3a0b37e95d6..62805e85b30 100644 --- a/packages/ui/script/generate-icon-usage.ts +++ b/packages/ui/script/generate-icon-usage.ts @@ -11,7 +11,7 @@ const roots = ["app", "desktop", "gui-plugins", "session-ui", "ui"].map((name) = const sourceFiles = new Bun.Glob("**/*.{ts,tsx}") const excluded = - /(?:^|\/)(?:components-lab|fixtures|i18n|locales|stories|storybook)\/|(?:[.-](?:test|spec|fixture|fixtures|stories|story|bench|generated))\.tsx?$/ + /(?:^|\/)(?:lab|fixtures|i18n|locales|stories|storybook)\/|(?:[.-](?:test|spec|fixture|fixtures|lab|stories|story|bench|generated))\.tsx?$/ const iconProperty = /^(?:icon|activeIcon|clearIcon|closeIcon|emptyIcon|errorIcon|leadingIcon|secondaryIcon|successIcon|targetIcon|titleIcon|trailingIcon|triggerIcon)$/ diff --git a/packages/ui/src/actions/button/button.stories.tsx b/packages/ui/src/actions/button/button.lab.tsx similarity index 100% rename from packages/ui/src/actions/button/button.stories.tsx rename to packages/ui/src/actions/button/button.lab.tsx diff --git a/packages/ui/src/actions/icon-button/icon-button.stories.tsx b/packages/ui/src/actions/icon-button/icon-button.lab.tsx similarity index 100% rename from packages/ui/src/actions/icon-button/icon-button.stories.tsx rename to packages/ui/src/actions/icon-button/icon-button.lab.tsx diff --git a/packages/ui/src/actions/split-button/split-button.stories.tsx b/packages/ui/src/actions/split-button/split-button.lab.tsx similarity index 100% rename from packages/ui/src/actions/split-button/split-button.stories.tsx rename to packages/ui/src/actions/split-button/split-button.lab.tsx diff --git a/packages/ui/src/components/animated-number.stories.tsx b/packages/ui/src/components/animated-number.lab.tsx similarity index 100% rename from packages/ui/src/components/animated-number.stories.tsx rename to packages/ui/src/components/animated-number.lab.tsx diff --git a/packages/ui/src/components/app-icon.stories.tsx b/packages/ui/src/components/app-icon.lab.tsx similarity index 100% rename from packages/ui/src/components/app-icon.stories.tsx rename to packages/ui/src/components/app-icon.lab.tsx diff --git a/packages/ui/src/components/card.stories.tsx b/packages/ui/src/components/card.lab.tsx similarity index 100% rename from packages/ui/src/components/card.stories.tsx rename to packages/ui/src/components/card.lab.tsx diff --git a/packages/ui/src/components/collapsible.stories.tsx b/packages/ui/src/components/collapsible.lab.tsx similarity index 100% rename from packages/ui/src/components/collapsible.stories.tsx rename to packages/ui/src/components/collapsible.lab.tsx diff --git a/packages/ui/src/components/context-menu.stories.tsx b/packages/ui/src/components/context-menu.lab.tsx similarity index 100% rename from packages/ui/src/components/context-menu.stories.tsx rename to packages/ui/src/components/context-menu.lab.tsx diff --git a/packages/ui/src/components/diagram-preview.stories.tsx b/packages/ui/src/components/diagram-preview.lab.tsx similarity index 100% rename from packages/ui/src/components/diagram-preview.stories.tsx rename to packages/ui/src/components/diagram-preview.lab.tsx diff --git a/packages/ui/src/components/dock-surface.stories.tsx b/packages/ui/src/components/dock-surface.lab.tsx similarity index 100% rename from packages/ui/src/components/dock-surface.stories.tsx rename to packages/ui/src/components/dock-surface.lab.tsx diff --git a/packages/ui/src/components/document-surface.stories.tsx b/packages/ui/src/components/document-surface.lab.tsx similarity index 100% rename from packages/ui/src/components/document-surface.stories.tsx rename to packages/ui/src/components/document-surface.lab.tsx diff --git a/packages/ui/src/components/error-details.stories.tsx b/packages/ui/src/components/error-details.lab.tsx similarity index 100% rename from packages/ui/src/components/error-details.stories.tsx rename to packages/ui/src/components/error-details.lab.tsx diff --git a/packages/ui/src/components/favicon.stories.tsx b/packages/ui/src/components/favicon.lab.tsx similarity index 100% rename from packages/ui/src/components/favicon.stories.tsx rename to packages/ui/src/components/favicon.lab.tsx diff --git a/packages/ui/src/components/file-icon.stories.tsx b/packages/ui/src/components/file-icon.lab.tsx similarity index 100% rename from packages/ui/src/components/file-icon.stories.tsx rename to packages/ui/src/components/file-icon.lab.tsx diff --git a/packages/ui/src/components/font.stories.tsx b/packages/ui/src/components/font.lab.tsx similarity index 100% rename from packages/ui/src/components/font.stories.tsx rename to packages/ui/src/components/font.lab.tsx diff --git a/packages/ui/src/components/hover-card.stories.tsx b/packages/ui/src/components/hover-card.lab.tsx similarity index 100% rename from packages/ui/src/components/hover-card.stories.tsx rename to packages/ui/src/components/hover-card.lab.tsx diff --git a/packages/ui/src/components/image-preview.stories.tsx b/packages/ui/src/components/image-preview.lab.tsx similarity index 100% rename from packages/ui/src/components/image-preview.stories.tsx rename to packages/ui/src/components/image-preview.lab.tsx diff --git a/packages/ui/src/components/list.stories.tsx b/packages/ui/src/components/list.lab.tsx similarity index 100% rename from packages/ui/src/components/list.stories.tsx rename to packages/ui/src/components/list.lab.tsx diff --git a/packages/ui/src/components/logo.stories.tsx b/packages/ui/src/components/logo.lab.tsx similarity index 100% rename from packages/ui/src/components/logo.stories.tsx rename to packages/ui/src/components/logo.lab.tsx diff --git a/packages/ui/src/components/menu-scroll.stories.tsx b/packages/ui/src/components/menu-scroll.lab.tsx similarity index 100% rename from packages/ui/src/components/menu-scroll.stories.tsx rename to packages/ui/src/components/menu-scroll.lab.tsx diff --git a/packages/ui/src/components/popover.stories.tsx b/packages/ui/src/components/popover.lab.tsx similarity index 100% rename from packages/ui/src/components/popover.stories.tsx rename to packages/ui/src/components/popover.lab.tsx diff --git a/packages/ui/src/components/preview-controls.stories.tsx b/packages/ui/src/components/preview-controls.lab.tsx similarity index 100% rename from packages/ui/src/components/preview-controls.stories.tsx rename to packages/ui/src/components/preview-controls.lab.tsx diff --git a/packages/ui/src/components/progress.stories.tsx b/packages/ui/src/components/progress.lab.tsx similarity index 100% rename from packages/ui/src/components/progress.stories.tsx rename to packages/ui/src/components/progress.lab.tsx diff --git a/packages/ui/src/components/provider-icon.stories.tsx b/packages/ui/src/components/provider-icon.lab.tsx similarity index 100% rename from packages/ui/src/components/provider-icon.stories.tsx rename to packages/ui/src/components/provider-icon.lab.tsx diff --git a/packages/ui/src/components/resize-handle.stories.tsx b/packages/ui/src/components/resize-handle.lab.tsx similarity index 100% rename from packages/ui/src/components/resize-handle.stories.tsx rename to packages/ui/src/components/resize-handle.lab.tsx diff --git a/packages/ui/src/components/rolling-number.stories.tsx b/packages/ui/src/components/rolling-number.lab.tsx similarity index 100% rename from packages/ui/src/components/rolling-number.stories.tsx rename to packages/ui/src/components/rolling-number.lab.tsx diff --git a/packages/ui/src/components/scroll-view.stories.tsx b/packages/ui/src/components/scroll-view.lab.tsx similarity index 100% rename from packages/ui/src/components/scroll-view.stories.tsx rename to packages/ui/src/components/scroll-view.lab.tsx diff --git a/packages/ui/src/components/spinner.stories.tsx b/packages/ui/src/components/spinner.lab.tsx similarity index 100% rename from packages/ui/src/components/spinner.stories.tsx rename to packages/ui/src/components/spinner.lab.tsx diff --git a/packages/ui/src/components/sticky-accordion-header.stories.tsx b/packages/ui/src/components/sticky-accordion-header.lab.tsx similarity index 100% rename from packages/ui/src/components/sticky-accordion-header.stories.tsx rename to packages/ui/src/components/sticky-accordion-header.lab.tsx diff --git a/packages/ui/src/components/text-field.stories.tsx b/packages/ui/src/components/text-field.lab.tsx similarity index 100% rename from packages/ui/src/components/text-field.stories.tsx rename to packages/ui/src/components/text-field.lab.tsx diff --git a/packages/ui/src/components/text-reveal.stories.tsx b/packages/ui/src/components/text-reveal.lab.tsx similarity index 100% rename from packages/ui/src/components/text-reveal.stories.tsx rename to packages/ui/src/components/text-reveal.lab.tsx diff --git a/packages/ui/src/components/text-strikethrough.stories.tsx b/packages/ui/src/components/text-strikethrough.lab.tsx similarity index 100% rename from packages/ui/src/components/text-strikethrough.stories.tsx rename to packages/ui/src/components/text-strikethrough.lab.tsx diff --git a/packages/ui/src/components/thinking-heading.stories.tsx b/packages/ui/src/components/thinking-heading.lab.tsx similarity index 100% rename from packages/ui/src/components/thinking-heading.stories.tsx rename to packages/ui/src/components/thinking-heading.lab.tsx diff --git a/packages/ui/src/components/truncated-text.stories.tsx b/packages/ui/src/components/truncated-text.lab.tsx similarity index 100% rename from packages/ui/src/components/truncated-text.stories.tsx rename to packages/ui/src/components/truncated-text.lab.tsx diff --git a/packages/ui/src/components/typewriter.stories.tsx b/packages/ui/src/components/typewriter.lab.tsx similarity index 100% rename from packages/ui/src/components/typewriter.stories.tsx rename to packages/ui/src/components/typewriter.lab.tsx diff --git a/packages/ui/src/data-display/accordion/accordion.stories.tsx b/packages/ui/src/data-display/accordion/accordion.lab.tsx similarity index 100% rename from packages/ui/src/data-display/accordion/accordion.stories.tsx rename to packages/ui/src/data-display/accordion/accordion.lab.tsx diff --git a/packages/ui/src/data-display/avatar/avatar.stories.tsx b/packages/ui/src/data-display/avatar/avatar.lab.tsx similarity index 100% rename from packages/ui/src/data-display/avatar/avatar.stories.tsx rename to packages/ui/src/data-display/avatar/avatar.lab.tsx diff --git a/packages/ui/src/data-display/badge/badge.stories.tsx b/packages/ui/src/data-display/badge/badge.lab.tsx similarity index 100% rename from packages/ui/src/data-display/badge/badge.stories.tsx rename to packages/ui/src/data-display/badge/badge.lab.tsx diff --git a/packages/ui/src/data-display/diff-changes/diff-changes.stories.tsx b/packages/ui/src/data-display/diff-changes/diff-changes.lab.tsx similarity index 100% rename from packages/ui/src/data-display/diff-changes/diff-changes.stories.tsx rename to packages/ui/src/data-display/diff-changes/diff-changes.lab.tsx diff --git a/packages/ui/src/data-display/keybind/keybind.stories.tsx b/packages/ui/src/data-display/keybind/keybind.lab.tsx similarity index 100% rename from packages/ui/src/data-display/keybind/keybind.stories.tsx rename to packages/ui/src/data-display/keybind/keybind.lab.tsx diff --git a/packages/ui/src/data-display/line-comment/line-comment.stories.tsx b/packages/ui/src/data-display/line-comment/line-comment.lab.tsx similarity index 100% rename from packages/ui/src/data-display/line-comment/line-comment.stories.tsx rename to packages/ui/src/data-display/line-comment/line-comment.lab.tsx diff --git a/packages/ui/src/data-display/project-avatar/procedural-kit.ts b/packages/ui/src/data-display/project-avatar/procedural-kit.ts index e813d000f29..5cbc94ff4ba 100644 --- a/packages/ui/src/data-display/project-avatar/procedural-kit.ts +++ b/packages/ui/src/data-display/project-avatar/procedural-kit.ts @@ -1,5 +1,5 @@ // Shared pieces of the experimental project icon styles in procedural.ts: the style definition, the pixel grid that -// most styles paint, and color, random and dithering helpers. Only the components lab imports these modules. +// most styles paint, and color, random and dithering helpers. Only the Lab imports these modules. import { PALETTES, valueNoise } from "./generated" diff --git a/packages/ui/src/data-display/project-avatar/procedural.ts b/packages/ui/src/data-display/project-avatar/procedural.ts index cebe4ccf197..65d2514599d 100644 --- a/packages/ui/src/data-display/project-avatar/procedural.ts +++ b/packages/ui/src/data-display/project-avatar/procedural.ts @@ -1,4 +1,4 @@ -// Experimental generators for the default project avatar, compared side by side in the components lab. Each keeps the +// Experimental generators for the default project avatar, compared side by side in the Lab. Each keeps the // mesh's contract (see generated.ts): the values that define an icon are resolved once from a key, so a stored icon // never changes, and drawing is a CPU pass on a 2D canvas clipped to the same rounded tile. Most styles paint a small // grid of pixels that is scaled up nearest-neighbour, with limited palettes and ordered dithering. Only the components @@ -1495,6 +1495,7 @@ function turned(cells: number[][], turns: number) { (list) => list.map(([x, y]) => [-y, x]), cells, ) + const minX = Math.min(...rotated.map(([x]) => x)) const minY = Math.min(...rotated.map(([, y]) => y)) diff --git a/packages/ui/src/data-display/project-avatar/project-avatar.stories.tsx b/packages/ui/src/data-display/project-avatar/project-avatar.lab.tsx similarity index 100% rename from packages/ui/src/data-display/project-avatar/project-avatar.stories.tsx rename to packages/ui/src/data-display/project-avatar/project-avatar.lab.tsx diff --git a/packages/ui/src/data-display/project-avatar/project-icon-styles.stories.tsx b/packages/ui/src/data-display/project-avatar/project-icon-styles.lab.tsx similarity index 100% rename from packages/ui/src/data-display/project-avatar/project-icon-styles.stories.tsx rename to packages/ui/src/data-display/project-avatar/project-icon-styles.lab.tsx diff --git a/packages/ui/src/feedback/activity-ring/activity-ring.stories.tsx b/packages/ui/src/feedback/activity-ring/activity-ring.lab.tsx similarity index 100% rename from packages/ui/src/feedback/activity-ring/activity-ring.stories.tsx rename to packages/ui/src/feedback/activity-ring/activity-ring.lab.tsx diff --git a/packages/ui/src/feedback/loader/loader.stories.tsx b/packages/ui/src/feedback/loader/loader.lab.tsx similarity index 100% rename from packages/ui/src/feedback/loader/loader.stories.tsx rename to packages/ui/src/feedback/loader/loader.lab.tsx diff --git a/packages/ui/src/feedback/progress-circle/progress-circle.stories.tsx b/packages/ui/src/feedback/progress-circle/progress-circle.lab.tsx similarity index 100% rename from packages/ui/src/feedback/progress-circle/progress-circle.stories.tsx rename to packages/ui/src/feedback/progress-circle/progress-circle.lab.tsx diff --git a/packages/ui/src/feedback/toast/toast.stories.tsx b/packages/ui/src/feedback/toast/toast.lab.tsx similarity index 100% rename from packages/ui/src/feedback/toast/toast.stories.tsx rename to packages/ui/src/feedback/toast/toast.lab.tsx diff --git a/packages/ui/src/forms/checkbox/checkbox.stories.tsx b/packages/ui/src/forms/checkbox/checkbox.lab.tsx similarity index 100% rename from packages/ui/src/forms/checkbox/checkbox.stories.tsx rename to packages/ui/src/forms/checkbox/checkbox.lab.tsx diff --git a/packages/ui/src/forms/field/field.stories.tsx b/packages/ui/src/forms/field/field.lab.tsx similarity index 100% rename from packages/ui/src/forms/field/field.stories.tsx rename to packages/ui/src/forms/field/field.lab.tsx diff --git a/packages/ui/src/forms/inline-input/inline-input.stories.tsx b/packages/ui/src/forms/inline-input/inline-input.lab.tsx similarity index 100% rename from packages/ui/src/forms/inline-input/inline-input.stories.tsx rename to packages/ui/src/forms/inline-input/inline-input.lab.tsx diff --git a/packages/ui/src/forms/radio/radio.stories.tsx b/packages/ui/src/forms/radio/radio.lab.tsx similarity index 100% rename from packages/ui/src/forms/radio/radio.stories.tsx rename to packages/ui/src/forms/radio/radio.lab.tsx diff --git a/packages/ui/src/forms/redirect-paste/redirect-paste.stories.tsx b/packages/ui/src/forms/redirect-paste/redirect-paste.lab.tsx similarity index 100% rename from packages/ui/src/forms/redirect-paste/redirect-paste.stories.tsx rename to packages/ui/src/forms/redirect-paste/redirect-paste.lab.tsx diff --git a/packages/ui/src/forms/search-list/search-list.stories.tsx b/packages/ui/src/forms/search-list/search-list.lab.tsx similarity index 100% rename from packages/ui/src/forms/search-list/search-list.stories.tsx rename to packages/ui/src/forms/search-list/search-list.lab.tsx diff --git a/packages/ui/src/forms/select/select.stories.tsx b/packages/ui/src/forms/select/select.lab.tsx similarity index 100% rename from packages/ui/src/forms/select/select.stories.tsx rename to packages/ui/src/forms/select/select.lab.tsx diff --git a/packages/ui/src/forms/switch/switch.stories.tsx b/packages/ui/src/forms/switch/switch.lab.tsx similarity index 100% rename from packages/ui/src/forms/switch/switch.stories.tsx rename to packages/ui/src/forms/switch/switch.lab.tsx diff --git a/packages/ui/src/forms/text-input/text-input.stories.tsx b/packages/ui/src/forms/text-input/text-input.lab.tsx similarity index 100% rename from packages/ui/src/forms/text-input/text-input.stories.tsx rename to packages/ui/src/forms/text-input/text-input.lab.tsx diff --git a/packages/ui/src/forms/textarea/textarea.stories.tsx b/packages/ui/src/forms/textarea/textarea.lab.tsx similarity index 100% rename from packages/ui/src/forms/textarea/textarea.stories.tsx rename to packages/ui/src/forms/textarea/textarea.lab.tsx diff --git a/packages/ui/src/forms/typeahead/typeahead.stories.tsx b/packages/ui/src/forms/typeahead/typeahead.lab.tsx similarity index 100% rename from packages/ui/src/forms/typeahead/typeahead.stories.tsx rename to packages/ui/src/forms/typeahead/typeahead.lab.tsx diff --git a/packages/ui/src/icons/icon/icon-grid.stories.tsx b/packages/ui/src/icons/icon/icon-grid.lab.tsx similarity index 100% rename from packages/ui/src/icons/icon/icon-grid.stories.tsx rename to packages/ui/src/icons/icon/icon-grid.lab.tsx diff --git a/packages/ui/src/icons/icon/icon-potential-duplicates.stories.tsx b/packages/ui/src/icons/icon/icon-potential-duplicates.lab.tsx similarity index 100% rename from packages/ui/src/icons/icon/icon-potential-duplicates.stories.tsx rename to packages/ui/src/icons/icon/icon-potential-duplicates.lab.tsx diff --git a/packages/ui/src/icons/icon/icon-unused.stories.tsx b/packages/ui/src/icons/icon/icon-unused.lab.tsx similarity index 100% rename from packages/ui/src/icons/icon/icon-unused.stories.tsx rename to packages/ui/src/icons/icon/icon-unused.lab.tsx diff --git a/packages/ui/src/icons/icon/icon.stories.tsx b/packages/ui/src/icons/icon/icon.lab.tsx similarity index 100% rename from packages/ui/src/icons/icon/icon.stories.tsx rename to packages/ui/src/icons/icon/icon.lab.tsx diff --git a/packages/ui/src/layout/divider/divider.stories.tsx b/packages/ui/src/layout/divider/divider.lab.tsx similarity index 100% rename from packages/ui/src/layout/divider/divider.stories.tsx rename to packages/ui/src/layout/divider/divider.lab.tsx diff --git a/packages/ui/src/navigation/menu/menu.stories.tsx b/packages/ui/src/navigation/menu/menu.lab.tsx similarity index 100% rename from packages/ui/src/navigation/menu/menu.stories.tsx rename to packages/ui/src/navigation/menu/menu.lab.tsx diff --git a/packages/ui/src/navigation/segmented-control/segmented-control.stories.tsx b/packages/ui/src/navigation/segmented-control/segmented-control.lab.tsx similarity index 100% rename from packages/ui/src/navigation/segmented-control/segmented-control.stories.tsx rename to packages/ui/src/navigation/segmented-control/segmented-control.lab.tsx diff --git a/packages/ui/src/navigation/tab-state-indicator.stories.tsx b/packages/ui/src/navigation/tab-state-indicator.lab.tsx similarity index 100% rename from packages/ui/src/navigation/tab-state-indicator.stories.tsx rename to packages/ui/src/navigation/tab-state-indicator.lab.tsx diff --git a/packages/ui/src/navigation/tabs/tabs.stories.tsx b/packages/ui/src/navigation/tabs/tabs.lab.tsx similarity index 100% rename from packages/ui/src/navigation/tabs/tabs.stories.tsx rename to packages/ui/src/navigation/tabs/tabs.lab.tsx diff --git a/packages/ui/src/overlays/dialog/dialog.stories.tsx b/packages/ui/src/overlays/dialog/dialog.lab.tsx similarity index 100% rename from packages/ui/src/overlays/dialog/dialog.stories.tsx rename to packages/ui/src/overlays/dialog/dialog.lab.tsx diff --git a/packages/ui/src/overlays/tooltip/tooltip.stories.tsx b/packages/ui/src/overlays/tooltip/tooltip.lab.tsx similarity index 100% rename from packages/ui/src/overlays/tooltip/tooltip.stories.tsx rename to packages/ui/src/overlays/tooltip/tooltip.lab.tsx diff --git a/packages/ui/src/styles/blue-tokens.stories.tsx b/packages/ui/src/styles/blue-tokens.lab.tsx similarity index 100% rename from packages/ui/src/styles/blue-tokens.stories.tsx rename to packages/ui/src/styles/blue-tokens.lab.tsx diff --git a/packages/ui/src/typography/slash/slash.stories.tsx b/packages/ui/src/typography/slash/slash.lab.tsx similarity index 100% rename from packages/ui/src/typography/slash/slash.stories.tsx rename to packages/ui/src/typography/slash/slash.lab.tsx diff --git a/packages/ui/src/typography/text-shimmer/text-shimmer.stories.tsx b/packages/ui/src/typography/text-shimmer/text-shimmer.lab.tsx similarity index 100% rename from packages/ui/src/typography/text-shimmer/text-shimmer.stories.tsx rename to packages/ui/src/typography/text-shimmer/text-shimmer.lab.tsx diff --git a/packages/ui/src/typography/wordmark/wordmark.stories.tsx b/packages/ui/src/typography/wordmark/wordmark.lab.tsx similarity index 100% rename from packages/ui/src/typography/wordmark/wordmark.stories.tsx rename to packages/ui/src/typography/wordmark/wordmark.lab.tsx diff --git a/packages/ui/tsconfig.build.json b/packages/ui/tsconfig.build.json index dec30faf19a..55f163682cc 100644 --- a/packages/ui/tsconfig.build.json +++ b/packages/ui/tsconfig.build.json @@ -10,5 +10,5 @@ "emitDeclarationOnly": true }, "include": ["src"], - "exclude": ["**/*.stories.*", "**/*.test.*", "**/*.mdx"] + "exclude": ["**/*.lab.tsx", "**/*.test.*", "**/*.mdx"] } diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json index 07d4d057cf7..9601decbf47 100644 --- a/packages/ui/tsconfig.json +++ b/packages/ui/tsconfig.json @@ -19,5 +19,5 @@ "strict": true, "types": ["vite/client", "bun"] }, - "exclude": ["**/*.stories.*", "**/*.mdx"] + "exclude": ["**/*.lab.tsx", "**/*.mdx"] }