Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions design-system/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,12 @@ For SplitView geometry, drag cancellation, and cached resize bounds:
pnpm --dir design-system run build:ui && node --test design-system/packages/ui/tests/split-view.test.mjs
pnpm --dir src/web-ui exec vitest run src/shared/ui/SplitView.test.tsx
```

For Select presentation, compact/expanded labels, native form participation and keyboard selection:

```bash
pnpm --dir design-system run build:ui && node --test design-system/packages/ui/tests/select.test.mjs design-system/packages/ui/tests/registry.test.mjs
pnpm --dir src/web-ui exec vitest run src/shared/ui/Select.test.tsx
```

These package and DOM checks do not establish native rendering or live remote behavior.
6 changes: 5 additions & 1 deletion design-system/packages/ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,11 @@ Use `Select` for simple options; its hidden native control preserves form
participation. `width="content"` fits the collapsed control to the selected label;
`popupWidth="content"` independently fits the expanded surface to its options,
within the viewport. The defaults remain a full-width control and a popup that
matches the trigger. `Combobox` adds searchable single
matches the trigger. `variant="pill"` uses badge typography, spacing and rounded
ends while retaining the selected control size. An option's `selectedLabel`
shortens only the closed trigger; the expanded header, listbox and native form
option retain its full `label`. Combine these with content widths for compact
inline platform or scope selectors. `Combobox` adds searchable single
selection, grouped options, explicit custom-value creation and async loading
states. `MultiSelect` owns multiple selection, removable tags and select-all.
Controlled values are authoritative; option discovery remains host-owned.
Expand Down
11 changes: 10 additions & 1 deletion design-system/packages/ui/src/components/Select/Select.meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ export const selectMeta = {
maturity: "stable",
name: "Select",
props: [
{ name: "options", type: "readonly SelectOption[] (supports tooltip, testId and data-* attributes)" },
{ name: "options", type: "readonly SelectOption[] (supports selectedLabel, tooltip, testId and data-* attributes)" },
{ name: "value", type: "SelectValue" },
{ name: "defaultValue", type: "SelectValue" },
{ name: "placeholder", type: "string" },
{ name: "leading", type: "ReactNode" },
{ defaultValue: "md", name: "size", type: "sm | md | lg" },
{ defaultValue: "field", name: "variant", type: "field | pill" },
{ defaultValue: "bottom", name: "placement", type: "top | bottom" },
{ defaultValue: "full", name: "width", type: "full | content" },
{ defaultValue: "trigger", name: "popupWidth", type: "trigger | content" },
Expand Down Expand Up @@ -51,6 +52,14 @@ export const selectMeta = {
"control.select.contentGap",
"control.select.indicatorSize",
"control.select.radius",
"control.statusPill.gap",
"control.statusPill.paddingInline",
"control.statusPill.radius",
"type.meta.fontFamily",
"type.meta.fontSize",
"type.meta.fontWeight",
"type.meta.letterSpacing",
"type.statusPill.lineHeight",
"overlay.menu.inlineSize",
"overlay.menu.maxBlockSize",
"overlay.menu.surfacePadding",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@
box-shadow var(--openbitfun-motion-duration-fast) var(--openbitfun-motion-easing-standard);
}

.root[data-variant="pill"] > .trigger {
gap: var(--openbitfun-control-status-pill-gap);
padding-inline: var(--openbitfun-control-status-pill-padding-inline);
border-radius: var(--openbitfun-control-status-pill-radius);
background: var(--openbitfun-color-action-neutral-surface);
font-family: var(--openbitfun-type-meta-font-family);
font-size: var(--openbitfun-type-meta-font-size);
font-weight: var(--openbitfun-type-meta-font-weight);
line-height: var(--openbitfun-type-status-pill-line-height);
letter-spacing: var(--openbitfun-type-meta-letter-spacing);
}

.trigger:is(:hover, [data-openbitfun-preview-state="hover"]):not(:disabled) {
border-color: var(--openbitfun-color-field-border-hover);
background: var(--openbitfun-color-field-background-hover);
Expand Down Expand Up @@ -293,6 +305,7 @@

@media (forced-colors: active) {
.trigger,
.root[data-variant="pill"] > .trigger,
.popover,
.root[data-invalid="true"] .trigger {
border-color: ButtonText;
Expand All @@ -303,7 +316,8 @@
border: 0;
}

.trigger:focus-visible {
.trigger:focus-visible,
.root[data-variant="pill"] > .trigger:focus-visible {
border-color: Highlight;
box-shadow: 0 0 0 var(--openbitfun-focus-width) Highlight;
}
Expand Down
12 changes: 9 additions & 3 deletions design-system/packages/ui/src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export interface SelectOption {
disabled?: boolean;
group?: string;
label: string;
/** Optional compact label for the closed trigger; options keep the full label. */
selectedLabel?: string;
/** Optional help shown on hover for the option and selected value. */
tooltip?: string;
testAttributes?: Record<`data-${string}`, string | number | boolean | undefined>;
Expand All @@ -68,6 +70,8 @@ export interface SelectProps
popupWidth?: "trigger" | "content";
size?: SelectSize;
value?: SelectValue;
/** A compact visual treatment using the system's badge typography and radius. */
variant?: "field" | "pill";
/** Fill the available field width or fit the currently selected label. */
width?: "full" | "content";
}
Expand Down Expand Up @@ -155,6 +159,7 @@ export const Select = forwardRef<HTMLSelectElement, SelectProps>(function Select
tabIndex,
title,
value,
variant = "field",
width = "full",
...nativeProps
}, forwardedRef) {
Expand Down Expand Up @@ -360,7 +365,7 @@ export const Select = forwardRef<HTMLSelectElement, SelectProps>(function Select
) : row;
};

const renderTriggerContent = () => (
const renderTriggerContent = (expanded = false) => (
<>
{leading !== undefined && leading !== null && (
<span aria-hidden="true" className={styles.leading} data-openbitfun-icon-slot="true" data-openbitfun-part="leading">
Expand All @@ -372,7 +377,7 @@ export const Select = forwardRef<HTMLSelectElement, SelectProps>(function Select
data-openbitfun-part="value"
title={selectedOption?.tooltip}
>
{selectedOption?.label ?? placeholder}
{selectedOption ? (expanded ? selectedOption.label : selectedOption.selectedLabel ?? selectedOption.label) : placeholder}
</OverflowText>
<span aria-hidden="true" className={styles.indicator} data-openbitfun-icon-slot="true" data-openbitfun-part="indicator">
<Icon name="chevron-down" size="sm" />
Expand Down Expand Up @@ -413,7 +418,7 @@ export const Select = forwardRef<HTMLSelectElement, SelectProps>(function Select
title={title}
type="button"
>
{renderTriggerContent()}
{renderTriggerContent(true)}
</button>
<div aria-hidden="true" className={styles.divider} data-openbitfun-part="divider" />
<div className={styles.options} data-openbitfun-part="options">
Expand Down Expand Up @@ -453,6 +458,7 @@ export const Select = forwardRef<HTMLSelectElement, SelectProps>(function Select
data-open={resolvedOpen ? "true" : "false"}
data-placement={layout?.placement ?? placement}
data-size={size}
data-variant={variant}
data-width={width}
ref={rootRef}
>
Expand Down
2 changes: 1 addition & 1 deletion scripts/theme-color-governance-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
"max": 0
},
"colorDomainScopes.assetMetadata.uniqueColors": {
"max": 7
"max": 4
},
"colorDomainScopes.mermaid.occurrences": {
"max": 0
Expand Down
14 changes: 14 additions & 0 deletions src/web-ui/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ For icon changes, also run `pnpm --dir src/web-ui run icons:check` and the focus
form decorations are generated from Lucide by `pnpm --dir src/web-ui run icons:generate`.
General-purpose icons use Lucide; the four harness modes, Git branch, brand logos,
mascots, and device overview artwork retain their authored assets.
External-product identities reuse `src/shared/ui/ProductBrandIcon.tsx` and its
`productBrandIcons.ts` asset catalog across import, sign-in, and account views;
keep product assets and light/dark rendering out of page-local mappings.

Choose the smallest matching check:

Expand Down Expand Up @@ -245,6 +248,17 @@ pnpm --dir src/web-ui run test:run src/app/components/NavPanel/sections/workspac
These local fixtures cover inline disclosure and legacy-host preference gating;
they do not establish native rendering or live remote behavior.

For session grouping/list motion, scroll anchoring, interruption and retained project disclosure:

```bash
pnpm --dir src/web-ui run test:run src/app/components/NavPanel/sections/workspaces/SessionViewTransition.test.tsx src/app/components/NavPanel/sections/workspaces/WorkspaceListSection.test.tsx src/app/components/NavPanel/sections/workspaces/WorkspaceListSectionLayout.test.ts src/app/components/NavPanel/components/WorkspaceSessionGroupingToggle.test.tsx
pnpm run motion:audit
```

These DOM fixtures use measured-layout and animation stubs, including simulated
Peer surface switches; they do not establish native animation fidelity or live
SSH, Remote Control, Peer Device or Detached Dispatch behavior.

For application update discovery, skip persistence, notification timing, and
download/install transitions, run the focused behavior tests (these do not
establish visual fidelity):
Expand Down
16 changes: 11 additions & 5 deletions src/web-ui/public/assets/ecosystem-compatibility/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
# Ecosystem compatibility brand assets

These product marks are cached locally so the compatibility scene does not depend on runtime network access. Cursor uses its official 2D shape with `currentColor` and an alpha mask to follow the interface theme; the other marks are unmodified.
These product marks are cached locally so external import and subscription-provider cards do not depend on runtime network access. External import, subscription sign-in, and account management share the [product icon catalog](../../../src/shared/ui/productBrandIcons.ts) and [ProductBrandIcon](../../../src/shared/ui/ProductBrandIcon.tsx). Add product icons there instead of defining a page-local mapping or renderer. The shared component uses standalone icon variants without application tiles or wordmarks, with alpha masks for monochrome symbols, full-color Antigravity artwork, and OpenCode's official light/dark variants.

| File | Upstream source |
| --- | --- |
| `claude-code.svg` | Claude official site: https://claude.ai/favicon.svg |
| `codex.svg` | OpenAI Developers: https://developers.openai.com/favicon.svg |
| `zcode.png` | Zcode official site: https://zcode.z.ai/favicon-192x192.png, retrieved 2026-10-13 |
| `pi.svg` | Pi official site: https://pi.dev/favicon.svg |
| `deepseek-harness.svg` | DeepSeek Harness official repository: https://raw.githubusercontent.com/deepseek-ai/deepseek-harness/master/website/public/favicon.svg |
| `opencode.svg` | OpenCode official repository: https://raw.githubusercontent.com/anomalyco/opencode/dev/packages/identity/mark.svg |
| `cursor.svg` | Cursor official brand assets: https://cursor.com/brand — `General Logos/Cube/SVG/CUBE_2D_LIGHT.svg`, retrieved 2026-09-15 |
| `antigravity.png` | Google Antigravity [Press Assets](https://www.antigravity.google/press), **Icon - Full Color**: https://www.antigravity.google/assets/image/brand/antigravity-icon__full-color.png, retrieved 2026-10-29 |
| `codex-icon.svg` | OpenAI Developers: https://developers.openai.com/ — standalone OpenAI symbol from the page header, original SVG and viewBox, retrieved 2026-10-29 |
| `zcode-icon.svg` | ZCode official site: https://zcode.z.ai/ — standalone Z symbol from the page header, original SVG and viewBox, retrieved 2026-10-29 |
| `grok-icon.svg` | Grok official site: https://grok.com/ — both header SVG paths identified as `mark`, with their original geometry in an icon-sized viewBox, retrieved 2026-10-29 |
| `opencode-icon-light.png` | OpenCode [Brand guidelines](https://opencode.ai/brand), original standalone mark: https://raw.githubusercontent.com/anomalyco/opencode/dev/packages/console/app/src/asset/brand/opencode-logo-light.png, retrieved 2026-10-29 |
| `opencode-icon-dark.png` | OpenCode [Brand guidelines](https://opencode.ai/brand), original standalone mark: https://raw.githubusercontent.com/anomalyco/opencode/dev/packages/console/app/src/asset/brand/opencode-logo-dark.png, retrieved 2026-10-29 |
| `hermes.png` | Hermes Agent official repository, original foreground artwork without the app background: https://raw.githubusercontent.com/NousResearch/hermes-agent/main/apps/desktop/assets/icon.icon/Assets/art-light.png, retrieved 2026-10-29 |

Retrieved on 2026-08-21. Product names and marks belong to their respective owners; inclusion identifies a compatibility target and does not imply endorsement.
Prefer original assets from official brand/media packages. The [Grok brand page](https://x.ai/legal/brand-guidelines) links to https://data.x.ai/logos/SpaceXAI_Grok_Assets.zip, which returned HTTP 403 on 2026-10-29. Where a standalone downloadable file was unavailable, the subscription icon preserves the official website's SVG symbol paths, rather than redrawing a mark or removing the background from a raster app icon. These extracted symbols are not represented as files from a downloadable brand package.

Entries without an individual date were retrieved on 2026-08-21. Product names and marks belong to their respective owners; inclusion identifies a compatibility target and does not imply endorsement.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions src/web-ui/public/assets/ecosystem-compatibility/codex.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 0 additions & 7 deletions src/web-ui/public/assets/ecosystem-compatibility/opencode.svg

This file was deleted.

Loading
Loading