fix(ui): remove the overseas AI line from the Answer home

Merged
BI
1mo ago
+68-47

User description

Requested by Josh · project thread

Summary

Before: the Clinical Answers home showed a globe line under the search box, "Questions are sent to an overseas AI service (OpenAI) to search and write answers. Don't include patient details."

After: that line is gone from the home. The "Do not enter patient-identifiable information" warning and the "Privacy and data processing" link stay. The same line still shows under each answer once a question is asked, and the privacy page still says questions may go to the OpenAI API outside Australia.

  • Removed the home mount in ClinicalDashboard.tsx and the now-unused testId prop on AnswerProviderNotice.
  • Updated tests/answer-provider-notice.dom.test.tsx to pin one mount (under the answer) and none on the home.
  • Recorded the owner's decision in docs/decisions/2026-10-17-no-overseas-line-on-home-pages.md, replacing the 13 Oct wish.

Areas touched: App experience, Knowledge and records

Verification

  • Checks run:
    • npx vitest run tests/answer-provider-notice.dom.test.tsx: Tests 2 passed (2)
    • npm run check:decisions: decisions: 135 entries, 1 full records, 0 errors, 0 warnings
    • eslint on the three changed source files: clean. tsc --noEmit: clean. Prettier: clean.
    • Phone-width screenshot of the Answer home (demo mode, 393 px): no provider note on the page (count 0).
    • Not run locally: verify:ui. CI will run its selected browser checks.

Risk and rollout

  • Risk: low. UI only, removes one line from one home page. No database, sw.js or ranking files.
  • Rollback: revert this commit.
  • Provider or production effects: None.

Notes

  • A duplicate branch claude/remove-home-overseas-notice-q7uuaz with the same commit was pushed by mistake and can be deleted.

Generated by Claude Code


Summary by cubic

Removes the overseas AI processing line from the Answer home so it no longer shows before the first question.

The line ("Questions are sent to an overseas AI service (OpenAI)…") still appears under each answer, and the privacy page keeps the full disclosure. The "Do not enter patient-identifiable information" warning and "Privacy and data processing" link stay on the home.

  • Drops the home mount in ClinicalDashboard.tsx and removes the now-unused testId prop on AnswerProviderNotice.
  • Strengthens the test so the notice can only be mounted by ClinicalDashboard.tsx, never on the home or in demo mode.
  • Records the owner's decision in docs/decisions/2026-10-17-no-overseas-line-on-home-pages.md, replacing the 13 Oct wish, and refreshes the repo-awareness snapshot to catalogue it.
  • Fixes the prescribing phone dock test so it re-scrolls to the live end when the "Also matches" card lands late, which could make the page taller after the first scroll.

CodeAnt-AI Description

Remove the overseas AI notice from the Answer home

What Changed

  • The Answer home no longer shows the notice about questions being sent to an overseas AI service before a question is submitted.
  • The notice still appears beneath generated answers, and the patient-identifiable information warning and privacy page disclosure remain.

Impact

✅ Less pre-question text on the Answer home
✅ Overseas AI disclosure remains beneath answers
✅ Patient-data warning remains visible

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

Summary by CodeRabbit

  • Changes
    • Removed the overseas AI notice from the Answer home page. Notices under answers and the privacy-page disclosure remain.
  • Tests
    • Updated checks to reflect where the notice appears and improved reliability of the prescribing-results dock scroll test.
  • Documentation
    • Recorded the notice change and updated project review records.