Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/branch-review-ledger.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ Use this ledger to prevent repeated branch and PR reviews when the reviewed HEAD
| Date | Branch or ref | Reviewed HEAD | Scope | Outcome | Checks |
| ---------- | -------------- | --------------------------------------- | -------------- | ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| 2026-07-09 | example/branch | abc1234567890abcdef1234567890abcdef1234 | branch-cleanup | Example: already merged into `main`; no unique patch content. | `git log --right-only --cherry-pick main...example/branch`; `git diff --name-status main...example/branch` |
| 2026-07-09 | claude/llm-pipeline-review | 009e85c6be437d98dd868d26cc797327bf8fc377 | design-review | Passed; resolved 3 minor P3 design system alignment issues (fixed arbitrary font sizes to `text-2xs` and `min-h-11` to `min-h-tap`). | `npm run verify:cheap` (ESLint + typecheck + 1409 unit tests passed); `node scripts/check-type-scale.mjs`; z-index & compile checks |
| 2026-07-09 | claude/llm-pipeline-review | 009e85c6be437d98dd868d26cc797327bf8fc377 | ai-architecture-review | AI architecture review completed. Found 1 P1 issue (GET seeding routes crash on OpenAI outage) and 2 P2 issues (scaling bottleneck in spelling query corrector, orphaned chunks on registry delete). All 1409 tests passed. | `git diff origin/main...HEAD`, `npm run verify:cheap` (ESLint + typecheck + 1409 unit tests passed) |
| 2026-07-09 | claude/llm-pipeline-review | 009e85c6be437d98dd868d26cc797327bf8fc377 | api-review | No high-confidence P0/P1/P2 issues. Identified minor validation sequence and parameter bounds checks (P3). | `npm run verify:cheap` (TypeScript typecheck, ESLint, and isolated Vitest runs on medications-route, rag-answer-fallback, and rag-cache-invalidation) |
3 changes: 1 addition & 2 deletions scripts/check-m13-migration.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { loadEnvConfig } from "@next/env";

import { createAdminClient } from "@/lib/supabase/admin";

loadEnvConfig(process.cwd());

const M13_HEALTH_MARKER = "commit_document_index_generation.preserve_legacy_artifacts_migration";
Expand All @@ -19,6 +17,7 @@ function missingMarkers(data: unknown) {
}

async function main() {
const { createAdminClient } = await import("@/lib/supabase/admin");
const supabase = createAdminClient();
const { data, error } = await supabase.rpc("search_schema_health");
if (error) {
Expand Down
6 changes: 3 additions & 3 deletions src/components/clinical-dashboard/source-actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function SourceActionRow({
}) {
return (
<div className={cn("flex flex-wrap gap-2", divider && "border-t border-[color:var(--border)] pt-3")}>
<Link href={viewerHref} className={cn(primaryControl, "min-h-11 px-4 text-xs")}>
<Link href={viewerHref} className={cn(primaryControl, "min-h-tap px-4 text-xs")}>
<FileText className="h-4 w-4" />
Open source
</Link>
Expand All @@ -53,7 +53,7 @@ export function SourceActionRow({
<span className="hidden sm:inline">Add scope</span>
</button>
{imageCount > 0 && (
<span className={cn(metadataPill, "min-h-11 rounded-lg px-3")}>
<span className={cn(metadataPill, "min-h-tap rounded-lg px-3")}>
{imageCount} indexed image{imageCount === 1 ? "" : "s"}
</span>
)}
Expand Down Expand Up @@ -124,7 +124,7 @@ export function SourcePassageLinks({
href={sourceResultHref(source)}
className={cn(
compact ? metadataPill : floatingControl,
"min-h-11 gap-1.5 px-2.5 text-2xs sm:min-h-9 sm:px-3",
"min-h-tap gap-1.5 px-2.5 text-2xs sm:min-h-9 sm:px-3",
)}
title={`${source.title} · page ${source.page_number ?? "n/a"} · chunk ${source.chunk_index}`}
aria-label={`Open source passage #${index + 1}`}
Expand Down
2 changes: 1 addition & 1 deletion src/components/forms/form-detail-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ export function FormDetailPage({ form }: { form: FormRecord }) {
<span
key={chip.label ?? `form-chip-${index}`}
className={cn(
"inline-flex min-h-6 items-center gap-1.5 rounded-full border px-2 text-[0.68rem] font-bold uppercase leading-none sm:min-h-7 sm:px-2.5 sm:text-xs",
"inline-flex min-h-6 items-center gap-1.5 rounded-full border px-2 text-2xs font-bold uppercase leading-none sm:min-h-7 sm:px-2.5 sm:text-xs",
chipToneClass(chip.tone),
)}
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui-primitives.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const chatActionRow =
export const chatMicroAction =
"inline-flex min-h-tap min-w-tap items-center justify-center gap-1.5 rounded-md px-2 text-xs font-semibold text-[color:var(--text-muted)] transition hover:bg-[color:var(--clinical-accent-soft)] hover:text-[color:var(--clinical-accent)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[color:var(--focus)] disabled:cursor-not-allowed disabled:opacity-50";
export const sourceCapsule =
"source-capsule-hover focus-ring-premium inline-flex min-h-tap items-center gap-1 rounded-md border border-[color:var(--border)] bg-[color-mix(in_srgb,var(--clinical-accent-soft)_55%,var(--surface))] px-2 text-[11px] font-medium text-[color:var(--clinical-accent)] transition hover:border-[color:var(--clinical-accent-border)] sm:px-2.5";
"source-capsule-hover focus-ring-premium inline-flex min-h-tap items-center gap-1 rounded-md border border-[color:var(--border)] bg-[color-mix(in_srgb,var(--clinical-accent-soft)_55%,var(--surface))] px-2 text-2xs font-medium text-[color:var(--clinical-accent)] transition hover:border-[color:var(--clinical-accent-border)] sm:px-2.5";
export const sourceCapsuleCountBadge =
"nums inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-full bg-[color:var(--surface-raised)] px-1.5 text-2xs font-semibold text-[color:var(--clinical-accent)] shadow-[var(--shadow-inset)]";
export const evidenceRow =
Expand Down
4 changes: 2 additions & 2 deletions supabase/drift-manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"generated_at": "2026-07-09T08:52:11.900Z",
"generated_at": "2026-07-09T11:02:02.346Z",
"generator": "scripts/generate-drift-manifest.ts",
"postgres_image": "supabase/postgres:17.6.1.127",
"schema_sha256": "3a60bf1561142aed58e45a1cf8a9605ccc715dd7358e154c4ad9879b82be4cd5",
"replay_seconds": 16,
"replay_seconds": 28,
"snapshot": {
"views": [
{
Expand Down