[Dev Portal] Phase 2: Device Simulation - Battery & Storage Testing#418
Merged
hossain-khan merged 1 commit intomainfrom Dec 11, 2025
Merged
Conversation
- Add battery level simulation with slider (0-100%) - Add storage space simulation with slider (1GB - Max) - Implement SimulateBatteryAlert and SimulateStorageAlert events - Create test RemoteAlert objects with simulated values - Send notifications to all configured channels - Display success/failure feedback via Snackbar - Show loading state during notification sending - Add DeviceSimulationCard component with sliders and buttons - Test alerts use negative IDs (-1L) to distinguish from real alerts Implements: #410
Code Coverage Report |
📊 APK Size AnalysisComparing Generated by Diffuse via diffuse-action |
This was referenced Dec 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 Overview
Implements Phase 2 of the Developer Portal - Device Simulation for testing battery and storage alerts without waiting for actual device conditions.
Closes: #410
Epic: #416
Depends on: #417 (Phase 1 - merged)
📋 Changes Made
Enhanced State & Events
maxStorageGb,isSimulating, andsimulationResultto StateSimulateBatteryAlertandSimulateStorageAlerteventsNew Features
Battery Level Simulation
Storage Space Simulation
Notification Sending
UI Components
DeviceSimulationCard- Dedicated component with sliders and controls✨ Features Implemented
1. Battery Simulation
2. Storage Simulation
3. Alert Delivery
🎨 UI Demo
🔍 Testing
Manual Testing Scenarios
Test Results
📚 Technical Details
Notification Logic
State Management
isSimulatingprevents multiple simultaneous sendssimulationResulttriggers Snackbar displayDependencies Added
RemoteAlertRepository- For repository access (future use)NotificationSenderset - All notification channel implementations✅ Acceptance Criteria Met
🔗 Integration Points
Depends On
Enables
🚀 Next Steps
After this PR is merged:
📝 Notes
Estimated Development Time: 3-4 hours
Actual Time: ~3.5 hours