fix(services): restore Services task navigation and remove walkthrough from results - #1845
Conversation
📝 WalkthroughWalkthroughThe services route now validates search parameters before opening service navigation. The services home page uses shared mode-home rendering and default service selection. The referral workflow and related navigation state were removed, with UI tests updated accordingly. ChangesServices UI flow
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This pull request has been ignored for the connected project Preview Branches by Supabase. |
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:a766250f63
ℹ️ 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.
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/investigate-navigation-changes-in-services at starting commit a766250; 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/investigate-navigation-changes-in-services, 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. 👍 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". |
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 `@src/app/`(search-app)/services/page.tsx:
- Around line 17-22: Update the search query construction in the page component
to trim each q and query alias before applying nullish fallback, so
whitespace-only q values do not suppress a non-empty query value. Preserve the
existing submitted-search check and add a regression test for
/services?q=%20&query=13YARN&run=1.
In `@src/components/services/services-home-page.tsx`:
- Around line 20-44: Update buildTaskCards so the “Check catchment” task is
included only when defaultServiceSlug is non-null, and construct its detail href
using the existing route or catalog source from app-modes.ts, tools-catalog.ts,
or universal-search.ts rather than a hardcoded path. Preserve the other task
cards unchanged.
🪄 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: 2155b148-7973-44ba-a988-698a72d55f5d
📒 Files selected for processing (4)
src/app/(search-app)/services/page.tsxsrc/components/services/services-home-page.tsxsrc/components/services/services-navigator-page.tsxtests/ui-tools.spec.ts
💤 Files with no reviewable changes (1)
- src/components/services/services-navigator-page.tsx
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
CI triageCI failed on this PR. Automated classification of the 2 failed job(s):
Compared with main CI run #9889 (success). Classification is evidence routing, not permission to ignore a failure. Exact quarantined Playwright identities remain governed by the flake ledger. |
Summary
querywhen canonicalqis empty or whitespace, so the shared search shell and Services results use the same search term.mainwhile preserving the current-main branch-review ledger.Verification
npm run test -- tests/audit-content-services-regressions.test.ts— passed, 6 tests.npm run typecheck— passed.390 × 844confirmed service-group navigation remains present and the referral walkthrough is absent.Risk and rollout
/servicesroute selection, Services home/navigation presentation, and its Playwright coverage.querylinks remain supported and are redirected to canonicalqonly whenqis not meaningful.Clinical Governance Preflight
Notes
docs/branch-review-ledger.md; current-main records were retained and the PR review record was appended.Codex task