How bburda42dot/mdd-ui works
mdd-ui is a terminal browser and comparison tool for MDD diagnostic databases. Its main workflow loads an MDD file, extracts ECU data, builds a navigable diagnostic tree, and presents that tree with searchable, sortable detail tables; users can follow cell links and browse with keyboard or mouse. The CLI also supports comparing two databases and viewing or exporting the resulting diff. The graph combines documented capabilities with relationships visible in sampled source and the SOURCE INDEX; some UI wiring and unsampled feature internals are therefore represented at subsystem level.
Main entry points: main.rs CLI commands · tree/mod.rs Tree assembly · app/mod.rs App state and loop · compare.rs Structural comparison
Components 20
CLI and loading
- CLI commands
src/main.rs - MDD loader
src/database/mod.rs - Database extraction
src/database/reader.rs
Diagnostic model
- Tree assembly
src/tree/mod.rs - Tree builder
src/tree/builder.rs - Diagnostic elements
src/tree/elements/variants
Interactive browser
- App state and loop
src/app/mod.rs - Keyboard and mouse
src/app/input.rs - Jump navigation
src/app/navigation/service.rs - Search and filters
src/app/search.rs - Sorting
src/app/sort.rs - Tree and detail rendering
src/app/render/composite.rs - Detail tables
src/app/render/detail.rs
Database comparison
- Database snapshots
src/diff/snapshot.rs - Structural comparison
src/diff/compare.rs - Diff tree view
src/diff/diff_tree.rs - Diff export
src/diff/export.rs
Other components
- Terminal user
- MDD database
- Terminal UI
Connections 25
- Terminal user → CLI commands: runs command
README.md - CLI commands → MDD loader: loads MDD
src/main.rs - MDD loader → MDD database: parses file
src/database/mod.rs - CLI commands → Tree assembly: builds tree
src/main.rs - Tree assembly → Database extraction: extracts data
src/tree/mod.rs - Tree assembly → Tree builder: assembles nodes
src/tree/mod.rs - Tree assembly → Diagnostic elements: adds elements
src/tree/mod.rs - CLI commands → App state and loop: starts browser
src/main.rs - Terminal user → Keyboard and mouse: sends input
README.md - App state and loop → Tree and detail rendering: renders interface
README.md - App state and loop → Search and filters: filters tree
src/app/mod.rs - App state and loop → Sorting: sorts details
src/app/mod.rs - Keyboard and mouse → Jump navigation: navigates links
- Jump navigation → Tree assembly: resolves targets
src/app/navigation/service.rs - Tree and detail rendering → Detail tables: renders details
src/app/render/mod.rs - Terminal user → CLI commands: requests comparison
README.md - CLI commands → Database snapshots: extracts snapshots
src/main.rs - Database snapshots → MDD database: reads hierarchy
src/diff/snapshot.rs - CLI commands → Structural comparison: compares snapshots
src/main.rs - Structural comparison → Database snapshots: uses snapshots
src/diff/compare.rs - CLI commands → Diff tree view: builds diff view
- Diff tree view → Structural comparison: uses results
src/diff/diff_tree.rs - CLI commands → Diff export: exports diff
- Diff export → Structural comparison: formats results
src/diff/export.rs - Tree and detail rendering → Terminal UI: draws interface
README.md