Update desktop navigation chrome and search#779
Conversation
Move search, workspace switching, and thread controls into the top/profile chrome, including a centered live search variation. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
|
@codex please review |
Search04.mp4 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e82f6b2d00
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <div className="fixed right-3 top-[9px] z-[80] flex items-center gap-0.5 md:hidden"> | ||
| <Button | ||
| aria-label="Search everything" | ||
| className="h-[22px] w-[22px] text-muted-foreground/70 hover:bg-muted/60 hover:text-foreground" | ||
| data-testid="open-search-compact" | ||
| onClick={() => onOpenFullSearch()} |
There was a problem hiding this comment.
Move compact search away from top-right actions
On viewports below the md breakpoint, this fixed compact search button is rendered at right-3 top-[9px] with z-[80], while ChatHeader top-right actions and HomeChannelActions also render their action bars at the same right-3 top-[9px] position with z-[70]. On narrow desktop windows this causes the search button to sit directly over the rightmost channel/home action (for example the manage-channel button), making that action visually overlapped and unclickable; reserve horizontal space or offset one of the fixed groups when the compact search control is visible.
Useful? React with 👍 / 👎.
Align desktop e2e coverage with the updated Home, search, and thread header UI so CI validates the intended layout instead of removed titles. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep the small-screen search control with the left navigation buttons so it does not overlap channel or home action controls. Co-authored-by: Cursor <cursoragent@cursor.com>
Bring in the latest main changes while preserving the desktop Home chrome layout and adopting the new thread activity feed behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@thomaspblock I love this approach! Way easier to use! I noticed a couple small issues on this branch: On small screens, I think the search can overlap the sidebar, which might be a bit odd Also This PR should also remove that old search experience to clean up the existing code.
|
|
yes they are both being fixed (and a few more things) in a fast follow but there were already so many changes I got worried it would be too big. I can add if you want to before we merge or you can merge and ill fix these two based on the new version. You are the expert here I will follow your lead. |
Focus Cmd+K on the new topbar search experience and remove the legacy modal search path so the PR has one search surface. Co-authored-by: Cursor <cursoragent@cursor.com>
|
🤖 Updated this PR with the follow-up fixes for the two search comments:
Also added responsive search widths so it stays compact on smaller windows and expands on larger ones. |
|
Nice! Fix looks good!
I tend to limit PRs to just one change if possible (but sometimes I just do "polish pass" type PRs). And for that change I just make sure it's not buggy. We release the app constantly, so we have to try to keep it in an always working state. So basically tiny changes that are bug free or at least don't break the experience. Also, since we're kind of reviewing and merging each other's PR, you can keep the PR in "Draft" until you're ready for eyes/testing on it as well. |


Summary
Test plan
cd desktop && pnpm checkcd desktop && pnpm build && pnpm exec playwright test --project=smoke tests/e2e/smoke.spec.tsbin/just cisearch-middle-description.Made with Cursor