Skip to content

feat(search): one filter sidebar for the home page and results, kept on screen across a search, and faster results (prod) - #1730

Merged
sickerine merged 9 commits into
prodfrom
feat/persistent-search-sidebar-prod
Dec 4, 2026
Merged

sickerine merged 9 commits into
prodfrom
feat/persistent-search-sidebar-prod

Conversation

@sickerine

Copy link
Copy Markdown
Collaborator

Brings #1729 to prod on its own, without the rest of dev: the same six commits, cherry-picked onto prod with no conflicts.

/ and /results share one route-group layout with one search state and one filter sidebar, so a search keeps the sidebar on screen with nothing blanking. A signed-in account's search runs while its request is counted, instead of after. Back then Forward keeps a change from the assistant or another tab. The assistant describes a search only from its latest read or change.

convex/assistant/agent.ts changes the assistant's instructions, so prod's Convex is pushed after the app is live. No schema or data change.

Checks on this branch: npx tsc --noEmit. The browser checks, testers and reviews are on #1729.

…on screen across a search

The home page and the results pages share a route group whose layout holds
the search state and the filter sidebar, so a search from / no longer drops
the sidebar, flashes a full-page spinner, or resets the sidebar's scroll.
A search this browser already holds shows at once instead of waiting for
its account copy; a results page opened from its address shows the
sidebar dimmed and inert until its saved copy arrives. On a phone both tabs
stay mounted, so switching keeps each one's scroll and anything on its way.
…othing blanking in between

- The results page's state is worked out once by the search frame, which
  hides the sidebar on a page with no search (deleted, unknown, failed).
- The results layout keeps no loading boundary of its own, so the home page
  stays until the results can draw, and the search box no longer fades in.
- An account's search runs while its request is counted in Convex instead
  of after; a visitor is still counted first, at no cost.
- The sidebar is away on every page with no search, including when the
  account can't be read, and on a phone the Filters tab goes with it.
- While its filters aren't the search's own yet, the whole sidebar is still,
  Clear all and its button included; its shortcut does nothing while away.
- The frame reads the gate's saved flag instead of its own copy.
- One PageSpinner for the four page spinners; one auth() per counted search.
- Fixed sidebar widths in FilterSidebar, one store factory for both sidebars,
  no pass-through [searchId] layouts, no dead mocks or attributes.
- The home box's mode resets while rendering, not in an effect.
…filters of the one just left

Two walkers and the navigation tester went back to Search for a related
search and had to set their limits again, while the box kept their words.
The sidebar still starts folded; the filters show as chips in the box.
…out a new entry

The newest history entry's copy was kept once and never refreshed, so after
one Back and Forward, a later change from the assistant or another tab was
put back to the older copy by the next Back and Forward, and lost. Forward
onto the newest entry now spends its copy, so the next Back keeps the search
as it then is. The assistant also says what a search holds only from its
latest read or change, not from earlier in the chat.
- A results page fetches nothing until it knows which search it shows, so a
  saved search opened by its ID no longer runs an unfiltered search first,
  and lost or failed pages fetch nothing.
- On a phone, arriving at the home page or a results page shows its own tab,
  not the Filters tab left open on the page before.
- The home search's working state is held by the frame, so a resize across
  the phone width mid-search keeps the box waiting.
@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 070edfb6-4d12-4a4d-91d2-cda08f526470

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T03:06:24.601175Z 02601b1 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

… aside (UI rule: one element doesn't both slide and fade)

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 02601b1f15

ℹ️ 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".

Comment thread components/search-frame.tsx Resolved
Comment thread components/home/SearchInput.tsx Resolved
- An account Convex finds out of requests is refused here, before asking the
  source, for the next minute: past its limit it reaches the source at most
  once a minute on each server, not on every search.
- A results page waits to fetch while a question in its address is being
  written into a search, and on the bare /results address it's about to leave.
- The home box's picked mode lives beside its words in the query store, so a
  resize across the phone width keeps it.
…nd the account limit test holds the clock still
@sickerine
sickerine merged commit 7fea03c into prod Dec 4, 2026
6 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