Restore settings shell tab topology

This commit is contained in:
ZacharyZhang-NY committed 2026-04-19 17:12:17 -04:00
1 parent 16b5bcb825
commit f0d37fe56e
4 files changed
+216 -131

No files matched your search

@@ -2,4 +2,4 @@ pub mod actions;
pub mod state;
pub use actions::AppAction;
pub use state::{AppState, InboxFilter, OnboardingStep, RunFilter};
pub use state::{AppState, InboxFilter, OnboardingStep, RunFilter, SettingsTab};
@@ -31,6 +31,17 @@ pub enum RunFilter {
Finished,
}
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
pub enum SettingsTab {
#[default]
General,
Mode,
Providers,
Shortcuts,
Data,
Secrets,
}
#[derive(Clone, Debug, Default)]
pub struct AppState {
pub section: SectionId,
@@ -44,6 +55,7 @@ pub struct AppState {
pub onboarding_execution_mode: &'static str,
pub inbox_filter: InboxFilter,
pub run_filter: RunFilter,
pub settings_tab: SettingsTab,
pub message_unread_only: bool,
pub status_line: Option<String>,
}