chore: remove Insurance default bias from Add Document modal (#162) #175
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Relates to #162
Severity: Medium
Problem
The Add Document modal defaults to "Insurance" document type and pre-fills insurance-specific fields (Bodily Injury, Property Damage, Premium). This creates confusion if the user wants to add a different document type.
Recommendation
Acceptance Criteria
Implementation Plan (from #162 -- Milestone 15)
Phase: 7 (Document improvements) | Priority: Medium | Depends on: None | Blocks: None
Context
The "Add Document" modal defaults the document type to "Insurance", creating unnecessary bias. Users must manually change the type for non-insurance documents, and insurance-specific fields are shown by default.
Implementation
1. In
frontend/src/features/documents/components/DocumentForm.tsx:documentType: 'insurance'todocumentType: ''(empty string)documentType === 'insurance'(verify this conditional already exists)Files
frontend/src/features/documents/components/DocumentForm.tsxCommit Convention
Test Criteria
Branch
Work on branch
issue-162-ux-design-audit-cleanup(shared with all #162 sub-issues)Milestone: Implementation Complete
Phase: Execution | Agent: Developer | Status: PASS
Changes
documentTypestate from'insurance'to''(empty string)disabledattributerequiredattribute to the document type selectdocumentType === 'insurance'Verification
daa0cd0Verdict: PASS | Next: Move to status/done