Skip to content

Add power on button to disabled banner - #275

Merged
davertay-j merged 3 commits into
mainfrom
dt/enable_ble_button
Jun 25, 2026
Merged

Add power on button to disabled banner#275
davertay-j merged 3 commits into
mainfrom
dt/enable_ble_button

Conversation

@davertay-j

@davertay-j davertay-j commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Adds a liveBluetoothPowerRequest that tickles the BLE system to throw up the system alert. This is wired into a new button on the error banner.

Demo
Screenshot 2026-06-18 at 15 22 08

Note

Low Risk
Small UI wiring plus a one-off CoreBluetooth manager for the system power alert; no changes to the main BLE coordinator or auth/data paths.

Overview
When Bluetooth is powered off, the error banner now shows a power button (alongside the existing Enable flow for unauthorized state).

Tapping it runs an injectable requestPowerOn hook on BluetoothSystemState, wired from TopazMain to liveBluetoothPowerRequest, which creates a short-lived CBCentralManager with CBCentralManagerOptionShowPowerAlertKey so iOS can surface the system “turn on Bluetooth” alert. WebContainerModel forwards the tap from BluetoothErrorView into that shared hook.

Reviewed by Cursor Bugbot for commit c88ce5e. Configure here.

@davertay-j davertay-j added the minor Changes that should bump the MINOR version number label Jun 18, 2026
@davertay-j davertay-j added this to the 2.2.0 milestone Jun 23, 2026
@davertay-j
davertay-j requested a review from twyatt June 23, 2026 19:02
@davertay-j
davertay-j enabled auto-merge (squash) June 25, 2026 18:07
@davertay-j
davertay-j merged commit 65e7970 into main Jun 25, 2026
3 checks passed
@davertay-j
davertay-j deleted the dt/enable_ble_button branch June 25, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Changes that should bump the MINOR version number

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants