Skip to content

feat(settings): Allow clearing the node status message#4577

Merged
jamesarich merged 1 commit into
mainfrom
feat/clear-status
Feb 17, 2026
Merged

feat(settings): Allow clearing the node status message#4577
jamesarich merged 1 commit into
mainfrom
feat/clear-status

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

This commit introduces the ability to clear the node status message.

An empty status message from the device is now correctly handled, clearing the status on the app side. Previously, an empty status was ignored.

Additionally, a clear button (X) has been added to the status message input field in the settings screen, providing a user-friendly way to remove the current status message.

Specific changes include:

  • Modified MeshNodeManager.updateNodeStatus to accept a nullable String and clear the status if it's null or empty.
  • Updated MeshConfigHandler and MeshActionHandler to pass the entire statusmessage object, allowing for empty status updates.
  • Added a trailing clear icon to the EditTextPreference for the node status message in StatusMessageConfigItemList.

This commit introduces the ability to clear the node status message.

An empty status message from the device is now correctly handled, clearing the status on the app side. Previously, an empty status was ignored.

Additionally, a clear button (`X`) has been added to the status message input field in the settings screen, providing a user-friendly way to remove the current status message.

Specific changes include:
- Modified `MeshNodeManager.updateNodeStatus` to accept a nullable `String` and clear the status if it's null or empty.
- Updated `MeshConfigHandler` and `MeshActionHandler` to pass the entire `statusmessage` object, allowing for empty status updates.
- Added a trailing clear icon to the `EditTextPreference` for the node status message in `StatusMessageConfigItemList`.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
@github-actions github-actions Bot added the enhancement New feature or request label Feb 17, 2026
@jamesarich jamesarich enabled auto-merge February 17, 2026 13:21
@codecov

codecov Bot commented Feb 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 14.79%. Comparing base (d374e76) to head (b3ff7ee).
⚠️ Report is 3 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...a/com/geeksville/mesh/service/MeshConfigHandler.kt 0.00% 2 Missing ⚠️
...a/com/geeksville/mesh/service/MeshActionHandler.kt 0.00% 1 Missing ⚠️
...ava/com/geeksville/mesh/service/MeshNodeManager.kt 0.00% 1 Missing ⚠️
...ngs/radio/component/StatusMessageConfigItemList.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4577      +/-   ##
==========================================
- Coverage   14.79%   14.79%   -0.01%     
==========================================
  Files         428      429       +1     
  Lines       14845    14846       +1     
  Branches     2456     2457       +1     
==========================================
  Hits         2197     2197              
- Misses      12330    12331       +1     
  Partials      318      318              

☔ 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 Feb 17, 2026
Merged via the queue into main with commit 558cf77 Feb 17, 2026
9 checks passed
@jamesarich jamesarich deleted the feat/clear-status branch February 17, 2026 13:42
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