@zyro-sec/app 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +234 -0
- package/README.md +106 -2
- package/bunfig.toml +3 -0
- package/component-tests/activity-chips.spec.ts +47 -0
- package/component-tests/browser-pane-restore.spec.ts +1294 -0
- package/component-tests/browser-pane.spec.ts +2338 -0
- package/component-tests/browser-settings.spec.ts +315 -0
- package/component-tests/browser-site-chooser.spec.ts +628 -0
- package/component-tests/components-lab.spec.ts +24 -0
- package/component-tests/composer.spec.ts +876 -0
- package/component-tests/debug-bar.spec.ts +237 -0
- package/component-tests/dialog-popups.spec.ts +49 -0
- package/component-tests/file-icon.spec.ts +14 -0
- package/component-tests/focus-rescue.fixture.tsx +30 -0
- package/component-tests/focus-rescue.spec.ts +83 -0
- package/component-tests/focus-ring.spec.ts +112 -0
- package/component-tests/fork-dialog.spec.ts +61 -0
- package/component-tests/grow.fixture.tsx +42 -0
- package/component-tests/grow.spec.ts +74 -0
- package/component-tests/image-preview.spec.ts +157 -0
- package/component-tests/input-surfaces.spec.ts +351 -0
- package/component-tests/line-comment.spec.ts +118 -0
- package/component-tests/list.spec.ts +7 -0
- package/component-tests/model-picker.spec.ts +45 -0
- package/component-tests/new-session-wordmark.spec.ts +135 -0
- package/component-tests/open-in-border.spec.ts +18 -0
- package/component-tests/pairing.spec.ts +40 -0
- package/component-tests/panel-sidebar-side.spec.ts +103 -0
- package/component-tests/plugin-graph.spec.ts +61 -0
- package/component-tests/plugin-host.fixture.tsx +995 -0
- package/component-tests/plugin-host.spec.ts +2362 -0
- package/component-tests/presence.fixture.tsx +59 -0
- package/component-tests/presence.spec.ts +104 -0
- package/component-tests/session-containment.fixture.tsx +79 -0
- package/component-tests/session-containment.spec.ts +145 -0
- package/component-tests/session-location-missing.spec.ts +52 -0
- package/component-tests/session-question-dock.spec.ts +1655 -0
- package/component-tests/sources-experiment.spec.ts +98 -0
- package/component-tests/ssh-reconnect.spec.ts +97 -0
- package/component-tests/subagent-bar.spec.ts +29 -0
- package/component-tests/terminal.spec.ts +148 -0
- package/component-tests/timeline-detail.spec.ts +311 -0
- package/component-tests/timeline-virtualizer.fixture.tsx +272 -0
- package/component-tests/timeline-virtualizer.spec.ts +269 -0
- package/component-tests/toast.spec.ts +23 -0
- package/component-tests/tooltip.spec.ts +169 -0
- package/component-tests/websearch.spec.ts +86 -0
- package/e2e/AGENTS.md +25 -0
- package/e2e/QUARANTINE.md +12 -0
- package/e2e/regression/background-read-failure.spec.ts +43 -0
- package/e2e/regression/btw-sidebar.spec.ts +339 -0
- package/e2e/regression/command-palette.spec.ts +822 -0
- package/e2e/regression/composer.spec.ts +1727 -0
- package/e2e/regression/directory-picker.spec.ts +133 -0
- package/e2e/regression/home.spec.ts +779 -0
- package/e2e/regression/mcp-workspace-toggle.spec.ts +695 -0
- package/e2e/regression/menu-scrollbars.spec.ts +78 -0
- package/e2e/regression/mobile-composer-submit-focus.spec.ts +88 -0
- package/e2e/regression/mobile-model-pickers.spec.ts +433 -0
- package/e2e/regression/mobile-plugin-drawers.spec.ts +194 -0
- package/e2e/regression/mobile-plugins.spec.ts +309 -0
- package/e2e/regression/mobile-session-options.spec.ts +101 -0
- package/e2e/regression/mobile-session.spec.ts +442 -0
- package/e2e/regression/mobile-timeline-scroll.spec.ts +919 -0
- package/e2e/regression/multi-server.spec.ts +498 -0
- package/e2e/regression/new-session.spec.ts +1666 -0
- package/e2e/regression/panel-edges.spec.ts +79 -0
- package/e2e/regression/patch-border.spec.ts +69 -0
- package/e2e/regression/patch-sticky-header.spec.ts +320 -0
- package/e2e/regression/review.spec.ts +2397 -0
- package/e2e/regression/session-header.spec.ts +1020 -0
- package/e2e/regression/session-location-sync.spec.ts +412 -0
- package/e2e/regression/session-notice-truncation.spec.ts +92 -0
- package/e2e/regression/session-panel-scrollbar.spec.ts +46 -0
- package/e2e/regression/session-queue.spec.ts +1704 -0
- package/e2e/regression/session-request-docks.spec.ts +719 -0
- package/e2e/regression/session-summary.spec.ts +1092 -0
- package/e2e/regression/session-timeline-accessibility.spec.ts +216 -0
- package/e2e/regression/session-timeline-locale-projection.spec.ts +24 -0
- package/e2e/regression/session-timeline-reducer-projection.spec.ts +53 -0
- package/e2e/regression/session-timeline-tool-projection.spec.ts +94 -0
- package/e2e/regression/session-websearch-dock.spec.ts +122 -0
- package/e2e/regression/settings-search.spec.ts +516 -0
- package/e2e/regression/settings-wsl.spec.ts +433 -0
- package/e2e/regression/settings.spec.ts +2901 -0
- package/e2e/regression/shell-panel-spacing.spec.ts +95 -0
- package/e2e/regression/side-panels.spec.ts +524 -0
- package/e2e/regression/subagent-child-navigation.spec.ts +540 -0
- package/e2e/regression/tabs.spec.ts +3294 -0
- package/e2e/regression/terminal.spec.ts +691 -0
- package/e2e/regression/timeline-cache.spec.ts +798 -0
- package/e2e/regression/timeline-geometry.spec.ts +1204 -0
- package/e2e/regression/timeline-history.spec.ts +1073 -0
- package/e2e/regression/timeline-stream.spec.ts +3409 -0
- package/e2e/regression/whats-new.spec.ts +242 -0
- package/e2e/reproduction/timeline-suspense/index.html +34 -0
- package/e2e/reproduction/timeline-suspense/main.tsx +335 -0
- package/e2e/reproduction/timeline-suspense/playwright.config.ts +34 -0
- package/e2e/reproduction/timeline-suspense/timeline-suspense.repro.ts +182 -0
- package/e2e/reproduction/timeline-suspense/vite.config.ts +7 -0
- package/e2e/screenshots/session-project-menu.png +0 -0
- package/e2e/service-worker/cache.spec.ts +573 -0
- package/e2e/service-worker/playwright.config.ts +14 -0
- package/e2e/stability/README.md +61 -0
- package/e2e/stability/adverse.spec.ts +279 -0
- package/e2e/stability/environment-matrix.spec.ts +128 -0
- package/e2e/stability/file-matrix.spec.ts +133 -0
- package/e2e/stability/file-mutation.spec.ts +126 -0
- package/e2e/stability/fixture.test.ts +80 -0
- package/e2e/stability/interaction.spec.ts +232 -0
- package/e2e/stability/lifecycle.spec.ts +175 -0
- package/e2e/stability/oracle-browser.spec.ts +81 -0
- package/e2e/stability/oracle.test.ts +388 -0
- package/e2e/stability/playwright.config.ts +31 -0
- package/e2e/stability/scroll-interaction.spec.ts +520 -0
- package/e2e/stability/shell-matrix.spec.ts +299 -0
- package/e2e/stability/tool-mutation.spec.ts +58 -0
- package/e2e/stability/tools.spec.ts +232 -0
- package/e2e/stability/transition-matrix.spec.ts +214 -0
- package/e2e/tsconfig.json +11 -0
- package/e2e/user-story/model-selection-flow.spec.ts +216 -0
- package/e2e/utils/app-direction.fixture.tsx +105 -0
- package/e2e/utils/app-direction.html +25 -0
- package/e2e/utils/app.ts +227 -0
- package/e2e/utils/command-palette.ts +62 -0
- package/e2e/utils/console.ts +23 -0
- package/e2e/utils/direction.ts +28 -0
- package/e2e/utils/drafts.ts +52 -0
- package/e2e/utils/errors.ts +14 -0
- package/e2e/utils/markdown-sessions.ts +120 -0
- package/e2e/utils/mock-api.ts +570 -0
- package/e2e/utils/mock-server.ts +1726 -0
- package/e2e/utils/notifications.ts +51 -0
- package/e2e/utils/persistent-pty.ts +546 -0
- package/e2e/utils/prompt-motion.ts +116 -0
- package/e2e/utils/serve.ts +65 -0
- package/e2e/utils/session-fixture.ts +472 -0
- package/e2e/utils/settings-wsl.fixture.tsx +416 -0
- package/e2e/utils/settings-wsl.html +27 -0
- package/e2e/utils/side-panel.ts +41 -0
- package/e2e/utils/sse-transport.ts +352 -0
- package/e2e/utils/terminal.ts +31 -0
- package/e2e/utils/timeline.ts +1141 -0
- package/e2e/utils/visual-stability/analyzer.ts +259 -0
- package/e2e/utils/visual-stability/capture.ts +57 -0
- package/e2e/utils/visual-stability/index.ts +15 -0
- package/e2e/utils/visual-stability/invariant.ts +113 -0
- package/e2e/utils/visual-stability/model.ts +47 -0
- package/e2e/utils/visual-stability/probe.ts +261 -0
- package/e2e/utils/visual-stability/regions.ts +18 -0
- package/e2e/utils/visual-stability/reporter.ts +71 -0
- package/e2e/utils/visual-stability/scenario.ts +21 -0
- package/e2e/utils/visual-stability.ts +52 -0
- package/e2e/utils/waits.ts +25 -0
- package/e2e/utils/windows-menu.fixture.tsx +99 -0
- package/e2e/utils/windows-menu.html +22 -0
- package/e2e/utils/workspace.ts +222 -0
- package/happydom.ts +77 -0
- package/index.html +29 -0
- package/manifest.json +36 -0
- package/package.json +83 -4
- package/perf/README.md +190 -0
- package/perf/composer.bench.ts +107 -0
- package/perf/desktop.bench.ts +22 -0
- package/perf/diff.bench.ts +104 -0
- package/perf/docks.bench.ts +109 -0
- package/perf/fixtures/composer.ts +166 -0
- package/perf/fixtures/diffs.ts +165 -0
- package/perf/fixtures/drag.ts +73 -0
- package/perf/fixtures/events.ts +106 -0
- package/perf/fixtures/home.ts +274 -0
- package/perf/fixtures/mock.ts +118 -0
- package/perf/fixtures/review.ts +33 -0
- package/perf/fixtures/scripts.ts +37 -0
- package/perf/fixtures/storage.ts +29 -0
- package/perf/fixtures/tabs.ts +21 -0
- package/perf/fixtures/timeline.ts +458 -0
- package/perf/home.bench.ts +74 -0
- package/perf/model-picker.bench.ts +168 -0
- package/perf/navigation.bench.ts +310 -0
- package/perf/question.bench.ts +85 -0
- package/perf/review.bench.ts +109 -0
- package/perf/send.bench.ts +54 -0
- package/perf/stream.bench.ts +108 -0
- package/perf/subagent-pill.bench.ts +348 -0
- package/perf/tabs.bench.ts +229 -0
- package/perf/timeline.bench.ts +167 -0
- package/playwright.components.config.ts +7 -0
- package/playwright.config.ts +85 -0
- package/public/_headers +28 -0
- package/public/assets/Inter.ttf +0 -0
- package/public/assets/JetBrainsMonoNerdFontMono-Bold.woff2 +0 -0
- package/public/assets/JetBrainsMonoNerdFontMono-Regular.woff2 +0 -0
- package/public/oc-theme-preload.js +33 -0
- package/src/app.tsx +142 -0
- package/src/components-lab/browser.tsx +745 -0
- package/src/components-lab/catalog.test.ts +58 -0
- package/src/components-lab/catalog.ts +195 -0
- package/src/components-lab/dialog-story-runtime.tsx +840 -0
- package/src/components-lab/focus-rings.stories.tsx +710 -0
- package/src/components-lab/focus-visibility.stories.tsx +2669 -0
- package/src/components-lab/force-focus.ts +52 -0
- package/src/components-lab/inspector.css +28 -0
- package/src/components-lab/lab.tsx +114 -0
- package/src/components-lab/machine.test.ts +177 -0
- package/src/components-lab/machine.ts +229 -0
- package/src/components-lab/motion.test.ts +17 -0
- package/src/components-lab/motion.ts +100 -0
- package/src/composer/adapter.ts +151 -0
- package/src/composer/attachments/attachments.css +123 -0
- package/src/composer/attachments/attachments.ts +363 -0
- package/src/composer/attachments/destination.ts +81 -0
- package/src/composer/attachments/upload-machine.ts +185 -0
- package/src/composer/attachments/uploads.test.ts +127 -0
- package/src/composer/attachments/uploads.tsx +228 -0
- package/src/composer/client-slash-command.test.ts +20 -0
- package/src/composer/client-slash-command.ts +28 -0
- package/src/composer/commands.tsx +175 -0
- package/src/composer/comment-focus-machine.test.ts +112 -0
- package/src/composer/comment-focus-machine.ts +141 -0
- package/src/composer/comment-note.test.ts +82 -0
- package/src/composer/comment-note.ts +127 -0
- package/src/composer/comments.test.ts +109 -0
- package/src/composer/comments.tsx +279 -0
- package/src/composer/composer-touch.stories.tsx +298 -0
- package/src/composer/composer.stories.tsx +765 -0
- package/src/composer/composer.tsx +244 -0
- package/src/composer/dropzone.tsx +92 -0
- package/src/composer/editor/actions.test.ts +176 -0
- package/src/composer/editor/actions.ts +191 -0
- package/src/composer/editor/dom.test.ts +168 -0
- package/src/composer/editor/dom.ts +274 -0
- package/src/composer/editor/editor.css +101 -0
- package/src/composer/editor/editor.tsx +1764 -0
- package/src/composer/editor/interaction.test.ts +13 -0
- package/src/composer/editor/interaction.ts +838 -0
- package/src/composer/editor/machine.test.ts +47 -0
- package/src/composer/editor/machine.ts +63 -0
- package/src/composer/editor/mention-search-machine.test.ts +111 -0
- package/src/composer/editor/mention-search-machine.ts +226 -0
- package/src/composer/editor/quote-comment.stories.tsx +133 -0
- package/src/composer/editor/quote-comment.tsx +191 -0
- package/src/composer/history/entry.test.ts +100 -0
- package/src/composer/history/entry.ts +140 -0
- package/src/composer/history/store.ts +83 -0
- package/src/composer/machine.test.ts +459 -0
- package/src/composer/machine.ts +561 -0
- package/src/composer/media.ts +18 -0
- package/src/composer/model-chip-machine.test.ts +96 -0
- package/src/composer/model-chip-machine.ts +82 -0
- package/src/composer/model-label.test.ts +177 -0
- package/src/composer/model-label.ts +120 -0
- package/src/composer/model.ts +683 -0
- package/src/composer/persistence.tsx +163 -0
- package/src/composer/prompt-parts.ts +52 -0
- package/src/composer/prompt-status-machine.test.ts +76 -0
- package/src/composer/prompt-status-machine.ts +48 -0
- package/src/composer/prompt.test.ts +320 -0
- package/src/composer/prompt.ts +334 -0
- package/src/composer/quote-comment-machine.test.ts +154 -0
- package/src/composer/quote-comment-machine.ts +211 -0
- package/src/composer/quote-position.ts +32 -0
- package/src/composer/quote-source.ts +48 -0
- package/src/composer/reload-machine.ts +51 -0
- package/src/composer/request.test.ts +360 -0
- package/src/composer/request.ts +245 -0
- package/src/composer/retry.test.ts +107 -0
- package/src/composer/retry.ts +63 -0
- package/src/composer/schema.test.ts +317 -0
- package/src/composer/schema.ts +424 -0
- package/src/composer/selection.ts +354 -0
- package/src/composer/session-match.test.ts +20 -0
- package/src/composer/session-match.ts +18 -0
- package/src/composer/state.ts +271 -0
- package/src/composer/submission-state.ts +3 -0
- package/src/composer/submit.test.ts +1785 -0
- package/src/composer/submit.ts +1073 -0
- package/src/composer/suggestions/machine.test.ts +420 -0
- package/src/composer/suggestions/machine.ts +573 -0
- package/src/composer/types.ts +60 -0
- package/src/desktop.ts +25 -0
- package/src/entry.tsx +119 -0
- package/src/env.d.ts +41 -0
- package/src/home/home.standalone.stories.tsx +260 -0
- package/src/home/machine.test.ts +286 -0
- package/src/home/machine.ts +344 -0
- package/src/home/model.ts +162 -0
- package/src/home/projects/actions.tsx +189 -0
- package/src/home/projects/add.ts +10 -0
- package/src/home/projects/browse-view.tsx +264 -0
- package/src/home/projects/browse.tsx +33 -0
- package/src/home/projects/controller.tsx +109 -0
- package/src/home/projects/file-manager.ts +26 -0
- package/src/home/projects/import-machine.test.ts +117 -0
- package/src/home/projects/import-machine.ts +133 -0
- package/src/home/projects/landing.tsx +77 -0
- package/src/home/projects/menu.tsx +70 -0
- package/src/home/projects/region.tsx +63 -0
- package/src/home/projects/reveal.ts +39 -0
- package/src/home/projects/start.ts +114 -0
- package/src/home/projects/view.css +79 -0
- package/src/home/projects/view.tsx +763 -0
- package/src/home/route.tsx +177 -0
- package/src/home/scroll.ts +180 -0
- package/src/home/sessions/alt-hold.test.ts +45 -0
- package/src/home/sessions/alt-hold.ts +20 -0
- package/src/home/sessions/archive.test.ts +51 -0
- package/src/home/sessions/archive.ts +25 -0
- package/src/home/sessions/controller.tsx +669 -0
- package/src/home/sessions/delete-dialog.stories.tsx +70 -0
- package/src/home/sessions/index.test.ts +171 -0
- package/src/home/sessions/index.ts +60 -0
- package/src/home/sessions/load-machine.test.ts +223 -0
- package/src/home/sessions/load-machine.ts +430 -0
- package/src/home/sessions/open.test.ts +16 -0
- package/src/home/sessions/open.ts +18 -0
- package/src/home/sessions/queries.ts +95 -0
- package/src/home/sessions/records.test.ts +85 -0
- package/src/home/sessions/records.ts +58 -0
- package/src/home/sessions/region.tsx +66 -0
- package/src/home/sessions/row-machine.test.ts +203 -0
- package/src/home/sessions/row-machine.ts +365 -0
- package/src/home/sessions/search-machine.test.ts +117 -0
- package/src/home/sessions/search-machine.ts +181 -0
- package/src/home/sessions/search.ts +218 -0
- package/src/home/sessions/view.css +101 -0
- package/src/home/sessions/view.tsx +1123 -0
- package/src/home/start/command-palette.tsx +88 -0
- package/src/index.css +419 -0
- package/src/index.ts +5 -0
- package/src/new-session/brick-breaker-machine.test.ts +120 -0
- package/src/new-session/brick-breaker-machine.ts +110 -0
- package/src/new-session/brick-breaker.tsx +551 -0
- package/src/new-session/commands.tsx +61 -0
- package/src/new-session/composer-adapter.ts +309 -0
- package/src/new-session/draft.standalone.stories.tsx +214 -0
- package/src/new-session/layout.ts +2 -0
- package/src/new-session/location/dialog.css +204 -0
- package/src/new-session/location/dialog.standalone.stories.tsx +122 -0
- package/src/new-session/location/dialog.tsx +677 -0
- package/src/new-session/location/machine.test.ts +180 -0
- package/src/new-session/location/machine.ts +239 -0
- package/src/new-session/machine.test.ts +344 -0
- package/src/new-session/machine.ts +293 -0
- package/src/new-session/mcp.ts +132 -0
- package/src/new-session/pin-board-machine.test.ts +116 -0
- package/src/new-session/pin-board-machine.ts +188 -0
- package/src/new-session/pin-board.tsx +1072 -0
- package/src/new-session/pin-quads.ts +252 -0
- package/src/new-session/pin-sound.ts +193 -0
- package/src/new-session/project/controller.ts +111 -0
- package/src/new-session/project/selector.test.tsx +101 -0
- package/src/new-session/project/selector.tsx +108 -0
- package/src/new-session/route.tsx +115 -0
- package/src/new-session/screen.tsx +107 -0
- package/src/new-session/view.tsx +424 -0
- package/src/new-session/wordmark-machine.test.ts +236 -0
- package/src/new-session/wordmark-machine.ts +237 -0
- package/src/new-session/wordmark.css +71 -0
- package/src/new-session/wordmark.stories.tsx +109 -0
- package/src/new-session/wordmark.tsx +1222 -0
- package/src/new-session/workspace/branch-machine.test.ts +243 -0
- package/src/new-session/workspace/branch-machine.ts +233 -0
- package/src/new-session/workspace/checkout-machine.test.ts +73 -0
- package/src/new-session/workspace/checkout-machine.ts +69 -0
- package/src/new-session/workspace/controller.test.ts +82 -0
- package/src/new-session/workspace/controller.ts +291 -0
- package/src/new-session/workspace/selector.tsx +230 -0
- package/src/providers/catalog/console-settle.ts +80 -0
- package/src/providers/catalog/console.test.ts +21 -0
- package/src/providers/catalog/console.ts +37 -0
- package/src/providers/catalog/integrations.ts +30 -0
- package/src/providers/catalog/order.ts +10 -0
- package/src/providers/catalog/plugin.ts +15 -0
- package/src/providers/catalog/providers.ts +111 -0
- package/src/providers/catalog/settle-machine.test.ts +123 -0
- package/src/providers/catalog/settle-machine.ts +109 -0
- package/src/providers/connect/chatgpt-usage-limit.stories.tsx +25 -0
- package/src/providers/connect/chatgpt-usage-limit.tsx +83 -0
- package/src/providers/connect/chatgpt-welcome.stories.tsx +23 -0
- package/src/providers/connect/chatgpt-welcome.tsx +37 -0
- package/src/providers/connect/console.tsx +67 -0
- package/src/providers/connect/controller.ts +672 -0
- package/src/providers/connect/dialog-machine.test.ts +654 -0
- package/src/providers/connect/dialog-machine.ts +875 -0
- package/src/providers/connect/dialog.standalone.stories.tsx +187 -0
- package/src/providers/connect/dialog.tsx +1564 -0
- package/src/providers/connect/form-machine.test.ts +200 -0
- package/src/providers/connect/form-machine.ts +419 -0
- package/src/providers/connect/go-upsell-hero-art.test.ts +194 -0
- package/src/providers/connect/go-upsell-hero-art.ts +749 -0
- package/src/providers/connect/go-upsell-hero-machine.test.ts +88 -0
- package/src/providers/connect/go-upsell-hero-machine.ts +68 -0
- package/src/providers/connect/go-upsell-hero.tsx +17 -0
- package/src/providers/connect/machine.test.ts +513 -0
- package/src/providers/connect/machine.ts +644 -0
- package/src/providers/connect/mcp-dialog.stories.tsx +89 -0
- package/src/providers/connect/mcp-dialog.tsx +316 -0
- package/src/providers/connect/mcp-machine.test.ts +239 -0
- package/src/providers/connect/mcp-machine.ts +328 -0
- package/src/providers/connect/mcp-sign-in.tsx +112 -0
- package/src/providers/connect/mcp.tsx +298 -0
- package/src/providers/connect/models.css +71 -0
- package/src/providers/connect/remote.test.ts +50 -0
- package/src/providers/connect/remote.tsx +10 -0
- package/src/providers/connect/step-actions.tsx +18 -0
- package/src/providers/connect/tip.tsx +110 -0
- package/src/providers/connect/usage-exceeded.tsx +62 -0
- package/src/providers/custom-managed-provider.svg +31 -0
- package/src/providers/models/agent.test.ts +25 -0
- package/src/providers/models/agent.ts +7 -0
- package/src/providers/models/configured.ts +33 -0
- package/src/providers/models/details.tsx +168 -0
- package/src/providers/models/manage.css +97 -0
- package/src/providers/models/manage.standalone.stories.tsx +59 -0
- package/src/providers/models/manage.tsx +170 -0
- package/src/providers/models/models.test.ts +55 -0
- package/src/providers/models/models.tsx +279 -0
- package/src/providers/models/provider-group.tsx +293 -0
- package/src/providers/models/search.test.ts +13 -0
- package/src/providers/models/search.ts +20 -0
- package/src/providers/models/select-dialog-machine.test.ts +455 -0
- package/src/providers/models/select-dialog-machine.ts +702 -0
- package/src/providers/models/select-dialog.css +240 -0
- package/src/providers/models/select-dialog.standalone.stories.tsx +225 -0
- package/src/providers/models/select-dialog.tsx +1359 -0
- package/src/providers/models/selection-machine.test.ts +290 -0
- package/src/providers/models/selection-machine.ts +408 -0
- package/src/providers/models/selection.tsx +787 -0
- package/src/providers/models/speed.test.ts +17 -0
- package/src/providers/models/speed.ts +17 -0
- package/src/providers/models/tooltip.tsx +152 -0
- package/src/providers/models/unpaid.standalone.stories.tsx +76 -0
- package/src/providers/models/unpaid.tsx +199 -0
- package/src/providers/models/variant.test.ts +79 -0
- package/src/providers/models/variant.ts +74 -0
- package/src/providers/opencode-logo.tsx +17 -0
- package/src/runtime/animated-presence.ts +66 -0
- package/src/runtime/array-move.test.ts +19 -0
- package/src/runtime/array-move.ts +8 -0
- package/src/runtime/i18n/am.ts +1409 -0
- package/src/runtime/i18n/ar.ts +1560 -0
- package/src/runtime/i18n/az.ts +1481 -0
- package/src/runtime/i18n/bg.ts +1491 -0
- package/src/runtime/i18n/bn.ts +1477 -0
- package/src/runtime/i18n/br.ts +1527 -0
- package/src/runtime/i18n/bs.ts +1561 -0
- package/src/runtime/i18n/ca.ts +1523 -0
- package/src/runtime/i18n/cs.ts +1520 -0
- package/src/runtime/i18n/da.ts +1527 -0
- package/src/runtime/i18n/de.ts +1517 -0
- package/src/runtime/i18n/desktop-native.test.ts +84 -0
- package/src/runtime/i18n/desktop-native.ts +366 -0
- package/src/runtime/i18n/dv.ts +1519 -0
- package/src/runtime/i18n/dz.ts +1504 -0
- package/src/runtime/i18n/el.ts +1509 -0
- package/src/runtime/i18n/en.ts +1560 -0
- package/src/runtime/i18n/es.ts +1583 -0
- package/src/runtime/i18n/et.ts +1456 -0
- package/src/runtime/i18n/fa.ts +1470 -0
- package/src/runtime/i18n/fi.ts +1472 -0
- package/src/runtime/i18n/fo.ts +1469 -0
- package/src/runtime/i18n/fr.ts +1543 -0
- package/src/runtime/i18n/he.ts +1455 -0
- package/src/runtime/i18n/hi.ts +1475 -0
- package/src/runtime/i18n/hr.ts +1506 -0
- package/src/runtime/i18n/hu.ts +1492 -0
- package/src/runtime/i18n/hy.ts +1478 -0
- package/src/runtime/i18n/id.ts +1541 -0
- package/src/runtime/i18n/is.ts +1468 -0
- package/src/runtime/i18n/it.ts +1517 -0
- package/src/runtime/i18n/ja.ts +1484 -0
- package/src/runtime/i18n/ka.ts +1476 -0
- package/src/runtime/i18n/km.ts +1461 -0
- package/src/runtime/i18n/ko.ts +1469 -0
- package/src/runtime/i18n/language.test.ts +35 -0
- package/src/runtime/i18n/language.tsx +468 -0
- package/src/runtime/i18n/lo.ts +1454 -0
- package/src/runtime/i18n/lt.ts +1529 -0
- package/src/runtime/i18n/lv.ts +1509 -0
- package/src/runtime/i18n/machine.test.ts +148 -0
- package/src/runtime/i18n/machine.ts +164 -0
- package/src/runtime/i18n/mk.ts +1488 -0
- package/src/runtime/i18n/mn.ts +1485 -0
- package/src/runtime/i18n/ms.ts +1480 -0
- package/src/runtime/i18n/my.ts +1489 -0
- package/src/runtime/i18n/ne.ts +1478 -0
- package/src/runtime/i18n/nl.ts +1491 -0
- package/src/runtime/i18n/no.ts +1536 -0
- package/src/runtime/i18n/pa.ts +1478 -0
- package/src/runtime/i18n/pl.ts +1540 -0
- package/src/runtime/i18n/ro.ts +1511 -0
- package/src/runtime/i18n/ru.ts +1596 -0
- package/src/runtime/i18n/si.ts +1477 -0
- package/src/runtime/i18n/sk.ts +1526 -0
- package/src/runtime/i18n/sl.ts +1527 -0
- package/src/runtime/i18n/sq.ts +1480 -0
- package/src/runtime/i18n/sr.ts +1502 -0
- package/src/runtime/i18n/sv.ts +1478 -0
- package/src/runtime/i18n/tg.ts +1493 -0
- package/src/runtime/i18n/th.ts +1505 -0
- package/src/runtime/i18n/tk.ts +1472 -0
- package/src/runtime/i18n/tr.ts +1550 -0
- package/src/runtime/i18n/uk.ts +1598 -0
- package/src/runtime/i18n/ur.ts +1488 -0
- package/src/runtime/i18n/uz.ts +1490 -0
- package/src/runtime/i18n/vi.ts +1473 -0
- package/src/runtime/i18n/zh.ts +1474 -0
- package/src/runtime/i18n/zht.ts +1468 -0
- package/src/runtime/persistence/README.md +151 -0
- package/src/runtime/persistence/base64.ts +11 -0
- package/src/runtime/persistence/consumers.test.ts +168 -0
- package/src/runtime/persistence/drafts-machine.test.ts +214 -0
- package/src/runtime/persistence/drafts-machine.ts +385 -0
- package/src/runtime/persistence/drafts.test.ts +515 -0
- package/src/runtime/persistence/drafts.ts +687 -0
- package/src/runtime/persistence/equality.ts +9 -0
- package/src/runtime/persistence/namespace-machine.test.ts +232 -0
- package/src/runtime/persistence/namespace-machine.ts +304 -0
- package/src/runtime/persistence/namespace.test.ts +304 -0
- package/src/runtime/persistence/namespace.ts +126 -0
- package/src/runtime/persistence/persist-machine.test.ts +185 -0
- package/src/runtime/persistence/persist-machine.ts +192 -0
- package/src/runtime/persistence/persist.test.ts +243 -0
- package/src/runtime/persistence/persist.ts +159 -0
- package/src/runtime/persistence/schema.test.ts +208 -0
- package/src/runtime/persistence/schema.ts +130 -0
- package/src/runtime/persistence/storage-machine.test.ts +61 -0
- package/src/runtime/persistence/storage-machine.ts +57 -0
- package/src/runtime/persistence/storage.test.ts +70 -0
- package/src/runtime/persistence/storage.ts +707 -0
- package/src/runtime/platform/base-path-router.tsx +66 -0
- package/src/runtime/platform/base-path.test.ts +50 -0
- package/src/runtime/platform/base-path.ts +28 -0
- package/src/runtime/platform/drag-out.test.ts +58 -0
- package/src/runtime/platform/drag-out.ts +53 -0
- package/src/runtime/platform/external-link.tsx +21 -0
- package/src/runtime/platform/keyboard.ts +41 -0
- package/src/runtime/platform/platform.tsx +185 -0
- package/src/runtime/platform/pwa.ts +50 -0
- package/src/runtime/platform/web.ts +63 -0
- package/src/runtime/plugin/app-links.test.ts +17 -0
- package/src/runtime/plugin/app-links.ts +88 -0
- package/src/runtime/plugin/attach-machine.test.ts +174 -0
- package/src/runtime/plugin/attach-machine.ts +152 -0
- package/src/runtime/plugin/attachment.ts +15 -0
- package/src/runtime/plugin/builtins.ts +15 -0
- package/src/runtime/plugin/closed-tabs-view.tsx +315 -0
- package/src/runtime/plugin/closed-tabs.test.ts +82 -0
- package/src/runtime/plugin/closed-tabs.ts +196 -0
- package/src/runtime/plugin/commands.test.ts +23 -0
- package/src/runtime/plugin/commands.tsx +86 -0
- package/src/runtime/plugin/composer-write-machine.test.ts +151 -0
- package/src/runtime/plugin/composer-write-machine.ts +111 -0
- package/src/runtime/plugin/deferred-menu-machine.test.ts +127 -0
- package/src/runtime/plugin/deferred-menu-machine.ts +163 -0
- package/src/runtime/plugin/dialog-machine.test.ts +62 -0
- package/src/runtime/plugin/dialog-machine.ts +81 -0
- package/src/runtime/plugin/dialogs.stories.tsx +66 -0
- package/src/runtime/plugin/dialogs.tsx +177 -0
- package/src/runtime/plugin/embed-flight-machine.test.ts +350 -0
- package/src/runtime/plugin/embed-flight-machine.ts +468 -0
- package/src/runtime/plugin/embed-geometry.test.ts +18 -0
- package/src/runtime/plugin/embed-geometry.ts +19 -0
- package/src/runtime/plugin/embed-snapshot-machine.test.ts +242 -0
- package/src/runtime/plugin/embed-snapshot-machine.ts +267 -0
- package/src/runtime/plugin/embeds.tsx +773 -0
- package/src/runtime/plugin/extension-plugins.tsx +299 -0
- package/src/runtime/plugin/hmr.tsx +33 -0
- package/src/runtime/plugin/host-apis.tsx +1315 -0
- package/src/runtime/plugin/host-layout-machine.test.ts +214 -0
- package/src/runtime/plugin/host-layout-machine.ts +269 -0
- package/src/runtime/plugin/host.tsx +1106 -0
- package/src/runtime/plugin/instance-machine.test.ts +387 -0
- package/src/runtime/plugin/instance-machine.ts +409 -0
- package/src/runtime/plugin/ipc-machine.test.ts +172 -0
- package/src/runtime/plugin/ipc-machine.ts +213 -0
- package/src/runtime/plugin/ipc.test.ts +166 -0
- package/src/runtime/plugin/ipc.ts +220 -0
- package/src/runtime/plugin/link-check-machine.test.ts +115 -0
- package/src/runtime/plugin/link-check-machine.ts +142 -0
- package/src/runtime/plugin/link-check.ts +82 -0
- package/src/runtime/plugin/located-machine.test.ts +124 -0
- package/src/runtime/plugin/located-machine.ts +125 -0
- package/src/runtime/plugin/located.ts +82 -0
- package/src/runtime/plugin/machine.test.ts +222 -0
- package/src/runtime/plugin/machine.ts +318 -0
- package/src/runtime/plugin/menubar-items.ts +28 -0
- package/src/runtime/plugin/mobile.tsx +199 -0
- package/src/runtime/plugin/module.test.ts +57 -0
- package/src/runtime/plugin/module.ts +64 -0
- package/src/runtime/plugin/mounted-session.ts +420 -0
- package/src/runtime/plugin/new-tab-machine.test.ts +207 -0
- package/src/runtime/plugin/new-tab-machine.ts +240 -0
- package/src/runtime/plugin/pane-drag-machine.test.ts +217 -0
- package/src/runtime/plugin/pane-drag-machine.ts +263 -0
- package/src/runtime/plugin/pane-drag.tsx +290 -0
- package/src/runtime/plugin/panel-keys.ts +15 -0
- package/src/runtime/plugin/panel-menu.ts +29 -0
- package/src/runtime/plugin/panel-trigger.tsx +180 -0
- package/src/runtime/plugin/panels.tsx +733 -0
- package/src/runtime/plugin/plugin-gui-machine.test.ts +186 -0
- package/src/runtime/plugin/plugin-gui-machine.ts +178 -0
- package/src/runtime/plugin/plugins.tsx +137 -0
- package/src/runtime/plugin/prompt-gate.test.ts +113 -0
- package/src/runtime/plugin/prompt-gate.ts +36 -0
- package/src/runtime/plugin/render.tsx +348 -0
- package/src/runtime/plugin/root.tsx +141 -0
- package/src/runtime/plugin/server-shell.tsx +113 -0
- package/src/runtime/plugin/servers.tsx +270 -0
- package/src/runtime/plugin/session-store-machine.test.ts +82 -0
- package/src/runtime/plugin/session-store-machine.ts +140 -0
- package/src/runtime/plugin/settings-page-view.tsx +53 -0
- package/src/runtime/plugin/settings-pages.ts +23 -0
- package/src/runtime/plugin/side-region.tsx +635 -0
- package/src/runtime/plugin/startup.ts +107 -0
- package/src/runtime/plugin/store-machine.test.ts +69 -0
- package/src/runtime/plugin/store-machine.ts +139 -0
- package/src/runtime/plugin/stores.ts +339 -0
- package/src/runtime/plugin/tab-strip-scroll.test.ts +40 -0
- package/src/runtime/plugin/tab-strip-scroll.ts +130 -0
- package/src/runtime/plugin/titlebar-items.css +20 -0
- package/src/runtime/plugin/titlebar-items.stories.tsx +97 -0
- package/src/runtime/plugin/titlebar-items.tsx +96 -0
- package/src/runtime/plugin/ui.tsx +292 -0
- package/src/runtime/plugin/web-href.test.ts +11 -0
- package/src/runtime/plugin/web-href.ts +10 -0
- package/src/runtime/polyfills.test.ts +61 -0
- package/src/runtime/polyfills.ts +39 -0
- package/src/runtime/presence-machine.test.ts +260 -0
- package/src/runtime/presence-machine.ts +329 -0
- package/src/runtime/presence.ts +165 -0
- package/src/runtime/server/api.test.ts +64 -0
- package/src/runtime/server/api.ts +58 -0
- package/src/runtime/server/client.test.ts +131 -0
- package/src/runtime/server/client.tsx +308 -0
- package/src/runtime/server/current.tsx +55 -0
- package/src/runtime/server/data.test.ts +440 -0
- package/src/runtime/server/data.ts +286 -0
- package/src/runtime/server/errors.test.ts +151 -0
- package/src/runtime/server/errors.ts +135 -0
- package/src/runtime/server/global-sync/bootstrap.test.ts +179 -0
- package/src/runtime/server/global-sync/bootstrap.ts +96 -0
- package/src/runtime/server/global-sync/child-store.test.ts +47 -0
- package/src/runtime/server/global-sync/child-store.ts +206 -0
- package/src/runtime/server/global-sync/machine.test.ts +96 -0
- package/src/runtime/server/global-sync/machine.ts +84 -0
- package/src/runtime/server/global-sync/types.ts +46 -0
- package/src/runtime/server/global-sync/utils.test.ts +154 -0
- package/src/runtime/server/global-sync/utils.ts +165 -0
- package/src/runtime/server/health-machine.test.ts +227 -0
- package/src/runtime/server/health-machine.ts +357 -0
- package/src/runtime/server/health.test.ts +169 -0
- package/src/runtime/server/health.ts +236 -0
- package/src/runtime/server/image.test.ts +214 -0
- package/src/runtime/server/image.ts +40 -0
- package/src/runtime/server/loopback.test.ts +17 -0
- package/src/runtime/server/loopback.ts +22 -0
- package/src/runtime/server/machine.test.ts +162 -0
- package/src/runtime/server/machine.ts +275 -0
- package/src/runtime/server/media.ts +88 -0
- package/src/runtime/server/persistence.test.ts +117 -0
- package/src/runtime/server/persistence.ts +105 -0
- package/src/runtime/server/plugin-machine.test.ts +128 -0
- package/src/runtime/server/plugin-machine.ts +170 -0
- package/src/runtime/server/refcount.test.ts +30 -0
- package/src/runtime/server/refcount.ts +37 -0
- package/src/runtime/server/registry.test.ts +152 -0
- package/src/runtime/server/registry.tsx +363 -0
- package/src/runtime/server/request-queue-machine.test.ts +151 -0
- package/src/runtime/server/request-queue-machine.ts +307 -0
- package/src/runtime/server/request-queue.test.ts +315 -0
- package/src/runtime/server/request-queue.ts +173 -0
- package/src/runtime/server/runtime.tsx +396 -0
- package/src/runtime/server/scope.test.ts +52 -0
- package/src/runtime/server/scope.ts +69 -0
- package/src/runtime/server/scoped-cache.test.ts +72 -0
- package/src/runtime/server/scoped-cache.ts +119 -0
- package/src/runtime/server/server-sync/connection.ts +34 -0
- package/src/runtime/server/server-sync/endpoint-machine.test.ts +87 -0
- package/src/runtime/server/server-sync/endpoint-machine.ts +62 -0
- package/src/runtime/server/server-sync/machine.test.ts +86 -0
- package/src/runtime/server/server-sync/machine.ts +70 -0
- package/src/runtime/server/session-index.ts +23 -0
- package/src/runtime/server/sync.tsx +206 -0
- package/src/runtime/server/types.ts +151 -0
- package/src/servers/connect/browser.ts +15 -0
- package/src/servers/connect/connect.fixture.tsx +222 -0
- package/src/servers/connect/controller.ts +237 -0
- package/src/servers/connect/dialog.stories.tsx +67 -0
- package/src/servers/connect/dialog.tsx +255 -0
- package/src/servers/connect/machine.test.ts +487 -0
- package/src/servers/connect/machine.ts +427 -0
- package/src/servers/connect/method.tsx +31 -0
- package/src/servers/connect/pairing.test.ts +67 -0
- package/src/servers/connect/pairing.ts +134 -0
- package/src/servers/connect/redeem.ts +50 -0
- package/src/servers/connect/scanner-machine.test.ts +114 -0
- package/src/servers/connect/scanner-machine.ts +164 -0
- package/src/servers/connect/scanner.css +47 -0
- package/src/servers/connect/scanner.tsx +173 -0
- package/src/servers/connect/screen.css +108 -0
- package/src/servers/connect/screen.stories.tsx +63 -0
- package/src/servers/connect/screen.tsx +164 -0
- package/src/servers/registry/add-menu.tsx +62 -0
- package/src/servers/registry/controller.test.ts +26 -0
- package/src/servers/registry/controller.ts +86 -0
- package/src/servers/registry/label.tsx +23 -0
- package/src/servers/registry/management.test.ts +40 -0
- package/src/servers/registry/management.ts +17 -0
- package/src/servers/registry/plugin-row.tsx +57 -0
- package/src/servers/registry/row-items.tsx +18 -0
- package/src/servers/registry/row-menu.tsx +152 -0
- package/src/servers/registry/row.stories.tsx +51 -0
- package/src/servers/registry/row.tsx +47 -0
- package/src/session/commands/dialog-jump-to-message.tsx +197 -0
- package/src/session/commands/export-machine.test.ts +99 -0
- package/src/session/commands/export-machine.ts +117 -0
- package/src/session/commands/export-session.tsx +108 -0
- package/src/session/commands/export.test.ts +105 -0
- package/src/session/commands/export.ts +89 -0
- package/src/session/commands/fork-dialog.stories.tsx +68 -0
- package/src/session/commands/fork-dialog.tsx +198 -0
- package/src/session/commands/jump-to-message-machine.test.ts +123 -0
- package/src/session/commands/jump-to-message-machine.ts +161 -0
- package/src/session/commands/jump-to-message.stories.tsx +226 -0
- package/src/session/commands/jump-to-message.tsx +161 -0
- package/src/session/commands/machine.test.ts +305 -0
- package/src/session/commands/machine.ts +272 -0
- package/src/session/commands/rename-session.ts +31 -0
- package/src/session/commands/use-session-commands.tsx +813 -0
- package/src/session/composer/activity-chips.css +242 -0
- package/src/session/composer/activity-chips.stories.tsx +280 -0
- package/src/session/composer/activity-chips.tsx +485 -0
- package/src/session/composer/adapter.ts +74 -0
- package/src/session/composer/composer-docks.stories.tsx +278 -0
- package/src/session/composer/composer-lane.css +93 -0
- package/src/session/composer/composer-lane.tsx +45 -0
- package/src/session/composer/controller.ts +86 -0
- package/src/session/composer/focus-machine.test.ts +285 -0
- package/src/session/composer/focus-machine.ts +212 -0
- package/src/session/composer/focus.tsx +161 -0
- package/src/session/composer/free-limit-panel.standalone.stories.tsx +45 -0
- package/src/session/composer/free-limit-panel.tsx +133 -0
- package/src/session/composer/go-limit-tray.tsx +137 -0
- package/src/session/composer/location-missing-machine.test.ts +97 -0
- package/src/session/composer/location-missing-machine.ts +144 -0
- package/src/session/composer/location-missing.css +73 -0
- package/src/session/composer/location-missing.standalone.stories.tsx +161 -0
- package/src/session/composer/location-missing.tsx +193 -0
- package/src/session/composer/plugin-pills.tsx +215 -0
- package/src/session/composer/queue-machine.test.ts +565 -0
- package/src/session/composer/queue-machine.ts +934 -0
- package/src/session/composer/queue-panel-machine.test.ts +121 -0
- package/src/session/composer/queue-panel-machine.ts +229 -0
- package/src/session/composer/queue-panel.css +10 -0
- package/src/session/composer/queue-panel.stories.tsx +86 -0
- package/src/session/composer/queue-panel.tsx +314 -0
- package/src/session/composer/queue.test.ts +314 -0
- package/src/session/composer/queue.ts +610 -0
- package/src/session/composer/recovery-story.tsx +38 -0
- package/src/session/composer/region.tsx +689 -0
- package/src/session/composer/selection.test.ts +28 -0
- package/src/session/composer/selection.ts +28 -0
- package/src/session/composer/session-composer-region-controller.ts +28 -0
- package/src/session/composer/session-composer-region.tsx +115 -0
- package/src/session/composer/shell-panel-machine.test.ts +261 -0
- package/src/session/composer/shell-panel-machine.ts +338 -0
- package/src/session/composer/shell-panel.ts +181 -0
- package/src/session/composer/spring-height-machine.test.ts +380 -0
- package/src/session/composer/spring-height-machine.ts +489 -0
- package/src/session/composer/spring-height.tsx +586 -0
- package/src/session/composer/subagent-bar.tsx +116 -0
- package/src/session/composer/timeline-actions.ts +49 -0
- package/src/session/composer/todo-pill.css +32 -0
- package/src/session/composer/todo-pill.stories.tsx +158 -0
- package/src/session/composer/todo-pill.tsx +157 -0
- package/src/session/composer/todos.ts +43 -0
- package/src/session/delete-machine.test.ts +83 -0
- package/src/session/delete-machine.ts +128 -0
- package/src/session/fork-machine.test.ts +152 -0
- package/src/session/fork-machine.ts +169 -0
- package/src/session/fork.ts +164 -0
- package/src/session/handoff-machine.test.ts +262 -0
- package/src/session/handoff-machine.ts +256 -0
- package/src/session/handoff.ts +112 -0
- package/src/session/header/drag-area.tsx +86 -0
- package/src/session/header/fit-machine.test.ts +143 -0
- package/src/session/header/fit-machine.ts +95 -0
- package/src/session/header/fit.ts +134 -0
- package/src/session/header/separator.tsx +22 -0
- package/src/session/header/session-header-actions.stories.tsx +45 -0
- package/src/session/header/session-header-actions.tsx +89 -0
- package/src/session/header/session-header.tsx +12 -0
- package/src/session/header/session-working-indicator.tsx +44 -0
- package/src/session/helpers.ts +42 -0
- package/src/session/list.test.ts +64 -0
- package/src/session/list.ts +18 -0
- package/src/session/message-id-from-hash.test.ts +10 -0
- package/src/session/message-id-from-hash.ts +8 -0
- package/src/session/model.ts +150 -0
- package/src/session/preparing-composer.tsx +72 -0
- package/src/session/question-switch.stories.tsx +380 -0
- package/src/session/requests/auto-approve-machine.test.ts +345 -0
- package/src/session/requests/auto-approve-machine.ts +247 -0
- package/src/session/requests/auto-approve.ts +274 -0
- package/src/session/requests/background.ts +312 -0
- package/src/session/requests/elicitation-controller.ts +129 -0
- package/src/session/requests/elicitation-machine.test.ts +209 -0
- package/src/session/requests/elicitation-machine.ts +277 -0
- package/src/session/requests/job-list.test.ts +18 -0
- package/src/session/requests/model.ts +348 -0
- package/src/session/requests/permission-machine.test.ts +130 -0
- package/src/session/requests/permission-machine.ts +105 -0
- package/src/session/requests/question-controller.ts +130 -0
- package/src/session/requests/question-keys.test.ts +106 -0
- package/src/session/requests/question-keys.ts +81 -0
- package/src/session/requests/question-machine.test.ts +257 -0
- package/src/session/requests/question-machine.ts +293 -0
- package/src/session/requests/question-motion.ts +26 -0
- package/src/session/requests/question-state.ts +21 -0
- package/src/session/requests/question-switch-machine.test.ts +114 -0
- package/src/session/requests/question-switch-machine.ts +130 -0
- package/src/session/requests/session-elicitation-dock.css +49 -0
- package/src/session/requests/session-elicitation-dock.tsx +223 -0
- package/src/session/requests/session-permission-dock.tsx +108 -0
- package/src/session/requests/session-question-dock-classic.tsx +726 -0
- package/src/session/requests/session-question-dock-experimental.tsx +1510 -0
- package/src/session/requests/session-question-dock.tsx +15 -0
- package/src/session/requests/session-request-tree.test.ts +119 -0
- package/src/session/requests/session-request-tree.ts +87 -0
- package/src/session/requests/session-websearch-dock.css +61 -0
- package/src/session/requests/session-websearch-dock.tsx +112 -0
- package/src/session/requests/steer-background.test.ts +66 -0
- package/src/session/requests/steer-background.ts +28 -0
- package/src/session/requests/websearch-machine.test.ts +425 -0
- package/src/session/requests/websearch-machine.ts +627 -0
- package/src/session/requests/websearch.ts +152 -0
- package/src/session/resolution-machine.test.ts +414 -0
- package/src/session/resolution-machine.ts +330 -0
- package/src/session/revert-machine.test.ts +365 -0
- package/src/session/revert-machine.ts +345 -0
- package/src/session/revert.ts +340 -0
- package/src/session/route-error.tsx +73 -0
- package/src/session/route.tsx +299 -0
- package/src/session/screen-layout.ts +147 -0
- package/src/session/screen.tsx +625 -0
- package/src/session/search.ts +3 -0
- package/src/session/server-unavailable-panel.standalone.stories.tsx +88 -0
- package/src/session/server-unavailable-panel.tsx +86 -0
- package/src/session/session-domain.test.ts +57 -0
- package/src/session/session-domain.ts +33 -0
- package/src/session/session-frame.tsx +28 -0
- package/src/session/session-identity-header.css +142 -0
- package/src/session/session-identity-header.tsx +674 -0
- package/src/session/session-layout.ts +73 -0
- package/src/session/session-model-helpers.test.ts +29 -0
- package/src/session/session-model-helpers.ts +33 -0
- package/src/session/session-panel-width.test.ts +25 -0
- package/src/session/session-panel-width.ts +58 -0
- package/src/session/session-read-menu-item.tsx +54 -0
- package/src/session/session-reference-menu.tsx +106 -0
- package/src/session/session-resolution.ts +141 -0
- package/src/session/session-screen.stories.tsx +363 -0
- package/src/session/sizing-machine.test.ts +89 -0
- package/src/session/sizing-machine.ts +74 -0
- package/src/session/story-model.tsx +420 -0
- package/src/session/timeline/background-work.stories.tsx +27 -0
- package/src/session/timeline/cache-machine.test.ts +50 -0
- package/src/session/timeline/cache-machine.ts +37 -0
- package/src/session/timeline/cache.ts +200 -0
- package/src/session/timeline/cold-mount.test.ts +162 -0
- package/src/session/timeline/cold-mount.ts +179 -0
- package/src/session/timeline/controller-projection.test.ts +305 -0
- package/src/session/timeline/controller-projection.ts +131 -0
- package/src/session/timeline/controller.tsx +467 -0
- package/src/session/timeline/cursor-machine.test.ts +398 -0
- package/src/session/timeline/cursor-machine.ts +433 -0
- package/src/session/timeline/cursor.ts +207 -0
- package/src/session/timeline/follow.ts +40 -0
- package/src/session/timeline/header-actions-machine.test.ts +126 -0
- package/src/session/timeline/header-actions-machine.ts +204 -0
- package/src/session/timeline/history-machine.test.ts +304 -0
- package/src/session/timeline/history-machine.ts +296 -0
- package/src/session/timeline/inline-quotes.ts +4 -0
- package/src/session/timeline/interaction.ts +474 -0
- package/src/session/timeline/machine.test.ts +290 -0
- package/src/session/timeline/machine.ts +271 -0
- package/src/session/timeline/message-timeline.tsx +779 -0
- package/src/session/timeline/model.test.ts +393 -0
- package/src/session/timeline/model.ts +201 -0
- package/src/session/timeline/observe-element-offset.test.ts +323 -0
- package/src/session/timeline/observe-element-offset.ts +106 -0
- package/src/session/timeline/projection.ts +7 -0
- package/src/session/timeline/quote-background.ts +141 -0
- package/src/session/timeline/quote-highlight.ts +203 -0
- package/src/session/timeline/quote-machine.test.ts +277 -0
- package/src/session/timeline/quote-machine.ts +360 -0
- package/src/session/timeline/quote-text.ts +332 -0
- package/src/session/timeline/quote.stories.tsx +88 -0
- package/src/session/timeline/quote.tsx +547 -0
- package/src/session/timeline/reconnect-machine.test.ts +115 -0
- package/src/session/timeline/reconnect-machine.ts +130 -0
- package/src/session/timeline/search-bar.css +19 -0
- package/src/session/timeline/search-bar.stories.tsx +122 -0
- package/src/session/timeline/search-bar.tsx +94 -0
- package/src/session/timeline/search-controller.ts +364 -0
- package/src/session/timeline/search-machine.test.ts +320 -0
- package/src/session/timeline/search-machine.ts +342 -0
- package/src/session/timeline/selected-effect.ts +19 -0
- package/src/session/timeline/sources.stories.tsx +352 -0
- package/src/session/timeline/sync-machine.ts +265 -0
- package/src/session/timeline/turn-diff-machine.ts +115 -0
- package/src/session/timeline/turn-diffs.test.ts +178 -0
- package/src/session/timeline/turn-diffs.ts +67 -0
- package/src/session/timeline/virtual-items.ts +3 -0
- package/src/session/timeline/virtualizer.tsx +1321 -0
- package/src/session/timeline/voice-delegation.test.ts +69 -0
- package/src/session/timeline/voice-delegation.ts +38 -0
- package/src/session/title.ts +15 -0
- package/src/session/usage-exceeded-dialogs.test.ts +41 -0
- package/src/session/usage-exceeded-dialogs.tsx +158 -0
- package/src/session/viewed-machine.test.ts +27 -0
- package/src/session/viewed-machine.ts +24 -0
- package/src/settings/about/about.tsx +199 -0
- package/src/settings/about/animated-wordmark.tsx +85 -0
- package/src/settings/about/anomaly-brush.svg +1 -0
- package/src/settings/about/contributors.test.ts +17 -0
- package/src/settings/about/contributors.ts +27 -0
- package/src/settings/about/legal.svg +9 -0
- package/src/settings/about/machine.test.ts +90 -0
- package/src/settings/about/machine.ts +119 -0
- package/src/settings/about/notices/apache-2.0.txt +201 -0
- package/src/settings/about/notices/betteroffice-notice.txt +2 -0
- package/src/settings/about/notices/crates.ts +770 -0
- package/src/settings/about/notices/dialog.tsx +113 -0
- package/src/settings/about/notices/fonts/OFL-1.1.txt +91 -0
- package/src/settings/about/notices/fonts.ts +107 -0
- package/src/settings/about/notices/notices.ts +37 -0
- package/src/settings/appearance/appearance.tsx +176 -0
- package/src/settings/command.tsx +29 -0
- package/src/settings/experimental/experimental.tsx +93 -0
- package/src/settings/extension-load-machine.test.ts +117 -0
- package/src/settings/extension-load-machine.ts +158 -0
- package/src/settings/extension-load.tsx +85 -0
- package/src/settings/general/behavior.ts +102 -0
- package/src/settings/general/controllers.test.ts +56 -0
- package/src/settings/general/controllers.ts +271 -0
- package/src/settings/general/general.tsx +404 -0
- package/src/settings/general/interface-mode.css +261 -0
- package/src/settings/general/interface-mode.tsx +190 -0
- package/src/settings/general/machine.test.ts +188 -0
- package/src/settings/general/machine.ts +224 -0
- package/src/settings/general/sound-preview-machine.test.ts +114 -0
- package/src/settings/general/sound-preview-machine.ts +109 -0
- package/src/settings/keybinds/keybinds.tsx +624 -0
- package/src/settings/keybinds/machine.test.ts +142 -0
- package/src/settings/keybinds/machine.ts +149 -0
- package/src/settings/keybinds/migration.ts +42 -0
- package/src/settings/list.tsx +10 -0
- package/src/settings/model.test.ts +249 -0
- package/src/settings/model.tsx +685 -0
- package/src/settings/models/machine.test.ts +123 -0
- package/src/settings/models/machine.ts +161 -0
- package/src/settings/models/models.tsx +285 -0
- package/src/settings/navigation.tsx +223 -0
- package/src/settings/notifications/notifications.tsx +160 -0
- package/src/settings/pages.ts +33 -0
- package/src/settings/palette.ts +44 -0
- package/src/settings/providers/account-actions.ts +112 -0
- package/src/settings/providers/account-name.tsx +46 -0
- package/src/settings/providers/accounts.test.ts +29 -0
- package/src/settings/providers/accounts.ts +11 -0
- package/src/settings/providers/console-extensions.test.ts +103 -0
- package/src/settings/providers/console-extensions.ts +110 -0
- package/src/settings/providers/console-link.tsx +121 -0
- package/src/settings/providers/extensions.tsx +425 -0
- package/src/settings/providers/machine.test.ts +270 -0
- package/src/settings/providers/machine.ts +357 -0
- package/src/settings/providers/plugin-update-machine.test.ts +155 -0
- package/src/settings/providers/plugin-update-machine.ts +151 -0
- package/src/settings/providers/providers.tsx +702 -0
- package/src/settings/rename-machine.test.ts +123 -0
- package/src/settings/rename-machine.ts +167 -0
- package/src/settings/rename.ts +120 -0
- package/src/settings/route.test.ts +117 -0
- package/src/settings/route.ts +160 -0
- package/src/settings/row.tsx +21 -0
- package/src/settings/scroller.ts +6 -0
- package/src/settings/search-catalog.ts +319 -0
- package/src/settings/search-empty.tsx +87 -0
- package/src/settings/search-field.tsx +101 -0
- package/src/settings/search-index.ts +193 -0
- package/src/settings/search-machine.test.ts +249 -0
- package/src/settings/search-machine.ts +308 -0
- package/src/settings/search-results.test.ts +151 -0
- package/src/settings/search-results.ts +75 -0
- package/src/settings/search-reveal.ts +76 -0
- package/src/settings/search.css +168 -0
- package/src/settings/search.tsx +283 -0
- package/src/settings/server-scope.tsx +12 -0
- package/src/settings/servers/inventory.test.ts +50 -0
- package/src/settings/servers/inventory.ts +100 -0
- package/src/settings/servers/machine.test.ts +148 -0
- package/src/settings/servers/machine.ts +176 -0
- package/src/settings/servers/servers.tsx +178 -0
- package/src/settings/servers/switcher.tsx +77 -0
- package/src/settings/servers/unavailable.tsx +99 -0
- package/src/settings/settings.css +2478 -0
- package/src/settings/shell.standalone.stories.tsx +60 -0
- package/src/settings/shell.tsx +434 -0
- package/src/settings/surface.tsx +297 -0
- package/src/settings/tab-header.ts +12 -0
- package/src/settings/timeline-detail.css +334 -0
- package/src/settings/timeline-detail.stories.tsx +54 -0
- package/src/settings/timeline-detail.tsx +221 -0
- package/src/settings/workspaces/delete-machine.test.ts +298 -0
- package/src/settings/workspaces/delete-machine.ts +392 -0
- package/src/settings/workspaces/project-extensions.tsx +537 -0
- package/src/settings/workspaces/project-folder-missing.tsx +29 -0
- package/src/settings/workspaces/project-lsp.test.ts +65 -0
- package/src/settings/workspaces/project-lsp.ts +31 -0
- package/src/settings/workspaces/project-machine.test.ts +285 -0
- package/src/settings/workspaces/project-machine.ts +374 -0
- package/src/settings/workspaces/project-model.ts +201 -0
- package/src/settings/workspaces/project-options.tsx +81 -0
- package/src/settings/workspaces/project-row.tsx +121 -0
- package/src/settings/workspaces/project.css +397 -0
- package/src/settings/workspaces/project.tsx +266 -0
- package/src/settings/workspaces/projects.tsx +199 -0
- package/src/settings/workspaces/queries.ts +66 -0
- package/src/settings/workspaces/workspaces.tsx +705 -0
- package/src/shell/commands/command-search.tsx +41 -0
- package/src/shell/commands/command.test.ts +118 -0
- package/src/shell/commands/command.tsx +584 -0
- package/src/shell/commands/desktop-menu.test.ts +48 -0
- package/src/shell/commands/desktop-menu.ts +322 -0
- package/src/shell/commands/desktop.tsx +27 -0
- package/src/shell/commands/dialog.css +263 -0
- package/src/shell/commands/dialog.standalone.stories.tsx +247 -0
- package/src/shell/commands/dialog.tsx +318 -0
- package/src/shell/commands/highlight-machine.test.ts +64 -0
- package/src/shell/commands/highlight-machine.ts +54 -0
- package/src/shell/commands/key-sequence.tsx +38 -0
- package/src/shell/commands/keymap.test.ts +219 -0
- package/src/shell/commands/keymap.ts +275 -0
- package/src/shell/commands/palette.ts +466 -0
- package/src/shell/commands/safe-triangle.ts +64 -0
- package/src/shell/commands/search-machine.test.ts +218 -0
- package/src/shell/commands/search-machine.ts +274 -0
- package/src/shell/commands/search.ts +136 -0
- package/src/shell/commands/session-search.tsx +111 -0
- package/src/shell/commands/suspend-machine.test.ts +59 -0
- package/src/shell/commands/suspend-machine.ts +46 -0
- package/src/shell/deep-links/deep-links.ts +65 -0
- package/src/shell/deep-links/machine.test.ts +67 -0
- package/src/shell/deep-links/machine.ts +67 -0
- package/src/shell/errors/description.test.ts +32 -0
- package/src/shell/errors/description.ts +32 -0
- package/src/shell/errors/error.tsx +515 -0
- package/src/shell/errors/machine.test.ts +178 -0
- package/src/shell/errors/machine.ts +217 -0
- package/src/shell/layout/helpers.test.ts +76 -0
- package/src/shell/layout/helpers.ts +78 -0
- package/src/shell/layout/project-avatar-state.ts +157 -0
- package/src/shell/layout/project-icon.tsx +31 -0
- package/src/shell/layout/project-icons.tsx +34 -0
- package/src/shell/layout/session-tab-avatar.tsx +28 -0
- package/src/shell/mobile-drawer.css +90 -0
- package/src/shell/mobile-drawer.tsx +53 -0
- package/src/shell/mobile-panel-drawer.css +34 -0
- package/src/shell/mobile-panel-drawer.tsx +98 -0
- package/src/shell/notifications/coordinator.ts +160 -0
- package/src/shell/notifications/focus-lock-machine.test.ts +79 -0
- package/src/shell/notifications/focus-lock-machine.ts +76 -0
- package/src/shell/notifications/machine.test.ts +297 -0
- package/src/shell/notifications/machine.ts +313 -0
- package/src/shell/notifications/notification.test.ts +28 -0
- package/src/shell/notifications/notification.tsx +526 -0
- package/src/shell/notifications/sound.ts +113 -0
- package/src/shell/notifications/toast.tsx +53 -0
- package/src/shell/palette-menu.css +105 -0
- package/src/shell/panel-motion-machine.test.ts +167 -0
- package/src/shell/panel-motion-machine.ts +217 -0
- package/src/shell/panel-motion.test.ts +26 -0
- package/src/shell/panel-motion.ts +435 -0
- package/src/shell/project-navigation.ts +21 -0
- package/src/shell/routes/routes.tsx +140 -0
- package/src/shell/routes/session-reference-lookup-machine.test.ts +111 -0
- package/src/shell/routes/session-reference-lookup-machine.ts +86 -0
- package/src/shell/routes/session-ui-navigate-machine.test.ts +124 -0
- package/src/shell/routes/session-ui-navigate-machine.ts +127 -0
- package/src/shell/routes/session-ui-provider.tsx +267 -0
- package/src/shell/routes/session.test.ts +46 -0
- package/src/shell/routes/session.ts +30 -0
- package/src/shell/search-list.css +366 -0
- package/src/shell/shell.tsx +340 -0
- package/src/shell/sidebar-peek-machine.test.ts +240 -0
- package/src/shell/sidebar-peek-machine.ts +331 -0
- package/src/shell/sidebar-peek.css +28 -0
- package/src/shell/sidebar-peek.ts +482 -0
- package/src/shell/sidebar-toggle.tsx +255 -0
- package/src/shell/state/helpers.ts +69 -0
- package/src/shell/state/intent-machine.test.ts +155 -0
- package/src/shell/state/intent-machine.ts +216 -0
- package/src/shell/state/layout.test.ts +169 -0
- package/src/shell/state/layout.tsx +794 -0
- package/src/shell/state/scoped-machine.test.ts +69 -0
- package/src/shell/state/scoped-machine.ts +77 -0
- package/src/shell/state/scroll-machine.test.ts +109 -0
- package/src/shell/state/scroll-machine.ts +94 -0
- package/src/shell/state/scroll.test.ts +83 -0
- package/src/shell/state/scroll.ts +124 -0
- package/src/shell/state/session-preferences.ts +62 -0
- package/src/shell/state/session-tabs.test.ts +188 -0
- package/src/shell/state/session-tabs.ts +257 -0
- package/src/shell/tabs/closed.ts +83 -0
- package/src/shell/tabs/hydration-machine.test.ts +98 -0
- package/src/shell/tabs/hydration-machine.ts +115 -0
- package/src/shell/tabs/memory.ts +41 -0
- package/src/shell/tabs/navigation-switch.ts +75 -0
- package/src/shell/tabs/pins.test.ts +68 -0
- package/src/shell/tabs/pins.ts +194 -0
- package/src/shell/tabs/preview-machine.test.ts +89 -0
- package/src/shell/tabs/preview-machine.ts +46 -0
- package/src/shell/tabs/preview.test.ts +153 -0
- package/src/shell/tabs/preview.ts +102 -0
- package/src/shell/tabs/project-sessions.ts +60 -0
- package/src/shell/tabs/promotion-machine.test.ts +203 -0
- package/src/shell/tabs/promotion-machine.ts +194 -0
- package/src/shell/tabs/schema.ts +86 -0
- package/src/shell/tabs/tabs.test.ts +331 -0
- package/src/shell/tabs/tabs.tsx +927 -0
- package/src/shell/time.test.ts +23 -0
- package/src/shell/time.ts +31 -0
- package/src/shell/titlebar/auto-tab-groups.test.ts +76 -0
- package/src/shell/titlebar/auto-tab-groups.ts +88 -0
- package/src/shell/titlebar/auto-tab-sections.tsx +207 -0
- package/src/shell/titlebar/history-machine.test.ts +184 -0
- package/src/shell/titlebar/history-machine.ts +149 -0
- package/src/shell/titlebar/history.ts +64 -0
- package/src/shell/titlebar/inbox-branch-machine.test.ts +146 -0
- package/src/shell/titlebar/inbox-branch-machine.ts +265 -0
- package/src/shell/titlebar/inbox-card.stories.tsx +197 -0
- package/src/shell/titlebar/inbox-list.stories.tsx +342 -0
- package/src/shell/titlebar/inbox-model.ts +539 -0
- package/src/shell/titlebar/inbox-settle-machine.test.ts +108 -0
- package/src/shell/titlebar/inbox-settle-machine.ts +141 -0
- package/src/shell/titlebar/inbox-working.test.ts +26 -0
- package/src/shell/titlebar/inbox-working.ts +22 -0
- package/src/shell/titlebar/inbox.tsx +985 -0
- package/src/shell/titlebar/mobile-tabs-machine.test.ts +105 -0
- package/src/shell/titlebar/mobile-tabs-machine.ts +102 -0
- package/src/shell/titlebar/navigation-story.tsx +207 -0
- package/src/shell/titlebar/pinned-area.css +164 -0
- package/src/shell/titlebar/pinned-area.tsx +629 -0
- package/src/shell/titlebar/project-session-row.tsx +334 -0
- package/src/shell/titlebar/recent-sessions-model.test.ts +657 -0
- package/src/shell/titlebar/recent-sessions-model.ts +469 -0
- package/src/shell/titlebar/recent-sessions.tsx +1415 -0
- package/src/shell/titlebar/recent-view-menu.tsx +147 -0
- package/src/shell/titlebar/recent-view.test.ts +99 -0
- package/src/shell/titlebar/recent-view.ts +183 -0
- package/src/shell/titlebar/recently-closed-tabs-menu.css +25 -0
- package/src/shell/titlebar/recently-closed-tabs-menu.tsx +260 -0
- package/src/shell/titlebar/route-machine.test.ts +259 -0
- package/src/shell/titlebar/route-machine.ts +206 -0
- package/src/shell/titlebar/route-sync.ts +191 -0
- package/src/shell/titlebar/session-events.test.ts +23 -0
- package/src/shell/titlebar/session-events.ts +41 -0
- package/src/shell/titlebar/session-rename-dialog-machine.test.ts +151 -0
- package/src/shell/titlebar/session-rename-dialog-machine.ts +159 -0
- package/src/shell/titlebar/sidebar-customized.standalone.stories.tsx +16 -0
- package/src/shell/titlebar/sidebar-customized.tsx +747 -0
- package/src/shell/titlebar/sidebar-pins.tsx +462 -0
- package/src/shell/titlebar/sidebar-sessions.test.ts +96 -0
- package/src/shell/titlebar/sidebar-sessions.ts +29 -0
- package/src/shell/titlebar/sidebar-view-menu.tsx +191 -0
- package/src/shell/titlebar/sidebar-view.test.ts +185 -0
- package/src/shell/titlebar/sidebar-view.ts +208 -0
- package/src/shell/titlebar/tab-group-drag-machine.ts +1479 -0
- package/src/shell/titlebar/tab-groups-ui.tsx +1246 -0
- package/src/shell/titlebar/tab-groups.css +269 -0
- package/src/shell/titlebar/tab-groups.test.ts +667 -0
- package/src/shell/titlebar/tab-groups.ts +496 -0
- package/src/shell/titlebar/tab-hints-machine.test.ts +97 -0
- package/src/shell/titlebar/tab-hints-machine.ts +79 -0
- package/src/shell/titlebar/tab-load-machine.test.ts +178 -0
- package/src/shell/titlebar/tab-load-machine.ts +233 -0
- package/src/shell/titlebar/tab-nav.css +581 -0
- package/src/shell/titlebar/tab-nav.tsx +891 -0
- package/src/shell/titlebar/tab-order.test.ts +22 -0
- package/src/shell/titlebar/tab-order.ts +24 -0
- package/src/shell/titlebar/tab-popover-machine.test.ts +79 -0
- package/src/shell/titlebar/tab-popover-machine.ts +92 -0
- package/src/shell/titlebar/tab-popover.css +129 -0
- package/src/shell/titlebar/tab-popover.tsx +144 -0
- package/src/shell/titlebar/tab-rename-machine.test.ts +206 -0
- package/src/shell/titlebar/tab-rename-machine.ts +297 -0
- package/src/shell/titlebar/tab-strip.standalone.stories.tsx +19 -0
- package/src/shell/titlebar/tab-strip.tsx +1228 -0
- package/src/shell/titlebar/tab-title.test.ts +14 -0
- package/src/shell/titlebar/tab-title.ts +6 -0
- package/src/shell/titlebar/titlebar.css +197 -0
- package/src/shell/titlebar/titlebar.tsx +1075 -0
- package/src/shell/titlebar/windows-menu.test.ts +20 -0
- package/src/shell/titlebar/windows-menu.tsx +193 -0
- package/src/sst-env.d.ts +12 -0
- package/src/theme-preload.test.ts +56 -0
- package/src/tips/model.ts +155 -0
- package/src/tips/queue.test.ts +43 -0
- package/src/tips/queue.ts +46 -0
- package/src/usage/dialog.css +8 -0
- package/src/usage/dialog.standalone.stories.tsx +137 -0
- package/src/usage/dialog.tsx +570 -0
- package/src/usage/format.ts +39 -0
- package/src/usage/limits.test.ts +141 -0
- package/src/usage/limits.ts +189 -0
- package/src/usage/machine.test.ts +128 -0
- package/src/usage/machine.ts +159 -0
- package/src/usage/model.tsx +55 -0
- package/src/voice/call-machine.test.ts +245 -0
- package/src/voice/call-machine.ts +327 -0
- package/src/voice/call.ts +362 -0
- package/src/voice/composer.tsx +300 -0
- package/src/voice/context.tsx +152 -0
- package/src/voice/coordination.test.ts +58 -0
- package/src/voice/fixtures/history.ts +51 -0
- package/src/voice/gate-machine.test.ts +91 -0
- package/src/voice/gate-machine.ts +148 -0
- package/src/voice/handoff.test.ts +35 -0
- package/src/voice/handoff.ts +20 -0
- package/src/voice/machine.test.ts +303 -0
- package/src/voice/machine.ts +349 -0
- package/src/voice/messages.test.ts +49 -0
- package/src/voice/messages.ts +15 -0
- package/src/voice/panel-machine.test.ts +106 -0
- package/src/voice/panel-machine.ts +167 -0
- package/src/voice/protocol.ts +62 -0
- package/src/voice/replies.ts +71 -0
- package/src/voice/reply-machine.test.ts +290 -0
- package/src/voice/reply-machine.ts +303 -0
- package/src/voice/search.test.ts +35 -0
- package/src/voice/search.ts +134 -0
- package/src/voice/spec.ts +114 -0
- package/src/voice/tail-machine.test.ts +124 -0
- package/src/voice/tail-machine.ts +155 -0
- package/src/voice/tail.ts +55 -0
- package/src/voice/tools.test.ts +320 -0
- package/src/voice/tools.ts +336 -0
- package/src/voice/transport-machine.test.ts +295 -0
- package/src/voice/transport-machine.ts +338 -0
- package/src/voice/transport.test.ts +295 -0
- package/src/voice/transport.ts +313 -0
- package/src/voice/voice.css +84 -0
- package/src/workspaces/create.test.ts +120 -0
- package/src/workspaces/create.ts +23 -0
- package/src/workspaces/files/artifact.test.ts +103 -0
- package/src/workspaces/files/artifact.ts +74 -0
- package/src/workspaces/files/content-cache-accounting.test.ts +79 -0
- package/src/workspaces/files/content-cache.ts +74 -0
- package/src/workspaces/files/content-machine.test.ts +269 -0
- package/src/workspaces/files/content-machine.ts +243 -0
- package/src/workspaces/files/model.tsx +423 -0
- package/src/workspaces/files/path.test.ts +76 -0
- package/src/workspaces/files/path.ts +143 -0
- package/src/workspaces/files/tree-machine.test.ts +300 -0
- package/src/workspaces/files/tree-machine.ts +286 -0
- package/src/workspaces/files/tree-store.ts +142 -0
- package/src/workspaces/files/types.ts +85 -0
- package/src/workspaces/files/view-cache.ts +164 -0
- package/src/workspaces/files/watcher.test.ts +114 -0
- package/src/workspaces/files/watcher.ts +42 -0
- package/src/workspaces/inventory.test.ts +151 -0
- package/src/workspaces/inventory.ts +64 -0
- package/src/workspaces/location-machine.test.ts +135 -0
- package/src/workspaces/location-machine.ts +159 -0
- package/src/workspaces/location.tsx +111 -0
- package/src/workspaces/path-key.ts +5 -0
- package/src/workspaces/paths.test.ts +193 -0
- package/src/workspaces/paths.ts +123 -0
- package/src/workspaces/selection/combobox-machine.test.ts +286 -0
- package/src/workspaces/selection/combobox-machine.ts +331 -0
- package/src/workspaces/selection/dialog.css +234 -0
- package/src/workspaces/selection/dialog.standalone.stories.tsx +66 -0
- package/src/workspaces/selection/dialog.tsx +867 -0
- package/src/workspaces/selection/domain.test.ts +603 -0
- package/src/workspaces/selection/domain.ts +609 -0
- package/src/workspaces/selection/picker.test.ts +37 -0
- package/src/workspaces/selection/picker.tsx +77 -0
- package/src/workspaces/selection/policy.ts +8 -0
- package/src/workspaces/selection/queue-machine.test.ts +116 -0
- package/src/workspaces/selection/queue-machine.ts +203 -0
- package/src/workspaces/selection/tree-machine.test.ts +293 -0
- package/src/workspaces/selection/tree-machine.ts +506 -0
- package/test-browser/animated-presence-state.test.ts +134 -0
- package/test-browser/auto-scroll.test.ts +111 -0
- package/test-browser/browser-pane-model.test.ts +522 -0
- package/test-browser/child-store-eviction.test.ts +86 -0
- package/test-browser/command-palette-search.test.ts +157 -0
- package/test-browser/command-palette.test.ts +262 -0
- package/test-browser/composer-attachment-errors.test.tsx +140 -0
- package/test-browser/composer-attachment-ownership.test.tsx +132 -0
- package/test-browser/composer-drag-cancel.test.tsx +41 -0
- package/test-browser/composer-file-search.test.ts +183 -0
- package/test-browser/composer-ime.test.ts +58 -0
- package/test-browser/composer-submit-loading.test.ts +235 -0
- package/test-browser/composer-write-batch.test.ts +201 -0
- package/test-browser/draft-history-cache.test.ts +139 -0
- package/test-browser/elicitation-dock.test.ts +110 -0
- package/test-browser/file-tree-store.test.ts +113 -0
- package/test-browser/fixtures/model-selection.ts +646 -0
- package/test-browser/message-page-publication.test.ts +46 -0
- package/test-browser/model-selection.test.ts +25 -0
- package/test-browser/motion-dom.test.ts +367 -0
- package/test-browser/motion-spring.test.ts +75 -0
- package/test-browser/pane-drag.test.tsx +136 -0
- package/test-browser/panel-motion.test.ts +398 -0
- package/test-browser/persisted-consumers.test.ts +40 -0
- package/test-browser/playwright-config.test.ts +72 -0
- package/test-browser/plugin-catalog.test.ts +67 -0
- package/test-browser/plugin-link-check.test.ts +102 -0
- package/test-browser/plugin-migrations.test.ts +170 -0
- package/test-browser/plugin-primitives.test.ts +616 -0
- package/test-browser/plugin-server-stream.test.ts +88 -0
- package/test-browser/presence.test.ts +236 -0
- package/test-browser/project-avatar-hover.test.ts +143 -0
- package/test-browser/prompt-motion.test.ts +10 -0
- package/test-browser/prompt-persistence.test.ts +312 -0
- package/test-browser/prompt-scope.test.ts +15 -0
- package/test-browser/provider-catalog.test.ts +54 -0
- package/test-browser/pwa-route.test.ts +96 -0
- package/test-browser/question-dock.test.ts +128 -0
- package/test-browser/schema-persistence.test.ts +294 -0
- package/test-browser/selected-effect.test.ts +36 -0
- package/test-browser/server-connection-sync.test.ts +34 -0
- package/test-browser/server-notification-state.test.ts +662 -0
- package/test-browser/session-activity-elapsed.test.ts +62 -0
- package/test-browser/session-background.test.ts +377 -0
- package/test-browser/session-message-handoffs.test.ts +118 -0
- package/test-browser/session-resolution.test.ts +385 -0
- package/test-browser/settings-keybinds.test.ts +196 -0
- package/test-browser/shell-panel.test.ts +219 -0
- package/test-browser/sidebar-peek.test.ts +149 -0
- package/test-browser/solid-router-cleanup.test.ts +66 -0
- package/test-browser/solid-runtime.test.ts +95 -0
- package/test-browser/solid-virtual.test.ts +249 -0
- package/test-browser/ssh-composer.test.ts +41 -0
- package/test-browser/ssh-health.test.ts +142 -0
- package/test-browser/theme-preload.test.ts +9 -0
- package/test-browser/timeline-cache.test.ts +571 -0
- package/test-browser/timeline-projection.test.ts +363 -0
- package/test-browser/toast-owner.test.ts +66 -0
- package/test-browser/websearch-request.test.ts +277 -0
- package/tsconfig.json +35 -0
- package/vite.config.ts +62 -0
- package/vite.icons.test.ts +133 -0
- package/vite.icons.ts +65 -0
- package/vite.js +142 -0
- package/vite.pwa.ts +69 -0
|
@@ -0,0 +1,2669 @@
|
|
|
1
|
+
import "@/composer/editor/editor.css"
|
|
2
|
+
import "@/home/projects/view.css"
|
|
3
|
+
import "@/home/sessions/view.css"
|
|
4
|
+
import "@/shell/titlebar/tab-nav.css"
|
|
5
|
+
import "@/shell/titlebar/titlebar.css"
|
|
6
|
+
import "@/session/session-identity-header.css"
|
|
7
|
+
import "@/settings/settings.css"
|
|
8
|
+
import "@/settings/general/interface-mode.css"
|
|
9
|
+
import "@/shell/titlebar/pinned-area.css"
|
|
10
|
+
import "@/settings/workspaces/project.css"
|
|
11
|
+
import "@/providers/connect/models.css"
|
|
12
|
+
import "@/shell/palette-menu.css"
|
|
13
|
+
import "@/shell/search-list.css"
|
|
14
|
+
import "@zyro-sec/session-ui/sources/panel"
|
|
15
|
+
import "../../../gui-plugins/src/browser/bar.css"
|
|
16
|
+
import treeFocusCss from "../../../gui-plugins/src/file/tree-focus.css?inline"
|
|
17
|
+
|
|
18
|
+
import { SessionFilePanelV2 } from "@zyro-sec/session-ui/v2/session-file-panel-v2"
|
|
19
|
+
import { SessionReviewV2Sidebar, SessionReviewV2SidebarToggle } from "@zyro-sec/session-ui/v2/session-review-v2"
|
|
20
|
+
import { Accordion } from "@zyro-sec/ui/accordion"
|
|
21
|
+
import { StickyAccordionHeader } from "@zyro-sec/ui/sticky-accordion-header"
|
|
22
|
+
import { Button } from "@zyro-sec/ui/button"
|
|
23
|
+
import { Checkbox } from "@zyro-sec/ui/checkbox"
|
|
24
|
+
import { Collapsible } from "@zyro-sec/ui/collapsible"
|
|
25
|
+
import { Icon } from "@zyro-sec/ui/icon"
|
|
26
|
+
import { IconButton } from "@zyro-sec/ui/icon-button"
|
|
27
|
+
import { ProjectAvatar } from "@zyro-sec/ui/project-avatar"
|
|
28
|
+
import { RadioGroup, RadioItem } from "@zyro-sec/ui/radio"
|
|
29
|
+
import { ScrollView } from "@zyro-sec/ui/scroll-view"
|
|
30
|
+
import { SegmentedControl, SegmentedControlItem } from "@zyro-sec/ui/segmented-control"
|
|
31
|
+
import { Select } from "@zyro-sec/ui/select"
|
|
32
|
+
import { Switch } from "@zyro-sec/ui/switch"
|
|
33
|
+
import { Tabs } from "@zyro-sec/ui/tabs"
|
|
34
|
+
import { TextInput } from "@zyro-sec/ui/text-input"
|
|
35
|
+
import { createEffect, createSignal, createUniqueId, For, onCleanup, onMount, Show, type JSX } from "solid-js"
|
|
36
|
+
import { createTabStripScroll } from "@/runtime/plugin/tab-strip-scroll"
|
|
37
|
+
import { createOverlayFocus } from "@zyro-sec/ui/context/overlay-focus"
|
|
38
|
+
import { installFocusRescue } from "@zyro-sec/ui/context/focus-rescue"
|
|
39
|
+
import { useDialog } from "@zyro-sec/ui/context/dialog"
|
|
40
|
+
import { Dialog, DialogBody, DialogFooter, DialogHeader, DialogTitle } from "@zyro-sec/ui/dialog"
|
|
41
|
+
import { Menu } from "@zyro-sec/ui/menu"
|
|
42
|
+
import { Popover } from "@kobalte/core/popover"
|
|
43
|
+
import { WaitingButton } from "@/providers/connect/step-actions"
|
|
44
|
+
import { SessionHeaderActions } from "@/session/header/session-header-actions"
|
|
45
|
+
import { SettingsList } from "@/settings/list"
|
|
46
|
+
import { SettingsRow } from "@/settings/row"
|
|
47
|
+
import { SettingsSearchField } from "@/settings/search-field"
|
|
48
|
+
import { trackTabHeader } from "@/settings/tab-header"
|
|
49
|
+
import { forceFocusStyles } from "./force-focus"
|
|
50
|
+
|
|
51
|
+
// Each case renders production components, markup and CSS inside the ancestor that hides its focus, at the size the
|
|
52
|
+
// audit found it. On open the target is marked focused with the lab copy of the production focus rules, and any scroller
|
|
53
|
+
// is left where the browser's own scroll-into-view puts it, as the keys do. Real keyboard focus takes over from there.
|
|
54
|
+
|
|
55
|
+
// Inconsistent: focus showed, but not as the shared ring (another colour, width, offset or shape, or a background).
|
|
56
|
+
// Lost: focus fell to the page when the focused element went.
|
|
57
|
+
type Failure = "Occluded" | "Clipped" | "Invisible" | "Inconsistent" | "Lost"
|
|
58
|
+
|
|
59
|
+
type Case = {
|
|
60
|
+
name: string
|
|
61
|
+
failure: Failure
|
|
62
|
+
target: string
|
|
63
|
+
keys: string
|
|
64
|
+
sizing: string
|
|
65
|
+
source: string
|
|
66
|
+
// How it was fixed, so each case stays here as a check that it holds.
|
|
67
|
+
fix: string
|
|
68
|
+
// The scroller the keys start in and the edge it starts at, such as the end of a list Shift+Tab walks back up.
|
|
69
|
+
from?: { scroller: string; edge: "start" | "end" }
|
|
70
|
+
render: (forced: () => boolean) => JSX.Element
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
type Surface = { name: string; cases: Case[]; also: string[] }
|
|
74
|
+
|
|
75
|
+
const schemes = ["lab", "light", "dark"] as const
|
|
76
|
+
|
|
77
|
+
type VisibilityArgs = { scheme: (typeof schemes)[number]; forced: boolean; locator: boolean }
|
|
78
|
+
|
|
79
|
+
const models = [
|
|
80
|
+
"Claude Haiku 4.5",
|
|
81
|
+
"Claude Opus 4.6",
|
|
82
|
+
"Claude Sonnet 4.5",
|
|
83
|
+
"GPT-5",
|
|
84
|
+
"GPT-5 mini",
|
|
85
|
+
"GPT-5.1 Codex",
|
|
86
|
+
"Gemini 2.5 Flash",
|
|
87
|
+
"Gemini 2.5 Pro",
|
|
88
|
+
"Grok 4",
|
|
89
|
+
"Kimi K2",
|
|
90
|
+
"Qwen3 Coder",
|
|
91
|
+
]
|
|
92
|
+
|
|
93
|
+
const panelTabs = [
|
|
94
|
+
"changes",
|
|
95
|
+
...Array.from({ length: 12 }, (_, index) => `source-${String(index + 1).padStart(2, "0")}.ts`),
|
|
96
|
+
]
|
|
97
|
+
|
|
98
|
+
const surfaces: Surface[] = [
|
|
99
|
+
{
|
|
100
|
+
name: "Titlebar",
|
|
101
|
+
cases: [
|
|
102
|
+
{
|
|
103
|
+
name: "Narrow-screen Tabs button: no keyboard ring",
|
|
104
|
+
failure: "Invisible",
|
|
105
|
+
target: "button",
|
|
106
|
+
keys: "Narrow the browser and Tab to the Tabs button.",
|
|
107
|
+
sizing: "Below the mobile breakpoint, the button fills the titlebar.",
|
|
108
|
+
source: "app/src/shell/titlebar/titlebar.tsx",
|
|
109
|
+
fix: "Draw the shared ring inside the button instead of suppressing the outline.",
|
|
110
|
+
render: () => (
|
|
111
|
+
<button class="h-7 w-48 rounded-[6px] px-2 text-start focus-visible:-outline-offset-2">Tabs</button>
|
|
112
|
+
),
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: "Search and New tab: ring cut at the top and bottom by the titlebar row",
|
|
116
|
+
failure: "Clipped",
|
|
117
|
+
target: '[aria-label="Search sessions"]',
|
|
118
|
+
keys: "Click the titlebar's empty space, press Tab.",
|
|
119
|
+
sizing: "Any width. The buttons are as tall as the 36px row, which clips for the tab strip.",
|
|
120
|
+
source: "app/src/shell/titlebar (row overflow: hidden), titlebar.css",
|
|
121
|
+
fix: "Titlebar IconButtons draw the 2px ring inset (offset -2px, titlebar.css), inside the row that clips them. Found once they got a ring at all.",
|
|
122
|
+
render: () => (
|
|
123
|
+
<div
|
|
124
|
+
data-slot="titlebar-v2"
|
|
125
|
+
class="shrink-0 relative flex flex-row h-9 bg-v2-background-bg-deep overflow-visible"
|
|
126
|
+
style={{ width: "360px" }}
|
|
127
|
+
>
|
|
128
|
+
<div class="h-full flex-1 overflow-hidden flex flex-row items-center gap-1.5 px-2">
|
|
129
|
+
<div class="-me-0.5 flex shrink-0 items-center gap-0.5">
|
|
130
|
+
<IconButton variant="ghost-muted" icon={<Icon name="grid-plus" />} aria-label="Home" class="!w-9" />
|
|
131
|
+
<IconButton
|
|
132
|
+
variant="ghost-muted"
|
|
133
|
+
icon={<Icon name="magnifying-glass" />}
|
|
134
|
+
aria-label="Search sessions"
|
|
135
|
+
class="!w-9"
|
|
136
|
+
/>
|
|
137
|
+
<IconButton variant="ghost-muted" icon={<Icon name="plus" />} aria-label="New tab" class="!w-9" />
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
),
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: "Session tab: selected and keyboard focused look the same",
|
|
145
|
+
failure: "Invisible",
|
|
146
|
+
target: "[data-titlebar-tab-link]",
|
|
147
|
+
keys: "Focus Search in the top tab bar, then press Tab to reach the session tab.",
|
|
148
|
+
sizing: "The tab and the strip both clip overflow.",
|
|
149
|
+
source: "app/src/shell/titlebar/tab-nav.tsx, titlebar.css",
|
|
150
|
+
fix: "The link suppresses its outline. Its rounded tab wrapper now draws the inset ring when the link has keyboard focus. The close button keeps its own ring.",
|
|
151
|
+
render: () => (
|
|
152
|
+
<div class="flex items-center gap-2 overflow-hidden" style={{ width: "280px" }}>
|
|
153
|
+
<IconButton variant="ghost-muted" icon={<Icon name="magnifying-glass" />} aria-label="Search sessions" />
|
|
154
|
+
<div
|
|
155
|
+
data-slot="titlebar-tab-item"
|
|
156
|
+
class="flex h-7 min-w-0 items-center gap-1.5 overflow-hidden rounded-[6px] bg-v2-background-bg-layer-02 px-1.5"
|
|
157
|
+
>
|
|
158
|
+
<a data-titlebar-tab-link href="#review-focus-visibility" class="flex h-full items-center gap-1.5">
|
|
159
|
+
<ProjectAvatar fallback="O" variant="blue" class="!size-4" />
|
|
160
|
+
<span class="text-13-medium">Test message</span>
|
|
161
|
+
</a>
|
|
162
|
+
<IconButton variant="ghost-muted" size="small" icon={<Icon name="close" />} aria-label="Close tab" />
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
),
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
also: [],
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: "Session header and composer",
|
|
172
|
+
cases: [
|
|
173
|
+
{
|
|
174
|
+
name: "Child session: parent breadcrumb only changes background",
|
|
175
|
+
failure: "Inconsistent",
|
|
176
|
+
target: "button",
|
|
177
|
+
keys: "Open a child session and Tab from the project to its parent breadcrumb.",
|
|
178
|
+
sizing: "The breadcrumb has space for the default outset ring.",
|
|
179
|
+
source: "app/src/session/session-identity-header.tsx",
|
|
180
|
+
fix: "Use the shared outset ring for the parent breadcrumb and preserve hover styling.",
|
|
181
|
+
render: () => <button class="h-7 rounded-[6px] px-1.5 text-13-medium">Parent session</button>,
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: "Project button: keyboard focus only changes the background",
|
|
185
|
+
failure: "Inconsistent",
|
|
186
|
+
target: '[data-slot="session-location-trigger"]',
|
|
187
|
+
keys: "Tab to the project name at the start of the session header.",
|
|
188
|
+
sizing: "Any header width, including when the label collapses to an icon.",
|
|
189
|
+
source: "app/src/session/session-identity-header.tsx",
|
|
190
|
+
fix: "Keep hover and menu-open backgrounds, and let the project button draw the shared outset keyboard ring.",
|
|
191
|
+
render: () => (
|
|
192
|
+
<button
|
|
193
|
+
type="button"
|
|
194
|
+
data-slot="session-location-trigger"
|
|
195
|
+
class="flex h-7 items-center gap-2 rounded-[6px] px-1.5 text-13-regular text-v2-text-text-muted hover:bg-v2-overlay-simple-overlay-hover"
|
|
196
|
+
>
|
|
197
|
+
<ProjectAvatar fallback="O" variant="blue" class="!size-4" />
|
|
198
|
+
opencode
|
|
199
|
+
</button>
|
|
200
|
+
),
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: "Editable session title: skipped by Tab",
|
|
204
|
+
failure: "Invisible",
|
|
205
|
+
target: "h1 > button",
|
|
206
|
+
keys: "From the project button, press Tab. In a session, Enter or Space opens rename and Escape returns focus.",
|
|
207
|
+
sizing: "An editable session title. Read-only titles remain plain headings.",
|
|
208
|
+
source: "app/src/session/timeline/message-timeline.tsx, session/session-identity-header.css",
|
|
209
|
+
fix: "A native button inside the heading makes rename reachable with Tab and gives it the shared outset ring.",
|
|
210
|
+
render: () => (
|
|
211
|
+
<div class="flex items-center gap-2">
|
|
212
|
+
<button type="button" class="h-7 rounded-[6px] px-1.5 text-13-regular">
|
|
213
|
+
opencode
|
|
214
|
+
</button>
|
|
215
|
+
<Icon name="chevron-right" />
|
|
216
|
+
<h1 class="session-title-rename w-fit text-13-medium">
|
|
217
|
+
<button type="button" class="truncate hover:bg-v2-overlay-simple-overlay-hover">
|
|
218
|
+
Test message
|
|
219
|
+
</button>
|
|
220
|
+
</h1>
|
|
221
|
+
</div>
|
|
222
|
+
),
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: "Right panel toggle: focus arrives before the header",
|
|
226
|
+
failure: "Inconsistent",
|
|
227
|
+
target: '[aria-controls="review-panel"]',
|
|
228
|
+
keys: "Focus the preceding header action and press Tab. Shift+Tab goes back to that action.",
|
|
229
|
+
sizing: "Desktop width, with the review panel open or closed.",
|
|
230
|
+
source:
|
|
231
|
+
"app/src/session/screen.tsx, session/timeline/message-timeline.tsx, session/session-identity-header.css",
|
|
232
|
+
fix: "The toggle follows the other header actions in DOM order. It stays at the pane row's end visually when the panel opens.",
|
|
233
|
+
render: () => (
|
|
234
|
+
<div class="flex items-center gap-2">
|
|
235
|
+
<IconButton variant="ghost-muted" icon={<Icon name="layout-left" />} aria-label="Session details" />
|
|
236
|
+
<SessionHeaderActions
|
|
237
|
+
state={{
|
|
238
|
+
reviewLabel: "Toggle review",
|
|
239
|
+
reviewKeybind: [],
|
|
240
|
+
reviewVisible: true,
|
|
241
|
+
reviewOpened: false,
|
|
242
|
+
onReviewToggle: () => undefined,
|
|
243
|
+
}}
|
|
244
|
+
/>
|
|
245
|
+
</div>
|
|
246
|
+
),
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
also: [],
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
name: "New session",
|
|
253
|
+
cases: [
|
|
254
|
+
...(["tip", "dismiss"] as const).map(
|
|
255
|
+
(part): Case => ({
|
|
256
|
+
name: `Provider tip ${part === "dismiss" ? "dismiss button" : "link"}: focus only changes the background`,
|
|
257
|
+
failure: "Inconsistent",
|
|
258
|
+
target: part === "dismiss" ? '[aria-label="Dismiss"]' : "button:first-child",
|
|
259
|
+
keys: `On New session, Tab to the provider tip${part === "dismiss" ? ", then Tab to Dismiss" : ""}.`,
|
|
260
|
+
sizing: "The tip appears when no provider is connected. Both controls have room for an outset ring.",
|
|
261
|
+
source: "app/src/new-session/view.tsx",
|
|
262
|
+
fix: "Keep the hover treatment and use the shared rounded keyboard ring. Dismiss still reveals when it takes focus.",
|
|
263
|
+
render: () => (
|
|
264
|
+
<div data-component="new-session-tip" class="flex max-w-full items-center gap-1">
|
|
265
|
+
<button
|
|
266
|
+
type="button"
|
|
267
|
+
class="flex h-6 min-w-0 items-center rounded-[4px] ps-1.5 text-13-regular text-v2-text-text-faint hover:bg-v2-overlay-simple-overlay-hover"
|
|
268
|
+
>
|
|
269
|
+
<span class="truncate">Connect to 75+ providers to use other models</span>
|
|
270
|
+
<Icon name="chevron-right" class="shrink-0" />
|
|
271
|
+
</button>
|
|
272
|
+
<button
|
|
273
|
+
type="button"
|
|
274
|
+
aria-label="Dismiss"
|
|
275
|
+
class="grid size-6 shrink-0 place-items-center rounded-[4px] text-v2-icon-icon-muted hover:bg-v2-overlay-simple-overlay-hover"
|
|
276
|
+
>
|
|
277
|
+
<Icon name="close" />
|
|
278
|
+
</button>
|
|
279
|
+
</div>
|
|
280
|
+
),
|
|
281
|
+
}),
|
|
282
|
+
),
|
|
283
|
+
{
|
|
284
|
+
name: "Project picker: keyboard focus looks like hover",
|
|
285
|
+
failure: "Inconsistent",
|
|
286
|
+
target: '[data-action="prompt-project"]',
|
|
287
|
+
keys: "On New session, Tab to the project picker below the composer.",
|
|
288
|
+
sizing: "The project picker and worktree picker sit below the composer, outside its clipping frame.",
|
|
289
|
+
source: "app/src/new-session/view.tsx, project/selector.tsx",
|
|
290
|
+
fix: "Use the shared rounded outset ring on the project and worktree pickers, including the add-project fallback.",
|
|
291
|
+
render: () => (
|
|
292
|
+
<button
|
|
293
|
+
type="button"
|
|
294
|
+
data-action="prompt-project"
|
|
295
|
+
class="flex h-7 items-center gap-1.5 rounded-[4px] ps-1.5 pe-2 text-13-regular text-v2-text-text-muted hover:bg-v2-overlay-simple-overlay-hover"
|
|
296
|
+
>
|
|
297
|
+
<ProjectAvatar fallback="D" class="!size-4" />
|
|
298
|
+
Default Project
|
|
299
|
+
<Icon name="chevron-down" class="text-v2-icon-icon-muted" />
|
|
300
|
+
</button>
|
|
301
|
+
),
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
name: "Composer Send: ring touches the button fill",
|
|
305
|
+
failure: "Inconsistent",
|
|
306
|
+
target: '[data-action="composer-submit"]',
|
|
307
|
+
keys: "Type a draft, then Tab to Send.",
|
|
308
|
+
sizing: "Send sits outside the scrolling toolbar controls, with 8px of space to the composer frame.",
|
|
309
|
+
source: "app/src/composer/editor/editor.css",
|
|
310
|
+
fix: "Keep the toolbar rings inset but let the fixed Send button use the default 2px outset ring.",
|
|
311
|
+
render: () => (
|
|
312
|
+
<div data-component="composer" class="w-[240px] overflow-clip rounded-xl bg-v2-background-bg-layer-01">
|
|
313
|
+
<div class="px-4 pt-4 pb-2 text-13-regular">Review the recent changes.</div>
|
|
314
|
+
<div data-slot="composer-actions" class="flex h-11 items-center justify-end px-2">
|
|
315
|
+
<IconButton
|
|
316
|
+
type="button"
|
|
317
|
+
data-action="composer-submit"
|
|
318
|
+
variant="submit"
|
|
319
|
+
class="size-7 rounded-md p-[6px]"
|
|
320
|
+
aria-label="Send"
|
|
321
|
+
icon={<Icon name="arrow-up" />}
|
|
322
|
+
/>
|
|
323
|
+
</div>
|
|
324
|
+
</div>
|
|
325
|
+
),
|
|
326
|
+
},
|
|
327
|
+
],
|
|
328
|
+
also: [],
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
name: "Timeline",
|
|
332
|
+
cases: [
|
|
333
|
+
{
|
|
334
|
+
name: "Copy response: focus scrolls under the sticky session header",
|
|
335
|
+
failure: "Occluded",
|
|
336
|
+
target: '[aria-label="Copy response"]',
|
|
337
|
+
keys: "In a long session, Shift+Tab into the timeline and watch the copy button scroll clear of the header.",
|
|
338
|
+
sizing: "The scrollport reserves the 48px header and its 16px fade.",
|
|
339
|
+
source: "app/src/index.css, session/timeline/message-timeline.tsx",
|
|
340
|
+
fix: "Set block-start scroll padding where the header inset is present, so keyboard scroll reveals the whole ring.",
|
|
341
|
+
render: () => (
|
|
342
|
+
<ScrollView data-slot="session-timeline-scroll" class="h-32 w-[300px] bg-v2-background-bg-layer-01">
|
|
343
|
+
<div data-slot="session-header-inset" class="sticky top-0 z-10 h-16 bg-v2-background-bg-base p-3">
|
|
344
|
+
Session header
|
|
345
|
+
</div>
|
|
346
|
+
<div class="h-28 p-2">
|
|
347
|
+
<IconButton variant="ghost-muted" icon={<Icon name="copy" />} aria-label="Copy response" />
|
|
348
|
+
</div>
|
|
349
|
+
</ScrollView>
|
|
350
|
+
),
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
name: "Read more: the folded prompt uses an old accent ring",
|
|
354
|
+
failure: "Inconsistent",
|
|
355
|
+
target: "button",
|
|
356
|
+
keys: "Tab to Read more on a folded prompt.",
|
|
357
|
+
sizing: "The text disclosure has room for the default outset ring.",
|
|
358
|
+
source: "session-ui/src/components/message-part.css",
|
|
359
|
+
fix: "Replace the old 1px accent outline with the shared 2px ring.",
|
|
360
|
+
render: () => (
|
|
361
|
+
<div data-component="user-message">
|
|
362
|
+
<button type="button" data-slot="user-message-fold-toggle" aria-expanded="false">
|
|
363
|
+
Read more <Icon name="chevron-down" />
|
|
364
|
+
</button>
|
|
365
|
+
</div>
|
|
366
|
+
),
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
name: "Timeline Find close: an old thin outline shows at rest in forced colours",
|
|
370
|
+
failure: "Inconsistent",
|
|
371
|
+
target: "button",
|
|
372
|
+
keys: "Open Find in a session and Tab to its close button.",
|
|
373
|
+
sizing: "The icon sits inside the compact Find field.",
|
|
374
|
+
source: "app/src/session/timeline/search-bar.tsx",
|
|
375
|
+
fix: "Draw no outline at rest and use the shared inset ring on keyboard focus.",
|
|
376
|
+
render: () => (
|
|
377
|
+
<button
|
|
378
|
+
type="button"
|
|
379
|
+
aria-label="Close Find"
|
|
380
|
+
class="grid size-5 place-items-center rounded-[4px] focus-visible:-outline-offset-2"
|
|
381
|
+
>
|
|
382
|
+
<Icon name="close" />
|
|
383
|
+
</button>
|
|
384
|
+
),
|
|
385
|
+
},
|
|
386
|
+
...[
|
|
387
|
+
{ name: "Execute call", slot: "execute-tool-call", source: "components/message-part.css" },
|
|
388
|
+
{ name: "More search results", slot: "exa-tool-more", source: "components/message-part.css" },
|
|
389
|
+
{ name: "Fetched page link", slot: "webfetch-link", source: "components/basic-tool.css" },
|
|
390
|
+
{ name: "Timeline event link", slot: "timeline-event-item", source: "timeline-next/timeline-next.css" },
|
|
391
|
+
].map(
|
|
392
|
+
(example): Case => ({
|
|
393
|
+
name: `${example.name}: thin accent outline`,
|
|
394
|
+
failure: "Inconsistent",
|
|
395
|
+
target: "button",
|
|
396
|
+
keys: `Tab to the ${example.name.toLowerCase()} in the timeline.`,
|
|
397
|
+
sizing: "There is room for the default outset ring.",
|
|
398
|
+
source: `session-ui/src/${example.source}`,
|
|
399
|
+
fix: "Replace the 1px accent outline with the shared 2px ring and rounded corners.",
|
|
400
|
+
render: () => (
|
|
401
|
+
<div data-timeline="next" class="w-56">
|
|
402
|
+
<div data-component={example.slot === "execute-tool-call" ? "execute-tool-calls" : "timeline-event-list"}>
|
|
403
|
+
<button
|
|
404
|
+
type="button"
|
|
405
|
+
role="button"
|
|
406
|
+
data-slot={example.slot}
|
|
407
|
+
class={example.slot === "webfetch-link" ? "webfetch-link" : undefined}
|
|
408
|
+
>
|
|
409
|
+
{example.name}
|
|
410
|
+
</button>
|
|
411
|
+
</div>
|
|
412
|
+
</div>
|
|
413
|
+
),
|
|
414
|
+
}),
|
|
415
|
+
),
|
|
416
|
+
{
|
|
417
|
+
name: "Copy response: ring cut at the bottom by the virtual row",
|
|
418
|
+
failure: "Clipped",
|
|
419
|
+
target: '[aria-label="Copy response"]',
|
|
420
|
+
keys: "Click the response text, press Tab.",
|
|
421
|
+
sizing: "Any width (audited at 1100×800 and 390×680). The row clips at its measured height.",
|
|
422
|
+
source:
|
|
423
|
+
"app/src/session/timeline/virtualizer.tsx:1077–86 (overflow: clip, clip margin 0.5px), session-ui message-part.css:577–83",
|
|
424
|
+
fix: "The virtual row's overflow-clip-margin went from 0.5px to 5px (virtualizer.tsx), room for the 2px ring at its 2px offset. The same margin keeps card shadows at a row edge.",
|
|
425
|
+
render: () => (
|
|
426
|
+
<div style={{ width: "420px", position: "relative", overflow: "clip", "overflow-clip-margin": "5px" }}>
|
|
427
|
+
<div data-component="text-part">
|
|
428
|
+
<div data-slot="text-part-body">
|
|
429
|
+
<div data-component="markdown">
|
|
430
|
+
<p>Historical response 8. Existing session content keeps the virtual timeline realistic.</p>
|
|
431
|
+
</div>
|
|
432
|
+
</div>
|
|
433
|
+
<div data-slot="text-part-copy-wrapper" data-keep-copy-visible>
|
|
434
|
+
<IconButton
|
|
435
|
+
icon={<Icon name="copy" size="small" />}
|
|
436
|
+
size="small"
|
|
437
|
+
variant="ghost-muted"
|
|
438
|
+
aria-label="Copy response"
|
|
439
|
+
/>
|
|
440
|
+
<span data-slot="text-part-meta">Build · Claude Opus 4.6 · 2s</span>
|
|
441
|
+
</div>
|
|
442
|
+
</div>
|
|
443
|
+
</div>
|
|
444
|
+
),
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
name: "Folded prompt: links lose their left edge, then scroll into the fade",
|
|
448
|
+
failure: "Occluded",
|
|
449
|
+
target: '[data-slot="user-message-link"][href$="deep"]',
|
|
450
|
+
keys: "Click the first line of the prompt, press Tab: the first link's left stroke is cut. Press Tab again: the deep link scrolls into the 40px fade.",
|
|
451
|
+
sizing:
|
|
452
|
+
"Prompts over 12 lines fold to 8. The link has no authored focus rule, so its browser default ring shows only with real focus.",
|
|
453
|
+
source: "session-ui message-part.css:221–230 (fold overflow: hidden, 40px mask), message-content.tsx:786",
|
|
454
|
+
fix: "The fold pads its sides by 5px and takes it back with a negative margin, so a ring at either end of a line is inside the clip. Links keep a 40px bottom scroll-margin, clear of the fade, and draw the default ring.",
|
|
455
|
+
render: () => (
|
|
456
|
+
<div data-component="user-message" style={{ width: "380px" }}>
|
|
457
|
+
<div data-slot="user-message-text" dir="auto">
|
|
458
|
+
<div data-slot="user-message-fold" data-folded style={{ "max-height": "8lh" }}>
|
|
459
|
+
<div>
|
|
460
|
+
<a data-slot="user-message-link" href="https://example.com/start" target="_blank" rel="noreferrer">
|
|
461
|
+
https://example.com/start
|
|
462
|
+
</a>
|
|
463
|
+
{" is where the investigation began.\n"}
|
|
464
|
+
{Array.from({ length: 12 }, (_, index) => `This is context line ${index + 1}.\n`).join("")}
|
|
465
|
+
<a data-slot="user-message-link" href="https://example.com/deep" target="_blank" rel="noreferrer">
|
|
466
|
+
https://example.com/deep
|
|
467
|
+
</a>
|
|
468
|
+
{"\nThis is context line 14."}
|
|
469
|
+
</div>
|
|
470
|
+
</div>
|
|
471
|
+
<button type="button" data-slot="user-message-fold-toggle" aria-expanded="false">
|
|
472
|
+
<span>Read more</span>
|
|
473
|
+
<Icon name="chevron-down" size="small" />
|
|
474
|
+
</button>
|
|
475
|
+
</div>
|
|
476
|
+
</div>
|
|
477
|
+
),
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
name: "Changed file row: no visible focus",
|
|
481
|
+
failure: "Invisible",
|
|
482
|
+
target: '[data-slot="accordion-trigger"]',
|
|
483
|
+
keys: "Click above the list, press Tab.",
|
|
484
|
+
sizing: "Any width. The trigger sets outline: none and nothing replaces it.",
|
|
485
|
+
source: "ui/src/data-display/accordion/accordion.css:58",
|
|
486
|
+
fix: "The trigger draws the 2px ring inset (offset -2px), since the list clips a full-width row.",
|
|
487
|
+
render: () => (
|
|
488
|
+
<div style={{ width: "380px" }}>
|
|
489
|
+
<Accordion collapsible>
|
|
490
|
+
<Accordion.Item value="view">
|
|
491
|
+
<Accordion.Header>
|
|
492
|
+
<Accordion.Trigger>packages/app/src/components/view.tsx</Accordion.Trigger>
|
|
493
|
+
</Accordion.Header>
|
|
494
|
+
<Accordion.Content>+12 −3</Accordion.Content>
|
|
495
|
+
</Accordion.Item>
|
|
496
|
+
</Accordion>
|
|
497
|
+
</div>
|
|
498
|
+
),
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
name: "New timeline tool row: background only",
|
|
502
|
+
failure: "Inconsistent",
|
|
503
|
+
target: '[data-slot="collapsible-trigger"]',
|
|
504
|
+
keys: "Turn on the new timeline, click the response above a tool row, press Tab.",
|
|
505
|
+
sizing: "Any width. The trigger also holds the gap below an open row.",
|
|
506
|
+
source: "session-ui/src/timeline-next/timeline-next.css",
|
|
507
|
+
fix: "Keyboard focus rings the row's line of text (tool-trigger) at the default 2px offset with a 4px radius, instead of filling it with the hover background. A ring on the trigger itself would take in the gap below an open row.",
|
|
508
|
+
render: () => (
|
|
509
|
+
<div data-timeline="next" style={{ width: "380px" }}>
|
|
510
|
+
<Collapsible variant="ghost">
|
|
511
|
+
<Collapsible.Trigger>
|
|
512
|
+
<div data-component="tool-trigger" class="text-13-regular" style={{ gap: "6px" }}>
|
|
513
|
+
Read <span class="text-v2-text-text-muted">src/session/timeline.tsx</span>
|
|
514
|
+
</div>
|
|
515
|
+
</Collapsible.Trigger>
|
|
516
|
+
<Collapsible.Content>Content</Collapsible.Content>
|
|
517
|
+
</Collapsible>
|
|
518
|
+
</div>
|
|
519
|
+
),
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
name: "Compaction divider: thin accent ring",
|
|
523
|
+
failure: "Inconsistent",
|
|
524
|
+
target: '[data-slot="session-compaction-divider"]',
|
|
525
|
+
keys: "Click the message above a compaction, press Tab.",
|
|
526
|
+
sizing: "Any width.",
|
|
527
|
+
source: "session-ui/src/components/session-compaction.css",
|
|
528
|
+
fix: "Was 1px in --v2-text-text-accent. Now the shared 2px ring in the focus colour at a 2px offset.",
|
|
529
|
+
render: () => (
|
|
530
|
+
<div data-component="session-compaction-message" data-quiet style={{ width: "380px" }}>
|
|
531
|
+
<button type="button" data-slot="session-compaction-divider">
|
|
532
|
+
Compacted
|
|
533
|
+
</button>
|
|
534
|
+
</div>
|
|
535
|
+
),
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
name: "Session link in a response: ring in the text colour",
|
|
539
|
+
failure: "Inconsistent",
|
|
540
|
+
target: ".markdown-session-link",
|
|
541
|
+
keys: "Click the response text, press Tab.",
|
|
542
|
+
sizing: "Any width.",
|
|
543
|
+
source: "session-ui/src/components/markdown.css",
|
|
544
|
+
fix: "Was 2px in currentColor, so it took the link's colour. Now the shared focus colour at a 2px offset.",
|
|
545
|
+
render: () => (
|
|
546
|
+
<div data-component="markdown" style={{ width: "380px" }}>
|
|
547
|
+
<p>
|
|
548
|
+
Continued from{" "}
|
|
549
|
+
<a href="#review-focus-visibility" class="markdown-session-link">
|
|
550
|
+
Fix the review panel
|
|
551
|
+
</a>
|
|
552
|
+
.
|
|
553
|
+
</p>
|
|
554
|
+
</div>
|
|
555
|
+
),
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
name: "Sources chip: 1px ring",
|
|
559
|
+
failure: "Inconsistent",
|
|
560
|
+
target: '[data-component="sources-chip"]',
|
|
561
|
+
keys: "Turn on the Sources experiment, click a response that searched the web, press Tab.",
|
|
562
|
+
sizing: "Any width.",
|
|
563
|
+
source: "session-ui/src/sources/sources.css",
|
|
564
|
+
fix: "The chip was 1px at a 1px offset, and the panel's rows 1px inset. Now the shared 2px ring: outset on the chip, inset (-2px) on the rows, which fill the panel's scrolling list.",
|
|
565
|
+
render: () => (
|
|
566
|
+
<button type="button" data-component="sources-chip">
|
|
567
|
+
3 sources
|
|
568
|
+
</button>
|
|
569
|
+
),
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
name: "Question progress: ring runs into the next segment",
|
|
573
|
+
failure: "Clipped",
|
|
574
|
+
target: '[data-slot="question-progress-segment"]',
|
|
575
|
+
keys: "Open a multi-question prompt, Tab to the progress segments.",
|
|
576
|
+
sizing: "Any width. Segments sit 2px apart.",
|
|
577
|
+
source: "session-ui/src/components/question-prompt.css, question-prompt-experimental.css",
|
|
578
|
+
fix: "Was 2px at a 1px offset, which overlapped the neighbouring segment. Now inset (-2px), inside the segment.",
|
|
579
|
+
render: () => (
|
|
580
|
+
<div data-component="dock-prompt" data-kind="question" style={{ width: "240px" }}>
|
|
581
|
+
<div data-slot="question-progress">
|
|
582
|
+
<button type="button" data-slot="question-progress-segment" aria-label="Question 1">
|
|
583
|
+
<span data-slot="question-progress-bar" />
|
|
584
|
+
</button>
|
|
585
|
+
<button type="button" data-slot="question-progress-segment" aria-label="Question 2">
|
|
586
|
+
<span data-slot="question-progress-bar" />
|
|
587
|
+
</button>
|
|
588
|
+
<button type="button" data-slot="question-progress-segment" aria-label="Question 3">
|
|
589
|
+
<span data-slot="question-progress-bar" />
|
|
590
|
+
</button>
|
|
591
|
+
</div>
|
|
592
|
+
</div>
|
|
593
|
+
),
|
|
594
|
+
},
|
|
595
|
+
],
|
|
596
|
+
also: [
|
|
597
|
+
"Fixed: the new timeline's command group lost the bottom of its shadow. The 5px row clip margin above covers it.",
|
|
598
|
+
],
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
name: "Home",
|
|
602
|
+
cases: [
|
|
603
|
+
{
|
|
604
|
+
name: "Home search results: Shift+Tab reaches a background-only option",
|
|
605
|
+
failure: "Invisible",
|
|
606
|
+
target: "input",
|
|
607
|
+
keys: "Type a Home search. Use ArrowDown to move the highlight and Shift+Tab to leave the field.",
|
|
608
|
+
sizing: "Results are controlled by the search input's active descendant.",
|
|
609
|
+
source: "app/src/home/sessions/view.tsx, view.css",
|
|
610
|
+
fix: "Remove result buttons from the Tab order. Give the active option a visible system highlight in forced colours.",
|
|
611
|
+
render: () => <SearchHighlightExample kind="home-session-search-row" />,
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
name: "Home viewport: invisible Tab stop",
|
|
615
|
+
failure: "Invisible",
|
|
616
|
+
target: ".scroll-view__viewport",
|
|
617
|
+
keys: "Tab through the list: focus skips the viewport. Click it, then use ArrowDown or PageDown to scroll.",
|
|
618
|
+
sizing: "The items inside the viewport take Tab focus and show the ring.",
|
|
619
|
+
source: "ui/src/components/scroll-view.tsx, scroll-view.css",
|
|
620
|
+
fix: "Keep the viewport out of the Tab order. A click still focuses it so the keyboard can scroll it.",
|
|
621
|
+
render: () => (
|
|
622
|
+
<ScrollView class="h-[90px] w-[300px] rounded-[6px] bg-v2-background-bg-layer-01">
|
|
623
|
+
<div class="grid gap-3 p-3 text-13-regular">
|
|
624
|
+
<span>Recent sessions</span>
|
|
625
|
+
<span>Review focus states</span>
|
|
626
|
+
<span>Check mobile layout</span>
|
|
627
|
+
<span>Update the component lab</span>
|
|
628
|
+
</div>
|
|
629
|
+
</ScrollView>
|
|
630
|
+
),
|
|
631
|
+
},
|
|
632
|
+
...(["Projects", "opencode"] as const).map(
|
|
633
|
+
(label): Case => ({
|
|
634
|
+
name: `Side tabs: ${label === "Projects" ? "Projects heading" : "project row"} has only a background change`,
|
|
635
|
+
failure: "Inconsistent",
|
|
636
|
+
target: '[data-slot="sidebar-project-row"] > button',
|
|
637
|
+
keys: `Open Side tabs and Tab to ${label}. Tab again to focus the adjacent icon button independently.`,
|
|
638
|
+
sizing: "The row spans the sidebar, including the trailing action.",
|
|
639
|
+
source: "app/src/shell/titlebar/sidebar-organized.tsx, sidebar-customized.tsx, tab-nav.css",
|
|
640
|
+
fix: "Draw the inset ring around the whole row when its main button has keyboard focus. The trailing button keeps its own ring.",
|
|
641
|
+
render: () => (
|
|
642
|
+
<div data-slot="sidebar-project-row" class="flex h-7 w-[250px] items-center rounded-[6px] pe-1">
|
|
643
|
+
<button
|
|
644
|
+
type="button"
|
|
645
|
+
class="flex h-full flex-1 items-center gap-2 px-2 text-13-regular focus-visible:outline-none"
|
|
646
|
+
>
|
|
647
|
+
{label === "Projects" ? null : <ProjectAvatar fallback="O" class="!size-4" />}
|
|
648
|
+
{label}
|
|
649
|
+
</button>
|
|
650
|
+
<IconButton
|
|
651
|
+
size="small"
|
|
652
|
+
variant="ghost-muted"
|
|
653
|
+
icon={<Icon name={label === "Projects" ? "folder-add-left" : "outline-dots"} />}
|
|
654
|
+
aria-label={label === "Projects" ? "Add project" : "More options"}
|
|
655
|
+
/>
|
|
656
|
+
</div>
|
|
657
|
+
),
|
|
658
|
+
}),
|
|
659
|
+
),
|
|
660
|
+
{
|
|
661
|
+
name: "Recent sessions: keyboard focus looks like hover",
|
|
662
|
+
failure: "Inconsistent",
|
|
663
|
+
target: '[data-component="home-session-row"]',
|
|
664
|
+
keys: "In Home, Tab from New session into Recent sessions. Click the example or move the pointer over it to compare.",
|
|
665
|
+
sizing: "Each session is its own full-width Tab stop.",
|
|
666
|
+
source: "app/src/home/sessions/view.tsx, view.css",
|
|
667
|
+
fix: "Use a rounded 2px inset ring for the session button. Hover keeps its background; search results, row actions and inline rename keep their existing focus styles.",
|
|
668
|
+
render: () => (
|
|
669
|
+
<div class="w-[360px] max-w-full overflow-hidden">
|
|
670
|
+
<button
|
|
671
|
+
type="button"
|
|
672
|
+
data-component="home-session-row"
|
|
673
|
+
class="flex h-10 w-full items-center gap-1.5 rounded-[6px] px-3 text-start text-13-medium hover:bg-v2-overlay-simple-overlay-hover"
|
|
674
|
+
>
|
|
675
|
+
<ProjectAvatar fallback="O" variant="blue" class="!size-4" />
|
|
676
|
+
<span>Test message</span>
|
|
677
|
+
<span class="text-13-regular text-v2-text-text-muted">opencode</span>
|
|
678
|
+
</button>
|
|
679
|
+
</div>
|
|
680
|
+
),
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
name: "Project row: focus looks like selection",
|
|
684
|
+
failure: "Inconsistent",
|
|
685
|
+
target: '[data-component="home-project-row"]',
|
|
686
|
+
keys: "In Home › Projects, Tab from Add project to a project row.",
|
|
687
|
+
sizing: "The row fills the scrolling list, and its hover actions sit over its trailing edge.",
|
|
688
|
+
source: "app/src/home/projects/view.tsx, view.css",
|
|
689
|
+
fix: "Replace the faint shadow with a 2px inset ring around the selected or unselected row. Paint it above the hover actions without blocking clicks.",
|
|
690
|
+
render: () => (
|
|
691
|
+
<div class="w-[260px] overflow-hidden">
|
|
692
|
+
<div data-home-row data-selected class="relative flex h-7 items-center rounded-[6px]">
|
|
693
|
+
<button
|
|
694
|
+
type="button"
|
|
695
|
+
data-component="home-project-row"
|
|
696
|
+
data-slot="home-project-nav-button"
|
|
697
|
+
class="flex h-7 w-full items-center gap-2 rounded-[6px] px-1.5 text-13-regular"
|
|
698
|
+
>
|
|
699
|
+
<ProjectAvatar fallback="O" variant="blue" class="!size-4" />
|
|
700
|
+
opencode
|
|
701
|
+
</button>
|
|
702
|
+
<div data-slot="home-row-actions" class="absolute end-1 inset-y-0 flex items-center ps-2">
|
|
703
|
+
<IconButton
|
|
704
|
+
size="small"
|
|
705
|
+
variant="ghost-muted"
|
|
706
|
+
icon={<Icon name="outline-dots" />}
|
|
707
|
+
aria-label="More options"
|
|
708
|
+
/>
|
|
709
|
+
</div>
|
|
710
|
+
</div>
|
|
711
|
+
</div>
|
|
712
|
+
),
|
|
713
|
+
},
|
|
714
|
+
...(["Settings", "Help"] as const).map(
|
|
715
|
+
(action): Case => ({
|
|
716
|
+
name: `${action}: barely visible keyboard focus`,
|
|
717
|
+
failure: "Inconsistent",
|
|
718
|
+
target: "button",
|
|
719
|
+
keys: `Tab to ${action} below the Projects list or in the Home footer.`,
|
|
720
|
+
sizing: "The same control is used in the sidebar and the narrower footer.",
|
|
721
|
+
source: "app/src/home/projects/view.tsx, view.css",
|
|
722
|
+
fix: "Replace the faint shadow with the shared 2px keyboard ring, inset so the edges stay visible.",
|
|
723
|
+
render: () => (
|
|
724
|
+
<button
|
|
725
|
+
type="button"
|
|
726
|
+
data-slot="home-project-nav-button"
|
|
727
|
+
class="flex h-7 w-[260px] items-center gap-2 rounded-[6px] px-1.5 text-13-regular text-v2-text-text-faint"
|
|
728
|
+
>
|
|
729
|
+
<Icon name={action === "Settings" ? "settings-gear" : "help"} />
|
|
730
|
+
{action}
|
|
731
|
+
</button>
|
|
732
|
+
),
|
|
733
|
+
}),
|
|
734
|
+
),
|
|
735
|
+
],
|
|
736
|
+
also: [],
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
name: "Browser device toolbar",
|
|
740
|
+
cases: (["width", "height"] as const).map((axis) => ({
|
|
741
|
+
name: `${axis === "width" ? "Side" : "Bottom"} resize grip: the preview clips the keyboard ring`,
|
|
742
|
+
failure: "Clipped",
|
|
743
|
+
target: `[data-axis="${axis}"]`,
|
|
744
|
+
keys: "Enable the browser device toolbar, choose a device size, and Tab to the resize grip.",
|
|
745
|
+
sizing: "The preview clips at its outer edge. Each grip has a 14px hit area.",
|
|
746
|
+
source: "gui-plugins/src/browser/bar.css",
|
|
747
|
+
fix: "Draw the shared 2px ring inset around the rounded hit area so the preview cannot clip it. The grip still resizes the same way.",
|
|
748
|
+
render: () => (
|
|
749
|
+
<div
|
|
750
|
+
data-component="browser-preview"
|
|
751
|
+
data-fixed
|
|
752
|
+
data-resizable
|
|
753
|
+
style={{ "grid-template": "100px / 220px", width: "234px", height: "118px", "box-sizing": "border-box" }}
|
|
754
|
+
>
|
|
755
|
+
<div class="rounded-[6px] bg-v2-background-bg-base" aria-hidden="true" />
|
|
756
|
+
<div
|
|
757
|
+
data-slot="browser-viewport-grip"
|
|
758
|
+
data-axis="width"
|
|
759
|
+
role="separator"
|
|
760
|
+
tabIndex={0}
|
|
761
|
+
aria-label="Resize viewport width"
|
|
762
|
+
aria-orientation="vertical"
|
|
763
|
+
/>
|
|
764
|
+
<div
|
|
765
|
+
data-slot="browser-viewport-grip"
|
|
766
|
+
data-axis="height"
|
|
767
|
+
role="separator"
|
|
768
|
+
tabIndex={0}
|
|
769
|
+
aria-label="Resize viewport height"
|
|
770
|
+
/>
|
|
771
|
+
<div data-slot="browser-viewport-grip" data-axis="corner" aria-hidden="true" />
|
|
772
|
+
</div>
|
|
773
|
+
),
|
|
774
|
+
})),
|
|
775
|
+
also: [],
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
name: "Right panel",
|
|
779
|
+
cases: [
|
|
780
|
+
{
|
|
781
|
+
name: "Files and Review tree: ArrowDown moves focus without a visible cue",
|
|
782
|
+
failure: "Invisible",
|
|
783
|
+
target: '[data-slot="lab-tree-host"]',
|
|
784
|
+
keys: "Tab to a file tree and use the arrow keys. The focus outline follows the row without changing selection.",
|
|
785
|
+
sizing: "The tree rows are full width inside the plugin's shadow root.",
|
|
786
|
+
source: "gui-plugins/src/file/pierre-tree.tsx, tree-focus.css",
|
|
787
|
+
fix: "Use the shared inset ring on the keyboard-focused row, independently of the selected background.",
|
|
788
|
+
render: () => <TreeFocusExample />,
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
name: "Git changes: file-tree toggle covers the start of the ring",
|
|
792
|
+
failure: "Occluded",
|
|
793
|
+
target: '[data-component="select-v2"]',
|
|
794
|
+
keys: "In Review, focus the file-tree toggle and press Tab.",
|
|
795
|
+
sizing: "The toggle ends 2px before the selector, in both the sidebar and the collapsed toolbar.",
|
|
796
|
+
source: "session-ui/src/v2/components/session-review-v2.css",
|
|
797
|
+
fix: "Draw the mode selector's ring inset so the floating toggle cannot cover it.",
|
|
798
|
+
render: () => (
|
|
799
|
+
<div class="h-[100px] w-[340px]">
|
|
800
|
+
<SessionFilePanelV2
|
|
801
|
+
toolbar={false}
|
|
802
|
+
sidebarToggle={<SessionReviewV2SidebarToggle opened onToggle={() => undefined} />}
|
|
803
|
+
sidebar={
|
|
804
|
+
<SessionReviewV2Sidebar
|
|
805
|
+
open
|
|
806
|
+
transition={false}
|
|
807
|
+
filter=""
|
|
808
|
+
onFilterChange={() => undefined}
|
|
809
|
+
title={
|
|
810
|
+
<Select
|
|
811
|
+
options={["Git changes", "Branch changes"]}
|
|
812
|
+
current="Git changes"
|
|
813
|
+
onSelect={() => undefined}
|
|
814
|
+
/>
|
|
815
|
+
}
|
|
816
|
+
/>
|
|
817
|
+
}
|
|
818
|
+
/>
|
|
819
|
+
</div>
|
|
820
|
+
),
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
name: "Tab strip: End puts the last tab under the sticky Add tab",
|
|
824
|
+
failure: "Occluded",
|
|
825
|
+
target: '[data-pane-tab="source-12.ts"]',
|
|
826
|
+
keys: "Click any tab, press Home, then End.",
|
|
827
|
+
sizing: "Side panel 360px wide with 13 tabs open.",
|
|
828
|
+
source:
|
|
829
|
+
"app/src/runtime/plugin/side-region.tsx:333 (sticky +), ui tabs.css:605–621 (strip mask), tabs.css:100 (no ring)",
|
|
830
|
+
fix: 'Kobalte moved focus without scrolling, so End left the tab where it was. The strip now scrolls a keyboard-focused tab into view (tab-strip-scroll.ts), and its scroll-padding-inline, --tab-strip-add plus the 24px fade (tabs.css), keeps it clear of the "+". The ring covers the whole tab, close button included.',
|
|
831
|
+
from: { scroller: '[data-slot="tabs-list"]', edge: "start" },
|
|
832
|
+
render: () => <TabStrip />,
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
name: "Selected panel tab: no visible focus",
|
|
836
|
+
failure: "Invisible",
|
|
837
|
+
target: '[data-pane-tab="changes"]',
|
|
838
|
+
keys: "From any tab, press Home.",
|
|
839
|
+
sizing: "Any panel width.",
|
|
840
|
+
source: "ui/src/navigation/tabs/tabs.css:100–103 (outline: none, box-shadow: none)",
|
|
841
|
+
fix: "The tab draws the 2px ring inset (offset -2px) around its label and close button, since the strip scrolls and would clip a ring outside.",
|
|
842
|
+
from: { scroller: '[data-slot="tabs-list"]', edge: "end" },
|
|
843
|
+
render: () => <TabStrip />,
|
|
844
|
+
},
|
|
845
|
+
],
|
|
846
|
+
also: [
|
|
847
|
+
"Review header at a 164px preview: Previous and Next overlap the line buttons, and Split diff is cut off.",
|
|
848
|
+
"CSV preview at 80px: Copy content overflows the header.",
|
|
849
|
+
"Line comment More options runs past the panel edge at 360px.",
|
|
850
|
+
],
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
name: "Settings",
|
|
854
|
+
cases: [
|
|
855
|
+
{
|
|
856
|
+
name: "Interface layout: selection and focus use the same blue",
|
|
857
|
+
failure: "Inconsistent",
|
|
858
|
+
target: "input",
|
|
859
|
+
keys: "Tab onto the selected Interface layout card.",
|
|
860
|
+
sizing: "The card has a separate selected border and an outset focus ring.",
|
|
861
|
+
source: "app/src/settings/general/interface-mode.css",
|
|
862
|
+
fix: "Selection is a 2px neutral border, a check outside the corner and a faded sketch on the other cards. Blue is only the keyboard ring.",
|
|
863
|
+
render: () => <ModeCards group="interface" />,
|
|
864
|
+
},
|
|
865
|
+
...(["Work account", "Add account"] as const).map(
|
|
866
|
+
(label): Case => ({
|
|
867
|
+
name: `Connect: ${label} has only a background change`,
|
|
868
|
+
failure: "Inconsistent",
|
|
869
|
+
target: "button",
|
|
870
|
+
keys: "Open a provider with saved accounts in Connect and Tab through the accounts and Add account.",
|
|
871
|
+
sizing: "Each button is a separate Tab stop in the scrolling dialog.",
|
|
872
|
+
source: "app/src/providers/connect/dialog.tsx",
|
|
873
|
+
fix: "Show a shared inset ring, rather than reusing the hover background as the only cue.",
|
|
874
|
+
render: () => (
|
|
875
|
+
<button
|
|
876
|
+
type="button"
|
|
877
|
+
class="flex h-8 w-64 items-center rounded-md px-2 text-start focus-visible:-outline-offset-2"
|
|
878
|
+
>
|
|
879
|
+
{label}
|
|
880
|
+
</button>
|
|
881
|
+
),
|
|
882
|
+
}),
|
|
883
|
+
),
|
|
884
|
+
{
|
|
885
|
+
name: "Extensions tab panel: the ring loses both sides",
|
|
886
|
+
failure: "Clipped",
|
|
887
|
+
target: '[role="tabpanel"]',
|
|
888
|
+
keys: "Open Settings › Extensions › MCPs and Tab from the selected tab onto its panel.",
|
|
889
|
+
sizing: "The panel stretches edge to edge inside a clipping tabs root.",
|
|
890
|
+
source: "app/src/settings/settings.css (.settings-subtabs)",
|
|
891
|
+
fix: "Keep the tab panel reachable, including when it has no interactive content. Draw its ring inset, independently of the rings on its children.",
|
|
892
|
+
render: () => (
|
|
893
|
+
<div class="w-[400px] max-w-full">
|
|
894
|
+
<Tabs variant="pill" defaultValue="mcps" class="settings-subtabs">
|
|
895
|
+
<Tabs.List>
|
|
896
|
+
<Tabs.Trigger value="mcps">MCPs</Tabs.Trigger>
|
|
897
|
+
<Tabs.Trigger value="plugins">Plugins</Tabs.Trigger>
|
|
898
|
+
</Tabs.List>
|
|
899
|
+
<Tabs.Content value="mcps">
|
|
900
|
+
<div class="settings-extension-row">
|
|
901
|
+
<span>Available to all projects</span>
|
|
902
|
+
<span class="text-v2-text-text-muted">Manage in opencode.json</span>
|
|
903
|
+
</div>
|
|
904
|
+
</Tabs.Content>
|
|
905
|
+
<Tabs.Content value="plugins">Manage plugins</Tabs.Content>
|
|
906
|
+
</Tabs>
|
|
907
|
+
</div>
|
|
908
|
+
),
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
name: "Connect provider dialog: breadcrumb focus only changes text colour",
|
|
912
|
+
failure: "Inconsistent",
|
|
913
|
+
target: "nav button",
|
|
914
|
+
keys: "Open Connect, choose a provider, then Tab or Shift+Tab to the Connect breadcrumb.",
|
|
915
|
+
sizing: "The breadcrumb is a compact text button, not a full-width row.",
|
|
916
|
+
source: "app/src/providers/connect/dialog.tsx",
|
|
917
|
+
fix: "Both interactive breadcrumbs use the shared outset keyboard ring with a 4px radius. Non-interactive breadcrumb labels remain plain text.",
|
|
918
|
+
render: () => (
|
|
919
|
+
<div data-slot="dialog-header" class="w-[320px] rounded-xl border border-v2-border-border-base p-4">
|
|
920
|
+
<nav aria-label="Provider connection" class="flex items-center gap-1 text-13-regular">
|
|
921
|
+
<button type="button" class="rounded-[4px] text-v2-text-text-faint hover:text-v2-text-text-base">
|
|
922
|
+
Connect
|
|
923
|
+
</button>
|
|
924
|
+
<Icon name="chevron-right" class="text-v2-icon-icon-muted" />
|
|
925
|
+
<span class="text-13-medium">OpenCode Go</span>
|
|
926
|
+
</nav>
|
|
927
|
+
</div>
|
|
928
|
+
),
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
name: "Providers: Show more providers draws a full-width square ring",
|
|
932
|
+
failure: "Inconsistent",
|
|
933
|
+
target: ".settings-providers-view-all",
|
|
934
|
+
keys: "In Settings › Providers, Tab from the last Connect button to Show more providers.",
|
|
935
|
+
sizing: "The section is a column; by default its children stretch across the panel.",
|
|
936
|
+
source: "app/src/settings/settings.css (.settings-providers-view-all)",
|
|
937
|
+
fix: "Size the text action to its label, give it a 4px corner radius, and use the shared 2px outset ring.",
|
|
938
|
+
render: () => (
|
|
939
|
+
<div class="settings-section" style={{ width: "min(100%, 560px)" }}>
|
|
940
|
+
<h3 class="settings-section-title">Popular providers</h3>
|
|
941
|
+
<SettingsList>
|
|
942
|
+
<SettingsRow title="OpenAI" description="Connect an account to use OpenAI models">
|
|
943
|
+
<Button size="small">Connect</Button>
|
|
944
|
+
</SettingsRow>
|
|
945
|
+
</SettingsList>
|
|
946
|
+
<button type="button" class="settings-providers-view-all">
|
|
947
|
+
Show more providers
|
|
948
|
+
</button>
|
|
949
|
+
</div>
|
|
950
|
+
),
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
name: "Models: Shift+Tab hides the focused switch under the sticky header",
|
|
954
|
+
failure: "Occluded",
|
|
955
|
+
target: '[data-component="settings-row"]:nth-child(5) [data-slot="switch-input"]',
|
|
956
|
+
keys: "Click the last row's name, then press Shift+Tab until a row scrolls up.",
|
|
957
|
+
sizing: "Audited at 1280×800 and 390×680. The panel has no scroll padding for its sticky header.",
|
|
958
|
+
source: "app/src/settings/settings.css:587–611 (.settings-panel, sticky .settings-tab-header)",
|
|
959
|
+
fix: "tab-header.ts writes the header's height to --settings-tab-header-height; focusable controls in .settings-tab-body take it, plus the 24px fade, as their top scroll-margin.",
|
|
960
|
+
from: { scroller: ".settings-panel", edge: "end" },
|
|
961
|
+
render: () => <ModelsPanel />,
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
name: "Extensions: Check for updates and How to add skills cut at the right",
|
|
965
|
+
failure: "Clipped",
|
|
966
|
+
target: ".settings-extension-link",
|
|
967
|
+
keys: "Open Extensions › Skills (or Plugins), press Tab until the link (or Check for updates) is focused.",
|
|
968
|
+
sizing: "Any width. Both sit flush with the sub-tab panel's end edge.",
|
|
969
|
+
source:
|
|
970
|
+
"ui tabs-current.css (tabs-v2 root overflow: clip), settings.css (.settings-subtabs panel overflow: auto), extensions.tsx",
|
|
971
|
+
fix: "The tabs root clips with a 5px overflow-clip-margin, and the scrolling sub-tab panel pads its sides by 5px and takes it back with a negative margin, so a ring at either edge shows.",
|
|
972
|
+
render: () => (
|
|
973
|
+
<div style={{ width: "560px" }}>
|
|
974
|
+
<Tabs variant="pill" defaultValue="skills" class="settings-subtabs">
|
|
975
|
+
<Tabs.List>
|
|
976
|
+
<Tabs.Trigger value="skills">Skills</Tabs.Trigger>
|
|
977
|
+
</Tabs.List>
|
|
978
|
+
<Tabs.Content value="skills">
|
|
979
|
+
<div class="flex items-center justify-between">
|
|
980
|
+
<span class="text-13-medium">Available to all projects</span>
|
|
981
|
+
<a class="settings-extension-link text-13-regular underline" href="#review-focus-visibility">
|
|
982
|
+
How to add skills
|
|
983
|
+
</a>
|
|
984
|
+
</div>
|
|
985
|
+
</Tabs.Content>
|
|
986
|
+
</Tabs>
|
|
987
|
+
</div>
|
|
988
|
+
),
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
name: "Worktrees: Delete ring cut at the top and right by its row",
|
|
992
|
+
failure: "Clipped",
|
|
993
|
+
target: '[aria-label="Delete “opencode-dialogs”?"]',
|
|
994
|
+
keys: "Click the path, press Tab.",
|
|
995
|
+
sizing: "Audited at 1280×800. Delete is the row's top-right control.",
|
|
996
|
+
source: "app/src/settings/settings.css:1919–27 (row overflow: hidden), workspaces.tsx:543–553",
|
|
997
|
+
fix: "The row clips with overflow: clip and a 5px overflow-clip-margin instead of overflow: hidden, so the removal animation still clips and the ring shows.",
|
|
998
|
+
render: () => (
|
|
999
|
+
<div class="settings-tab-body settings-workspaces" style={{ width: "560px", padding: "0" }}>
|
|
1000
|
+
<div class="settings-workspaces-inventory">
|
|
1001
|
+
<SettingsList>
|
|
1002
|
+
<div class="settings-workspaces-row-motion">
|
|
1003
|
+
<div class="settings-workspaces-row">
|
|
1004
|
+
<div class="settings-workspaces-row-header">
|
|
1005
|
+
<div class="settings-workspaces-copy">
|
|
1006
|
+
<div class="settings-workspaces-main">/Users/alex/work/opencode-dialogs</div>
|
|
1007
|
+
<span class="settings-workspaces-meta">0 sessions in opencode</span>
|
|
1008
|
+
</div>
|
|
1009
|
+
<div class="settings-workspaces-row-actions">
|
|
1010
|
+
<IconButton
|
|
1011
|
+
type="button"
|
|
1012
|
+
variant="ghost-muted"
|
|
1013
|
+
size="small"
|
|
1014
|
+
aria-label="Delete “opencode-dialogs”?"
|
|
1015
|
+
icon={<Icon name="trash" size="small" />}
|
|
1016
|
+
/>
|
|
1017
|
+
</div>
|
|
1018
|
+
</div>
|
|
1019
|
+
</div>
|
|
1020
|
+
</div>
|
|
1021
|
+
</SettingsList>
|
|
1022
|
+
</div>
|
|
1023
|
+
</div>
|
|
1024
|
+
),
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
name: "Language: inline select shows no focus",
|
|
1028
|
+
failure: "Invisible",
|
|
1029
|
+
target: '[data-component="select-v2"]',
|
|
1030
|
+
keys: "Click the row title, press Tab.",
|
|
1031
|
+
sizing: "Any width. Inline appearance sets outline: none, and focus only recolours that outline.",
|
|
1032
|
+
source: "ui/src/forms/select/select.css:100–103, 193–204",
|
|
1033
|
+
fix: "Inline Select draws the default ring immediately on keyboard focus, with no outline at rest. A transparent rest outline would show in forced colours. Bordered selects keep their normal field border.",
|
|
1034
|
+
render: () => (
|
|
1035
|
+
<div style={{ width: "560px" }}>
|
|
1036
|
+
<SettingsList>
|
|
1037
|
+
<SettingsRow title="Language" description="Change the display language">
|
|
1038
|
+
<Select
|
|
1039
|
+
options={["English", "Deutsch", "Français"]}
|
|
1040
|
+
current="English"
|
|
1041
|
+
placement="bottom-end"
|
|
1042
|
+
gutter={6}
|
|
1043
|
+
onSelect={() => undefined}
|
|
1044
|
+
/>
|
|
1045
|
+
</SettingsRow>
|
|
1046
|
+
</SettingsList>
|
|
1047
|
+
</div>
|
|
1048
|
+
),
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
name: "Project colour: the selected swatch looks the same focused",
|
|
1052
|
+
failure: "Invisible",
|
|
1053
|
+
target: '[aria-label="Cyan"]',
|
|
1054
|
+
keys: "Click the row title, press Tab three times.",
|
|
1055
|
+
sizing: "Any width. Focus and selection share one ring.",
|
|
1056
|
+
source: "app/src/settings/workspaces/project.css:328–332",
|
|
1057
|
+
fix: "Focus is the default outline and selection a neutral ring in --v2-border-border-inverse, so the two read apart.",
|
|
1058
|
+
render: () => (
|
|
1059
|
+
<div style={{ width: "560px" }}>
|
|
1060
|
+
<SettingsList>
|
|
1061
|
+
<SettingsRow title="Colour" description="The project's avatar colour">
|
|
1062
|
+
<div class="project-settings-colors">
|
|
1063
|
+
<For each={["orange", "yellow", "cyan"] as const}>
|
|
1064
|
+
{(color) => (
|
|
1065
|
+
<button
|
|
1066
|
+
type="button"
|
|
1067
|
+
aria-label={color[0].toUpperCase() + color.slice(1)}
|
|
1068
|
+
aria-pressed={color === "cyan"}
|
|
1069
|
+
class="project-settings-color"
|
|
1070
|
+
classList={{ "project-settings-color--selected": color === "cyan" }}
|
|
1071
|
+
>
|
|
1072
|
+
<ProjectAvatar
|
|
1073
|
+
fallback=""
|
|
1074
|
+
variant={color}
|
|
1075
|
+
class="!size-5 [&_[data-slot=project-avatar-surface]]:!rounded-[6px]"
|
|
1076
|
+
/>
|
|
1077
|
+
<Show when={color === "cyan"}>
|
|
1078
|
+
<Icon name="check" size="small" class="project-settings-color-check" />
|
|
1079
|
+
</Show>
|
|
1080
|
+
</button>
|
|
1081
|
+
)}
|
|
1082
|
+
</For>
|
|
1083
|
+
</div>
|
|
1084
|
+
</SettingsRow>
|
|
1085
|
+
</SettingsList>
|
|
1086
|
+
</div>
|
|
1087
|
+
),
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
name: "Navigation and sub-tabs: square ring on a rounded tab",
|
|
1091
|
+
failure: "Inconsistent",
|
|
1092
|
+
target: '[data-slot="tabs-v2-trigger"]',
|
|
1093
|
+
keys: "Click the page title, press Shift+Tab to the navigation (or Tab to a sub-tab), then the arrow keys.",
|
|
1094
|
+
sizing: "Any width.",
|
|
1095
|
+
source: "ui/src/navigation/tabs/tabs-current.css",
|
|
1096
|
+
fix: "The trigger inside the tab has no radius, so its ring was square. The ring now goes on the tab's wrapper (:has(trigger:focus-visible)), inset 2px, and follows the tab's radius. It also shows only for the keyboard (:focus-visible), not after a click.",
|
|
1097
|
+
render: () => (
|
|
1098
|
+
<div style={{ width: "360px" }}>
|
|
1099
|
+
<Tabs variant="pill" defaultValue="mcps" class="settings-subtabs">
|
|
1100
|
+
<Tabs.List>
|
|
1101
|
+
<Tabs.Trigger value="mcps">MCPs</Tabs.Trigger>
|
|
1102
|
+
<Tabs.Trigger value="plugins">Plugins</Tabs.Trigger>
|
|
1103
|
+
<Tabs.Trigger value="skills">Skills</Tabs.Trigger>
|
|
1104
|
+
</Tabs.List>
|
|
1105
|
+
</Tabs>
|
|
1106
|
+
</div>
|
|
1107
|
+
),
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
name: "Timeline › Advanced: background only",
|
|
1111
|
+
failure: "Inconsistent",
|
|
1112
|
+
target: '[data-slot="collapsible-trigger"]',
|
|
1113
|
+
keys: "Open Settings › Timeline, Tab to Advanced.",
|
|
1114
|
+
sizing: "Any width.",
|
|
1115
|
+
source: "ui/src/components/collapsible.css",
|
|
1116
|
+
fix: "A standalone disclosure, not a list row, so it takes the default ring (2px offset) with a 4px radius instead of the hover background.",
|
|
1117
|
+
render: () => (
|
|
1118
|
+
<div style={{ width: "360px" }}>
|
|
1119
|
+
<Collapsible variant="ghost">
|
|
1120
|
+
<Collapsible.Trigger>
|
|
1121
|
+
<span>Advanced</span>
|
|
1122
|
+
<Collapsible.Arrow />
|
|
1123
|
+
</Collapsible.Trigger>
|
|
1124
|
+
<Collapsible.Content>Content</Collapsible.Content>
|
|
1125
|
+
</Collapsible>
|
|
1126
|
+
</div>
|
|
1127
|
+
),
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
name: "Projects: thin square ring inside the row's highlight",
|
|
1131
|
+
failure: "Inconsistent",
|
|
1132
|
+
target: ".settings-project-card > button",
|
|
1133
|
+
keys: "Open Settings › Projects, press Tab to a project row.",
|
|
1134
|
+
sizing: "Any width.",
|
|
1135
|
+
source: "app/src/settings/settings.css, settings/workspaces/project-row.tsx",
|
|
1136
|
+
fix: "The row's inner button drew a 1px inset box-shadow with square corners inside the row's highlight. The ring is now on the whole row (.settings-project-card:has(> button:first-child:focus-visible)), 2px, inset 2px, with its radius. The options button keeps its own ring.",
|
|
1137
|
+
render: () => (
|
|
1138
|
+
<div style={{ width: "360px" }}>
|
|
1139
|
+
<div role="listitem" data-component="settings-project-card" class="settings-project-card">
|
|
1140
|
+
<button
|
|
1141
|
+
type="button"
|
|
1142
|
+
class="flex h-full min-w-0 flex-1 items-center gap-2 rounded-[4px] bg-transparent text-start focus-visible:outline-none"
|
|
1143
|
+
>
|
|
1144
|
+
<ProjectAvatar fallback="O" variant="blue" class="!size-5" />
|
|
1145
|
+
<span class="text-[13px] font-[530]">opencode</span>
|
|
1146
|
+
</button>
|
|
1147
|
+
</div>
|
|
1148
|
+
</div>
|
|
1149
|
+
),
|
|
1150
|
+
},
|
|
1151
|
+
],
|
|
1152
|
+
also: [
|
|
1153
|
+
"Fixed: the sticky header's scroll margin (Models, above) now applies on every Settings page, not just Models (navigation.tsx).",
|
|
1154
|
+
"Section headings and Timeline detail controls lose their bottom stroke at the scrollport edge.",
|
|
1155
|
+
"Fixed: the selected Settings navigation tab looked the same focused and blurred. The tab ring above covers it.",
|
|
1156
|
+
],
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
name: "Consolidated navigation and other dev changes",
|
|
1160
|
+
cases: [
|
|
1161
|
+
{
|
|
1162
|
+
name: "Sidebar actions: New session, Sessions and Settings draw an outset ring",
|
|
1163
|
+
failure: "Inconsistent",
|
|
1164
|
+
target: '[data-action="vertical-tabs-home"]',
|
|
1165
|
+
keys: "With Consolidated navigation, Tab from Toggle sidebar to Sessions.",
|
|
1166
|
+
sizing: "Full-width 28px rows; the outset ring ran 2px past the row into the sidebar's padding.",
|
|
1167
|
+
source: "app/src/shell/titlebar/titlebar.tsx (SidebarAction), tab-nav.css",
|
|
1168
|
+
fix: "[data-titlebar-tab-action] rows draw the shared ring inset (-2px), as the session tabs below them do. That covers the sidebar actions, the recently closed list and project session rows.",
|
|
1169
|
+
render: () => (
|
|
1170
|
+
<div class="flex w-[240px] flex-col gap-[3px] bg-v2-background-bg-deep p-2">
|
|
1171
|
+
<For
|
|
1172
|
+
each={
|
|
1173
|
+
[
|
|
1174
|
+
["vertical-tabs-new", "edit", "New session"],
|
|
1175
|
+
["vertical-tabs-home", "sessions-stack", "Sessions"],
|
|
1176
|
+
["vertical-tabs-settings", "settings-gear", "Settings"],
|
|
1177
|
+
] as const
|
|
1178
|
+
}
|
|
1179
|
+
>
|
|
1180
|
+
{([action, icon, label]) => (
|
|
1181
|
+
<button
|
|
1182
|
+
type="button"
|
|
1183
|
+
data-titlebar-tab-action
|
|
1184
|
+
data-action={action}
|
|
1185
|
+
class="group flex h-7 w-full items-center gap-2 rounded-[6px] px-2 text-[13px] leading-[var(--line-height-compact)] text-v2-text-text-faint hover:text-v2-text-text-base"
|
|
1186
|
+
>
|
|
1187
|
+
<Icon name={icon} class="shrink-0" />
|
|
1188
|
+
<span class="min-w-0 truncate">{label}</span>
|
|
1189
|
+
</button>
|
|
1190
|
+
)}
|
|
1191
|
+
</For>
|
|
1192
|
+
</div>
|
|
1193
|
+
),
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
name: "Toggle sidebar: the ring loses 1px on the right",
|
|
1197
|
+
failure: "Clipped",
|
|
1198
|
+
target: '[aria-label="Toggle sidebar"]',
|
|
1199
|
+
keys: "Tab from New session to Toggle sidebar in the sidebar header.",
|
|
1200
|
+
sizing: "The 32px button sits flush with the sidebar's end edge, which clips.",
|
|
1201
|
+
source: "app/src/shell/sidebar-toggle.tsx",
|
|
1202
|
+
fix: "The toggle draws the shared ring inset (-2px), wherever it sits.",
|
|
1203
|
+
render: () => (
|
|
1204
|
+
<div class="flex h-9 w-[240px] items-center justify-end overflow-hidden bg-v2-background-bg-deep">
|
|
1205
|
+
<IconButton
|
|
1206
|
+
variant="ghost-muted"
|
|
1207
|
+
size="large"
|
|
1208
|
+
class="shrink-0 focus-visible:-outline-offset-2"
|
|
1209
|
+
aria-label="Toggle sidebar"
|
|
1210
|
+
icon={<Icon name="layout-left-full" />}
|
|
1211
|
+
/>
|
|
1212
|
+
</div>
|
|
1213
|
+
),
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
name: "Recent and Inbox Show more: a full-width button with an outset ring cut at both sides",
|
|
1217
|
+
failure: "Clipped",
|
|
1218
|
+
target: '[data-component="button-v2"]',
|
|
1219
|
+
keys: "Tab past the last Recent row to Show more.",
|
|
1220
|
+
sizing: "w-full in the sidebar's scroller; the ring reached 4px past each side.",
|
|
1221
|
+
source: "app/src/shell/titlebar/recent-sessions.tsx, inbox.tsx",
|
|
1222
|
+
fix: "Show more, Show less and Archived draw the shared ring inset (-2px).",
|
|
1223
|
+
render: () => (
|
|
1224
|
+
<div class="w-[240px] overflow-y-auto">
|
|
1225
|
+
<Button
|
|
1226
|
+
variant="ghost-muted"
|
|
1227
|
+
size="normal"
|
|
1228
|
+
class="w-full justify-start px-2 focus-visible:-outline-offset-2"
|
|
1229
|
+
>
|
|
1230
|
+
Show more
|
|
1231
|
+
</Button>
|
|
1232
|
+
</div>
|
|
1233
|
+
),
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
name: "Inbox rows and headings: keyboard focus only changes the background",
|
|
1237
|
+
failure: "Inconsistent",
|
|
1238
|
+
target: '[data-slot="sidebar-inbox-item"]',
|
|
1239
|
+
keys: "With the Inbox layout, Tab into the list and move with the arrow keys.",
|
|
1240
|
+
sizing: "Roving focus: one row is the Tab stop, arrows move between rows.",
|
|
1241
|
+
source: "app/src/shell/titlebar/inbox.tsx",
|
|
1242
|
+
fix: "Roving focus shows a ring on the focused row. Rows and section headings take the shared ring inset (-2px); the selected row keeps its pressed background, so selection stays distinct.",
|
|
1243
|
+
render: () => (
|
|
1244
|
+
<div class="flex w-[260px] flex-col gap-1">
|
|
1245
|
+
<button
|
|
1246
|
+
type="button"
|
|
1247
|
+
aria-expanded="true"
|
|
1248
|
+
class="flex h-6 w-full items-center rounded-[6px] px-2 text-start text-[13px] leading-4 font-medium text-v2-text-text-muted focus-visible:-outline-offset-2"
|
|
1249
|
+
>
|
|
1250
|
+
Needs attention
|
|
1251
|
+
</button>
|
|
1252
|
+
<button
|
|
1253
|
+
type="button"
|
|
1254
|
+
data-slot="sidebar-inbox-item"
|
|
1255
|
+
class="flex h-[54px] w-full flex-col gap-1.5 rounded-[6px] p-2 text-start text-13-regular hover:bg-v2-overlay-simple-overlay-hover focus-visible:-outline-offset-2"
|
|
1256
|
+
>
|
|
1257
|
+
Refactor the session store
|
|
1258
|
+
</button>
|
|
1259
|
+
</div>
|
|
1260
|
+
),
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
name: "Tab groups: the header, colour swatches and menu draw no ring",
|
|
1264
|
+
failure: "Invisible",
|
|
1265
|
+
target: "[data-tab-group-header] button",
|
|
1266
|
+
keys: "With tab groups on, Tab to a group's header, then open its menu and Tab to the colours.",
|
|
1267
|
+
sizing: "The header fills its row; the swatches sit in a menu; the menu trigger is 20px.",
|
|
1268
|
+
source: "app/src/shell/titlebar/tab-groups-ui.tsx",
|
|
1269
|
+
fix: "All three suppressed the outline. The header and its menu trigger take the shared ring inset (-2px); swatches take the default ring, over the selected swatch's neutral ring.",
|
|
1270
|
+
render: () => (
|
|
1271
|
+
<div data-tab-group-header class="flex h-7 w-[240px] items-center gap-1 px-1">
|
|
1272
|
+
<button
|
|
1273
|
+
type="button"
|
|
1274
|
+
aria-expanded="true"
|
|
1275
|
+
class="flex h-full min-w-0 flex-1 items-center gap-1.5 rounded-[6px] px-1 text-start text-13-medium focus-visible:-outline-offset-2"
|
|
1276
|
+
>
|
|
1277
|
+
Release
|
|
1278
|
+
</button>
|
|
1279
|
+
<button
|
|
1280
|
+
type="button"
|
|
1281
|
+
aria-label="Group options"
|
|
1282
|
+
class="my-auto flex size-5 shrink-0 items-center justify-center rounded-[4px] text-v2-icon-icon-muted focus-visible:-outline-offset-2"
|
|
1283
|
+
>
|
|
1284
|
+
<Icon name="sliders" />
|
|
1285
|
+
</button>
|
|
1286
|
+
</div>
|
|
1287
|
+
),
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
name: "Mobile tabs drawer: New session, Home, Settings and Help only change the background",
|
|
1291
|
+
failure: "Inconsistent",
|
|
1292
|
+
target: '[data-action="mobile-tabs-new-session"]',
|
|
1293
|
+
keys: "Below the mobile breakpoint, open the tabs drawer and Tab past the tabs.",
|
|
1294
|
+
sizing: "Full-width rows in the drawer.",
|
|
1295
|
+
source: "app/src/shell/titlebar/titlebar.tsx",
|
|
1296
|
+
fix: "The rows take the shared ring inset (-2px); hover keeps its background.",
|
|
1297
|
+
render: () => (
|
|
1298
|
+
<button
|
|
1299
|
+
type="button"
|
|
1300
|
+
data-action="mobile-tabs-new-session"
|
|
1301
|
+
class="flex h-7 w-[260px] items-center gap-2 rounded-[6px] px-2 text-[13px] leading-4 hover:bg-v2-background-bg-layer-02 focus-visible:-outline-offset-2"
|
|
1302
|
+
>
|
|
1303
|
+
<Icon name="plus" />
|
|
1304
|
+
New session
|
|
1305
|
+
</button>
|
|
1306
|
+
),
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
name: "Model picker and MCP error: rows and Back only change the background",
|
|
1310
|
+
failure: "Inconsistent",
|
|
1311
|
+
target: '[data-component="settings-row"]',
|
|
1312
|
+
keys: "Open the model picker and Tab into the list; or open an MCP's error and Tab to Back.",
|
|
1313
|
+
sizing: "Full-width catalog rows; a 20px back button in the dialog header.",
|
|
1314
|
+
source: "app/src/providers/models/select-dialog.tsx, providers/connect/mcp-dialog.tsx",
|
|
1315
|
+
fix: "Rows that are Tab stops take the shared ring inset (-2px); the arrow-key highlight stays a background. Back takes the default ring.",
|
|
1316
|
+
render: () => (
|
|
1317
|
+
<div class="w-[360px]">
|
|
1318
|
+
<SettingsList variant="catalog">
|
|
1319
|
+
<button
|
|
1320
|
+
type="button"
|
|
1321
|
+
data-component="settings-row"
|
|
1322
|
+
class="w-full px-4 text-start hover:bg-v2-overlay-simple-overlay-hover focus-visible:-outline-offset-2"
|
|
1323
|
+
>
|
|
1324
|
+
<div data-slot="settings-row-copy">
|
|
1325
|
+
<div data-slot="settings-row-title">Claude Sonnet 4.5</div>
|
|
1326
|
+
</div>
|
|
1327
|
+
</button>
|
|
1328
|
+
</SettingsList>
|
|
1329
|
+
</div>
|
|
1330
|
+
),
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
name: "Pinned group: keyboard focus only changes the background",
|
|
1334
|
+
failure: "Inconsistent",
|
|
1335
|
+
target: '[data-slot="pinned-group-trigger"]',
|
|
1336
|
+
keys: "With Consolidated navigation, pin sessions into a group, then Tab to the group.",
|
|
1337
|
+
sizing: "A 28px square in the clipped titlebar row; a full-width row in side tabs.",
|
|
1338
|
+
source: "app/src/shell/titlebar/pinned-area.tsx, pinned-area.css",
|
|
1339
|
+
fix: "The group takes the shared ring inset (-2px), like the pinned tabs beside it, and sits above the group's outline so it covers none of the ring.",
|
|
1340
|
+
render: () => (
|
|
1341
|
+
<div data-component="pinned-group" data-orientation="horizontal" class="relative flex items-center gap-1 p-1">
|
|
1342
|
+
<button
|
|
1343
|
+
type="button"
|
|
1344
|
+
data-slot="pinned-group-trigger"
|
|
1345
|
+
aria-label="Release"
|
|
1346
|
+
class="flex size-7 shrink-0 items-center justify-center rounded-[6px] hover:bg-v2-overlay-simple-overlay-hover focus-visible:-outline-offset-2"
|
|
1347
|
+
>
|
|
1348
|
+
<span class="size-3 rounded-[3px] bg-v2-background-bg-accent" />
|
|
1349
|
+
</button>
|
|
1350
|
+
</div>
|
|
1351
|
+
),
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
name: "Pinned group menu: Escape drops focus on the page",
|
|
1355
|
+
failure: "Lost",
|
|
1356
|
+
target: '[data-slot="pinned-group-trigger"]',
|
|
1357
|
+
keys: "In top tabs, focus a group and press Shift+F10 or right-click it, then Escape.",
|
|
1358
|
+
sizing: "The top-tabs menu's only trigger is a hidden span, so Kobalte had nothing to return to.",
|
|
1359
|
+
source: "app/src/shell/titlebar/pinned-area.tsx",
|
|
1360
|
+
fix: "The menu records how it opened (createOverlayFocus) and returns focus to the control that opened it: the group, or the ⋯ in side tabs.",
|
|
1361
|
+
render: () => (
|
|
1362
|
+
<button
|
|
1363
|
+
type="button"
|
|
1364
|
+
data-slot="pinned-group-trigger"
|
|
1365
|
+
aria-label="Release"
|
|
1366
|
+
class="flex size-7 items-center justify-center rounded-[6px] focus-visible:-outline-offset-2"
|
|
1367
|
+
>
|
|
1368
|
+
<span class="size-3 rounded-[3px] bg-v2-background-bg-accent" />
|
|
1369
|
+
</button>
|
|
1370
|
+
),
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
name: "Recent group heading: keyboard focus only changes the background",
|
|
1374
|
+
failure: "Inconsistent",
|
|
1375
|
+
target: "button[aria-expanded]",
|
|
1376
|
+
keys: "With Recent grouped by date, status or project, Tab to a heading.",
|
|
1377
|
+
sizing: "A full-width heading in the sidebar's scroller.",
|
|
1378
|
+
source: "app/src/shell/titlebar/recent-sessions.tsx",
|
|
1379
|
+
fix: "The heading takes the shared ring inset (-2px).",
|
|
1380
|
+
render: () => (
|
|
1381
|
+
<div class="w-[240px] overflow-y-auto">
|
|
1382
|
+
<button
|
|
1383
|
+
type="button"
|
|
1384
|
+
aria-expanded="true"
|
|
1385
|
+
class="flex h-6 w-full items-center gap-1 rounded-[6px] ps-2 pe-8 text-start text-[13px] leading-4 font-medium text-v2-text-text-muted focus-visible:-outline-offset-2"
|
|
1386
|
+
>
|
|
1387
|
+
Today
|
|
1388
|
+
</button>
|
|
1389
|
+
</div>
|
|
1390
|
+
),
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
name: "Recent view options: the ring loses its top edge",
|
|
1394
|
+
failure: "Clipped",
|
|
1395
|
+
target: '[data-slot="recent-view-trigger"]',
|
|
1396
|
+
keys: "With nothing pinned, Tab to the options button beside the Recent heading.",
|
|
1397
|
+
sizing: "A 20px button centred in a 24px heading at the top of the scroller.",
|
|
1398
|
+
source: "app/src/shell/titlebar/recent-view-menu.tsx",
|
|
1399
|
+
fix: "The trigger draws the shared ring inset (-2px), inside the scroller's edge.",
|
|
1400
|
+
render: () => (
|
|
1401
|
+
<div class="flex h-6 w-[240px] items-center justify-between overflow-y-auto ps-2 pe-1 text-13-medium">
|
|
1402
|
+
Recent
|
|
1403
|
+
<IconButton
|
|
1404
|
+
variant="ghost-muted"
|
|
1405
|
+
size="small"
|
|
1406
|
+
data-slot="recent-view-trigger"
|
|
1407
|
+
class="focus-visible:-outline-offset-2"
|
|
1408
|
+
aria-label="View options"
|
|
1409
|
+
icon={<Icon name="sliders" />}
|
|
1410
|
+
/>
|
|
1411
|
+
</div>
|
|
1412
|
+
),
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
name: "Find previous and next: a 1px ring on an outline that is always there",
|
|
1416
|
+
failure: "Inconsistent",
|
|
1417
|
+
target: "button",
|
|
1418
|
+
keys: "Press ⌘F in a session, then Tab from the field to the arrows.",
|
|
1419
|
+
sizing: "20px buttons inside the compact Find field.",
|
|
1420
|
+
source: "app/src/session/timeline/search-bar.tsx",
|
|
1421
|
+
fix: "No outline at rest; the shared ring inset (-2px) with a 4px radius on keyboard focus, as the close button beside them does.",
|
|
1422
|
+
render: () => (
|
|
1423
|
+
<div class="flex items-center gap-0.5">
|
|
1424
|
+
<For each={["Previous match", "Next match"]}>
|
|
1425
|
+
{(label, index) => (
|
|
1426
|
+
<button
|
|
1427
|
+
type="button"
|
|
1428
|
+
aria-label={label}
|
|
1429
|
+
class="flex size-5 items-center justify-center rounded-[4px] text-v2-icon-icon-muted hover:bg-v2-overlay-simple-overlay-hover focus-visible:-outline-offset-2"
|
|
1430
|
+
>
|
|
1431
|
+
<Icon name="chevron-down" classList={{ "rotate-180": index() === 0 }} />
|
|
1432
|
+
</button>
|
|
1433
|
+
)}
|
|
1434
|
+
</For>
|
|
1435
|
+
</div>
|
|
1436
|
+
),
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
name: "Navigation mode: the selected card looks focused",
|
|
1440
|
+
failure: "Inconsistent",
|
|
1441
|
+
target: "input",
|
|
1442
|
+
keys: "In Settings › General with Consolidated on, look at the Tabs and List cards, then Tab onto one.",
|
|
1443
|
+
sizing: "The selected card had a focus-blue border and a focus-blue inset shadow.",
|
|
1444
|
+
source: "app/src/settings/general/interface-mode.css",
|
|
1445
|
+
fix: "As with the layout cards: a 2px neutral border, a check outside the corner and a faded sketch on the other card. Blue is only the keyboard ring.",
|
|
1446
|
+
render: () => <ModeCards group="navigation" />,
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
name: "Home sessions: Shift+Tab hides the row under the sticky date header",
|
|
1450
|
+
failure: "Occluded",
|
|
1451
|
+
target: '[data-component="home-session-row"]',
|
|
1452
|
+
keys: "Scroll Home down, then Shift+Tab up through the sessions.",
|
|
1453
|
+
sizing:
|
|
1454
|
+
"The sticky search (68, 84 or 108px) and the 28px date header now stay at the top while the list scrolls.",
|
|
1455
|
+
source: "app/src/home/sessions/view.css",
|
|
1456
|
+
fix: "Rows take a top scroll-margin of 100, 116 or 140px, so focus scrolls them clear of both.",
|
|
1457
|
+
render: () => (
|
|
1458
|
+
<button
|
|
1459
|
+
type="button"
|
|
1460
|
+
data-component="home-session-row"
|
|
1461
|
+
class="flex h-10 w-[420px] items-center rounded-[6px] px-3 text-start"
|
|
1462
|
+
>
|
|
1463
|
+
Refactor the session store
|
|
1464
|
+
</button>
|
|
1465
|
+
),
|
|
1466
|
+
},
|
|
1467
|
+
],
|
|
1468
|
+
also: [
|
|
1469
|
+
"Rebased onto origin/dev, which retired the Projects sidebar (sidebar-organized.tsx) and added Consolidated navigation, Home's sticky date headers and Find's previous and next buttons. The Home project scope trigger it added also takes the ring and createOverlayFocus.",
|
|
1470
|
+
],
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
name: "Focus after removal",
|
|
1474
|
+
cases: [
|
|
1475
|
+
{
|
|
1476
|
+
name: "Tab strip: closing a background tab drops focus on the page",
|
|
1477
|
+
failure: "Lost",
|
|
1478
|
+
target: '[aria-label="Close Draft"]',
|
|
1479
|
+
keys: "Tab to a tab's close button and press Enter. Focus moves to the next tab, or the previous one after the last.",
|
|
1480
|
+
sizing: "Titlebar and sidebar tab strips. The right panel's Kobalte tabs select themselves on focus, so rescue stays out of them.",
|
|
1481
|
+
source: "ui/src/context/focus-rescue.tsx, app/src/shell/titlebar/tab-strip.tsx",
|
|
1482
|
+
fix: "Chromium leaves focus on <body> when the focused element goes, with no event. focus-rescue watches what had focus and, inside a [data-focus-scope], moves it to the next item, or the previous one after the last. The tab strips, the sidebar, the titlebar and the right panel are scopes.",
|
|
1483
|
+
render: () => <RemovalTabs />,
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
name: "Settings rows: deleting a row from its confirm dialog drops focus",
|
|
1487
|
+
failure: "Lost",
|
|
1488
|
+
target: '[data-component="settings-row"]:nth-child(2) [data-component="button-v2"]',
|
|
1489
|
+
keys: "Tab to a row's Delete, press Enter, then confirm. Focus moves to the next row's Delete.",
|
|
1490
|
+
sizing:
|
|
1491
|
+
"Worktrees, providers, servers and every SettingsList. The dialog returns focus to the row before the row goes.",
|
|
1492
|
+
source: "ui/src/context/focus-rescue.tsx, app/src/settings/list.tsx, ui/src/context/dialog.tsx",
|
|
1493
|
+
fix: "SettingsList and the settings screen are scopes. When the dialog's opener is gone, focus moves from where that row was.",
|
|
1494
|
+
render: () => <RemovalSettingsRows />,
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
name: "Row menu: removing a row from its own menu drops focus",
|
|
1498
|
+
failure: "Lost",
|
|
1499
|
+
target: '[aria-label="More for Website"]',
|
|
1500
|
+
keys: "Tab to a row's ⋯, press Enter, then choose Remove. Focus moves to the next row's ⋯.",
|
|
1501
|
+
sizing: "Home projects and sessions, servers, sidebar rows, line comments and queued messages.",
|
|
1502
|
+
source: "ui/src/context/focus-rescue.tsx, ui/src/navigation/menu/menu.tsx",
|
|
1503
|
+
fix: "The menu returns focus to its trigger, which went with the row. Focus rescue walks back past the menu's items to that trigger and moves focus from where its row was.",
|
|
1504
|
+
render: () => <RemovalRowMenu />,
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
name: "Composer chips: removing the last chip drops focus",
|
|
1508
|
+
failure: "Lost",
|
|
1509
|
+
target: '[aria-label="Remove notes.md"]',
|
|
1510
|
+
keys: "Tab to a chip's remove button and press Enter. Focus moves to the next chip, and to the prompt after the last.",
|
|
1511
|
+
sizing: "Attachments, context files, comments and quotes above the prompt; the queue and the docks below it.",
|
|
1512
|
+
source:
|
|
1513
|
+
"ui/src/context/focus-rescue.tsx, app/src/composer/editor/editor.tsx, session/composer/session-composer-region.tsx",
|
|
1514
|
+
fix: "The chip row is a scope inside the composer dock's scope. With no chip left, focus widens to the dock and takes the next control after the row: the prompt.",
|
|
1515
|
+
render: () => <RemovalChips />,
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
name: "Toasts: dismissing the only toast drops focus",
|
|
1519
|
+
failure: "Lost",
|
|
1520
|
+
target: '[aria-label="Dismiss"]',
|
|
1521
|
+
keys: "Press Show toast, Tab to the toast's Dismiss and press Enter. Focus returns to Show toast.",
|
|
1522
|
+
sizing: "Any toast with an action or dismiss button.",
|
|
1523
|
+
source: "ui/src/context/focus-rescue.tsx, ui/src/feedback/toast/toast.tsx",
|
|
1524
|
+
fix: "The toast region is a scope. Dismissing a toast moves focus to the next toast; when none is left, focus goes back to what had it before.",
|
|
1525
|
+
render: () => <RemovalToast />,
|
|
1526
|
+
},
|
|
1527
|
+
{
|
|
1528
|
+
name: "Inline rename: Enter ends the edit and drops focus",
|
|
1529
|
+
failure: "Lost",
|
|
1530
|
+
target: '[contenteditable="true"]',
|
|
1531
|
+
keys: "Edit the title, then press Enter. Focus returns to the tab.",
|
|
1532
|
+
sizing: "Titlebar tab titles, terminal tabs.",
|
|
1533
|
+
source: "ui/src/context/focus-rescue.tsx, app/src/shell/titlebar/tab-nav.tsx",
|
|
1534
|
+
fix: "A field that stops being editable stays in place. Focus moves to the control around it, here the tab link.",
|
|
1535
|
+
render: () => <RemovalRename />,
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
name: "Reset: the button disables itself and drops focus",
|
|
1539
|
+
failure: "Lost",
|
|
1540
|
+
target: '[data-action="reset"]',
|
|
1541
|
+
keys: "Tab to Reset and press Enter. Focus moves to the next control.",
|
|
1542
|
+
sizing: "Settings › Shortcuts Reset, and any button disabled by its own action.",
|
|
1543
|
+
source: "ui/src/context/focus-rescue.tsx, app/src/settings/keybinds/keybinds.tsx",
|
|
1544
|
+
fix: "A focused control that becomes disabled counts as gone. Focus moves to the next control in its scope.",
|
|
1545
|
+
render: () => <RemovalReset />,
|
|
1546
|
+
},
|
|
1547
|
+
],
|
|
1548
|
+
also: [
|
|
1549
|
+
"The same rule covers: Home sessions and projects, the sidebar's Inbox, Recent and pinned rows, the queue, the question and permission docks, banners above the composer, line comments, the review panel, the timeline's message menus, Show more buttons, and inline confirms in dialogs.",
|
|
1550
|
+
"An item inside an overlay (a menu item, a dialog button) leaves its overlay to return focus. Focus rescue steps in only when the overlay's opener is gone too, from where that opener was.",
|
|
1551
|
+
],
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
name: "Overlay focus return",
|
|
1555
|
+
cases: [
|
|
1556
|
+
{
|
|
1557
|
+
name: "Select: Escape after a click rings the trigger",
|
|
1558
|
+
failure: "Inconsistent",
|
|
1559
|
+
target: '[data-component="select-v2"]',
|
|
1560
|
+
keys: "Click the select, press Escape: no ring. Tab to it, press ArrowDown, then Escape or Enter: the ring returns.",
|
|
1561
|
+
sizing:
|
|
1562
|
+
"Any select. Kobalte returns focus with a plain focus(), and Chromium rings it because Escape is a key press.",
|
|
1563
|
+
source: "ui/src/forms/select/select.tsx, ui/src/context/overlay-focus.tsx",
|
|
1564
|
+
fix: "The wrapper records how the list opened (createOverlayFocus) and restores the trigger with that ring: none after a pointer open, the ring after a keyboard open, however it closed.",
|
|
1565
|
+
render: () => (
|
|
1566
|
+
<Select options={["English", "Deutsch", "Français"]} current="English" onSelect={() => undefined} />
|
|
1567
|
+
),
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
name: "Context menu: Escape after a right-click rings the row",
|
|
1571
|
+
failure: "Inconsistent",
|
|
1572
|
+
target: "button",
|
|
1573
|
+
keys: "Right-click the row, then press Escape: no ring.",
|
|
1574
|
+
sizing: "Any context menu: titlebar tabs, Home sessions and projects, file trees.",
|
|
1575
|
+
source: "ui/src/navigation/menu/menu.tsx (Menu.Context)",
|
|
1576
|
+
fix: "Context menus returned focus through Kobalte alone. They now record how they opened, as dropdown menus do, and return focus to what had it with that ring.",
|
|
1577
|
+
render: () => (
|
|
1578
|
+
<Menu.Context gutter={6}>
|
|
1579
|
+
<Menu.Context.Trigger>
|
|
1580
|
+
<button
|
|
1581
|
+
type="button"
|
|
1582
|
+
class="flex h-8 w-[260px] items-center rounded-md px-2 text-start text-13-regular hover:bg-v2-overlay-simple-overlay-hover focus-visible:-outline-offset-2"
|
|
1583
|
+
>
|
|
1584
|
+
Refactor the session store
|
|
1585
|
+
</button>
|
|
1586
|
+
</Menu.Context.Trigger>
|
|
1587
|
+
<Menu.Context.Portal>
|
|
1588
|
+
<Menu.Context.Content>
|
|
1589
|
+
<Menu.Item>Rename</Menu.Item>
|
|
1590
|
+
<Menu.Item>Archive</Menu.Item>
|
|
1591
|
+
</Menu.Context.Content>
|
|
1592
|
+
</Menu.Context.Portal>
|
|
1593
|
+
</Menu.Context>
|
|
1594
|
+
),
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
name: "Home project picker: no keyboard ring, then a ring after Escape",
|
|
1598
|
+
failure: "Invisible",
|
|
1599
|
+
target: '[data-component="home-projects-dropdown"]',
|
|
1600
|
+
keys: "On a narrow Home, Tab to the project picker. Click it and press Escape: no ring.",
|
|
1601
|
+
sizing: "Below the Home breakpoint, the picker replaces the projects panel and fills its column.",
|
|
1602
|
+
source: "app/src/home/projects/view.tsx",
|
|
1603
|
+
fix: "The trigger suppressed its outline, so it never showed focus. It now takes the shared ring inset (-2px), and the popover restores it with createOverlayFocus, as Select does.",
|
|
1604
|
+
render: () => <OverlayPopover component="home-projects-dropdown" label="All projects" width="280px" />,
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
name: "Composer todo and plugin pills: Escape after a click rings the pill",
|
|
1608
|
+
failure: "Inconsistent",
|
|
1609
|
+
target: '[data-component="session-todo-pill"]',
|
|
1610
|
+
keys: "Click the todo pill, press Escape: no ring. Tab to it, press Enter, then Escape: the ring returns.",
|
|
1611
|
+
sizing: "The pills in the lane above the composer.",
|
|
1612
|
+
source: "app/src/session/composer/todo-pill.tsx, plugin-pills.tsx",
|
|
1613
|
+
fix: "Both popovers restore their pill with createOverlayFocus instead of Kobalte's plain focus().",
|
|
1614
|
+
render: () => <OverlayPopover component="session-todo-pill" label="2 of 5 done" />,
|
|
1615
|
+
},
|
|
1616
|
+
],
|
|
1617
|
+
also: [
|
|
1618
|
+
"Reviewed, left as is: the Home browse dialog's fallback focus (home/projects/browse.tsx) runs only when the opener has gone; the mobile panel drawer's Back and the location picker's Choose return follow the key or click that closed them.",
|
|
1619
|
+
"The workspace selector (new-session/workspace/selector.tsx) returns focus to the composer.",
|
|
1620
|
+
],
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
name: "Provider dialogs",
|
|
1624
|
+
cases: [
|
|
1625
|
+
{
|
|
1626
|
+
name: "Connect provider list: Tab and arrow keys only change the background",
|
|
1627
|
+
failure: "Inconsistent",
|
|
1628
|
+
target: "[data-provider-id]",
|
|
1629
|
+
keys: "Open Connect, then press ArrowDown in the search field, or Tab into the list.",
|
|
1630
|
+
sizing: "Full-width rows in a scroller with no side padding.",
|
|
1631
|
+
source: "app/src/providers/connect/dialog.tsx (ProviderList)",
|
|
1632
|
+
fix: "The rows picked their background on :focus, so a click drew it too, and drew no ring. They now take the shared ring inset (-2px) on :focus-visible; hover and the arrow-key highlight keep the background.",
|
|
1633
|
+
render: () => (
|
|
1634
|
+
<div class="flex w-[320px] flex-col gap-0.5 overflow-y-auto">
|
|
1635
|
+
<For each={["OpenCode Zen", "Anthropic", "OpenAI"]}>
|
|
1636
|
+
{(name) => (
|
|
1637
|
+
<button
|
|
1638
|
+
type="button"
|
|
1639
|
+
data-provider-id={name}
|
|
1640
|
+
class="flex min-h-8 w-full items-center gap-2 rounded-md py-1.5 ps-2 pe-2 text-left text-[13px] leading-5 tracking-[-0.04px] hover:bg-v2-overlay-simple-overlay-hover focus-visible:-outline-offset-2"
|
|
1641
|
+
>
|
|
1642
|
+
<Icon name="server" class="shrink-0 text-v2-icon-icon-base" />
|
|
1643
|
+
<span class="min-w-0 truncate font-[440] text-v2-text-text-base">{name}</span>
|
|
1644
|
+
</button>
|
|
1645
|
+
)}
|
|
1646
|
+
</For>
|
|
1647
|
+
</div>
|
|
1648
|
+
),
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
name: "Sign-in method: keyboard focus only changes the background",
|
|
1652
|
+
failure: "Inconsistent",
|
|
1653
|
+
target: '[data-action="provider-connect-method"]',
|
|
1654
|
+
keys: "Open Connect, choose a provider with more than one sign-in method, then Tab to a method.",
|
|
1655
|
+
sizing: "Full-width rows.",
|
|
1656
|
+
source: "app/src/providers/connect/dialog.tsx (MethodSelection)",
|
|
1657
|
+
fix: "The shared ring inset (-2px) replaces the background. The chevron still appears on hover and keyboard focus.",
|
|
1658
|
+
render: () => (
|
|
1659
|
+
<div class="flex w-[320px] flex-col">
|
|
1660
|
+
<For each={["Sign in with a browser", "Enter an API key"]}>
|
|
1661
|
+
{(label) => (
|
|
1662
|
+
<button
|
|
1663
|
+
type="button"
|
|
1664
|
+
data-action="provider-connect-method"
|
|
1665
|
+
class="group flex h-8 w-full items-center gap-2 rounded-md px-2 text-left text-[13px] leading-5 tracking-[-0.04px] hover:bg-v2-overlay-simple-overlay-hover focus-visible:-outline-offset-2"
|
|
1666
|
+
>
|
|
1667
|
+
<Icon name="server" class="shrink-0 text-v2-icon-icon-muted" />
|
|
1668
|
+
<span class="min-w-0 flex-1 truncate font-[530] text-v2-text-text-base">{label}</span>
|
|
1669
|
+
<Icon
|
|
1670
|
+
name="chevron-right"
|
|
1671
|
+
class="shrink-0 text-v2-icon-icon-muted opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100"
|
|
1672
|
+
/>
|
|
1673
|
+
</button>
|
|
1674
|
+
)}
|
|
1675
|
+
</For>
|
|
1676
|
+
</div>
|
|
1677
|
+
),
|
|
1678
|
+
},
|
|
1679
|
+
{
|
|
1680
|
+
name: "Paste the redirect URL: focus only underlines the toggle",
|
|
1681
|
+
failure: "Inconsistent",
|
|
1682
|
+
target: "button[aria-expanded]",
|
|
1683
|
+
keys: "Start a browser sign-in, then Tab to the paste toggle under the waiting button.",
|
|
1684
|
+
sizing: "The toggle stretches across the step, between its top and bottom borders.",
|
|
1685
|
+
source: "app/src/providers/connect/dialog.tsx (OAuth paste)",
|
|
1686
|
+
fix: "The underline is gone. The toggle takes a 6px radius and the shared ring inset (-2px), inside the borders.",
|
|
1687
|
+
render: () => (
|
|
1688
|
+
<div class="flex w-[320px] flex-col self-stretch border-y border-v2-border-border-muted text-13-regular">
|
|
1689
|
+
<button
|
|
1690
|
+
type="button"
|
|
1691
|
+
aria-expanded={false}
|
|
1692
|
+
class="flex h-12 items-center gap-1.5 rounded-md text-start font-[440] text-v2-text-text-base focus-visible:-outline-offset-2"
|
|
1693
|
+
>
|
|
1694
|
+
<Icon name="chevron-right" class="shrink-0 text-v2-icon-icon-muted" />
|
|
1695
|
+
Paste the redirect URL instead
|
|
1696
|
+
</button>
|
|
1697
|
+
</div>
|
|
1698
|
+
),
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
name: "Remote server label: focus only changes the text colour",
|
|
1702
|
+
failure: "Inconsistent",
|
|
1703
|
+
target: '[tabindex="0"]',
|
|
1704
|
+
keys: "Connect a provider on a remote server, then Tab to the server label in the dialog header.",
|
|
1705
|
+
sizing: "A compact label that opens a tooltip.",
|
|
1706
|
+
source: "app/src/providers/connect/dialog.tsx (DialogHeader)",
|
|
1707
|
+
fix: "The label uses the shared 2px outset ring with its 4px radius; the text colour no longer changes.",
|
|
1708
|
+
render: () => (
|
|
1709
|
+
<div data-slot="dialog-header" class="flex w-[320px] items-center justify-end p-4">
|
|
1710
|
+
<span
|
|
1711
|
+
tabindex="0"
|
|
1712
|
+
class="me-3 flex min-w-0 shrink-0 items-center gap-1.5 rounded-sm text-[13px] font-[440] leading-5 tracking-[-0.04px] text-v2-text-text-muted"
|
|
1713
|
+
>
|
|
1714
|
+
<Icon name="server" class="shrink-0 text-v2-icon-icon-muted" />
|
|
1715
|
+
<span class="max-w-40 truncate">On devbox</span>
|
|
1716
|
+
</span>
|
|
1717
|
+
</div>
|
|
1718
|
+
),
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
name: "First models after connecting: keyboard focus only changes the background",
|
|
1722
|
+
failure: "Inconsistent",
|
|
1723
|
+
target: ".connected-model-row",
|
|
1724
|
+
keys: "Connect a provider for the first time, then Tab to a model.",
|
|
1725
|
+
sizing: "Full-width radio rows in a list that clips them.",
|
|
1726
|
+
source: "app/src/providers/connect/dialog.tsx (ConnectionModelList), models.css",
|
|
1727
|
+
fix: "The row draws the shared ring inset (-2px) instead of the hover background, inside the list's clip. A checked row keeps its check, so selection stays distinct.",
|
|
1728
|
+
render: () => (
|
|
1729
|
+
<div data-component="first-provider-models" class="flex w-[360px] flex-col px-2">
|
|
1730
|
+
<SettingsList>
|
|
1731
|
+
<For each={["Claude Sonnet 4.5", "Claude Opus 4.6"]}>
|
|
1732
|
+
{(name, index) => (
|
|
1733
|
+
<div class="connected-model-row-shell">
|
|
1734
|
+
<button
|
|
1735
|
+
type="button"
|
|
1736
|
+
role="radio"
|
|
1737
|
+
data-component="settings-row"
|
|
1738
|
+
aria-checked={index() === 0}
|
|
1739
|
+
class="connected-model-row text-start"
|
|
1740
|
+
>
|
|
1741
|
+
<div data-slot="settings-row-copy">
|
|
1742
|
+
<div data-slot="settings-row-title">
|
|
1743
|
+
<span class="min-w-0 truncate">{name}</span>
|
|
1744
|
+
</div>
|
|
1745
|
+
</div>
|
|
1746
|
+
<div data-slot="settings-row-control" class="size-4">
|
|
1747
|
+
<Show when={index() === 0}>
|
|
1748
|
+
<Icon name="check" class="shrink-0 text-v2-icon-icon-base" />
|
|
1749
|
+
</Show>
|
|
1750
|
+
</div>
|
|
1751
|
+
</button>
|
|
1752
|
+
</div>
|
|
1753
|
+
)}
|
|
1754
|
+
</For>
|
|
1755
|
+
</SettingsList>
|
|
1756
|
+
</div>
|
|
1757
|
+
),
|
|
1758
|
+
},
|
|
1759
|
+
{
|
|
1760
|
+
name: "Choose a model, no paid provider: rows and cards only change the background",
|
|
1761
|
+
failure: "Inconsistent",
|
|
1762
|
+
target: "[data-provider-id]",
|
|
1763
|
+
keys: "Without a paid provider, open the model picker, then Tab or press ArrowDown.",
|
|
1764
|
+
sizing: "Full-width model rows, two-column provider cards and a full-width View more row.",
|
|
1765
|
+
source: "app/src/providers/models/unpaid.tsx",
|
|
1766
|
+
fix: "All three picked a background on :focus, so a click drew it too. Rows and View more take the shared ring inset (-2px); the cards have room, so they take it outset (2px). Hover keeps the background.",
|
|
1767
|
+
render: () => (
|
|
1768
|
+
<div class="flex w-[400px] flex-col items-start rounded-lg border-[0.5px] border-v2-border-border-muted bg-v2-background-bg-layer-02 p-2.5">
|
|
1769
|
+
<button
|
|
1770
|
+
type="button"
|
|
1771
|
+
class="flex w-full flex-row items-center gap-1.5 rounded-md px-3 py-2 text-left text-[13px] font-[530] leading-5 text-v2-text-text-base hover:bg-v2-overlay-simple-overlay-hover focus-visible:-outline-offset-2"
|
|
1772
|
+
>
|
|
1773
|
+
Big Pickle
|
|
1774
|
+
</button>
|
|
1775
|
+
<div class="grid w-full grid-cols-2 gap-x-2 gap-y-1.5">
|
|
1776
|
+
<For each={["OpenCode Zen", "OpenCode Go"]}>
|
|
1777
|
+
{(name) => (
|
|
1778
|
+
<button
|
|
1779
|
+
type="button"
|
|
1780
|
+
data-provider-id={name}
|
|
1781
|
+
class="flex min-h-11 w-full flex-row items-start gap-2 rounded-md border-[0.5px] border-v2-border-border-strong bg-v2-background-bg-base px-3 py-2.5 text-left text-[13px] font-[530] leading-5 text-v2-text-text-base hover:bg-v2-background-bg-layer-01"
|
|
1782
|
+
>
|
|
1783
|
+
{name}
|
|
1784
|
+
</button>
|
|
1785
|
+
)}
|
|
1786
|
+
</For>
|
|
1787
|
+
<button
|
|
1788
|
+
type="button"
|
|
1789
|
+
class="col-span-full flex h-8 w-full items-center justify-start rounded-md px-3 text-left text-[13px] font-[440] leading-5 text-v2-text-text-muted hover:bg-v2-overlay-simple-overlay-hover focus-visible:-outline-offset-2"
|
|
1790
|
+
>
|
|
1791
|
+
View more providers
|
|
1792
|
+
</button>
|
|
1793
|
+
</div>
|
|
1794
|
+
</div>
|
|
1795
|
+
),
|
|
1796
|
+
},
|
|
1797
|
+
],
|
|
1798
|
+
also: [],
|
|
1799
|
+
},
|
|
1800
|
+
{
|
|
1801
|
+
name: "Shared controls",
|
|
1802
|
+
cases: [
|
|
1803
|
+
...(["palette-menu-row", "search-list-row"] as const).map(
|
|
1804
|
+
(row): Case => ({
|
|
1805
|
+
name: `${row === "palette-menu-row" ? "Palette" : "Search list"}: active option loses contrast in forced colours`,
|
|
1806
|
+
failure: "Invisible",
|
|
1807
|
+
target: "input",
|
|
1808
|
+
keys: "Enable forced colours and use the arrow keys while focus stays in the search input.",
|
|
1809
|
+
sizing: "Applies to active options rather than independent Tab stops.",
|
|
1810
|
+
source: `app/src/shell/${row === "palette-menu-row" ? "palette-menu" : "search-list"}.css`,
|
|
1811
|
+
fix: "Use system Highlight and HighlightText colours for the active option.",
|
|
1812
|
+
render: () => <SearchHighlightExample kind={row} />,
|
|
1813
|
+
}),
|
|
1814
|
+
),
|
|
1815
|
+
{
|
|
1816
|
+
name: "Focus ring colour: the default did not adapt to the scheme",
|
|
1817
|
+
failure: "Inconsistent",
|
|
1818
|
+
target: "button",
|
|
1819
|
+
keys: "Switch Scheme between Light and Dark. With forced focus off, Tab to the button in each scheme.",
|
|
1820
|
+
sizing: "The ring keeps the same width and offset in both schemes.",
|
|
1821
|
+
source: "ui/src/styles/tokens/theme.css, ui/src/theme/v2/mapping.ts",
|
|
1822
|
+
fix: "Use Blue 500 in light mode and Blue 400 in dark mode. The Settings colour experiment is no longer needed.",
|
|
1823
|
+
render: () => <Button variant="neutral">Focus ring</Button>,
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
name: "Links: the browser's orange, square ring",
|
|
1827
|
+
failure: "Inconsistent",
|
|
1828
|
+
target: "a",
|
|
1829
|
+
keys: "Tab to any link without its own focus rule, such as Help & feedback.",
|
|
1830
|
+
sizing: "Any width. The colour is the system accent, orange with an orange macOS accent.",
|
|
1831
|
+
source: "ui/src/styles/base.css",
|
|
1832
|
+
fix: "base.css makes the shared ring the default for every :focus-visible element, so nothing falls back to the browser's, and gives links a 4px radius like the other rings.",
|
|
1833
|
+
render: () => (
|
|
1834
|
+
<a
|
|
1835
|
+
href="#review-focus-visibility"
|
|
1836
|
+
class="inline-flex items-center gap-1.5 text-13-regular text-v2-text-text-muted underline"
|
|
1837
|
+
>
|
|
1838
|
+
Help & feedback
|
|
1839
|
+
<Icon name="arrow-up-right" size="small" />
|
|
1840
|
+
</a>
|
|
1841
|
+
),
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
name: "Switch: a black ring flashes as focus arrives",
|
|
1845
|
+
failure: "Inconsistent",
|
|
1846
|
+
target: '[data-slot="switch-input"]',
|
|
1847
|
+
keys: "Tab onto a switch and watch the ring appear.",
|
|
1848
|
+
sizing: "Any width. Tab with forced colours enabled to check that the unfocused switch has no ring.",
|
|
1849
|
+
source: "ui/src/forms/switch/switch.css",
|
|
1850
|
+
fix: "Draw the full ring immediately on keyboard focus, with no outline at rest. In forced colours, a system-colour border keeps the track and thumb visible.",
|
|
1851
|
+
render: () => <Switch defaultChecked>Compact switch</Switch>,
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
name: "Radio: forced colours show a ring before focus",
|
|
1855
|
+
failure: "Inconsistent",
|
|
1856
|
+
target: '[data-slot="radio-v2-item-input"]',
|
|
1857
|
+
keys: "Tab to the selected radio, then use an arrow key to move to the next radio.",
|
|
1858
|
+
sizing:
|
|
1859
|
+
"Reproduces in Chromium with forced colours enabled. The regular radio border is separate from its ring.",
|
|
1860
|
+
source: "ui/src/forms/radio/radio.css",
|
|
1861
|
+
fix: "Remove the transparent rest outline and show the focus ring immediately. A system-colour border and selected dot keep the radio visible in forced colours.",
|
|
1862
|
+
render: () => (
|
|
1863
|
+
<RadioGroup label="Output format" name="focus-visibility-radio" defaultValue="text">
|
|
1864
|
+
<RadioItem value="text" label="Text" />
|
|
1865
|
+
<RadioItem value="markdown" label="Markdown" />
|
|
1866
|
+
</RadioGroup>
|
|
1867
|
+
),
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
name: "Standard checkbox and switch: blue border and soft shadow",
|
|
1871
|
+
failure: "Inconsistent",
|
|
1872
|
+
target: '[data-slot="checkbox-checkbox-input"]',
|
|
1873
|
+
keys: "Tab onto a standard (legacy) checkbox or switch.",
|
|
1874
|
+
sizing: "Any width.",
|
|
1875
|
+
source: "ui/src/forms/checkbox/checkbox.css, switch/switch.css",
|
|
1876
|
+
fix: "Was a blue border with the --shadow-xs-border-focus box-shadow. Now the shared 2px outline at a 2px offset.",
|
|
1877
|
+
render: () => <Checkbox defaultChecked>Standard checkbox</Checkbox>,
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
name: "Segmented control: ring runs into the next item",
|
|
1881
|
+
failure: "Clipped",
|
|
1882
|
+
target: '[data-slot="segmented-control-v2-item"]',
|
|
1883
|
+
keys: "Tab onto a segmented control.",
|
|
1884
|
+
sizing: "Any width. Items sit edge to edge in a 28px track.",
|
|
1885
|
+
source: "ui/src/navigation/segmented-control/segmented-control.css",
|
|
1886
|
+
fix: "Was 2px at a 1px offset, over the neighbouring item and the track. Now inset (-2px), inside the item.",
|
|
1887
|
+
render: () => (
|
|
1888
|
+
<SegmentedControl defaultValue="one" aria-label="Segmented">
|
|
1889
|
+
<SegmentedControlItem value="one">One</SegmentedControlItem>
|
|
1890
|
+
<SegmentedControlItem value="two">Two</SegmentedControlItem>
|
|
1891
|
+
</SegmentedControl>
|
|
1892
|
+
),
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
name: "Text field clear button: ring runs past the field's edge",
|
|
1896
|
+
failure: "Clipped",
|
|
1897
|
+
target: '[data-slot="text-input-v2-icon-button"]',
|
|
1898
|
+
keys: "Type in a clearable field, press Tab to the clear button.",
|
|
1899
|
+
sizing: "Any width. The button sits at the field's end.",
|
|
1900
|
+
source: "ui/src/forms/text-input/text-input.css",
|
|
1901
|
+
fix: "Was 2px at a 1px offset, over the field's border. Now inset (-2px), inside the button.",
|
|
1902
|
+
render: () => (
|
|
1903
|
+
<div style={{ width: "240px" }}>
|
|
1904
|
+
<TextInput value="Clearable" showClearButton clearLabel="Clear" />
|
|
1905
|
+
</div>
|
|
1906
|
+
),
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
name: "Busy button: the ring disappears while it works",
|
|
1910
|
+
failure: "Invisible",
|
|
1911
|
+
target: '[data-component="button-v2"]',
|
|
1912
|
+
keys: "Start a provider sign-in that waits for the browser, then Tab to the waiting button.",
|
|
1913
|
+
sizing: "Any Button with the loading variant that keeps focus.",
|
|
1914
|
+
source: "ui/src/actions/button/button.css, button.tsx, app/src/providers/connect/step-actions.tsx",
|
|
1915
|
+
fix: "The loading variant no longer drops the ring. The ring alone can't say whether the button works, so Button also sets aria-busy for it, and the spinner and its text show the wait.",
|
|
1916
|
+
render: () => <WaitingButton>Waiting for the browser…</WaitingButton>,
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
name: "Accordion rows: the next row covers the bottom of the ring",
|
|
1920
|
+
failure: "Clipped",
|
|
1921
|
+
target: '[data-slot="accordion-trigger"]',
|
|
1922
|
+
keys: "Open the Context tab in the right panel and Tab through Raw messages.",
|
|
1923
|
+
sizing: "Rows overlap by 1px so their borders merge, and each sticky header has the same z-index.",
|
|
1924
|
+
source: "ui/src/data-display/accordion/accordion.css, ui/src/components/sticky-accordion-header.css",
|
|
1925
|
+
fix: "The header holding the focused trigger is raised above its neighbours, so the whole inset ring shows. Sticky headers rise above the other sticky headers.",
|
|
1926
|
+
render: () => (
|
|
1927
|
+
<div class="w-[420px]">
|
|
1928
|
+
<Accordion multiple>
|
|
1929
|
+
<For each={["user", "assistant", "idle"]}>
|
|
1930
|
+
{(role) => (
|
|
1931
|
+
<Accordion.Item value={role}>
|
|
1932
|
+
<StickyAccordionHeader>
|
|
1933
|
+
<Accordion.Trigger>{role}</Accordion.Trigger>
|
|
1934
|
+
</StickyAccordionHeader>
|
|
1935
|
+
<Accordion.Content>Message</Accordion.Content>
|
|
1936
|
+
</Accordion.Item>
|
|
1937
|
+
)}
|
|
1938
|
+
</For>
|
|
1939
|
+
</Accordion>
|
|
1940
|
+
</div>
|
|
1941
|
+
),
|
|
1942
|
+
},
|
|
1943
|
+
{
|
|
1944
|
+
name: "Small controls: 2.5px and 1px offsets",
|
|
1945
|
+
failure: "Inconsistent",
|
|
1946
|
+
target: '[data-component="button-v2"]',
|
|
1947
|
+
keys: "Tab through any form.",
|
|
1948
|
+
sizing: "At 1x, a 2.5px offset lands on a half pixel and the ring's edges blur.",
|
|
1949
|
+
source: "ui button.css, icon-button.css, checkbox, switch, radio, select, field, and every app rule at 2.5px",
|
|
1950
|
+
fix: "One rule: 2px outset by default, -2px inset for rows and controls flush with a clipping or scrolling edge. 2.5px became 2px; compact switch, radio and the field info icon went from 1px to 2px.",
|
|
1951
|
+
render: () => (
|
|
1952
|
+
<div class="flex items-center gap-4">
|
|
1953
|
+
<Button variant="neutral">Button</Button>
|
|
1954
|
+
<Switch defaultChecked hideLabel>
|
|
1955
|
+
Compact switch
|
|
1956
|
+
</Switch>
|
|
1957
|
+
</div>
|
|
1958
|
+
),
|
|
1959
|
+
},
|
|
1960
|
+
],
|
|
1961
|
+
also: [],
|
|
1962
|
+
},
|
|
1963
|
+
]
|
|
1964
|
+
|
|
1965
|
+
function FocusVisibility(props: VisibilityArgs) {
|
|
1966
|
+
onMount(() => onCleanup(installFocusRescue()))
|
|
1967
|
+
|
|
1968
|
+
createEffect(() => {
|
|
1969
|
+
if (!props.forced) return
|
|
1970
|
+
|
|
1971
|
+
onCleanup(forceFocusStyles())
|
|
1972
|
+
})
|
|
1973
|
+
|
|
1974
|
+
return (
|
|
1975
|
+
<main
|
|
1976
|
+
data-color-scheme={props.scheme === "lab" ? undefined : props.scheme}
|
|
1977
|
+
style={{
|
|
1978
|
+
display: "grid",
|
|
1979
|
+
gap: "32px",
|
|
1980
|
+
width: "min(1240px, 100%)",
|
|
1981
|
+
padding: "24px",
|
|
1982
|
+
"box-sizing": "border-box",
|
|
1983
|
+
color: "var(--v2-text-text-base)",
|
|
1984
|
+
background: "var(--v2-background-bg-base)",
|
|
1985
|
+
}}
|
|
1986
|
+
>
|
|
1987
|
+
<header style={{ display: "grid", gap: "4px" }}>
|
|
1988
|
+
<h1 style={{ ...heading, "font-size": "18px" }}>Focus visibility</h1>
|
|
1989
|
+
<p style={{ ...label, margin: "0" }}>
|
|
1990
|
+
Where focus was clipped, covered, invisible or inconsistent with the shared ring, and how each was fixed. The
|
|
1991
|
+
cases stay here as checks that the fixes hold: each opens with its target focused and the dashed box marks
|
|
1992
|
+
where it is. Follow the keys to check it with real focus.
|
|
1993
|
+
</p>
|
|
1994
|
+
</header>
|
|
1995
|
+
<For each={surfaces}>
|
|
1996
|
+
{(surface, sectionIndex) => (
|
|
1997
|
+
<section style={{ display: "grid", gap: "12px" }}>
|
|
1998
|
+
<h2 style={heading}>{surface.name}</h2>
|
|
1999
|
+
<div
|
|
2000
|
+
style={{
|
|
2001
|
+
display: "grid",
|
|
2002
|
+
"grid-template-columns": "repeat(auto-fill, minmax(min(100%, 600px), 1fr))",
|
|
2003
|
+
gap: "12px",
|
|
2004
|
+
}}
|
|
2005
|
+
>
|
|
2006
|
+
<For each={surface.cases}>
|
|
2007
|
+
{(item, caseIndex) => (
|
|
2008
|
+
<CaseCard
|
|
2009
|
+
case={item}
|
|
2010
|
+
number={
|
|
2011
|
+
surfaces.slice(0, sectionIndex()).reduce((count, section) => count + section.cases.length, 1) +
|
|
2012
|
+
caseIndex()
|
|
2013
|
+
}
|
|
2014
|
+
forced={props.forced}
|
|
2015
|
+
locator={props.locator}
|
|
2016
|
+
/>
|
|
2017
|
+
)}
|
|
2018
|
+
</For>
|
|
2019
|
+
</div>
|
|
2020
|
+
<Show when={surface.also.length}>
|
|
2021
|
+
<div style={{ display: "grid", gap: "4px" }}>
|
|
2022
|
+
<span style={{ ...label, color: "var(--v2-text-text-base)" }}>Same audit, not rendered here</span>
|
|
2023
|
+
<ul style={{ ...label, margin: "0", "padding-inline-start": "18px" }}>
|
|
2024
|
+
<For each={surface.also}>{(line) => <li>{line}</li>}</For>
|
|
2025
|
+
</ul>
|
|
2026
|
+
</div>
|
|
2027
|
+
</Show>
|
|
2028
|
+
</section>
|
|
2029
|
+
)}
|
|
2030
|
+
</For>
|
|
2031
|
+
</main>
|
|
2032
|
+
)
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
function CaseCard(props: { case: Case; number: number; forced: boolean; locator: boolean }) {
|
|
2036
|
+
let stage: HTMLDivElement | undefined
|
|
2037
|
+
|
|
2038
|
+
const [box, setBox] = createSignal<{ left: number; top: number; width: number; height: number }>()
|
|
2039
|
+
|
|
2040
|
+
const target = () => {
|
|
2041
|
+
const active = document.activeElement
|
|
2042
|
+
|
|
2043
|
+
if (stage && active instanceof HTMLElement && stage.contains(active)) return active
|
|
2044
|
+
|
|
2045
|
+
return stage?.querySelector<HTMLElement>(props.case.target) ?? undefined
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
const place = () => {
|
|
2049
|
+
const element = target()
|
|
2050
|
+
|
|
2051
|
+
if (!stage || !element) return setBox(undefined)
|
|
2052
|
+
|
|
2053
|
+
// Visually hidden inputs (switches) are a pixel wide: mark the control they drive instead.
|
|
2054
|
+
const rect = (
|
|
2055
|
+
element.offsetWidth < 4 && element.parentElement ? element.parentElement : element
|
|
2056
|
+
).getBoundingClientRect()
|
|
2057
|
+
|
|
2058
|
+
const outer = stage.getBoundingClientRect()
|
|
2059
|
+
|
|
2060
|
+
setBox({ left: rect.left - outer.left, top: rect.top - outer.top, width: rect.width, height: rect.height })
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
onMount(() => {
|
|
2064
|
+
const frame = requestAnimationFrame(place)
|
|
2065
|
+
|
|
2066
|
+
stage?.addEventListener("scroll", place, true)
|
|
2067
|
+
window.addEventListener("resize", place)
|
|
2068
|
+
onCleanup(() => {
|
|
2069
|
+
cancelAnimationFrame(frame)
|
|
2070
|
+
stage?.removeEventListener("scroll", place, true)
|
|
2071
|
+
window.removeEventListener("resize", place)
|
|
2072
|
+
})
|
|
2073
|
+
})
|
|
2074
|
+
|
|
2075
|
+
createEffect(() => {
|
|
2076
|
+
if (!props.forced) return
|
|
2077
|
+
|
|
2078
|
+
// Controls settle in the frames after mount: Select replaces its trigger, and the tab strip starts its own scroll to
|
|
2079
|
+
// the newest tab. The target is marked and scrolled to after both.
|
|
2080
|
+
let frame = requestAnimationFrame(() => {
|
|
2081
|
+
frame = requestAnimationFrame(() => {
|
|
2082
|
+
const element = stage?.querySelector<HTMLElement>(props.case.target)
|
|
2083
|
+
|
|
2084
|
+
if (!stage || !element) return
|
|
2085
|
+
|
|
2086
|
+
const from = props.case.from
|
|
2087
|
+
const scroller = from ? stage.querySelector<HTMLElement>(from.scroller) : undefined
|
|
2088
|
+
|
|
2089
|
+
scroller?.scrollTo({
|
|
2090
|
+
top: from?.edge === "end" ? scroller.scrollHeight : 0,
|
|
2091
|
+
left: from?.edge === "end" ? scroller.scrollWidth : 0,
|
|
2092
|
+
behavior: "instant",
|
|
2093
|
+
})
|
|
2094
|
+
element.setAttribute("data-lab-focus", "")
|
|
2095
|
+
revealInStage(stage, element)
|
|
2096
|
+
place()
|
|
2097
|
+
})
|
|
2098
|
+
})
|
|
2099
|
+
|
|
2100
|
+
onCleanup(() => {
|
|
2101
|
+
cancelAnimationFrame(frame)
|
|
2102
|
+
stage?.querySelectorAll("[data-lab-focus]").forEach((element) => element.removeAttribute("data-lab-focus"))
|
|
2103
|
+
})
|
|
2104
|
+
})
|
|
2105
|
+
|
|
2106
|
+
return (
|
|
2107
|
+
<figure
|
|
2108
|
+
style={{
|
|
2109
|
+
display: "grid",
|
|
2110
|
+
gap: "12px",
|
|
2111
|
+
margin: "0",
|
|
2112
|
+
padding: "16px",
|
|
2113
|
+
"border-radius": "8px",
|
|
2114
|
+
border: "1px solid var(--v2-border-border-base)",
|
|
2115
|
+
"min-width": "0",
|
|
2116
|
+
}}
|
|
2117
|
+
>
|
|
2118
|
+
<div style={{ display: "flex", gap: "8px", "align-items": "baseline", "justify-content": "space-between" }}>
|
|
2119
|
+
<span style={{ ...label, color: "var(--v2-text-text-base)", "font-weight": 530 }}>
|
|
2120
|
+
{props.number}. {props.case.name}
|
|
2121
|
+
</span>
|
|
2122
|
+
<span style={{ ...label, color: "var(--v2-state-fg-success)", "flex-shrink": 0 }}>
|
|
2123
|
+
Fixed · {props.case.failure}
|
|
2124
|
+
</span>
|
|
2125
|
+
</div>
|
|
2126
|
+
<div
|
|
2127
|
+
ref={stage}
|
|
2128
|
+
onFocusIn={() => {
|
|
2129
|
+
// Real focus replaces the marked one, so only one target shows at a time.
|
|
2130
|
+
stage?.querySelectorAll("[data-lab-focus]").forEach((element) => element.removeAttribute("data-lab-focus"))
|
|
2131
|
+
requestAnimationFrame(place)
|
|
2132
|
+
}}
|
|
2133
|
+
style={{ position: "relative", padding: "12px", overflow: "auto", "max-width": "100%" }}
|
|
2134
|
+
>
|
|
2135
|
+
{props.case.render(() => props.forced)}
|
|
2136
|
+
<Show when={props.locator && box()}>
|
|
2137
|
+
{(rect) => (
|
|
2138
|
+
<div
|
|
2139
|
+
aria-hidden="true"
|
|
2140
|
+
style={{
|
|
2141
|
+
position: "absolute",
|
|
2142
|
+
left: `${rect().left - 6}px`,
|
|
2143
|
+
top: `${rect().top - 6}px`,
|
|
2144
|
+
width: `${rect().width + 12}px`,
|
|
2145
|
+
height: `${rect().height + 12}px`,
|
|
2146
|
+
border: "1px dashed var(--v2-state-fg-danger)",
|
|
2147
|
+
"border-radius": "4px",
|
|
2148
|
+
"pointer-events": "none",
|
|
2149
|
+
"z-index": 20,
|
|
2150
|
+
}}
|
|
2151
|
+
/>
|
|
2152
|
+
)}
|
|
2153
|
+
</Show>
|
|
2154
|
+
</div>
|
|
2155
|
+
<dl style={{ ...label, display: "grid", "grid-template-columns": "auto 1fr", gap: "2px 12px", margin: "0" }}>
|
|
2156
|
+
<dt>Keys</dt>
|
|
2157
|
+
<dd style={{ margin: "0", color: "var(--v2-text-text-base)" }}>{props.case.keys}</dd>
|
|
2158
|
+
<dt>Sizing</dt>
|
|
2159
|
+
<dd style={{ margin: "0" }}>{props.case.sizing}</dd>
|
|
2160
|
+
<dt>Source</dt>
|
|
2161
|
+
<dd style={{ margin: "0", "font-family": "var(--font-family-mono)", "font-size": "11px" }}>
|
|
2162
|
+
{props.case.source}
|
|
2163
|
+
</dd>
|
|
2164
|
+
<dt>Fix</dt>
|
|
2165
|
+
<dd style={{ margin: "0", color: "var(--v2-text-text-base)" }}>{props.case.fix}</dd>
|
|
2166
|
+
</dl>
|
|
2167
|
+
</figure>
|
|
2168
|
+
)
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
function SearchHighlightExample(props: { kind: "home-session-search-row" | "palette-menu-row" | "search-list-row" }) {
|
|
2172
|
+
const [active, setActive] = createSignal(0)
|
|
2173
|
+
|
|
2174
|
+
const list = createUniqueId()
|
|
2175
|
+
|
|
2176
|
+
return (
|
|
2177
|
+
<div class="grid w-64 max-w-full gap-1">
|
|
2178
|
+
<input
|
|
2179
|
+
role="combobox"
|
|
2180
|
+
aria-label="Search results"
|
|
2181
|
+
aria-controls={list}
|
|
2182
|
+
aria-expanded={true}
|
|
2183
|
+
aria-activedescendant={`${list}-${active()}`}
|
|
2184
|
+
placeholder="Search results"
|
|
2185
|
+
class="rounded-[4px] px-2"
|
|
2186
|
+
onKeyDown={(event) => {
|
|
2187
|
+
if (event.key !== "ArrowDown" && event.key !== "ArrowUp") return
|
|
2188
|
+
|
|
2189
|
+
event.preventDefault()
|
|
2190
|
+
setActive((index) => 1 - index)
|
|
2191
|
+
}}
|
|
2192
|
+
/>
|
|
2193
|
+
<div id={list} role="listbox">
|
|
2194
|
+
<For each={["Active option", "Next option"]}>
|
|
2195
|
+
{(label, index) => (
|
|
2196
|
+
<button
|
|
2197
|
+
id={`${list}-${index()}`}
|
|
2198
|
+
type="button"
|
|
2199
|
+
role="option"
|
|
2200
|
+
tabindex={-1}
|
|
2201
|
+
aria-selected={active() === index()}
|
|
2202
|
+
data-component={props.kind}
|
|
2203
|
+
data-active={active() === index() ? "" : undefined}
|
|
2204
|
+
class={
|
|
2205
|
+
props.kind === "home-session-search-row"
|
|
2206
|
+
? "flex h-9 w-full items-center rounded-[4px] px-2"
|
|
2207
|
+
: props.kind
|
|
2208
|
+
}
|
|
2209
|
+
classList={{
|
|
2210
|
+
"bg-v2-overlay-simple-overlay-hover": props.kind === "home-session-search-row" && active() === index(),
|
|
2211
|
+
}}
|
|
2212
|
+
onMouseDown={(event) => event.preventDefault()}
|
|
2213
|
+
onClick={() => setActive(index())}
|
|
2214
|
+
>
|
|
2215
|
+
<span>{label}</span>
|
|
2216
|
+
</button>
|
|
2217
|
+
)}
|
|
2218
|
+
</For>
|
|
2219
|
+
</div>
|
|
2220
|
+
</div>
|
|
2221
|
+
)
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
function TreeFocusExample() {
|
|
2225
|
+
return (
|
|
2226
|
+
<div
|
|
2227
|
+
data-slot="lab-tree-host"
|
|
2228
|
+
role="tree"
|
|
2229
|
+
aria-label="Example files"
|
|
2230
|
+
tabindex={0}
|
|
2231
|
+
class="w-56 outline-none"
|
|
2232
|
+
ref={(host) => {
|
|
2233
|
+
const root = host.attachShadow({ mode: "open" })
|
|
2234
|
+
|
|
2235
|
+
const style = document.createElement("style")
|
|
2236
|
+
|
|
2237
|
+
style.textContent = `
|
|
2238
|
+
${treeFocusCss}
|
|
2239
|
+
${treeFocusCss.replaceAll(":focus-visible", "[data-lab-focus]")}
|
|
2240
|
+
button { display: block; width: 100%; height: 28px; border: 0; border-radius: 4px;
|
|
2241
|
+
background: transparent; color: inherit; text-align: start; padding-inline: 8px; font: inherit; }
|
|
2242
|
+
button[aria-selected="true"] { background: var(--v2-overlay-simple-overlay-pressed); }
|
|
2243
|
+
`
|
|
2244
|
+
root.append(style)
|
|
2245
|
+
|
|
2246
|
+
const rows = ["README.md", "index.ts"].map((name, index) => {
|
|
2247
|
+
const row = document.createElement("button")
|
|
2248
|
+
|
|
2249
|
+
row.dataset.type = "item"
|
|
2250
|
+
row.dataset.itemFocused = String(index === 0)
|
|
2251
|
+
row.setAttribute("role", "treeitem")
|
|
2252
|
+
row.setAttribute("aria-selected", String(index === 0))
|
|
2253
|
+
row.tabIndex = -1
|
|
2254
|
+
row.textContent = name
|
|
2255
|
+
root.append(row)
|
|
2256
|
+
|
|
2257
|
+
return row
|
|
2258
|
+
})
|
|
2259
|
+
|
|
2260
|
+
host.onkeydown = (event) => {
|
|
2261
|
+
if (event.key !== "ArrowDown" && event.key !== "ArrowUp") return
|
|
2262
|
+
|
|
2263
|
+
event.preventDefault()
|
|
2264
|
+
rows.forEach((row, index) => (row.dataset.itemFocused = String(index === (event.key === "ArrowUp" ? 0 : 1))))
|
|
2265
|
+
}
|
|
2266
|
+
}}
|
|
2267
|
+
/>
|
|
2268
|
+
)
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
// The Models page, with its header measured the way Settings measures it.
|
|
2272
|
+
function ModelsPanel() {
|
|
2273
|
+
let panel: HTMLDivElement | undefined
|
|
2274
|
+
|
|
2275
|
+
onMount(() => {
|
|
2276
|
+
const header = panel?.querySelector<HTMLElement>(".settings-tab-header")
|
|
2277
|
+
|
|
2278
|
+
if (panel && header) onCleanup(trackTabHeader(panel, header))
|
|
2279
|
+
})
|
|
2280
|
+
|
|
2281
|
+
return (
|
|
2282
|
+
<div ref={panel} class="settings-panel" style={{ width: "560px", height: "340px" }}>
|
|
2283
|
+
<div class="settings-tab-header settings-tab-header--stacked">
|
|
2284
|
+
<div class="settings-tab-header-row">
|
|
2285
|
+
<div class="flex min-w-0 flex-col gap-1">
|
|
2286
|
+
<h2 class="settings-tab-title">Models</h2>
|
|
2287
|
+
<span class="text-11-regular text-v2-text-text-muted">Choose which models appear in the model picker.</span>
|
|
2288
|
+
</div>
|
|
2289
|
+
</div>
|
|
2290
|
+
<SettingsSearchField value="" active={false} placeholder="Search models" onInput={() => undefined} />
|
|
2291
|
+
</div>
|
|
2292
|
+
<div class="settings-tab-body settings-models">
|
|
2293
|
+
<SettingsList variant="catalog">
|
|
2294
|
+
<For each={models}>
|
|
2295
|
+
{(name) => (
|
|
2296
|
+
<SettingsRow title={name} description="">
|
|
2297
|
+
<div>
|
|
2298
|
+
<Switch defaultChecked hideLabel>
|
|
2299
|
+
{name}
|
|
2300
|
+
</Switch>
|
|
2301
|
+
</div>
|
|
2302
|
+
</SettingsRow>
|
|
2303
|
+
)}
|
|
2304
|
+
</For>
|
|
2305
|
+
</SettingsList>
|
|
2306
|
+
</div>
|
|
2307
|
+
</div>
|
|
2308
|
+
)
|
|
2309
|
+
}
|
|
2310
|
+
|
|
2311
|
+
function TabStrip() {
|
|
2312
|
+
return (
|
|
2313
|
+
<aside
|
|
2314
|
+
id="review-panel"
|
|
2315
|
+
class="relative flex overflow-hidden bg-v2-background-bg-base rounded-[10px] shadow-[var(--v2-elevation-raised)]"
|
|
2316
|
+
style={{ width: "360px", height: "96px" }}
|
|
2317
|
+
>
|
|
2318
|
+
<Tabs defaultValue="changes" class="flex-1 min-w-0">
|
|
2319
|
+
<div class="session-review-v2-tabs-bar sticky top-0 shrink-0 flex items-center">
|
|
2320
|
+
<Tabs.List ref={(el: HTMLDivElement) => onCleanup(createTabStripScroll({ el, lead: () => false }))}>
|
|
2321
|
+
<For each={panelTabs}>
|
|
2322
|
+
{(name) => (
|
|
2323
|
+
<Tabs.Trigger value={name} data-pane-tab={name} hideCloseButton>
|
|
2324
|
+
{name === "changes" ? "Changes" : name}
|
|
2325
|
+
</Tabs.Trigger>
|
|
2326
|
+
)}
|
|
2327
|
+
</For>
|
|
2328
|
+
<div class="h-full shrink-0 sticky end-0 z-10 flex items-center justify-center bg-v2-background-bg-base">
|
|
2329
|
+
<IconButton variant="ghost" icon={<Icon name="plus" />} aria-label="Add tab" />
|
|
2330
|
+
</div>
|
|
2331
|
+
</Tabs.List>
|
|
2332
|
+
{/* The panel actions slot, here only the space side-region.tsx keeps for the panel toggle. */}
|
|
2333
|
+
<div
|
|
2334
|
+
data-slot="session-side-panel-actions"
|
|
2335
|
+
class="session-review-v2-open-in-app-slot h-[var(--tabs-bar-height)] shrink-0 flex items-center gap-2 pe-[var(--session-header-inset-end,12px)]"
|
|
2336
|
+
>
|
|
2337
|
+
<div class="size-7 shrink-0" aria-hidden />
|
|
2338
|
+
</div>
|
|
2339
|
+
</div>
|
|
2340
|
+
</Tabs>
|
|
2341
|
+
</aside>
|
|
2342
|
+
)
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
// Scrolls the target into view inside the case the way focusing it does, without moving the review page around it.
|
|
2346
|
+
function revealInStage(stage: HTMLElement, element: HTMLElement) {
|
|
2347
|
+
const outside = [stage, ...ancestors(stage)].map((node) => ({
|
|
2348
|
+
node,
|
|
2349
|
+
top: node.scrollTop,
|
|
2350
|
+
left: node.scrollLeft,
|
|
2351
|
+
}))
|
|
2352
|
+
|
|
2353
|
+
element.scrollIntoView({ block: "nearest", inline: "nearest" })
|
|
2354
|
+
outside.forEach((item) => item.node.scrollTo({ top: item.top, left: item.left }))
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
function ancestors(node: HTMLElement): HTMLElement[] {
|
|
2358
|
+
return node.parentElement ? [node.parentElement, ...ancestors(node.parentElement)] : []
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2361
|
+
const heading = {
|
|
2362
|
+
margin: "0",
|
|
2363
|
+
color: "var(--v2-text-text-base)",
|
|
2364
|
+
"font-size": "14px",
|
|
2365
|
+
"font-weight": 600,
|
|
2366
|
+
"line-height": "var(--line-height-base)",
|
|
2367
|
+
} as const
|
|
2368
|
+
|
|
2369
|
+
const label = {
|
|
2370
|
+
color: "var(--v2-text-text-muted)",
|
|
2371
|
+
"font-size": "12px",
|
|
2372
|
+
"line-height": "var(--line-height-compact)",
|
|
2373
|
+
} as const
|
|
2374
|
+
|
|
2375
|
+
export default {
|
|
2376
|
+
title: "App/Design review/Focus visibility",
|
|
2377
|
+
id: "review-focus-visibility",
|
|
2378
|
+
args: { scheme: "lab", forced: true, locator: true } satisfies VisibilityArgs,
|
|
2379
|
+
argTypes: { scheme: { control: "select", options: schemes } },
|
|
2380
|
+
parameters: { layout: "fullscreen" },
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
export const AllSurfaces = { render: (args: VisibilityArgs) => <FocusVisibility {...args} /> }
|
|
2384
|
+
|
|
2385
|
+
// The popover wiring the Home project picker and the composer pills share.
|
|
2386
|
+
function OverlayPopover(props: { component: string; label: string; width?: string }) {
|
|
2387
|
+
const overlayFocus = createOverlayFocus()
|
|
2388
|
+
|
|
2389
|
+
let trigger: HTMLButtonElement | undefined
|
|
2390
|
+
|
|
2391
|
+
return (
|
|
2392
|
+
<Popover onOpenChange={overlayFocus.openChanged} placement="bottom-start" gutter={6}>
|
|
2393
|
+
<Popover.Trigger
|
|
2394
|
+
ref={trigger}
|
|
2395
|
+
data-component={props.component}
|
|
2396
|
+
class="flex h-8 items-center gap-2 rounded-[6px] px-2 text-start text-13-regular hover:bg-v2-background-bg-layer-01 focus-visible:-outline-offset-2"
|
|
2397
|
+
style={{ width: props.width }}
|
|
2398
|
+
>
|
|
2399
|
+
{props.label}
|
|
2400
|
+
<Icon name="chevron-down" class="shrink-0 text-v2-icon-icon-muted" />
|
|
2401
|
+
</Popover.Trigger>
|
|
2402
|
+
<Popover.Portal>
|
|
2403
|
+
<Popover.Content
|
|
2404
|
+
class="z-50 rounded-[10px] bg-v2-background-bg-base p-3 text-13-regular shadow-[var(--v2-elevation-floating)] outline-none"
|
|
2405
|
+
onCloseAutoFocus={(event) => overlayFocus.restore(event, trigger)}
|
|
2406
|
+
>
|
|
2407
|
+
Popover content
|
|
2408
|
+
</Popover.Content>
|
|
2409
|
+
</Popover.Portal>
|
|
2410
|
+
</Popover>
|
|
2411
|
+
)
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
function RemovalTabs() {
|
|
2415
|
+
const [tabs, setTabs] = createSignal(["Refactor store", "Draft", "Fix tests", "Release notes"])
|
|
2416
|
+
|
|
2417
|
+
return (
|
|
2418
|
+
<div class="flex flex-col items-start gap-3">
|
|
2419
|
+
<div data-focus-scope class="flex items-center gap-1 rounded-[8px] bg-v2-background-bg-deep p-1">
|
|
2420
|
+
<For each={tabs()}>
|
|
2421
|
+
{(tab) => (
|
|
2422
|
+
<div class="flex h-7 items-center rounded-[6px] bg-v2-background-bg-base ps-2">
|
|
2423
|
+
<a href="#" class="rounded-[4px] text-13-regular" onClick={(event) => event.preventDefault()}>
|
|
2424
|
+
{tab}
|
|
2425
|
+
</a>
|
|
2426
|
+
<IconButton
|
|
2427
|
+
variant="ghost-muted"
|
|
2428
|
+
icon={<Icon name="close-small" />}
|
|
2429
|
+
aria-label={`Close ${tab}`}
|
|
2430
|
+
onClick={() => setTabs((list) => list.filter((item) => item !== tab))}
|
|
2431
|
+
/>
|
|
2432
|
+
</div>
|
|
2433
|
+
)}
|
|
2434
|
+
</For>
|
|
2435
|
+
</div>
|
|
2436
|
+
<Button
|
|
2437
|
+
size="small"
|
|
2438
|
+
variant="ghost"
|
|
2439
|
+
onClick={() => setTabs(["Refactor store", "Draft", "Fix tests", "Release notes"])}
|
|
2440
|
+
>
|
|
2441
|
+
Restore tabs
|
|
2442
|
+
</Button>
|
|
2443
|
+
</div>
|
|
2444
|
+
)
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
function RemovalSettingsRows() {
|
|
2448
|
+
const dialog = useDialog()
|
|
2449
|
+
|
|
2450
|
+
const initial = ["main", "focus-rings", "session-store"]
|
|
2451
|
+
|
|
2452
|
+
const [rows, setRows] = createSignal(initial)
|
|
2453
|
+
|
|
2454
|
+
const confirm = (name: string) =>
|
|
2455
|
+
dialog.show(() => (
|
|
2456
|
+
<Dialog>
|
|
2457
|
+
<DialogHeader>
|
|
2458
|
+
<DialogTitle>Delete {name}?</DialogTitle>
|
|
2459
|
+
</DialogHeader>
|
|
2460
|
+
<DialogBody>The worktree and its changes are removed.</DialogBody>
|
|
2461
|
+
<DialogFooter>
|
|
2462
|
+
<Button variant="ghost" onClick={() => dialog.close()}>
|
|
2463
|
+
Cancel
|
|
2464
|
+
</Button>
|
|
2465
|
+
<Button
|
|
2466
|
+
variant="danger"
|
|
2467
|
+
onClick={() => {
|
|
2468
|
+
dialog.close()
|
|
2469
|
+
// The row goes once the request returns, after the dialog has returned focus to it.
|
|
2470
|
+
setTimeout(() => setRows((list) => list.filter((item) => item !== name)), 300)
|
|
2471
|
+
}}
|
|
2472
|
+
>
|
|
2473
|
+
Delete
|
|
2474
|
+
</Button>
|
|
2475
|
+
</DialogFooter>
|
|
2476
|
+
</Dialog>
|
|
2477
|
+
))
|
|
2478
|
+
|
|
2479
|
+
return (
|
|
2480
|
+
<div class="flex w-[420px] flex-col items-start gap-3">
|
|
2481
|
+
<SettingsList>
|
|
2482
|
+
<For each={rows()}>
|
|
2483
|
+
{(name) => (
|
|
2484
|
+
<SettingsRow title={name} description="Worktree">
|
|
2485
|
+
<Button size="small" onClick={() => confirm(name)}>
|
|
2486
|
+
Delete
|
|
2487
|
+
</Button>
|
|
2488
|
+
</SettingsRow>
|
|
2489
|
+
)}
|
|
2490
|
+
</For>
|
|
2491
|
+
</SettingsList>
|
|
2492
|
+
<Button size="small" variant="ghost" onClick={() => setRows(initial)}>
|
|
2493
|
+
Restore rows
|
|
2494
|
+
</Button>
|
|
2495
|
+
</div>
|
|
2496
|
+
)
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
function RemovalChips() {
|
|
2500
|
+
const initial = ["notes.md", "store.ts", "plan.md"]
|
|
2501
|
+
|
|
2502
|
+
const [chips, setChips] = createSignal(initial)
|
|
2503
|
+
|
|
2504
|
+
return (
|
|
2505
|
+
<div data-focus-scope class="flex w-[420px] flex-col gap-2 rounded-[12px] border border-v2-border-border-base p-2">
|
|
2506
|
+
<div data-focus-scope class="flex gap-1.5">
|
|
2507
|
+
<For each={chips()}>
|
|
2508
|
+
{(chip) => (
|
|
2509
|
+
<span class="flex h-6 items-center gap-1 rounded-[6px] bg-v2-background-bg-layer-02 ps-2 text-12-regular">
|
|
2510
|
+
{chip}
|
|
2511
|
+
<IconButton
|
|
2512
|
+
variant="ghost-muted"
|
|
2513
|
+
size="small"
|
|
2514
|
+
icon={<Icon name="close-small" />}
|
|
2515
|
+
aria-label={`Remove ${chip}`}
|
|
2516
|
+
onClick={() => setChips((list) => list.filter((item) => item !== chip))}
|
|
2517
|
+
/>
|
|
2518
|
+
</span>
|
|
2519
|
+
)}
|
|
2520
|
+
</For>
|
|
2521
|
+
</div>
|
|
2522
|
+
<textarea
|
|
2523
|
+
aria-label="Prompt"
|
|
2524
|
+
class="h-12 resize-none bg-transparent px-2 text-13-regular"
|
|
2525
|
+
placeholder="Ask anything"
|
|
2526
|
+
/>
|
|
2527
|
+
<Button size="small" variant="ghost" class="self-start" onClick={() => setChips(initial)}>
|
|
2528
|
+
Restore chips
|
|
2529
|
+
</Button>
|
|
2530
|
+
</div>
|
|
2531
|
+
)
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
function RemovalToast() {
|
|
2535
|
+
const [shown, setShown] = createSignal(true)
|
|
2536
|
+
|
|
2537
|
+
return (
|
|
2538
|
+
<div class="flex items-start gap-4">
|
|
2539
|
+
<Button size="small" onClick={() => setShown(true)}>
|
|
2540
|
+
Show toast
|
|
2541
|
+
</Button>
|
|
2542
|
+
<div data-focus-scope class="w-[280px]">
|
|
2543
|
+
<Show when={shown()}>
|
|
2544
|
+
<div
|
|
2545
|
+
tabindex="0"
|
|
2546
|
+
class="flex items-center justify-between gap-2 rounded-[10px] bg-v2-background-bg-base p-3 text-13-regular shadow-[var(--v2-elevation-floating)]"
|
|
2547
|
+
>
|
|
2548
|
+
Session archived
|
|
2549
|
+
<IconButton
|
|
2550
|
+
variant="ghost-muted"
|
|
2551
|
+
icon={<Icon name="close-small" />}
|
|
2552
|
+
aria-label="Dismiss"
|
|
2553
|
+
onClick={() => setShown(false)}
|
|
2554
|
+
/>
|
|
2555
|
+
</div>
|
|
2556
|
+
</Show>
|
|
2557
|
+
</div>
|
|
2558
|
+
</div>
|
|
2559
|
+
)
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
function RemovalRename() {
|
|
2563
|
+
const [editing, setEditing] = createSignal(true)
|
|
2564
|
+
|
|
2565
|
+
return (
|
|
2566
|
+
<div data-focus-scope class="flex items-center gap-2">
|
|
2567
|
+
<a
|
|
2568
|
+
href="#"
|
|
2569
|
+
class="flex h-7 items-center rounded-[6px] bg-v2-background-bg-base px-2 text-13-regular"
|
|
2570
|
+
onClick={(event) => event.preventDefault()}
|
|
2571
|
+
>
|
|
2572
|
+
<span
|
|
2573
|
+
contenteditable={editing() ? "true" : undefined}
|
|
2574
|
+
class="outline-none"
|
|
2575
|
+
onKeyDown={(event) => {
|
|
2576
|
+
if (event.key !== "Enter") return
|
|
2577
|
+
event.preventDefault()
|
|
2578
|
+
setEditing(false)
|
|
2579
|
+
}}
|
|
2580
|
+
>
|
|
2581
|
+
Refactor store
|
|
2582
|
+
</span>
|
|
2583
|
+
</a>
|
|
2584
|
+
<Button size="small" variant="ghost" onClick={() => setEditing(true)}>
|
|
2585
|
+
Rename
|
|
2586
|
+
</Button>
|
|
2587
|
+
</div>
|
|
2588
|
+
)
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
function RemovalReset() {
|
|
2592
|
+
const [changed, setChanged] = createSignal(true)
|
|
2593
|
+
|
|
2594
|
+
return (
|
|
2595
|
+
<div data-focus-scope class="flex items-center gap-2">
|
|
2596
|
+
<Button size="small" data-action="reset" disabled={!changed()} onClick={() => setChanged(false)}>
|
|
2597
|
+
Reset
|
|
2598
|
+
</Button>
|
|
2599
|
+
<Button size="small" variant="ghost" onClick={() => setChanged(true)}>
|
|
2600
|
+
Change a shortcut
|
|
2601
|
+
</Button>
|
|
2602
|
+
</div>
|
|
2603
|
+
)
|
|
2604
|
+
}
|
|
2605
|
+
|
|
2606
|
+
function RemovalRowMenu() {
|
|
2607
|
+
const initial = ["Desktop", "Website", "Docs"]
|
|
2608
|
+
|
|
2609
|
+
const [rows, setRows] = createSignal(initial)
|
|
2610
|
+
|
|
2611
|
+
return (
|
|
2612
|
+
<div class="flex w-[320px] flex-col items-start gap-3">
|
|
2613
|
+
<div data-focus-scope class="flex w-full flex-col">
|
|
2614
|
+
<For each={rows()}>
|
|
2615
|
+
{(row) => (
|
|
2616
|
+
<div class="flex h-8 items-center justify-between rounded-[6px] ps-2 text-13-regular">
|
|
2617
|
+
{row}
|
|
2618
|
+
<Menu gutter={4} placement="bottom-end">
|
|
2619
|
+
<Menu.Trigger
|
|
2620
|
+
as={IconButton}
|
|
2621
|
+
variant="ghost-muted"
|
|
2622
|
+
icon={<Icon name="outline-dots" />}
|
|
2623
|
+
aria-label={`More for ${row}`}
|
|
2624
|
+
/>
|
|
2625
|
+
<Menu.Portal>
|
|
2626
|
+
<Menu.Content>
|
|
2627
|
+
<Menu.Item>Rename</Menu.Item>
|
|
2628
|
+
<Menu.Item onSelect={() => setRows((list) => list.filter((item) => item !== row))}>
|
|
2629
|
+
Remove
|
|
2630
|
+
</Menu.Item>
|
|
2631
|
+
</Menu.Content>
|
|
2632
|
+
</Menu.Portal>
|
|
2633
|
+
</Menu>
|
|
2634
|
+
</div>
|
|
2635
|
+
)}
|
|
2636
|
+
</For>
|
|
2637
|
+
</div>
|
|
2638
|
+
<Button size="small" variant="ghost" onClick={() => setRows(initial)}>
|
|
2639
|
+
Restore rows
|
|
2640
|
+
</Button>
|
|
2641
|
+
</div>
|
|
2642
|
+
)
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
// The selected style both card groups in Settings › General share: a 2px neutral border and a check at the corner.
|
|
2646
|
+
function ModeCards(props: { group: "interface" | "navigation" }) {
|
|
2647
|
+
const name = createUniqueId()
|
|
2648
|
+
|
|
2649
|
+
const labels = props.group === "interface" ? ["Top tabs", "Side tabs", "Inbox"] : ["Tabs", "List"]
|
|
2650
|
+
|
|
2651
|
+
return (
|
|
2652
|
+
<fieldset data-component={props.group === "interface" ? "interface-mode" : "navigation-mode"}>
|
|
2653
|
+
<For each={labels}>
|
|
2654
|
+
{(label, index) => (
|
|
2655
|
+
<label data-slot={`${props.group}-mode-option`} data-checked={index() === 0 ? "" : undefined}>
|
|
2656
|
+
<input type="radio" name={name} checked={index() === 0} />
|
|
2657
|
+
<span data-slot={`${props.group}-mode-sketch`} aria-hidden="true" />
|
|
2658
|
+
<span data-slot={`${props.group}-mode-name`}>{label}</span>
|
|
2659
|
+
<Show when={index() === 0}>
|
|
2660
|
+
<span data-slot="mode-option-check" aria-hidden="true">
|
|
2661
|
+
<Icon name="check" size="small" />
|
|
2662
|
+
</span>
|
|
2663
|
+
</Show>
|
|
2664
|
+
</label>
|
|
2665
|
+
)}
|
|
2666
|
+
</For>
|
|
2667
|
+
</fieldset>
|
|
2668
|
+
)
|
|
2669
|
+
}
|