buzz icon indicating copy to clipboard operation
buzz copied to clipboard

Mobile invite sheet: Join retry silently no-ops after claim error

Open tlongwell-block opened this issue 4 months ago • 3 comments

Summary

After a claim error in the mobile invite join sheet, the error UI re-enables Join, but tapping it silently does nothing.

Root cause

invite_join_sheet.dart allows the button in the error state, while the provider's confirmJoin() returns early unless status is confirming.

Expected behavior

A retry should either:

  • allow confirmJoin() from both confirming and error, or
  • keep Join disabled and provide an explicit reset/retry path.

Found during the independent review of PR #1957; non-blocking for that PR but should be fixed as a fast-follow.

tlongwell-block avatar Jul 16 '26 17:07 tlongwell-block

This appears to be stale: current main already implements the expected retry path.

  • confirmJoin() permits both InviteJoinStatus.confirming and InviteJoinStatus.error, while still rejecting expired invites: https://github.com/block/buzz/blob/7e34bee62cacaa9d8a96c14d5892a471b59a1983/mobile/lib/features/invites/invite_join_provider.dart#L94-L101
  • There is a focused regression test, failed claim can be retried and preserves policy receipt, which makes the first claim return 503, retries, and asserts success plus two attempts: https://github.com/block/buzz/blob/7e34bee62cacaa9d8a96c14d5892a471b59a1983/mobile/test/features/invites/invite_join_provider_test.dart#L186-L239
  • Both were included when #1957 merged in commit 648cbf36109d97be6bd8530e77073d1c7e6008a0: https://github.com/block/buzz/commit/648cbf36109d97be6bd8530e77073d1c7e6008a0

I attempted the focused Flutter test during an open-issue audit, but the repo's pinned toolchain bootstrap did not finish within the bounded check, so I am not claiming a fresh runtime pass here. The source and regression coverage do show that the reported early-return condition is no longer present.

Suggested maintainer action: close as already fixed. If this still reproduces in a current release, it likely represents a different path; a Buzz version and fresh trace would help distinguish it.

BradGroux avatar Jul 22 '26 10:07 BradGroux

Ran that test on 7e34bee6, all 5 pass including the retry one. Needed . ./bin/activate-hermit first, might be what got you on the bootstrap. Looks closeable.

mdmohsin7 avatar Jul 22 '26 14:07 mdmohsin7

Fixed by https://github.com/block/buzz/pull/1957

ngthuydiem avatar Oct 05 '26 23:10 ngthuydiem