Stu Mason
Stu Mason

Activity

StuMason/cleanconnect
TidyLinker.com
TypeScript
Pull Request Merged

PR #160 merged: fix: 24-hour time picker on preferred-time fields

Spotted by Stu on dev: PR #156 widened the cleaner availability editor to 24 hours, but the client-side preferred-time pickers on /post-job step 4 and /client/jobs/{uid}/edit were still hardcoded 08:00 – 17:00 in hourly steps. So even with Jamie now able to set 5am availability, a client posting a brand-new job couldn't pick 5am as their preferred time.

Changes

  • New resources/js/lib/time-options.ts exports TIME_OPTIONS_30MIN — 48 slots from 00:00 to 23:30. Single source for every time-picker on the site.
  • Client/post-job/step-four.tsx and Client/Jobs/Edit.tsx — swap the hand-rolled 10-item arrays for the shared list rendered with formatTime12h.
  • Cleaner/Availability/Index.tsx had its own (already-24h) generator after PR #156 — refactored to use the same shared constant. DRY.

Test plan

  • Lint, Prettier, Pint clean
  • Post-deploy: open /post-job step 4 (fixed schedule) → time dropdown shows 12:00 AM → 11:30 PM in 30-min steps
  • Post-deploy: open /client/jobs/{uid}/edit (fixed schedule) → same
+38
additions
-79
deletions
4
files changed