TidyLinker.com
TypeScript
Pull Request Merged
PR #90 merged: Fix DatePicker timezone bug & remove insurance from UI
Summary
- DatePicker fix:
new Date('YYYY-MM-DD')parses as UTC midnight, which shifts to the previous day during BST. AddedparseLocalDate/formatLocalDatehelpers inlib/dates.tsthat use local noon to avoid DST edge cases. Fixed in 5 pages (post-job step 4, job edit, onboarding step 1, certificates dialog, verification page). - Insurance UI removal: Removed insurance from all user-facing pages — onboarding step 3, verification page, cleaner search filters, public profile, admin verification queue/detail, admin user detail, how-it-works copy. Backend and database kept intact for potential future use.
Test plan
- Feature tests pass (
--filter=Onboarding,--filter=Verification) - Check onboarding step 3 no longer shows insurance upload
- Check cleaner verification page no longer shows insurance card
- Check cleaner search filters no longer show "Insured" checkbox
- Check public cleaner profile no longer shows insurance badge
- Check admin verification pages no longer show insurance column/panel
- Pick a date in BST period — confirm correct date is shown after selection
+258
additions
-243
deletions
22
files changed