Description
When approving a report from the workspace chat report preview, the approve button flickers — it disappears, reappears, then disappears again instead of cleanly transitioning away after the action.
Steps to reproduce
- Open a workspace chat report preview for a report that is pending approval.
- Tap/click the Approve button.
- Observe the button: it disappears, briefly reappears, then disappears again.
Expected behavior
The approve button should disappear cleanly (once) after tapping, as the report transitions to an approved state.
Actual behavior
The approve button disappears, reappears momentarily, then disappears again — a visible flicker.
Notes from investigation
- Reproduced on a normal workspace; could not reproduce on the DEW policy.
- Not consistently reproducible across all reports in a workspace.
- Suspected cause: the Onyx update for the report status may be racing with the animation/UI timeout — the optimistic update may not always fire fast enough (or is being overwritten/re-evaluated) before the button re-renders.
Platform
Issue Owner
Current Issue Owner: @KJ21-ENG
Upwork Automation - Do Not Edit
Description
When approving a report from the workspace chat report preview, the approve button flickers — it disappears, reappears, then disappears again instead of cleanly transitioning away after the action.
Steps to reproduce
Expected behavior
The approve button should disappear cleanly (once) after tapping, as the report transitions to an approved state.
Actual behavior
The approve button disappears, reappears momentarily, then disappears again — a visible flicker.
Notes from investigation
Platform
Issue Owner
Current Issue Owner: @KJ21-ENGUpwork Automation - Do Not Edit