Repository navigation
fix(node): remove every unheard node from the banner's Remove - #7667
Conversation
`AlertManager` holds a single alert, so requesting one confirmation per node left only the last node's dialog and removed just that node. The banner now asks once for the whole list.
📝 Walkthrough
Priority: ➖ Normal Merge Risk: 🔵 Low · up to
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository: meshtastic/Meshtastic-Android/.coderabbit.yaml
- Review profile: CHILL
- Plan: Advanced
- Run ID:
966a79fb-a820-4e54-90b3-4ad360f1ff7c
📒 Files selected for processing: 6
.skills/compose-ui/strings-index.txtcore/resources/src/commonMain/composeResources/values/strings.xmlfeature/node/src/commonMain/kotlin/org/meshtastic/feature/node/detail/NodeManagementActions.ktfeature/node/src/commonMain/kotlin/org/meshtastic/feature/node/list/NodeListScreen.ktfeature/node/src/commonMain/kotlin/org/meshtastic/feature/node/list/NodeListViewModel.ktfeature/node/src/commonTest/kotlin/org/meshtastic/feature/node/detail/NodeManagementActionsTest.kt
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
Remove on the unheard-nodes banner only removed one node. It asked for a confirmation per node, and
AlertManagerholds a single alert, so each request replaced the last and only the final node's dialog was left to confirm.🐛 Bug Fixes
NodeManagementActions.requestRemoveNodesis the batch entry point; a single node still gets the existing one-node dialog.Testing Performed
NodeManagementActionsTest.requestRemoveNodes_removes_every_node_after_one_confirmationSummary by CodeRabbit