Mobile invite sheet: Join retry silently no-ops after claim error
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 bothconfirminganderror, 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.
This appears to be stale: current main already implements the expected retry path.
confirmJoin()permits bothInviteJoinStatus.confirmingandInviteJoinStatus.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.
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.
Fixed by https://github.com/block/buzz/pull/1957