Skip to content

fix(configs): Improve loading state feedback and dialog behavior#4271

Merged
jamesarich merged 2 commits into
mainfrom
fix/config-progress
Jan 21, 2026
Merged

fix(configs): Improve loading state feedback and dialog behavior#4271
jamesarich merged 2 commits into
mainfrom
fix/config-progress

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

This commit enhances the user experience during radio configuration loading by providing more detailed status updates and improving the behavior of the response state dialog.

Key Changes:

  • Detailed Loading Status: The ResponseState.Loading class now includes an optional status string. This is used to display what is currently being fetched (e.g., "Fetching LoRa", "Fetching Channel 2/8"), giving the user better insight into the progress.
  • Auto-Dismissing Success Dialog: The PacketResponseStateDialog now automatically dismisses itself 1.5 seconds after successfully completing an operation, reducing the need for an extra user tap.
  • Robust Progress Tracking:
    • The completed count check in PacketResponseStateDialog is now >= total instead of == total to prevent getting stuck if the count overshoots.
    • The logic for setting the total in RadioConfigViewModel is now more robust, ensuring it doesn't decrease if new requests are added.
  • Code Simplification: The set of request IDs is now managed as an immutable emptySet() and updated using cleaner + and - operators instead of mutable operations.

This commit enhances the user experience during radio configuration loading by providing more detailed status updates and improving the behavior of the response state dialog.

### Key Changes:
- **Detailed Loading Status:** The `ResponseState.Loading` class now includes an optional `status` string. This is used to display what is currently being fetched (e.g., "Fetching LoRa", "Fetching Channel 2/8"), giving the user better insight into the progress.
- **Auto-Dismissing Success Dialog:** The `PacketResponseStateDialog` now automatically dismisses itself 1.5 seconds after successfully completing an operation, reducing the need for an extra user tap.
- **Robust Progress Tracking:**
    - The `completed` count check in `PacketResponseStateDialog` is now `>= total` instead of `== total` to prevent getting stuck if the count overshoots.
    - The logic for setting the `total` in `RadioConfigViewModel` is now more robust, ensuring it doesn't decrease if new requests are added.
- **Code Simplification:** The set of request IDs is now managed as an immutable `emptySet()` and updated using cleaner `+` and `-` operators instead of mutable operations.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
@jamesarich jamesarich added the bugfix PR tag label Jan 20, 2026
@codecov

codecov Bot commented Jan 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (932c31c) to head (92b0611).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #4271   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files          3       3           
  Lines         23      23           
  Branches       7       7           
=====================================
  Misses        23      23           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jamesarich jamesarich added this pull request to the merge queue Jan 21, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 21, 2026
@jamesarich jamesarich enabled auto-merge January 21, 2026 12:15
@jamesarich jamesarich added this pull request to the merge queue Jan 21, 2026
Merged via the queue into main with commit cdfd0e3 Jan 21, 2026
9 checks passed
@jamesarich jamesarich deleted the fix/config-progress branch January 21, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PR tag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant