From e30163276557d0e56364f2f2c2ad6fc3135f5446 Mon Sep 17 00:00:00 2001 From: npeter83 Date: Sat, 10 Oct 2026 12:52:12 +0200 Subject: [PATCH] fix(clip): a clip refusal speaks the user's language, and a choice in the clip form no longer sends it The backend refuses a clip with a structured reason, but the client showed every one as the generic "couldn't make the clip": each reason now has its own message in both languages, held to the backend's reasons in both directions by the contract test. A segmented toggle's and the priority stepper's buttons had no type, so inside a form one of them submitted it. --- frontend/src/components/ui/PriorityStepper.tsx | 2 ++ frontend/src/components/ui/SegmentedToggle.tsx | 2 ++ frontend/src/i18n/backendIds.contract.test.ts | 14 ++++++++++++++ frontend/src/i18n/locales/en/clip.json | 12 +++++++++++- frontend/src/i18n/locales/hu/clip.json | 12 +++++++++++- frontend/src/lib/api/core.test.ts | 16 ++++++++++++++++ frontend/src/lib/api/core.ts | 3 +++ 7 files changed, 59 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/ui/PriorityStepper.tsx b/frontend/src/components/ui/PriorityStepper.tsx index c55cea09..d0d95698 100644 --- a/frontend/src/components/ui/PriorityStepper.tsx +++ b/frontend/src/components/ui/PriorityStepper.tsx @@ -36,6 +36,7 @@ function PriorityStepButton({ }) { return (