removed preview card

This commit is contained in:
filipriec
2025-03-21 18:21:40 +01:00
parent 74054f2724
commit 27cca8763b
4 changed files with 3 additions and 47 deletions

View File

@@ -1,6 +1,6 @@
// src/ui/handlers/render.rs
use crate::components::{render_command_line, render_preview_card, render_status_line};
use crate::components::{render_command_line, render_status_line};
use crate::config::colors::Theme;
use ratatui::layout::{Constraint, Direction, Layout};
use ratatui::Frame;
@@ -66,15 +66,6 @@ pub fn render_ui(
current_position,
);
// Render preview card in the right content area
let preview_values: Vec<&String> = form_state.values.iter().collect();
render_preview_card(
f,
content_chunks[1],
&preview_values,
theme,
);
// Render sidebar if enabled
if let Some(sidebar_rect) = sidebar_area {
crate::components::handlers::sidebar::render_sidebar(f, sidebar_rect, theme);

View File

@@ -13,14 +13,14 @@ use crate::state::state::AppState;
pub async fn run_ui() -> Result<(), Box<dyn std::error::Error>> {
let config = Config::load()?;
let mut terminal = TerminalCore::new()?; // Remove .await
let mut terminal = TerminalCore::new()?;
let mut grpc_client = GrpcClient::new().await?;
let mut command_handler = CommandHandler::new();
let theme = Theme::from_str(&config.colors.theme);
// Fetch table structure at startup (one-time)
// TODO: Later, consider implementing a live update for table structure changes.
let table_structure = grpc_client.get_table_structure().await?; // Changed
let table_structure = grpc_client.get_table_structure().await?;
// Extract the column names from the response
let column_names: Vec<String> = table_structure