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 markdown;
8pub mod spinner;
9pub mod styled;
10pub mod terminal;
11pub mod theme;
12pub mod user_confirmation;
13
14pub use markdown::*;
15pub use spinner::*;
16pub use styled::*;
17pub use terminal::*;
18pub use theme::*;
19
20#[cfg(test)]
21mod tests {
22    use super::*;
23
24    #[test]
25    fn test_render_markdown() {
26        let markdown_text = r#"
27# Welcome to VTCode
28
29This is a **bold** statement and this is *italic*.
30
31## Features
32
33- Advanced code analysis
34- Multi-language support
35- Real-time collaboration
36"#;
37
38        // This should not panic
39        render_markdown(markdown_text);
40    }
41}