From 9b4aa504ec2357f3cbc6d5ff962cc363347855e3 Mon Sep 17 00:00:00 2001 From: vladtechno Date: Sat, 23 May 2026 12:50:05 +1000 Subject: [PATCH] =?UTF-8?q?feat(inspection):=20show=20general=20photo=20sl?= =?UTF-8?q?ots=20on=20=D0=BF=D1=80=D0=B8=D1=91=D0=BC=D0=BA=D0=B0=20(return?= =?UTF-8?q?)=20too?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously slotsForType excluded all general slots for return-type inspections and left only Домкрат, on the assumption that the car is already familiar and приёмка should focus on damages/equipment. Feedback from mechanics: при приёмке всё равно нужно фиксировать общее состояние машины, иначе споры с водителем теряют доказательную базу. Now все типы осмотров показывают одинаковый набор слотов. Co-Authored-By: claude-flow --- mechanic-pwa/frontend/src/pages/InspectionEditor.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mechanic-pwa/frontend/src/pages/InspectionEditor.tsx b/mechanic-pwa/frontend/src/pages/InspectionEditor.tsx index be8b60a..c6272d1 100644 --- a/mechanic-pwa/frontend/src/pages/InspectionEditor.tsx +++ b/mechanic-pwa/frontend/src/pages/InspectionEditor.tsx @@ -38,10 +38,11 @@ const SLOTS_GENERAL: { side: string; label: string }[] = [ const SLOT_JACK = { side: "jack", label: "Домкрат" }; -/** На приёмке (return) общие ракурсы не нужны — машина уже знакома, фокус - * на проверке повреждений и комплектации. Домкрат остаётся всегда. */ -function slotsForType(type: string): typeof SLOTS_GENERAL { - if (type === "return") return [SLOT_JACK]; +/** Все типы осмотров (выдача/приёмка/плановый/...) показывают одинаковый + * набор слотов общих ракурсов + домкрат. Раньше «return» исключал общие + * фото в пользу скорости приёмки, но фидбек: при приёмке всё равно надо + * фиксировать общее состояние машины, как и при выдаче/осмотре. */ +function slotsForType(_type: string): typeof SLOTS_GENERAL { return [...SLOTS_GENERAL, SLOT_JACK]; }