fix(cleanup): remove dead protected exports, add icon aria-hidden, and pin static governance checks - #2403
Conversation
…As, and fix dialog accessibility
The Medication shortcut is not a consolidated 307 onto /?mode=prescribing. That path is the shared empty home; /medications is the prescribing workspace.
…d pin static governance checks - Remove dead protected exports answerQuestion (rag.ts), embedText (openai.ts), and clinicalRankScore (clinical-search.ts) on #45V4Y7 - Add aria-hidden="true" to destructured Icon components across document-ui, evidence-panels, and DocumentTagCloud - Update caring contacts prohibited language regex to exempt clinical job titles - Add §D4 superseded pointers in live-drift-forensics-2026-08.md - Queue merge-safe ledger receipts and synchronize snapshot RAG impact: no retrieval behaviour change -- dead exports with zero callers
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Warning Review limit reachedNext included review available in 57 minutes. View limit detailsLimit details: You’ve used the included review currently available. Your 94 included PR review attempts over the past 7 days set your current allowance at 1 review per hour. Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab. Review configuration: ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (10)
📒 Files selected for processing (9)
Comment |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_55e79df6-394d-4f77-a445-c1db3224b530) |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:f64c4385a4
ℹ️ 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.
Resolve outstanding-issues snapshot conflict by regenerating from main, retarget privacy docs to embedTextWithTelemetry after embedText removal, and tighten caring-contacts lead exemptions so mixed commercial phrases still fail the interface vocabulary scan. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_2fefe884-b12b-4a4d-a5a3-5566e6827d6e) |
Uh oh!
There was an error while loading. Please reload this page.
Summary
answerQuestioninsrc/lib/rag/rag.ts,embedTextinsrc/lib/openai.ts, andclinicalRankScoreinsrc/lib/clinical-search.ts.aria-hidden="true"to destructured Lucide icon instances acrosssrc/components/clinical-dashboard/document-ui.tsx(DocumentBadge,DocumentActionLink,DocumentActionAnchor,DocumentActionButton),src/components/clinical-dashboard/evidence-panels.tsx(AnswerFeedbackPanel), andsrc/components/DocumentTagCloud.tsx(DocumentTagChipand section headers) to prevent redundant screen reader announcements.tests/helpers/caring-contacts-prohibited-language.tsto(?<!\b(?:incident|programme|clinical|team|service)\s)\bleads?\band expanded test cases intests/caring-contacts-interface-vocabulary.test.tsto safely exempt clinical job titles.docs/superpowers/specs/2026-08-15-caring-contact-coordination-design.mdtointeraction-matrix.md, added Section §D4 superseded pointers indocs/audit/live-drift-forensics-2026-08.md, verified/ward-management/constellationcompatibility redirect documentation, and synchronizeddata/outstanding-issues-snapshot.json.Verification
npm run verify:pr-localPassed all local preflight verification checks:
Prettier formatting check (
prettier --check) -> 0 errorsESLint static analysis (
npm run lint) -> 0 errors, 0 warningsTypeScript compiler validation (
tsc -p tsconfig.typecheck.json --noEmit) -> 0 compilation errorsDocumentation link integrity check (
node scripts/check-docs-links.mjs) -> 3,406 path references resolveOutstanding issues ledger validation (
npm run check:outstanding-issues) -> 449 rows, snapshot in stepRepo-awareness snapshot synchronization (
npm run check:repo-awareness-snapshot) -> 188 pages, 429 documents, 2609 reviewsLighthouse automated self-test (
node scripts/check-lighthouse-budget.mjs --self-test) -> Passed121 passing Vitest unit/integration tests across vocabulary, message policy, and lighthouse suites
npm run verify:uinpm run verify:releaseVerification not run:
npm run eval:retrieval:quality: Not required — dead export deletion with zero callers; no retrieval algorithm, chunking, or scoring logic was altered.npm run eval:rag: Not required — synthesis prompts, LLM generation contracts, and answer post-processing are untouched.npm run check:production-readiness: Not required — no schema migrations, secrets, or hosting configurations modified.npm run check:deployment-readiness: Not required — no changes to boot scripts, workers, or deployment entrypoints.Risk and rollout
git revertwith zero schema/database state side effects.Clinical Governance Preflight
Clinical KB Database(sjrfecxgysukkwxsowpy)Notes
#45V4Y7.docs/outstanding-issues-inbox/to prevent concurrent merge conflicts.Note
Low Risk
Mostly dead-code removal and a11y/test tweaks with no runtime behavior change; the corrupted encoding in privacy markdown is a documentation-quality risk, not a security change.
Overview
Removes unused public exports
answerQuestion,embedText, andclinicalRankScoreafter verifying callers useanswerQuestionWithScope/embedTextWithTelemetryinstead. Addsaria-hidden="true"on decorative Lucide icons in document UI, tag cloud, and answer feedback controls.Tightens the Caring Contacts interface vocabulary regex so clinical job titles (e.g. “clinical programme lead”) are allowed while sales-style lead phrases still fail the scan; adds focused tests for that distinction.
Updates governance artifacts: outstanding-issues snapshot/inbox receipts (done/cancel entries, pending count), and D4 superseded notes in live-drift forensics. Privacy/OpenAI basis docs rename embedding references to
embedTextWithTelemetrybut the same files also show widespread punctuation/encoding corruption (mojibake)—likely unintentional and worth fixing before merge.Reviewed by Cursor Bugbot for commit 92a943b. Configure here.