vtcode_core/ui/
mod.rs

1//! User interface utilities and shared UI components
2//!
3//! This module contains shared UI functionality including loading indicators,
4//! markdown rendering, and terminal utilities.
5
6pub mod diff_renderer;
7pub mod iocraft;
8pub mod markdown;
9pub mod spinner;
10pub mod styled;
11pub mod terminal;
12pub mod theme;
13pub mod user_confirmation;
14
15pub use markdown::*;
16pub use spinner::*;
17pub use styled::*;
18pub use terminal::*;
19pub use theme::*;
20
21#[cfg(test)]
22mod tests {
23    use super::*;
24
25    #[test]
26    fn test_render_markdown() {
27        let markdown_text = r#"
28# Welcome to VTCode
29
30This is a **bold** statement and this is *italic*.
31
32## Features
33
34- Advanced code analysis
35- Multi-language support
36- Real-time collaboration
37"#;
38
39        // This should not panic
40        render_markdown(markdown_text);
41    }
42}