fix: real-time provisioning status + disconnect handling #35

Merged
schwifty merged 1 commit from schwifty/fix-provisioning-status into main 2026-03-23 00:01:23 +00:00
Collaborator

Problem

App shows "Connecting..." with no updates during the entire connect → discover → auth cycle. If the beacon disconnects mid-process, the UI stays stuck.

Changes

  • DXSmartProvisioner reports each phase via onStatusUpdate callback (connecting, discovering services, authenticating, retrying)
  • Live diagnostic log shown during connecting/writing states, not just on failure
  • Unexpected BLE disconnects now properly transition to .failed state instead of silently logging
  • Cancel button on connecting progress view
  • Clearer connected state title

Test Plan

  • Start provisioning a DX beacon — status should update through each phase
  • Pull the beacon away mid-connect — should show failure, not hang
  • Diagnostic log should scroll in real-time during connecting
## Problem App shows "Connecting..." with no updates during the entire connect → discover → auth cycle. If the beacon disconnects mid-process, the UI stays stuck. ## Changes - DXSmartProvisioner reports each phase via `onStatusUpdate` callback (connecting, discovering services, authenticating, retrying) - Live diagnostic log shown during connecting/writing states, not just on failure - Unexpected BLE disconnects now properly transition to `.failed` state instead of silently logging - Cancel button on connecting progress view - Clearer connected state title ## Test Plan - [ ] Start provisioning a DX beacon — status should update through each phase - [ ] Pull the beacon away mid-connect — should show failure, not hang - [ ] Diagnostic log should scroll in real-time during connecting
schwifty added 1 commit 2026-03-23 00:01:17 +00:00
- DXSmartProvisioner now reports each phase (connecting, discovering
  services, authenticating, retrying) via onStatusUpdate callback
- ScanView shows live diagnostic log during connecting/writing states,
  not just on failure — so you can see exactly where it stalls
- Unexpected BLE disconnects now properly update provisioningState to
  .failed instead of silently logging
- Added cancel button to connecting progress view
- "Connected" screen title changed to "Connected — Beacon is Flashing"
  for clearer status indication

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
schwifty merged commit ed9a57a938 into main 2026-03-23 00:01:23 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: payfrit/payfrit-beacon-ios#35
No description provided.