Editing Customer Information
Location
`/admin/customers/:id` → Click "Edit" button
Steps
-
Enter Edit Mode
- Click "Edit" button in Contact Information section
- Form fields become editable
-
Update Fields
- Modify Company Name, Primary Contact Name, Phone, Website
- Email is read-only (managed via User account)
-
Save or Cancel
- Save: Submits PATCH request, updates customer, refreshes data
- Cancel: Discards changes, returns to view mode
Validation
- Same validation rules as creation
- Changes are audited (updatedBy, updatedAt timestamps)
Customer Detail Page Sections
- Contact Information - Email, company, contact, phone, website with edit mode
- Account Details - User ID, Customer ID, role, account status
- Customer Contacts - List of contacts with CRUD operations
- Job Listings - Read-only listing display grouped by status
- Audit Trail - Created/Updated timestamps and user tracking