Skip to content

Conversation

@lowhung
Copy link
Owner

@lowhung lowhung commented Dec 24, 2025

Summary

Adds CSV export functionality to the TUI, complementing the existing JSON export.

Changes

  • Add export_state_csv() method to App
  • Add E keybinding for CSV export (e remains for JSON)
  • Add csv_escape() helper for proper CSV formatting
  • Update help text with new keybinding
  • Update CHANGELOG

CSV Format

Module,Topic,Type,Count,Backlog,Pending,Health
order-processor,orders.new,Read,1500,23,150ms,OK
order-processor,orders.processed,Write,1497,,,OK

Usage

  • Press E in the TUI to export to monitor_export.csv
  • Press e to export to monitor_export.json (unchanged)

Testing

All 62 TUI tests pass.

Closes #32

- Add export_state_csv() method to App
- Add 'E' keybinding for CSV export (vs 'e' for JSON)
- CSV includes: Module, Topic, Type, Count, Backlog, Pending, Health
- Add csv_escape() helper for proper CSV formatting
- Update help text with new keybinding

Closes #32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(tui): Add CSV export format

2 participants