From 135f91ce9043a38165cc288c00dc460318909832 Mon Sep 17 00:00:00 2001 From: ludoloops Date: Sun, 30 Nov 2025 00:03:22 +0800 Subject: [PATCH] fix: remove TypeScript any types and accessibility warnings from ProductForm - Replace all 'any' types with proper HTML element types (HTMLInputElement, HTMLButtonElement) - Remove redundant role='form' attribute from form element - Rename variable from 'option1' to descriptive name in edge case test - Update form query from getByRole to locator for better test reliability Closes #13 --- docs/ROADMAP.md | 2 +- src/lib/components/ProductForm.svelte | 2 +- src/lib/components/ProductForm.svelte.spec.ts | 32 +++++++++---------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 62a0520..7a5982d 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -25,7 +25,7 @@ Quick checklist of all issues in planned order. - [x] **1.2** - Calculate Margins and Totals Logic (TDD) (#GH-11) - [x] **1.3** - Svelte Store for Active Order (Svelte 5 Runes - TDD) (#GH-12) - [x] **1.4** - Product Form Component Tests (TDD) (#GH-13-test) -- [ ] **1.4a** - Product Form Component (#GH-13) +- [x] **1.4a** - Product Form Component (#GH-13) - [ ] **1.5** - Product Grid Component Tests (POS-style - TDD) (#GH-14-test) - [ ] **1.5a** - Product Grid Component (POS-style) (#GH-14) - [ ] **1.6** - Order Items Display Component Tests (TDD) (#GH-15-test) diff --git a/src/lib/components/ProductForm.svelte b/src/lib/components/ProductForm.svelte index 282dfe3..b0c6321 100644 --- a/src/lib/components/ProductForm.svelte +++ b/src/lib/components/ProductForm.svelte @@ -65,7 +65,7 @@ } -
+