2026-04-23 15:33:11 +03:30
|
|
|
{
|
|
|
|
|
"name": "frontend",
|
|
|
|
|
"version": "0.1.0",
|
|
|
|
|
"private": true,
|
|
|
|
|
"scripts": {
|
2026-05-03 20:29:58 +03:30
|
|
|
"dev": "next dev -p 3001",
|
2026-04-23 15:33:11 +03:30
|
|
|
"build": "next build",
|
2026-05-16 22:40:42 +03:30
|
|
|
"start": "next start -p 3001",
|
feat(voice): adapt voice entry to the stacked-jobs prosthesis model
Authored by the /orchestrate builder agent, committed unrepaired so the
fixes that follow are reviewable against it.
Backend: replaces the flat prosthesisDefaultType/prosthesisOverrides wire
shape with a prosthesis: ProsthesisAssignment[] list whose targets can be a
tooth or a jaw; adds resolveAssignmentTarget / classifyTypeCode /
resolveProsthesisAssignment for leaf-vs-category classification, region
validity with mixed-region deferral, and assignmentIndex on unresolved
items; adds PROSTHESIS_CATEGORY and PROSTHESIS_SUBCATEGORY to
CatalogEntityKind with a migration and seeded fa/en/nl translations; and
rewrites the extraction prompt to render the catalog as a tree.
Frontend: merged "teeth and prosthesis" row, stack preview through the
existing applyLeafToJobs, three chip-fold paths, rewritten applyVoiceResult
and voiceForEditor, and the two carried-forward recording fixes — the
container fallback that refused Safari and the render gate that never
checked isMediaRecorderSupported().
Adds Vitest for the frontend's pure helpers, and updates CLAUDE.md.
Gate was green: backend 16 suites / 209 tests, nest build, prisma validate;
frontend 37 Vitest tests, tsc --noEmit, next build.
KNOWN DEFECTS, fixed in the commits that follow:
- VoiceReviewSheet.tsx:169 — a picked tooth chip is dropped on Apply
- VoiceReviewSheet.tsx:213 / TreatmentWorkspace.tsx:2215 — decision 41's
type-row lock is missing, so unticking it saves prosthesis lab rows on a
non-prosthesis detail
Reviewed on the correctness lens only; regression-risk never ran. The
migration was validated but never applied.
Spec: docs/specs/voice-treatment-entry/spec.md
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 12:23:58 +08:00
|
|
|
"lint": "next lint",
|
|
|
|
|
"test": "vitest run"
|
2026-04-23 15:33:11 +03:30
|
|
|
},
|
|
|
|
|
"dependencies": {
|
|
|
|
|
"@hookform/resolvers": "^5.2.2",
|
2026-08-31 07:34:07 +03:30
|
|
|
"@sentry/nextjs": "^10.72.0",
|
2026-04-23 15:33:11 +03:30
|
|
|
"@tanstack/react-query": "^5.90.21",
|
|
|
|
|
"axios": "^1.13.6",
|
|
|
|
|
"js-cookie": "^3.0.5",
|
2026-07-18 22:00:44 +03:30
|
|
|
"jspdf": "^4.2.1",
|
2026-04-23 15:33:11 +03:30
|
|
|
"lucide-react": "^0.577.0",
|
|
|
|
|
"next": "16.1.6",
|
2026-06-20 12:37:38 +03:30
|
|
|
"next-intl": "^4.13.0",
|
2026-04-23 15:33:11 +03:30
|
|
|
"react": "19.2.3",
|
|
|
|
|
"react-dom": "19.2.3",
|
|
|
|
|
"react-hook-form": "^7.71.2",
|
2026-07-14 21:07:05 +03:30
|
|
|
"react-qr-code": "^2.0.15",
|
2026-07-11 00:34:38 +03:30
|
|
|
"recharts": "^3.9.2",
|
2026-07-18 01:09:54 +03:30
|
|
|
"socket.io-client": "^4.8.3",
|
2026-04-23 15:33:11 +03:30
|
|
|
"zod": "^4.3.6"
|
|
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"@tailwindcss/postcss": "^4",
|
|
|
|
|
"@types/js-cookie": "^3.0.6",
|
|
|
|
|
"@types/node": "^20",
|
|
|
|
|
"@types/react": "^19",
|
|
|
|
|
"@types/react-dom": "^19",
|
|
|
|
|
"babel-plugin-react-compiler": "1.0.0",
|
|
|
|
|
"eslint": "^9",
|
|
|
|
|
"eslint-config-next": "16.1.6",
|
|
|
|
|
"tailwindcss": "^4",
|
feat(voice): adapt voice entry to the stacked-jobs prosthesis model
Authored by the /orchestrate builder agent, committed unrepaired so the
fixes that follow are reviewable against it.
Backend: replaces the flat prosthesisDefaultType/prosthesisOverrides wire
shape with a prosthesis: ProsthesisAssignment[] list whose targets can be a
tooth or a jaw; adds resolveAssignmentTarget / classifyTypeCode /
resolveProsthesisAssignment for leaf-vs-category classification, region
validity with mixed-region deferral, and assignmentIndex on unresolved
items; adds PROSTHESIS_CATEGORY and PROSTHESIS_SUBCATEGORY to
CatalogEntityKind with a migration and seeded fa/en/nl translations; and
rewrites the extraction prompt to render the catalog as a tree.
Frontend: merged "teeth and prosthesis" row, stack preview through the
existing applyLeafToJobs, three chip-fold paths, rewritten applyVoiceResult
and voiceForEditor, and the two carried-forward recording fixes — the
container fallback that refused Safari and the render gate that never
checked isMediaRecorderSupported().
Adds Vitest for the frontend's pure helpers, and updates CLAUDE.md.
Gate was green: backend 16 suites / 209 tests, nest build, prisma validate;
frontend 37 Vitest tests, tsc --noEmit, next build.
KNOWN DEFECTS, fixed in the commits that follow:
- VoiceReviewSheet.tsx:169 — a picked tooth chip is dropped on Apply
- VoiceReviewSheet.tsx:213 / TreatmentWorkspace.tsx:2215 — decision 41's
type-row lock is missing, so unticking it saves prosthesis lab rows on a
non-prosthesis detail
Reviewed on the correctness lens only; regression-risk never ran. The
migration was validated but never applied.
Spec: docs/specs/voice-treatment-entry/spec.md
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 12:23:58 +08:00
|
|
|
"typescript": "^5",
|
|
|
|
|
"vitest": "^3.2.7"
|
2026-04-23 15:33:11 +03:30
|
|
|
}
|
2026-06-20 12:37:38 +03:30
|
|
|
}
|