Skip to content

fix(frontend): inventory retry + slots crash-guard + honest report-issue (P3)#211

Merged
arigatoexpress merged 1 commit into
mainfrom
fix/p3-frontend-ux
Jun 20, 2026
Merged

fix(frontend): inventory retry + slots crash-guard + honest report-issue (P3)#211
arigatoexpress merged 1 commit into
mainfrom
fix/p3-frontend-ux

Conversation

@arigatoexpress

Copy link
Copy Markdown
Owner

P3: customer-facing UX robustness

Holistic review — three silent-failure / crash fixes on public pages.

  • InventoryBrowse: fetchInventory never cleared a prior error, so "Try Again" stayed stuck on the error screen even after a successful retry. Clears error at the start of each (re)fetch.
  • Appointments: a malformed 200 (missing / non-array available_slots) crashed the render at .length / .map. Normalizes available_slots to an array on set.
  • ReportIssue: ignored resp.ok and always showed a success checkmark, so a 4xx/5xx silently dropped the report. Now checks resp.ok and shows an honest "couldn't send — try again / call us" state.

Verification: build + eslint clean; 50 vitest (incl. 2 new ReportIssue regression tests).

…e (P3)

Holistic review, P3 UX/robustness on customer-facing pages.

- InventoryBrowse: fetchInventory never cleared a prior error, so 'Try Again'
  stayed stuck on the error screen even after a successful retry. Clear error at
  the start of each (re)fetch.
- Appointments: a malformed 200 (missing / non-array available_slots) crashed the
  render at .length / .map. Normalize available_slots to an array on set.
- ReportIssue: ignored resp.ok and always showed a success checkmark, so a
  4xx/5xx silently dropped the report. Now checks resp.ok and shows an honest
  'couldn't send — try again / call us' state. + vitest regression tests.

Frontend build + eslint clean; 50 vitest pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@arigatoexpress arigatoexpress merged commit 0256292 into main Jun 20, 2026
2 checks passed
@arigatoexpress arigatoexpress deleted the fix/p3-frontend-ux branch June 20, 2026 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant