Skip to content

fix(ui): align global search dialog composition - #2935

Merged
kev1n77 merged 1 commit into
GCWing:mainfrom
kev1n77:fmy/ui-main
Sep 10, 2026
Merged

kev1n77 merged 1 commit into
GCWing:mainfrom
kev1n77:fmy/ui-main

Conversation

@kev1n77

@kev1n77 kev1n77 commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Align the global search dialog and Design Lab preview around shared layout tokens.

  • Use an 800 × 460px dialog with a 30px search field and consistent spacing.
  • Replace scope buttons with the shared small TabGroup.
  • Remove redundant styling and keep the results scrollbar at the dialog edge.
  • Update the Lab preview with scope selection and scrollable results.

Type and Areas

Type: Bug fix / UI/UX

Areas: Web UI, design tokens, Design Lab, generated data-migrator theme CSS.

Motivation / Impact

The global search dialog used custom sizing and spacing that differed from the design system. Shared geometry and controls make the product and Lab preview consistent while preserving keyboard scope navigation and responsive insets.

The compact search-field height applies only to the modal; embedded search retains its existing size.

Verification

Previously recorded implementation checks passed; they were not rerun when preparing this PR description:

  • pnpm run design-system:check
  • pnpm run check:web
  • pnpm --dir src/web-ui run test:run src/app/global-search/globalSearchArchitecture.test.ts src/app/global-search/globalSearchShortcut.test.ts src/app/global-search/globalSearchResultPresentation.test.ts
    — 3 files, 16 tests passed.

Native Windows desktop checks covered dialog geometry, keyboard scope navigation, the empty state, and Escape dismissal.

Full IME cancellation, narrow-window layouts, and long-result combinations remain pending.

Reviewer Notes

Product entry: Ctrl+K global search.
Lab entry: Patterns → search command surface.

Search providers and activation adapters are unchanged. No backend commands, protocol changes, or persisted-data migrations are introduced.

Remote workspace, remote control, Peer Device Mode, and Detached Dispatch were not verified end to end.

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

Share the 800 by 460 search scene contract between Lab Patterns and the product. Scope the 30px query height to its shell, replace scope buttons with the public small TabGroup, and remove superseded query and responsive spacing overrides. Keep the results scrollbar at the dialog edge and shrink insets in narrow windows.

Lab: Patterns > search command surface, with scope selection and scrolling results. Product: Ctrl K global search.
Validation: design-system:check, check:web, and 16 tests across globalSearchArchitecture, globalSearchShortcut and globalSearchResultPresentation passed. Native desktop confirmed target geometry, keyboard scope navigation, empty state and Escape close; full IME cancellation, narrow-window and long-result combinations remain manual follow-ups.
Remote: no four-scenario end-to-end verification. Search providers and activation adapters are unchanged; embedded search keeps its regular query size. No persisted shape changes.
@kev1n77
kev1n77 merged commit beba865 into GCWing:main Sep 10, 2026
13 checks passed
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.

1 participant