========================================
[Mon Feb  9 00:06:10 AEDT 2026] CC VPS triggered by Rivet
========================================

Task:
Fix: Inconsistent error patterns across the app. Some pages use toast.error(), others use setError(), others fail silently. Standardize on toast notifications for user-facing errors. Focus on the most critical user flows: job posting, profile creation, job applications, and messaging. Keep the changes scoped - don't refactor everything, just ensure critical paths show toast errors.
----------------------------------------

Perfect! Now let me create a summary of the changes:

## Summary

**Fixed: Inconsistent error handling across critical user flows**

### Changes Made:

#### 1. **Job Posting Flow** (`contractor/post-job/page.tsx`)
- ✅ Replaced `setError()` state with `toast.error()`
- ✅ Removed inline error display UI
- ✅ Added specific error messages for:
  - Session expiration
  - Missing company profile
  - Job insertion failures
  - Network errors

#### 2. **Contractor Signup Flow** (`contractor/signup/page.tsx`)
- ✅ Replaced `setAuthError()` and `setCompanyError()` with `toast.error()`
- ✅ Removed inline error display components
- ✅ Added error handling for:
  - Authentication failures
  - ABN validation errors
  - Profile/company creation errors
  - Session expiration

#### 3. **Messaging Flow** (`messages/[conversationId]/page.tsx`)
- ✅ Added `toast.error()` to previously silent catch blocks
- ✅ Now shows errors for:
  - Failed conversation loading
  - Conversation not found (404)
  - Message send failures

#### 4. **Contractor Matches/Hiring Flow** (`contractor/matches/page.tsx`)
- ✅ Replaced `setError()` state with `toast.error()`
- ✅ Removed inline error display UI
- ✅ Added error for missing company profile

### Already Working (No Changes Needed):
- ✅ **Worker signup** - already uses toast
- ✅ **Profile build** - already uses toast  
- ✅ **Worker jobs** - already uses toast

### Result:
All critical user flows now consistently display errors via toast notifications. Users will always see feedback when operations fail, eliminating silent errors and inconsistent error display patterns.

**Build:** ✅ Successful  
**Deployment:** ✅ Running on port 3000  
**Commit:** `7383d3f` - "fix: standardize error handling to use toast notifications"

----------------------------------------
[Mon Feb  9 00:11:38 AEDT 2026] Task finished (exit code: 0)
