Repository navigation
fix(app): tighten the search results row - #3855
elizabetdev wants to merge 1 commit into
Conversation
Co-authored-by: Cursor <[email protected]>
🦋 Changeset detectedLatest commit: 8ab7bc2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🔵 Tier 2 — Low RiskSmall, isolated change with no API route or data model modifications. Why this tier:
Review process: AI review + quick human skim (target: 5–15 min). Reviewer validates AI assessment and checks for domain-specific concerns. Stats
|
Duplicate code analysisNo new duplicate code introduced by this PR. jscpd compared this branch against |
| parts.push(`${Number(numRows).toLocaleString()} rows scanned`); | ||
| } | ||
| if (showElapsed) { | ||
| parts.push(showElapsedLoading ? '…ms' : formatDurationMs(searchElapsedMs!)); |
There was a problem hiding this comment.
🟡 P2 — Elapsed placeholder …ms hardcodes a unit the real value may not use
Use a unit-free placeholder such as …. formatDurationMs (packages/app/src/utils.ts:1079) returns seconds or minutes for longer searches, so a 2.3s search shows …ms while loading and then jumps to 2.3s.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
PR Review
2 finding(s): 🔴 0 P0/P1 · 🟡 1 P2 · 🔵 1 P3 1 posted as inline comment(s) on the changed lines. 1 P3 folded at the bottom. 🔵 1 P3 — no action needed before merge
Priority comes from a separate grading pass over the finished review. P3 is folded here instead of posted inline. No finding blocks merge automatically; a maintainer decides. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8ab7bc2. Configure here.
| {parts.join(' · ')} | ||
| </Text> | ||
| </> | ||
| ); |
There was a problem hiding this comment.
Middot gets extra flex gap
Low Severity
SearchNumRows emits the leading middot as its own Text node, and SearchResultsCountGroup places that fragment in a Group with gap="sm". Flex gap then lands on both sides of the first separator, so N results and the scanned/elapsed text do not read as one phrase the way the inner · does.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 8ab7bc2. Configure here.
Deep Review✅ No critical issues found. This is a presentational refactor of the search results row: 🔵 P3 nitpicks (4)
Reviewers (8): correctness, testing, maintainability, project-standards, kieran-typescript, julik-frontend-races, agent-native, learnings. Testing gaps:
No finding blocks merge automatically. A maintainer will expect P0/P1 findings in code this PR changes to be fixed; P2/P3 are your call -- fix or reply. Never fix findings about surrounding code here; reply instead. Do not widen the PR. How to respond |
E2E Test Results✅ All tests passed • 478 passed • 1 skipped • 1073s
Tests ran across 4 shards in parallel. |


Summary
The row above the search histogram spreads a lot of text over both sides:
553 Results,Group by, thenScanned Rows: 2,895 | Elapsed Time: 216msnext tothe actions. This tightens it.
553 results · 2,895 rows scanned · 216msall describe the same query, so they no longer sit on opposite sides.Resume live tailand the generated SQL button.Scanned Rows: …/Elapsed Time: …become… rows scanned · …ms.Results,Resume Live Tail,Show Generated SQLandGenerated SQL (Timeline)are now sentence case.SearchNumRowsnow renders only the stats. The SQL button and modal moved to a newGeneratedSqlButtonso they can sit on the other side.Screenshots or video
I couldn't capture these (no browser available in the session that opened this PR). Left for the author to fill in.
Before
After
How to reproduce
Starting point:
yarn app:dev:localconnected to the demo server (onboarding → "Connect to Demo Server"), or the Vercel preview.On
main:553 Results,Group by, thenScanned Rows: … | Elapsed Time: …on the right.On this branch:
Group by·N results · N rows scanned · Nmson the left, withResume live tail(when scrolled back from live) and the</>button on the right.How to test on Vercel preview
Preview routes: /search
Steps:
Group bybutton.N results · N rows scanned · Nms.</>icon on the right and verify theGenerated SQLmodal opens.References
Note
Low Risk
UI layout and copy changes on the search page with no auth, API, or data-path changes; behavior is covered by updated unit and e2e tests.
Overview
Tightens the search histogram stats row so Group by leads on the left, then result count and query stats together (
N results · N rows scanned · Nms), while Resume live tail, trace chart toggle, and generated SQL stay on the right.SearchResultsCountGroupnow takes explicitgroupByandstatsslots instead ofchildren, matching that left-side order (expand filters → group by → total count → stats).SearchNumRowsis stats-only: shorter dimmed copy joined with·, no SQL modal.GeneratedSqlButtonis a new sibling component for the SQL preview action.Copy is sentence case across the row (
results,Resume live tail,Show generated SQL, etc.). Unit and e2e tests follow the new strings and component split.Reviewed by Cursor Bugbot for commit 8ab7bc2. Bugbot is set up for automated code reviews on this repo. Configure here.