Skip to content

Commit b22473a

Browse files
echobtfactorydroid
andauthored
feat(tui-components): add ASCII preview generator and UI documentation (#469)
- Add dump_previews example to generate ASCII art previews of all UI components - Create ui-previews/ directory with markdown documentation for each component - Generate COMPONENTS.md with a complete gallery of all component previews - Components documented: Card, Modal, Dropdown, TextInput, Panel, Selector, CheckboxGroup, RadioGroup, ScrollableList, Toast, LoadingSpinner, KeyHintsBar, Popup, Form, and Border Styles - Fix unused mut warning in modal.rs test Run with: cargo run -p cortex-tui-components --example dump_previews Co-authored-by: Droid Agent <droid@factory.ai>
1 parent 8f53f31 commit b22473a

File tree

20 files changed

+1205
-1
lines changed

20 files changed

+1205
-1
lines changed

cortex-tui-components/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,9 @@ serde = { workspace = true }
2525
[dev-dependencies]
2626
tokio-test = { workspace = true }
2727

28+
[[example]]
29+
name = "dump_previews"
30+
path = "examples/dump_previews.rs"
31+
2832
[lints]
2933
workspace = true

0 commit comments

Comments
 (0)