Tools: add responsive results-mode mockup - #1864
Conversation
…ols-results-mode-mockup
…ols-results-mode-mockup
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in:38 minutes Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdds a responsive Tools search-mode mockup route with search, category filters, desktop and mobile tool details, accessibility behavior, documentation, and Playwright coverage. ChangesTools search-mode experience
Estimated code review effort: 4 (Complex) | ~45 minutes Mergeability Score:🔵 Low · up to The mockup route is mergeable with explicit owner follow-up: its documentation needs to describe the composer exception, and a phone filter sheet may remain visible after switching to desktop, causing a stale overlay in that responsive transition. Sequence Diagram(s)sequenceDiagram
participant Visitor
participant ToolsSearchModeMockup
participant ToolCatalog
participant DetailView
Visitor->>ToolsSearchModeMockup: Enter search text or select a category
ToolsSearchModeMockup->>ToolCatalog: Filter normalized tool records
ToolCatalog-->>ToolsSearchModeMockup: Return matching tools and counts
Visitor->>ToolsSearchModeMockup: Select a tool
ToolsSearchModeMockup->>DetailView: Open desktop panel or mobile detail sheet
DetailView-->>Visitor: Show tool details and actions
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:12478eb7fb
ℹ️ 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".
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
BigSimmo
commented
Aug 12, 2026
@codex resolve actionable Codex review findings for this pull request and current head using the repository instructions. This is the pull request's single automatic repair pass: do not perform a fresh review, create new standalone findings, or request another review. Work only the existing unresolved Codex threads on the current head. The only repository destination is BigSimmo/Database, and the only branch destination is the pull request head branch codex/tools-results-mode-mockup at starting commit 12478eb; never publish fixes to a detached or synthetic work branch and never create a stacked pull request. Use the authenticated GitHub connector to commit each approved fix to BigSimmo/Database:codex/tools-results-mode-mockup, then verify that the pull request head contains the published commit before reporting success. Always fix P0 and P1 findings. For P2 and lower findings, fix only clear, scoped, low-risk issues; otherwise disposition them with a concise reason. For a fixed thread, reply with as the first line and as the second line. For a no-code disposition, use followed by . These result markers authorize the workflow to close that exact thread only after it verifies a fixed commit is the pull request head; a local-only commit is not a fix. If publication or verification fails, do not use either result marker, do not claim success, and leave the thread open with the blocker. If human input or new authorization is required, do the same. Finish only after every actionable thread is fixed or dispositioned and closed, or explicitly left open for a human decision. Do not update the branch from main, address unrelated reviews, broaden scope, or create more than one scoped fix commit. Do not use external APIs, paid services, credentials, dependency changes, or broad refactors unless explicitly authorized. Add targeted tests where behavior changes and run the narrowest relevant validation. |
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
CI triageCI failed on this PR. Automated classification of the 2 failed job(s):
Compared with main CI run #10268 (success). Classification is evidence routing, not permission to ignore a failure. Exact quarantined Playwright identities remain governed by the flake ledger. |
BigSimmo
commented
Aug 12, 2026
Review and repair completeReviewed head: Fixed
VerificationCI run #10058 completed successfully on the reviewed head. Green coverage includes build and enforced bundle budget, safety/config and Deno checks, formatting, lint, typecheck, unit coverage, critical Chromium journeys, all three production-UI shards, mockup/advisory UI, Lighthouse, SAST, secret scan, PR policy, and mergeability. All four actionable review threads were answered and resolved. There are no outstanding change-request reviews.
The PR remains open and has not been merged. |
There was a problem hiding this comment.
Pull request overview
Adds a new responsive mockup route for “Tools results mode” that uses the universal search shell/composer, with shared filter controls across desktop/phone and Playwright coverage to exercise the responsive behaviors.
Changes:
- Introduces
/mockups/tools-search-moderoute and a newToolsSearchModeMockupclient component with responsive results + detail panel/bottom-sheet behavior. - Adds focused Playwright coverage for the mockup and wires the spec into the mockup test selection patterns.
- Updates mockups/docs route registration to include the new mockup entry.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/ui-tools-search-mode-mockup.spec.ts | New Playwright spec covering desktop/phone behaviors, filter sheet contract, overflow checks, and forced-colors + reduced-motion. |
| src/components/tools-page-mockups/tools-search-mode-mockup.tsx | Implements the responsive Tools results-mode mockup UI (shared header band, segmented control + filter sheet, desktop aside + phone sheet details). |
| src/app/mockups/tools-search-mode/page.tsx | Registers the mockup route and metadata for the new page. |
| src/app/mockups/mockups-layout-client.tsx | Ensures the universal search composer remains visible for this specific Tools mockup route. |
| playwright.config.ts | Adds the new mockup spec to the mockup spec pattern and global match pattern. |
| mockups/README.md | Documents the new interactive mockup route and its intentional exclusions. |
| docs/site-map.md | Adds the generated route listing entry for /mockups/tools-search-mode. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
BigSimmo
commented
Aug 12, 2026
@codex Address all currently unresolved inline review comments on this PR against the current GitHub head. Fix the desktop detail-panel focus visibility and make the Details control's popup semantics accurate by breakpoint, with focused accessibility/regression tests. Push minimal fixes to this PR branch. Do not merge, close, rebase, force-push, deploy, or alter auto-merge. Please report the exact commit SHA and test results. |
Hi @BigSimmo — thanks for the @claude mention. Open this in Claude Code on the web to continue here: https://claude.ai/code Context: Automated backlink from the Claude backlink workflow. Claude Code can pick up the mention and push a scoped fix to the branch. |
…-mode-mockup' into codex/tools-results-mode-mockup # Conflicts: # src/components/tools-page-mockups/tools-search-mode-mockup.tsx
Summary
Testing
|
BigSimmo
commented
Aug 12, 2026
Final review-and-fix summaryRepository / PR: Sync and merge state
High-confidence defects fixed
The four earlier findings covering query normalisation, result-count parity, all-result rendering, and phone-to-desktop sheet cleanup remained correctly fixed. Adversarial review and comments
Decisive verification
Advisory checks
Ledger and residual limitations
The PR was not merged. Final merge is left to the user. |
…-mode-mockup' into codex/tools-results-mode-mockup
…ols-results-mode-mockup
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@mockups/README.md`:
- Around line 64-66: Update the shared-composer rule near the general Tools
mockup documentation to apply only to Tools mockups that own an in-page search
surface, preserving the documented exception for the Tools search mode route
where the composer remains visible.
In `@src/components/tools-page-mockups/tools-search-mode-mockup.tsx`:
- Around line 236-243: Update the closePhoneDetailOnDesktop handler in the
responsive useEffect to also reset filterOpen when the media query matches
desktop, ensuring the phone filter sheet closes during the transition. Add a
responsive transition test covering an open filter sheet switching to desktop
and verifying it closes.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 8e75e0d9-a625-4193-864d-d49605d53bc6
📒 Files selected for processing (7)
docs/site-map.mdmockups/README.mdplaywright.config.tssrc/app/mockups/mockups-layout-client.tsxsrc/app/mockups/tools-search-mode/page.tsxsrc/components/tools-page-mockups/tools-search-mode-mockup.tsxtests/ui-tools-search-mode-mockup.spec.ts
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
/mockups/tools-search-modeas a responsive submitted Tools results page using the universal shell composerSegmentedControlon desktop andResultFilterTrigger/ResultFilterSheeton phone, with live counts and unavailable zero-count optionsBest forcontext, a selected-result accent, and a clearer selected-tool detail hierarchyWhy
This presents Tools as a true results-mode page consistent with the other site modes, while preserving the approved result-card and detail-sheet direction and adopting the same filter behavior as the other modes.
Verification
npm run format— passed on the final current-main union headnpm run check:type-scale— passednpm run test:e2e -- tests/ui-tools-search-mode-mockup.spec.ts --project=chromium-mockups— 14 passed on the combined concurrent-review headgit diff --check refs/remotes/origin/main...HEAD— passedChecks not run
Risks / rollback
Summary by CodeRabbit
New Features
Tests