From a9e929585f5fb775b41851f68278adcef1ede157 Mon Sep 17 00:00:00 2001
From: 2Shirt <2xShirt@gmail.com>
Date: Sun, 1 Jun 2025 16:07:51 -0700
Subject: [PATCH] Refactor diagnostic groups (yet again)
---
boot_diags/src/app.rs | 230 +++++++++++++++++-----------------------
boot_diags/src/diags.rs | 215 ++++++++++++++++++++++++++-----------
2 files changed, 248 insertions(+), 197 deletions(-)
diff --git a/boot_diags/src/app.rs b/boot_diags/src/app.rs
index d767c89..2272e52 100644
--- a/boot_diags/src/app.rs
+++ b/boot_diags/src/app.rs
@@ -13,9 +13,8 @@
// You should have received a copy of the GNU General Public License
// along with Deja-Vu. If not, see .
//
-use crate::diags;
use core::{
- action::{Action, DiagResult},
+ action::Action,
components::{
Component,
footer::Footer,
@@ -57,13 +56,14 @@ use ratatui::{
use tokio::sync::mpsc;
use tracing::{debug, info};
+use crate::diags::{DiagGroup, Type as DiagType, get_diag_type, parse_chkdsk};
+
pub struct App {
// TUI
action_rx: mpsc::UnboundedReceiver,
action_tx: mpsc::UnboundedSender,
components: Vec>,
config: Config,
- diag_groups: diags::Groups,
frame_rate: f64,
last_tick_key_events: Vec,
should_quit: bool,
@@ -72,11 +72,11 @@ pub struct App {
// App
clone: CloneSettings,
cur_mode: Mode,
+ diag_groups: Arc>>,
list: StatefulList,
boot_modes: Vec,
selections: Vec