Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: flyPad Checklists refactor and adaption to A380X (#8593)
* Initial working checklists for A32NX and A380X * Refactor to have the actual checklists outside of EFB for later use in ECL * Refactored and moved various files * Refactored using json files (normal Json prototype) * Refactored using json5 files (prototype) * Simplified the useState for aircraftChecklists * Singleton ChecklistProvider * Cleanup and commenting * PoC using eval (eval is evil) * Auto conditions with vars * Cleanup and commenting * Troubleshooting github build * Using strings for auto matching json as data types were not reliable * Adding more conditions to the A380X checklists * Adding more conditions to the A32NX checklists * Refactor, comment and reorganize EFB Checklist code * Refactor, comment, lint errors and reorganize EFB Checklist code * GitHub build error fix * Added table to flight phase LVar * Added flightphase to checklist definitions * Added aircraftChecklists to reducer state and simplified handling * This commit refactors the reducer state in the `checklists.ts` to initialize using the actual aircraft checklist as a template. The 'getAircraftType()' function, hard-coded checklist definitions and 'setChecklistItems' action were removed. In their place, a new 'addTrackingChecklists' action was introduced to dynamically add tracking checklists. Further changes were made in `Efb.tsx` to load and process aircraft checklists accordingly. * Refactored mapping flight phases to checklists * Added CHANGELOG.md entry * Removed TODO comment * Moved reading the checklists from the ChecklistProvider to the index.tsx of the aircraft EFB class to make sure it is loaded before any component of the EFB is loaded. * Fixed regression * Fixed error message * Added comment * Fixed showing checklists as complete/all items complete for checklists not relevant for the current flight phase * Fixed rudder trim checklist autocheck for A32NX and removed it for A380X as not yet working --------- Co-authored-by: 2hwk <[email protected]>
- Loading branch information