feat: add setup complete step

This commit is contained in:
2026-04-26 00:58:38 +01:00
parent 3b0fe3e311
commit 1cecfaf167
4 changed files with 48 additions and 18 deletions

View File

@@ -1,5 +1,6 @@
mod github_step;
mod screen;
mod setup_complete_step;
mod storage;
mod welcome_step;
@@ -14,10 +15,10 @@ use crate::{app, screen::setup_wizard::screen::Screen};
pub(crate) enum Step {
Welcome,
ConnectToGithub,
Customization,
SetupComplete,
}
const ALL_SETUP_STEPS: [Step; 3] = [Step::Welcome, Step::ConnectToGithub, Step::Customization];
const ALL_SETUP_STEPS: [Step; 3] = [Step::Welcome, Step::ConnectToGithub, Step::SetupComplete];
pub fn read_setup_status() -> SetupStatus {
storage::read_setup_state()
@@ -65,7 +66,7 @@ impl Step {
match self {
Step::Welcome => 0,
Step::ConnectToGithub => 1,
Step::Customization => 2,
Step::SetupComplete => 2,
}
}
}