docs: tambah doc comment, logging, dan inline comments di semua 255 file
Meliputi: - File-level //! doc comment: tujuan file, alur kerja, komponen utama - Function-level /// doc comment: apa, parameter, return, flow, edge cases - Struct/enum/trait /// doc comment: peran, field docs - Tracing logging (tracing::info!/debug!/trace!/warn!/error!) di setiap fungsi - Inline comments untuk variable dan branching logic penting - Seluruh 8 crates di workspace: zesdex-backend, zesdex-cms, zesdex-entities, zesdex-iam, zesdex-infra, zesdex-ipc, zesdex-middleware, zesdex-utils - Build: 0 errors, 242/242 tests passed
This commit is contained in:
@@ -1,15 +1,27 @@
|
||||
//! Overlay: confirm-before-clear dialog for the chat transcript.
|
||||
//!
|
||||
//! Flow: shows a warning-coloured confirmation prompt; user presses Enter to
|
||||
//! confirm or Esc to cancel (handled by the input controller, not this renderer).
|
||||
|
||||
use ratatui::style::{Modifier, Style};
|
||||
use ratatui::text::{Line, Span};
|
||||
use ratatui::widgets::{Block, Paragraph};
|
||||
use ratatui::Frame;
|
||||
use crate::view::theme::Theme;
|
||||
use tracing;
|
||||
|
||||
/// Render the Clear Transcript confirmation dialog.
|
||||
///
|
||||
/// This overlay has no interactive state of its own — it just renders the
|
||||
/// prompt and instructions; the caller (`controller/input.rs`) interprets
|
||||
/// Enter/Esc and applies the action.
|
||||
pub fn render(
|
||||
frame: &mut Frame,
|
||||
area: ratatui::layout::Rect,
|
||||
block: Block<'static>,
|
||||
_state: &crate::app::state::rest::AppStateRest,
|
||||
) {
|
||||
tracing::debug!("overlay: Clear Confirm");
|
||||
let block = block
|
||||
.title(Span::styled(
|
||||
" Clear Transcript ",
|
||||
|
||||
Reference in New Issue
Block a user