fix: surface errors and polish UX across Step Library and Batch pages #92

Merged
chihlasm merged 1 commits from fix/frontend-polish-error-handling into main 2026-02-26 08:00:14 +00:00
chihlasm commented 2026-02-26 08:00:09 +00:00 (Migrated from github.com)

Summary

  • StepLibraryPage: toast.error on edit/save failures; replaced manual setTimeout toast with toast.success helper
  • BatchStatusPage: proper error state with retry button instead of ambiguous "No sessions found" on load failure
  • StepDetailModal: clipboard copy guarded against browser denial (no false "Copied!" checkmark); "See all reviews" button now works — expands/collapses inline
  • StepLibraryBrowser: "Try again" retry button on error state; clicking it re-triggers both load effects

Test Plan

  • Save a step to library — success toast appears
  • Simulate network error on Step Library page — toast.error fires
  • Open a step with 4+ reviews — "See all N reviews" button expands, "Show less" collapses
  • BatchStatusPage with bad batch ID — shows error box with retry button, not empty state

🤖 Generated with Claude Code

## Summary - **StepLibraryPage**: `toast.error` on edit/save failures; replaced manual `setTimeout` toast with `toast.success` helper - **BatchStatusPage**: proper error state with retry button instead of ambiguous "No sessions found" on load failure - **StepDetailModal**: clipboard copy guarded against browser denial (no false "Copied!" checkmark); "See all reviews" button now works — expands/collapses inline - **StepLibraryBrowser**: "Try again" retry button on error state; clicking it re-triggers both load effects ## Test Plan - [ ] Save a step to library — success toast appears - [ ] Simulate network error on Step Library page — `toast.error` fires - [ ] Open a step with 4+ reviews — "See all N reviews" button expands, "Show less" collapses - [ ] BatchStatusPage with bad batch ID — shows error box with retry button, not empty state 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.