-
Notifications
You must be signed in to change notification settings - Fork 3
refactor: Move core providers, services, and platform utilities #558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Move assign_ip/ folder from lib/core/jnap/providers/ to lib/core/utils/ - Move ip_getter/ folder from lib/core/jnap/providers/ to lib/core/utils/ - Update import paths in all affected files (8 files) - Remove unused mock_firmware_update_provider.dart from lib/
- Create new lib/core/data/ directory structure with providers/ and services/ subdirectories - Move dashboard_manager_provider/state from lib/core/jnap/providers/ to lib/core/data/providers/ - Move device_manager_provider/state from lib/core/jnap/providers/ to lib/core/data/providers/ - Move firmware_update_provider/state from lib/core/jnap/providers/ to lib/core/data/providers/ - Move polling_provider from lib/core/jnap/providers/ to lib/core/data/providers/ - Move side_effect_provider from lib/core/jnap/providers/ to lib/core/data/providers/ - Move node_wan_status_provider to lib/core/data/providers/node_internet_status_provider.dart - Move dashboard_manager_service from lib/core/jnap/services/ to lib/core/data/services/ - Move device_manager_service from lib/core/jnap/services/ to lib/core/data/services/ - Move firmware_update_service from lib/core/jnap/services/ to lib/core/data/services/ - Move polling_service from lib/core/jnap/services/ to lib/core/data/services/ - Update all import paths in lib/ and test/ directories - Remove empty lib/core/jnap/providers/ and lib/core/jnap/services/ directories
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
User description
Summary
lib/core/data/for better organizationlib/core/utils/to centralize platform-specific codeChanges
lib/core/data/lib/core/utils/PR Type
Enhancement
Description
Move core providers and services from
lib/core/jnap/tolib/core/data/Move platform utilities (
assign_ip,ip_getter) tolib/core/utils/Move feature-specific providers (
node_light_settings,wan_external) to feature directoriesUpdate all import paths across 100+ files in lib and test directories
Diagram Walkthrough
File Walkthrough
77 files
Update imports to new data provider locationUpdate imports to new data provider locationUpdate imports to new data provider locationRename and update imports for internet statusUpdate imports to new data provider locationUpdate location comment and polling provider importUpdate imports to new data service locationUpdate imports to new data service locationUpdate imports to new data service locationUpdate imports for data providers and utilitiesUpdate device manager state import pathUpdate ip_getter import to utils locationUpdate provider and utility importsUpdate device manager provider importsUpdate device manager provider importUpdate provider imports to new locationsUpdate assign_ip import to utils locationUpdate provider imports to new locationsUpdate side effect provider importUpdate device manager state importUpdate assign_ip import to utils locationUpdate dashboard and polling provider importsUpdate polling provider importUpdate device manager provider importUpdate dashboard and device manager importsUpdate provider state importsUpdate provider imports and rename node_wan_statusUpdate provider imports and rename node_wan_statusUpdate provider imports and rename node_wan_statusUpdate provider imports and rename node_wan_statusMove node_light_settings to feature and update pollingUpdate polling provider importUpdate provider and utility importsUpdate polling provider importUpdate provider importsUpdate device manager state importUpdate firmware update provider importUpdate device manager state importUpdate device manager state importUpdate polling provider importUpdate provider imports and ip_getter locationUpdate polling provider importUpdate polling provider importUpdate provider imports to new locationsUpdate provider importsUpdate provider importsUpdate device manager state importUpdate provider importsUpdate provider importsUpdate provider importsUpdate device manager provider importUpdate provider importsUpdate device manager state importUpdate polling provider importUpdate firmware update provider importUpdate provider imports to new locationsUpdate provider importsUpdate device manager state importUpdate provider importsMove wan_external provider to feature directoryMove wan_external provider to feature directoryUpdate provider importsUpdate provider imports and move wan_externalUpdate provider importsUpdate firmware update provider importUpdate dashboard manager provider importUpdate provider importsUpdate device manager state importUpdate provider importsUpdate device manager state importUpdate provider importsMove to feature directory and update service importUpdate device manager state importUpdate device manager state importUpdate provider imports and move node_light_settingsUpdate dashboard manager provider importUpdate device manager provider import1 files
Remove unused mock firmware update provider file75 files