Problem
When a task's current status is BACKLOG, the TaskStatusDropdown component initializes newStatus to BACKLOG, but BACKLOG is excluded from the dropdown options via EXCLUDED_STATUSES. This creates a mismatch where the select element's value doesn't correspond to any available option, resulting in undefined browser behavior.
Tasks
- Fix the BACKLOG status handling in TaskStatusDropdown component to ensure the select value always matches an available option
- Update related tests to cover BACKLOG status scenarios
References
Problem
When a task's current status is BACKLOG, the TaskStatusDropdown component initializes
newStatusto BACKLOG, but BACKLOG is excluded from the dropdown options viaEXCLUDED_STATUSES. This creates a mismatch where the select element's value doesn't correspond to any available option, resulting in undefined browser behavior.Tasks
References
src/components/tasks/TaskStatusDropdown.tsx