Skip to content

Fix phone search suggestion ticker regression - #1834

Merged
BigSimmo merged 5 commits into
mainfrom
codex/restore-phone-suggestion-ticker
Aug 12, 2026
Merged

Fix phone search suggestion ticker regression#1834
BigSimmo merged 5 commits into
mainfrom
codex/restore-phone-suggestion-ticker

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • Restore the compact tappable recommendation ticker on the shared phone home and standalone mode homes.
  • Preserve the existing desktop rotating hint and prompt rows while keeping them hidden on phones.
  • Restore the interaction guard that freezes the rotating suggestion during pointer, touch, or keyboard activation.
  • Reinstate focused Chromium coverage for ticker visibility, tap-target height, accessible naming, and click-to-fill behavior.

RAG impact: no retrieval behaviour change — this restores client-side presentation and selection of existing prompt examples only.

Verification

  • npm run verify:pr-local

Verification not run: the full PR-local stack was not repeated after the targeted production Playwright build already compiled TypeScript and built successfully; repository focused-test capacity was subsequently occupied by other worktrees.

  • npm run verify:ui when UI, routing, styling, browser behavior, reduced-motion, or forced-colors behavior changed

UI verification partial: npm run verify:phone-chrome -- --files ... entered the full Chromium matrix but exceeded the 30-minute tool window. Its artifacts reproduced two unrelated /services desktop scroll-runway timeouts. No complete pass count was emitted, so the broad gate is not claimed green.

  • npm run verify:release before release or handoff confidence claims

Release verification not run: this is a focused regression fix and release confidence was not requested.

Completed checks:

  • npm run test:e2e -- tests/ui-overlap.spec.ts --project=chromium --grep "phone smart search replaces desktop rows with one tappable ticker"1 passed (3.7s); production build and TypeScript compilation succeeded.
  • npm run lint — passed with zero warnings.
  • npm run check:runtime — Node 24.19.0 and npm 11.17.0 passed.
  • npm run check:installed-lock-parity — passed for 755 package locations and 51,732 files.
  • npm run format and exact changed-file Prettier check — passed.
  • git diff --check — passed.

Risk and rollout

  • Risk: Low. The change restores previously shipped, phone-only client UI behavior and is gated to home composers.
  • Rollback: Revert this PR to return to the non-tappable phone hint state.
  • Provider or production effects: None.

Clinical Governance Preflight

Not applicable: no ingestion, retrieval/ranking, source rendering, document access, privacy, production environment, or clinical output behavior changed.

Notes

Summary by CodeRabbit

  • New Features

    • Added a phone-friendly suggestion ticker to home and standalone search experiences.
    • Suggestions rotate automatically and pause during interaction.
    • Tapping a suggestion places its example query into the search field.
    • Improved mobile search guidance with clear, accessible tap targets.
  • Tests

    • Added coverage for ticker visibility, labels, interaction sizing, accessibility, and search-field population across supported search modes.

@supabase

supabase Bot commented Aug 12, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 87f00c33-5951-4fd6-9874-8b82c12a7ccc

📥 Commits

Reviewing files that changed from the base of the PR and between 44f7fa5 and 8368bd3.

📒 Files selected for processing (2)
  • src/components/ClinicalDashboard.tsx
  • tests/ui-overlap.spec.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/components/ClinicalDashboard.tsx

📝 Walkthrough

Walkthrough

Changes

The search header enables a phone suggestion ticker on shared and standalone home routes. The universal search surface renders the ticker, pauses hint rotation during interaction, and updates and focuses the search input when a suggestion is selected. Tests cover ticker visibility and interaction.

Phone suggestion ticker

Layer / File(s) Summary
Home route ticker wiring
src/components/ClinicalDashboard.tsx, src/components/clinical-dashboard/global-search-shell.tsx, src/components/clinical-dashboard/master-search-header.tsx
Home routes pass ticker visibility through MasterSearchHeader to UniversalSearchCommandSurface.
Ticker rendering and selection
src/components/clinical-dashboard/universal-search-command-surface.tsx
The surface renders a tappable phone suggestion, pauses rotation during interaction, and updates and focuses the search input after selection.
Phone ticker UI validation
tests/ui-overlap.spec.ts
The tests verify visibility, labels, tap-target height, accessibility, click behavior, and query population across phone home and /documents mode routes.

Estimated code review effort: 2 (Simple) | ~10 minutes

Sequence Diagram(s)

sequenceDiagram
  participant HomeRoute
  participant MasterSearchHeader
  participant UniversalSearchCommandSurface
  participant SearchInput
  HomeRoute->>MasterSearchHeader: Enable phone suggestion ticker
  MasterSearchHeader->>UniversalSearchCommandSurface: Pass ticker visibility
  UniversalSearchCommandSurface->>SearchInput: Update query and focus input
Loading

Possibly related PRs

Suggested labels: codex

Suggested reviewers: cursoragent

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the phone search suggestion ticker regression fix.
Description check ✅ Passed The description covers the change, verification results and limitations, risk, rollback, effects, and governance status.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/restore-phone-suggestion-ticker

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install failed: dependency version conflict. Check your lock file or package.json.


Comment @coderabbitai help to get the list of available commands.

@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: 44f7fa58aa

ℹ️ 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 src/components/ClinicalDashboard.tsx Outdated
@BigSimmo

Copy link
Copy Markdown
Owner Author

@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/restore-phone-suggestion-ticker at starting commit 44f7fa5; 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/restore-phone-suggestion-ticker, 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 44f7fa58aa

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

@BigSimmo
BigSimmo enabled auto-merge August 12, 2026 05:59
@github-actions

Copy link
Copy Markdown
Contributor

CI triage

CI failed on this PR. Automated classification of the 2 failed job(s):

  • Production UI (1)needs investigation: inspect the failing step and uploaded diagnostics; rerun only after classifying the cause.
  • PR requiredneeds investigation: inspect the failing step and uploaded diagnostics; rerun only after classifying the cause.

Compared with main CI run #9803 (failure).

Classification is evidence routing, not permission to ignore a failure. Exact quarantined Playwright identities remain governed by the flake ledger.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Restores the phone-only tappable search suggestion ticker while preserving desktop suggestions.

Changes:

  • Adds rotating ticker interaction and click-to-fill behavior.
  • Enables the ticker across shared search shells.
  • Adds focused phone Chromium coverage.
  • Blocking: /documents remains excluded because showSharedHome only covers /.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/components/ClinicalDashboard.tsx Enables the ticker on the shared home.
src/components/clinical-dashboard/global-search-shell.tsx Enables it for standalone mode homes.
src/components/clinical-dashboard/master-search-header.tsx Threads the ticker flag into the command surface.
src/components/clinical-dashboard/universal-search-command-surface.tsx Implements ticker rendering and interaction freezing.
tests/ui-overlap.spec.ts Tests phone visibility, sizing, naming, and click-to-fill.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/components/ClinicalDashboard.tsx Outdated
@BigSimmo

Copy link
Copy Markdown
Owner Author

@copilot Fix the code for all comments in this review thread.

When a review comment includes a suggested change, apply the suggestion exactly.

Do not make changes beyond what is described in the linked review thread.

… just /

Co-authored-by: BigSimmo <87357024+BigSimmo@users.noreply.github.com>
auto-merge was automatically disabled August 12, 2026 07:45

Head branch was pushed to by a user without write access

Copilot AI commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

@copilot Fix the code for all comments in this review thread.

When a review comment includes a suggested change, apply t...

Fixed in the latest commit. Changed showPhoneSuggestionTickerOnHome from showSharedHome to heroOwnsPhoneComposer so the ticker renders on all dashboard-owned mode homes (including /documents), not just /. Also added a focused Chromium test for the /documents home ticker.

@BigSimmo
BigSimmo enabled auto-merge August 12, 2026 09:41
@BigSimmo
BigSimmo merged commit 828153d into main Aug 12, 2026
26 checks passed
@BigSimmo
BigSimmo deleted the codex/restore-phone-suggestion-ticker branch August 12, 2026 10:13
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.

3 participants