Skip to content

fix(dashboard): style all dropdown menus - #1296

Merged
SaulMoro merged 2 commits into
Tencent:mainfrom
MertensMing:codex/workspace-dropdown-1295
Oct 23, 2026
Merged

SaulMoro merged 2 commits into
Tencent:mainfrom
MertensMing:codex/workspace-dropdown-1295

Conversation

@MertensMing

@MertensMing MertensMing commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

All dashboard dropdown menus now share the same style in supported browsers.
This covers workspace, language, theme, repository, AI tool, and all three skill filters.
Menus use rounded options, theme colors, visible focus, and bounded height.
Long option names wrap in menus.
The closed workspace label shows an ellipsis.

Type of Change

  • Bug fix

Test Plan

  • Build, typecheck, and lint pass.
  • Seven tests pass in src/tests/dashboard-ui.test.ts.
  • The built dashboard CLI test passes for the git provider.

Real CLI command: npx vitest run --config vitest.e2e.config.ts src/__tests__/e2e/dashboard-unified.test.ts -t "git:".
It checks four agent records, report ingestion, HTTP responses, and live SSE updates.
Two provider cases were skipped.
These checks passed again after the scope expansion.

Browser checks used the built CLI with isolated workspace fixtures.
Checks covered both themes, long workspace names, mouse selection, arrow keys, Enter, and Escape.
Workspace changes updated the path and session list.
Reload preserved the workspace selection.
Additional checks covered language changes, theme changes, and repository and AI tool menus.
The isolated fixture had no skills.
Skill filters were checked in the source, without an interactive fixture.

Related Issues

Fixes #1295

Notes for Reviewers

This uses appearance: base-select as a progressive enhancement.
Unsupported browsers retain their native menu.
No custom keyboard handler or new dependency is added.
Existing values, event handlers, escaping, and saved preferences remain in place.
The workspace button and selectedcontent element only control the selected label.
Shared select rules also cover dynamically rendered skill filters.

Browser validation used desktop Chromium.
Safari, Firefox, mobile widths, and screen readers were not tested locally.
The full unit suite was not run.
The issue has no confirmed assignment yet.
This PR is a concrete proposal for review.

Screenshots

These images show commit e20ffe2.

Workspace menu

Workspace menu

Language menu

Language menu

Theme menu

Theme menu

Repository and AI tool filters

Repository and AI tool filters

@MertensMing MertensMing changed the title fix(dashboard): style the workspace picker fix(dashboard): style all dropdown menus Oct 23, 2026
@github-actions

Copy link
Copy Markdown

No findings in the specified diff.

The PR description includes sufficient testing: a built real-CLI dashboard E2E run for the git provider, plus browser checks using isolated fixtures. Untested browsers and providers are explicitly disclosed and do not block merge.

Review was read-only; I did not run, build, or install PR code.

@SaulMoro SaulMoro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was generated by AI during triage.

@MertensMing Thanks, approving.

We built this head and ran the dashboard from the built CLI in headless Chrome. The workspace, language and theme menus open with the new style in dark and light themes and at 420px wide. Arrow keys and Enter still select. Browsers without appearance: base-select keep the native menu. tsc, lint, the dashboard-ui tests and the dashboard e2e pass. The branch merges cleanly with current main.

Not blocking:

  • [P2 non-blocking] #1295 proposed changing only the workspace selector, and no one confirmed a wider scope there. This PR styles every <select>, so the header language and theme selects change width slightly (88→77px and 121→117px here). That looks fine to us. Mention it on the issue so the record matches.
  • [P3 nit] The body says the screenshots show e20ffe2, but the image links point at 3b718e55 on your fork.

@SaulMoro
SaulMoro merged commit 08c0c2e into Tencent:main Oct 23, 2026
20 checks passed
Walternater pushed a commit to Walternater/teamai-cli that referenced this pull request Nov 2, 2026
* fix(dashboard): style the workspace picker

* fix(dashboard): style all dropdown menus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[enhancement] Match the dashboard dropdowns to the dashboard style

3 participants