Skip to content

feat(web): move global search into the sidebar and restyle its header - #832

Merged
pikann merged 2 commits into
masterfrom
feat/sidebar-search-and-switcher
Nov 27, 2026
Merged

pikann merged 2 commits into
masterfrom
feat/sidebar-search-and-switcher

Conversation

@pikann

@pikann pikann commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Reworks the top of the app sidebar after shadcn's sidebar-10: a project selector, with global search directly below it.

Global search

  • Moves from the app header to a sidebar item. It shows as an icon with a tooltip on the collapsed rail.
  • The dialog stays in the authenticated layout, because the mobile sidebar is unmounted while closed and Cmd/Ctrl+K has to keep working.
  • On mobile, tapping the item closes the sidebar and opens the dialog.

Project selector

  • The brand row and the project switcher are now one control. It shows the brand logo and name outside a project, and the project's avatar and name inside one.
  • It stays on the collapsed rail and opens the project list from there.
  • The menu follows sidebar-10's team list. This also stops the global link colour from turning project names green.

Behaviour changes to note

  • The logo no longer links to Home; Home and All Projects still do.
  • On mobile, search is no longer visible in the header; open the sidebar first.
  • The project avatar in the selector grows from 24px to 32px, matching the brand logo.
  • The menu has no ⌘1–9 hints, since those keys switch browser tabs.

The unused search.placeholder string is removed from all nine locales.

Verification

  • Web unit tests pass (1899), and Biome reports no errors (5 warnings).
  • Checked in a headless browser against the dev stack: expanded, collapsed, mobile, light and dark.
  • The Playwright specs, including the new sidebar-button scenario, were not run locally.
  • A local tsc -b reports only two devtools packages missing from my install.

Type of Change

  • Other (UI)

Checklist

  • The change is focused and scoped.
  • Related documentation is updated.
  • New structure or direction is explained clearly.
  • I avoided unnecessary detail or premature abstraction.

Follow shadcn's sidebar-10 for the top of the sidebar.

- Global search leaves the app header and becomes a sidebar item. The
  dialog stays in the authenticated layout, because the mobile sidebar
  is unmounted while closed and Mod+K has to keep working.
- The brand row and the project switcher become one selector: it shows
  the brand logo and name outside a project, and the project's avatar
  and name inside one. It stays available on the collapsed rail.
- The project menu follows sidebar-10's team list. Its keyboard hints
  are left out because Mod+1-9 switches browser tabs.
- Drop the unused search.placeholder string from every locale.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Important

The new sidebar-search Playwright scenario will fail on the mobile-chrome and mobile-safari projects: the sidebar is a closed sheet there, so the locator never resolves. Worth fixing before this lands, since mobile behaviour is part of the change.

Approach: sound — keeping the dialog in the authenticated layout so Mod+K survives the mobile sidebar being unmounted is the right seam, and the combined brand/project switcher matches the sidebar-10 pattern.

Reviewed changes

  • Global search: split into GlobalSearchButton (sidebar item; closes the mobile sheet before opening) and GlobalSearchDialog (layout-level, opened by button or Mod+K); removed the header trigger and the unused search.placeholder from all nine locales.
  • Project switcher: folded the brand row into the switcher — brand logo/name outside a project, project avatar/name inside — kept it on the collapsed rail, and restyled the menu to match sidebar-10.
  • Tests: added a unit test for the mobile-close behaviour and a Playwright scenario for the sidebar button; updated the feature text and the store comment.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

Comment thread apps/e2e/tests/ui/global-search.spec.ts Resolved

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ No new issues found.

Reviewed changes

Reviewed the delta since the prior pullfrog review (a4fd728..10aac56): the mobile Playwright fix for the new sidebar-search scenario. The earlier failure is resolved — the test now opens the mobile sheet with Toggle Sidebar before locating the search button, and asserts [data-slot="sidebar"] disappears once the dialog opens, so it exercises the mobile close-then-open behaviour rather than just skipping it.

  • Mobile e2e coverage — global-search.spec.ts now uses the built-in isMobile fixture, opens the sheet first on mobile, and asserts it unmounts after search opens; the desktop path is unchanged.
  • Feature text — the scenario now records the mobile precondition and the closed-sidebar outcome.

Both files are consistent with existing repo conventions (isMobile fixture, single Toggle Sidebar button on mobile, scoped Search locator). CI at 10aac56 is green for Lint e2e tests and Check, test, and build web app.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pikann
pikann merged commit 2c5e31f into master Nov 27, 2026
3 checks passed
@pikann
pikann deleted the feat/sidebar-search-and-switcher branch November 27, 2026 07:01
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