inav-configurator
inav-configurator copied to clipboard
Refactor tab loading and reboot
User description
Some refactoring for tabs and (re)enable proper reboot
- Refactor tabs as proper modules, get rid of global TAB variable. helps vite to optimize
- Remove unused ez-tune tab check
- Removed special reboot logic for old, unsupported FCs,
- Make sure modal "Device rebooting" dialog is always shown correctly, even in CLI tab
- After "save and reboot" corresponding tab is loaded after reboot
- Tab switching in CLI tab works now (with reboot in between)
- Add confirmation dialog for reboot when switching mixer profile
PR Type
Enhancement
Description
-
Refactor tabs from global TABS object to individual module exports
-
Replace dynamic imports with static preloading for better optimization
-
Improve tab switching logic with proper cleanup and reconnection handling
-
Add confirmation dialog for mixer profile changes requiring reboot
-
Fix CLI tab exit behavior and reboot handling across all tabs
Diagram Walkthrough
flowchart LR
A["Global TABS object"] -->|"Refactor to"| B["Individual tab modules"]
B -->|"Export as"| C["Named exports"]
D["Dynamic imports"] -->|"Replace with"| E["Static preloading"]
E -->|"In"| F["configurator_main.js"]
G["Tab switching"] -->|"Improved with"| H["Proper cleanup"]
H -->|"And"| I["Reconnection logic"]
J["Mixer profile change"] -->|"Add"| K["Confirmation dialog"]
K -->|"Trigger"| I
File Walkthrough
| Relevant files | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Enhancement | 48 files
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Documentation | 1 files
|