Skip to content

[$250] Bug: Approve button flickers (disappears, reappears, disappears) when approving a report from workspace chat report preview #93067

@melvin-bot

Description

@melvin-bot

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

  1. Open a workspace chat report preview for a report that is pending approval.
  2. Tap/click the Approve button.
  3. 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

  • Android
  • iOS
  • Web
  • Desktop
Issue OwnerCurrent Issue Owner: @KJ21-ENG
Upwork Automation - Do Not Edit

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2

Type

No type
No fields configured for issues without a type.

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions