From 7b0deb4cc7467061ef8fccce96e09cd8a5dcbec0 Mon Sep 17 00:00:00 2001
From: 2Shirt <2xShirt@gmail.com>
Date: Sun, 11 May 2025 20:20:08 -0700
Subject: [PATCH] Add boot diagnostic sections
Still very much WIP
---
boot_diags/src/app.rs | 478 ++++++++++++++++----------
boot_diags/src/components.rs | 2 +
boot_diags/src/components/progress.rs | 142 ++++++++
boot_diags/src/components/results.rs | 53 +++
boot_diags/src/diags.rs | 56 ++-
boot_diags/src/main.rs | 1 +
core/src/action.rs | 11 +
core/src/tasks.rs | 43 ++-
8 files changed, 578 insertions(+), 208 deletions(-)
create mode 100644 boot_diags/src/components.rs
create mode 100644 boot_diags/src/components/progress.rs
create mode 100644 boot_diags/src/components/results.rs
diff --git a/boot_diags/src/app.rs b/boot_diags/src/app.rs
index ee754c8..61ed244 100644
--- a/boot_diags/src/app.rs
+++ b/boot_diags/src/app.rs
@@ -15,7 +15,7 @@
//
use crate::diags;
use core::{
- action::Action,
+ action::{Action, DiagResult},
components::{
Component,
footer::Footer,
@@ -39,6 +39,7 @@ use core::{
tui::{Event, Tui},
};
use std::{
+ collections::VecDeque,
env,
iter::zip,
path::PathBuf,
@@ -75,6 +76,7 @@ pub struct App {
selections: Vec