Repository navigation
Skeleton TUI - #226
Skeleton TUI#226
Conversation
davixcky
commented
Oct 21, 2025
- Adds dependencies
- Basic layout
- Mock data
- Custom types for HttpRequest and HttpResponse (With the current format that Scott is returning i can construct this using the stdlib)
|
Gitar analyzes/fixes CI failures, runs prompts as workflows and addresses comments starting with ⚙️ Options:
|
|
@davixcky, I'm not sure what to review in this PR, but here are some comments:
screen-capture.42.webm
|
| type HTTPRequestList struct { | ||
| Requests []HTTPRequest `json:"requests"` | ||
| Total int `json:"total"` | ||
| Page int `json:"page"` | ||
| PerPage int `json:"per_page"` | ||
| } |
There was a problem hiding this comment.
I know the data is still mocked at this stage, but this structure makes me think we'll end up keeping the full request and response bodies in memory for a set of requests. That might not be ideal.
Wouldn't it be better to load the bodies on demand, for example, only when the user navigates to the right panel and opens the request/response details?
|
@davixcky, here are the other things we discussed during the Eng Sync today:
|
|
@davixcky This looks much nicer now 🙂
screen-capture.44.webm
|
daniel-de-vera
left a comment
There was a problem hiding this comment.
Approving this, in case it's easier to addres my last comment in the subsequent PR.
|
Hey Daniel yes the meta is indeed repeated so I can test the viewport don't break on large data. Thanks |
* add traffic inspect command (#225) * add traffic inspect command * add support for wait and reword messages * fix pr comments * Skeleton TUI (#226) * skeleton tui * fix escape logs * only update if have too * make sure by default nothing is selected * move between panes and tabs with arrow * fix wrong re-render caused by map * use utility for setting up status * update mock to contain routing key * fix help menu and clear status * center empty states * add viewport for right panel * make sure right pane occupy more width * add basic paginator for left pane * make sure left pane scroll move between pages * make short help aware of context * [TUI] Wiring tui traffic watch (#232) * skeleton tui * fix escape logs * only update if have too * make sure by default nothing is selected * move between panes and tabs with arrow * fix wrong re-render caused by map * use utility for setting up status * update mock to contain routing key * fix help menu and clear status * center empty states * add viewport for right panel * make sure right pane occupy more width * add basic paginator for left pane * make sure left pane scroll move between pages * make short help aware of context * remove model mock files * add lipgloss dependency * add simple watcher and use libconnect type: * replace bufferred channel with non * replace round with ceiling * fix build * load absolute meta, request and response * rename symbol * rename symbol * pass record dir and meta format * fix build * fix yaml support * add tui call from the inspect * add tui flag in record * make sure inspect look for json * remove hardcoded path * rename tui flag to inspect * remove tui cmd * remove models directory and move loader to utils (#234) * use pointers for http.{Request,Response} * make sure width is valid for logs * disable logs temporarily * add basic error handling for filemanager (#236) * add basic error handling for filemanager * make sure error message is displayed * remove sprintf from status render * pass pointer instead of copy on linemessages * make union type for scanner
* add traffic inspect command (#225) * add traffic inspect command * add support for wait and reword messages * fix pr comments * Skeleton TUI (#226) * skeleton tui * fix escape logs * only update if have too * make sure by default nothing is selected * move between panes and tabs with arrow * fix wrong re-render caused by map * use utility for setting up status * update mock to contain routing key * fix help menu and clear status * center empty states * add viewport for right panel * make sure right pane occupy more width * add basic paginator for left pane * make sure left pane scroll move between pages * make short help aware of context * [TUI] Wiring tui traffic watch (#232) * skeleton tui * fix escape logs * only update if have too * make sure by default nothing is selected * move between panes and tabs with arrow * fix wrong re-render caused by map * use utility for setting up status * update mock to contain routing key * fix help menu and clear status * center empty states * add viewport for right panel * make sure right pane occupy more width * add basic paginator for left pane * make sure left pane scroll move between pages * make short help aware of context * remove model mock files * add lipgloss dependency * add simple watcher and use libconnect type: * replace bufferred channel with non * replace round with ceiling * fix build * load absolute meta, request and response * rename symbol * rename symbol * pass record dir and meta format * fix build * fix yaml support * add tui call from the inspect * add tui flag in record * make sure inspect look for json * remove hardcoded path * rename tui flag to inspect * remove tui cmd * remove models directory and move loader to utils (#234) * use pointers for http.{Request,Response} * make sure width is valid for logs * disable logs temporarily * add logs viewer * fix regression and make sure logs render ok
* add traffic inspect command (#225) * add traffic inspect command * add support for wait and reword messages * fix pr comments * Skeleton TUI (#226) * skeleton tui * fix escape logs * only update if have too * make sure by default nothing is selected * move between panes and tabs with arrow * fix wrong re-render caused by map * use utility for setting up status * update mock to contain routing key * fix help menu and clear status * center empty states * add viewport for right panel * make sure right pane occupy more width * add basic paginator for left pane * make sure left pane scroll move between pages * make short help aware of context * [TUI] Wiring tui traffic watch (#232) * skeleton tui * fix escape logs * only update if have too * make sure by default nothing is selected * move between panes and tabs with arrow * fix wrong re-render caused by map * use utility for setting up status * update mock to contain routing key * fix help menu and clear status * center empty states * add viewport for right panel * make sure right pane occupy more width * add basic paginator for left pane * make sure left pane scroll move between pages * make short help aware of context * remove model mock files * add lipgloss dependency * add simple watcher and use libconnect type: * replace bufferred channel with non * replace round with ceiling * fix build * load absolute meta, request and response * rename symbol * rename symbol * pass record dir and meta format * fix build * fix yaml support * add tui call from the inspect * add tui flag in record * make sure inspect look for json * remove hardcoded path * rename tui flag to inspect * remove tui cmd * remove models directory and move loader to utils (#234) * use pointers for http.{Request,Response} * make sure width is valid for logs * disable logs temporarily * add logs viewer * fix regression and make sure logs render ok * stay on logs on incoming * clear logs logic and add some coloring * add cosmetic visual for rendering * make sure render properly * constraint width for requests
