The Task Update feature allows users to modify existing tasks through a dedicated form page. Users can edit properties including title, details, due date, and completion status. This feature ensures users can keep their task information current and relevant.
- Provide a form interface for editing task properties
- Pre-populate form with existing task data
- Validate user input before submission
- Submit changes to the backend API
- Handle success and error states appropriately
- Return user to their previous location after successful update
- Provide clear feedback during the update process
- Title - Text input field (required)
- Detail - Text area for longer descriptions
- Due Date - Date picker for selecting deadline
- Completion Status - Checkbox to mark task as complete
- Initial Load - Form displays with current task values
- Validation - Show inline errors for invalid inputs
- Loading - Disable form controls during submission with visual indicator
- Success - Display confirmation message before navigation
- Error - Show appropriate error message with recovery options
- Access Points:
- Edit button on Task List page
- Edit button on Task Detail page in the actions bar area
- Route:
/tasks/:taskId/edit - Post-Update Navigation:
- Return to originating page (Task List or Task Detail)
- Track previous location to enable proper return navigation
- Handle optimistic updates for immediate UI feedback
- Method: PUT
- URL:
/tasks/:taskId
{
"title": "string",
"detail": "string",
"dueAt": "YYYY-MM-DDTHH:mm:ssZ",
"isComplete": boolean
}- 200 OK: Successful update - navigate back to previous page
- 400 Bad Request: Validation error - display specific validation messages
- 404 Not Found: Task doesn't exist - show appropriate message
- Other errors: Display generic error message with retry option
-
Data Loading
- User can navigate to the Update Task page from Task List or Task Detail
- Form loads with fields pre-populated with current task data
-
Form Validation
- Title field is required and validated
- Due date must be in valid format
- Form prevents submission with validation errors
-
Update Process
- Form submission shows loading state
- All form controls are disabled during submission
- Successful updates return user to previous page
- Error states provide clear feedback with recovery options
-
Accessibility
- Form is fully keyboard navigable
- ARIA attributes present for screen readers
- Focus management maintained during form submission
- Color contrast meets WCAG AA standards