add table page1

This commit is contained in:
filipriec
2025-04-16 22:23:30 +02:00
parent 69953401b1
commit f4db0e384c
6 changed files with 273 additions and 16 deletions

View File

@@ -1,6 +1,7 @@
// src/state/pages/admin.rs
use ratatui::widgets::ListState;
use crate::state::pages::add_table::AddTableState;
// Define the focus states for the admin panel panes
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
@@ -21,6 +22,7 @@ pub struct AdminState {
pub selected_profile_index: Option<usize>, // Index with [*] in profiles (persistent)
pub selected_table_index: Option<usize>, // Index with [*] in tables (persistent)
pub current_focus: AdminFocus, // Tracks which pane is focused
pub add_table_state: AddTableState,
}
impl AdminState {