Skip to content

Fix typography audit issues#1185

Closed
BigSimmo wants to merge 2 commits into
mainfrom
execute-typography-audit-fixes
Closed

Fix typography audit issues#1185
BigSimmo wants to merge 2 commits into
mainfrom
execute-typography-audit-fixes

Conversation

@BigSimmo

Copy link
Copy Markdown
Owner

Fixes for issues identified in the typography layout audit report.

@supabase

supabase Bot commented Jul 25, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy due to reaching the limit of concurrent preview branches.
Go to Project Integrations Settings ↗︎ if you wish to update this limit.


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

@coderabbitai

coderabbitai Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Too many files!

This PR contains 105 files, which is 5 over the limit of 100.

To get a review, narrow the scope:
• coderabbit review --committed # exclude uncommitted changes
• coderabbit review --dir # limit to a subdirectory
• coderabbit review --base # compare against a closer base

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 310e0b42-8a8b-4571-a759-7b9e41463358

📥 Commits

Reviewing files that changed from the base of the PR and between fc9d162 and dd64157.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (105)
  • .agents/skills/catalog.json
  • .agents/skills/prompt-perfector/SKILL.md
  • .gitattributes
  • .github/workflows/ci.yml
  • .github/workflows/pr-policy.yml
  • .npmrc
  • AGENTS.md
  • data/forms-catalog.json
  • docs/audit-handover-2026-07-14.md
  • docs/audit/repo-audit-2026-07-01.md
  • docs/audit/repo-wide-review-remediation-plan-2026-07-23.md
  • docs/audit/repo-wide-review-sweep-2026-07-19.md
  • docs/branch-review-ledger.md
  • docs/clinical-governance.md
  • docs/codex-review-protocol.md
  • docs/database-drift-detection.md
  • docs/ingestion-concurrency-fix-workorder.md
  • docs/outstanding-issues.md
  • docs/process-hardening.md
  • docs/search-chrome-behaviour.md
  • package.json
  • playwright.config.ts
  • scripts/audit-formatting-fixtures.ts
  • scripts/check-branch-review-ledger.mjs
  • scripts/check-github-action-pins.mjs
  • src/app/api/answer/route.ts
  • src/app/api/answer/stream/route.ts
  • src/app/api/documents/[id]/reindex/route.ts
  • src/app/api/documents/bulk/reindex/route.ts
  • src/app/api/documents/bulk/route.ts
  • src/app/api/search/route.ts
  • src/app/api/upload/route.ts
  • src/app/globals.css
  • src/app/layout.tsx
  • src/app/mockups/answer-evidence-popups/page.tsx
  • src/app/mockups/recent-searches-bottom/page.tsx
  • src/app/privacy/page.tsx
  • src/app/reference/colour-coding/page.tsx
  • src/components/ClinicalDashboard.tsx
  • src/components/DocumentViewer.tsx
  • src/components/calculator-mockups/bedside-sheet-mockup.tsx
  • src/components/calculator-mockups/clinical-console-mockup.tsx
  • src/components/clinical-dashboard/ClinicalSidebar.tsx
  • src/components/clinical-dashboard/answer-status.tsx
  • src/components/clinical-dashboard/document-admin.tsx
  • src/components/clinical-dashboard/evidence-panels.tsx
  • src/components/clinical-dashboard/favourites-hub.tsx
  • src/components/clinical-dashboard/global-search-shell.tsx
  • src/components/clinical-dashboard/mobile-composer-reserve.ts
  • src/components/clinical-dashboard/settings-dialog.tsx
  • src/components/clinical-dashboard/signed-image.tsx
  • src/components/differentials/differential-presentation-workflow-page.tsx
  • src/components/document-viewer/source-panels.tsx
  • src/components/document-viewer/types.ts
  • src/components/forms/form-detail-page.tsx
  • src/components/master-document-flow-mockups.tsx
  • src/components/mode-home-template.tsx
  • src/components/navigation-back-button.tsx
  • src/components/patient-safety-plan.tsx
  • src/components/services/service-detail-page.tsx
  • src/components/services/services-home-page.tsx
  • src/components/services/services-navigator-page.tsx
  • src/components/ui-primitives.tsx
  • src/components/ui/sheet.tsx
  • src/lib/answer-render-policy.ts
  • src/lib/compact-best-use-title.ts
  • src/lib/document-detail-contract.ts
  • src/lib/document-detail.ts
  • src/lib/form-catalog.ts
  • src/lib/ingestion-mutation-safety.ts
  • src/lib/search-scope.ts
  • src/lib/service-catalog-mapper.ts
  • src/lib/source-authority-metadata.ts
  • src/lib/source-authority-registry.ts
  • src/lib/source-metadata.ts
  • src/lib/supabase/database.types.ts
  • src/lib/validation/answer-request.ts
  • supabase/drift-manifest.json
  • supabase/migrations/20260724120000_create_uploaded_document_with_ingestion_job.sql
  • supabase/schema.sql
  • tests/accessible-table.dom.test.tsx
  • tests/answer-render-policy.test.ts
  • tests/audit-content-services-regressions.test.ts
  • tests/clinical-dashboard-merge-artifacts.test.ts
  • tests/document-detail-performance.test.ts
  • tests/favourites-auth-gate.test.ts
  • tests/favourites-hub-unavailable-controls.dom.test.tsx
  • tests/formatting-fixture-audit.test.ts
  • tests/forms-back-navigation.dom.test.tsx
  • tests/forms.test.ts
  • tests/ingestion-mutation-safety.test.ts
  • tests/mobile-composer-reserve.test.ts
  • tests/navigation-back-button.dom.test.tsx
  • tests/pdf-extraction-budget.test.ts
  • tests/private-access-routes.test.ts
  • tests/search-scope.test.ts
  • tests/services-catalog.test.ts
  • tests/signed-image.dom.test.tsx
  • tests/source-authority-tooling.test.ts
  • tests/ui-overlay-css-contract.test.ts
  • tests/ui-tools.spec.ts
  • tests/visual-evidence-tabs.dom.test.tsx
  • worker/main.ts
  • worker/python/extract_pdf_assets.py
  • worker/python/test_extract_pdf_assets_budget.py

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch execute-typography-audit-fixes

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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: dd641579f4

ℹ️ 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 on lines +6 to +8
<<<<<<< ours
<<<<<<< ours
<<<<<<< ours

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Resolve the committed merge markers

Importing this route now reaches raw <<<<<<</=======/>>>>>>> tokens before the JavaScript parser can load it, so the application cannot compile. git diff --check also finds committed markers in the upload route, several production components, tests, and documentation; resolve each conflict and retain only the intended implementation.

Useful? React with 👍 / 👎.

Comment on lines +253 to +255
publisher_code: canonicalAuthority ? (identityAuthority.code ?? canonicalAuthority.codes[0] ?? null) : null,
publisher: canonicalAuthority?.publisher ?? null,
jurisdiction: canonicalAuthority?.jurisdictions[0] ?? "Australia/WA",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Do not authenticate sources from upload filenames

When an authenticated user uploads an arbitrarily named file such as EMHS-guideline.pdf, this user-controlled filename is converted into the canonical EMHS publisher code. The new classifier then designates that metadata as Official without requiring local validation, and the UI describes it as an authenticated health-service source, so a renamed document can receive false provenance. Keep uploads unclassified until publisher identity is verified by a trusted workflow; a focused upload-route test should prove that a filename token alone cannot grant an Official designation.

Useful? React with 👍 / 👎.

navigateToMode(searchMode, { focus: true });
}
}}
onMobileBack={() => router.back()}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Restore deterministic in-app back destinations

On a direct mobile visit to an information route such as /forms/<slug> or /services/<slug>, this back control now calls router.back(), which can do nothing or return the user to an external site instead of the relevant mode home; the same commit also removes the form page's canonical fallback button. Restore the former route-specific router.push destinations (and the query-clearing mode-home behavior) so the app's only visible mobile back action remains an internal navigation path.

AGENTS.md reference: AGENTS.md:L192-L195

Useful? React with 👍 / 👎.

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.

1 participant