Skip to content

Conversation

poliver
Copy link
Owner

@poliver poliver commented Oct 18, 2025

Thank you for sending in a pull request, here's some tips to get started!

(Please delete all these tips and replace with your text)

  • Before starting on some new big chunk of code, it it is optional but highly recommended to open an issue first to say "Hey, I think this idea X should be implemented and I'm starting work on it. My general plan is Y, any feedback is appreciated." This will allow other devs to potentially save you time by not accidentally duplicating work etc...
  • Mention "#(issue)" in the description, when applicable
  • Please do not check in files that don't have real changes
  • Please do not reformat lines that you didn't have to change the code on
  • If your other co-developers have comments on your PR please tweak as needed
  • Do not use any external image service, just paste or drag and drop the image here and it will be uploaded automatically
  • Please also enable "Allow edits by maintainers".

This commit introduces a progress indicator that is displayed on the `ConnectionsScreen` while the application is connecting to a Bluetooth device.

- A `CONNECTING` state has been added to the `ConnectionState` enum.
- A `LinearProgressIndicator` is now shown on the `ConnectionsScreen` when the state is `CONNECTING`.
- A `connectionProgress` flow has been added to the `ServiceRepository` to broadcast the connection progress.
- The `MeshService` has been updated to emit progress updates on the new flow during the connection process.
- The `ConnectionsViewModel` has been updated to use the new progress flow.
- The state management bug in `MeshService` has been fixed to ensure the `CONNECTING` state is set correctly.
This commit introduces a progress indicator that is displayed on the `ConnectionsScreen` while the application is connecting to a Bluetooth device.

- A `CONNECTING` state has been added to the `ConnectionState` enum.
- A `LinearProgressIndicator` is now shown on the `ConnectionsScreen` when the state is `CONNECTING`.
- A `connectionProgress` flow has been added to the `ServiceRepository` to broadcast the connection progress.
- The `MeshService` has been updated to emit progress updates on the new flow during the connection process.
- The `ConnectionsViewModel` has been updated to use the new progress flow.
- The state management bug in `MeshService` has been fixed to ensure the `CONNECTING` state is set correctly.
@github-actions github-actions bot added the enhancement New feature or request label Oct 18, 2025
This commit introduces a progress indicator that is displayed on the `ConnectionsScreen` while the application is connecting to a Bluetooth device.

- A `CONNECTING` state has been added to the `ConnectionState` enum.
- A `LinearProgressIndicator` is now shown on the `ConnectionsScreen` when the state is `CONNECTING`.
- A `connectionProgress` flow has been added to the `ServiceRepository` to broadcast the connection progress.
- The `MeshService` has been updated to emit progress updates on the new flow during the connection process.
- The `ConnectionsViewModel` has been updated to use the new progress flow.
- The state management bug in `MeshService` has been fixed to ensure the `CONNECTING` state is set correctly.
Adds a linear progress indicator to the connections screen to show the user the progress of the bluetooth connection.

The progress is weighted based on the different stages of the connection process:
- Device config
- Module config
- Channels
- Node database

A 30-second timeout has also been added to the connection process.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant