Skip to content

fix(tipping): stop the new-chat button flashing blank white after the checkmark - #1466

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/new-chat-success-flash
Sep 15, 2026
Merged

bmc08gt merged 1 commit into
code/cashfrom
fix/new-chat-success-flash

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Resolving a username on the new-chat screen dispatched UpdateProcessingState() in the same block as UserResolved, resetting the button to idle.

CodeButton derives its content state from isLoading/isSuccess but paints its background from the raw enabled flag, so the reset snapped the fill from the disabled White10 to solid White in one frame while the content Crossfade was still ~300ms into taking the checkmark away. The result is a blank white button in the frames immediately before navigator.replace opens the chat.

The chat replaces this screen, so idle is a state it never shows again. Dropping the reset leaves the button holding its checkmark until the screen goes. CashScreenViewModel, the only other dispatchSuccessThen caller, already does it this way.

… checkmark

Resolving a username dispatched `UpdateProcessingState()` alongside
`UserResolved`, resetting the button to idle. `CodeButton` reads raw `enabled`
for its background, so the fill snapped from the disabled White10 to solid White
instantly while the content crossfade was still ~300ms into taking the checkmark
away — a blank white button in the frames right before `navigator.replace` opened
the chat.

The chat replaces this screen, so idle is a state it never shows again. Dropping
the reset holds the checkmark until the screen goes.
@bmc08gt bmc08gt self-assigned this Sep 15, 2026
@github-actions github-actions Bot added the type: fix Bug fix label Sep 15, 2026
@bmc08gt
bmc08gt merged commit 8ad93b9 into code/cash Sep 15, 2026
3 checks passed
@bmc08gt
bmc08gt deleted the fix/new-chat-success-flash branch September 23, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant