Skip to content

[TUI] - Improve UI/UX traffic record - #238

Merged
davixcky merged 17 commits into
mainfrom
fix-visual-items
Oct 29, 2025
Merged

davixcky merged 17 commits into
mainfrom
fix-visual-items

Conversation

@davixcky

@davixcky davixcky commented Oct 28, 2025 •

Copy link
Copy Markdown
Contributor
image image image

davixcky and others added 14 commits October 22, 2025 09:58
* add traffic inspect command

* add support for wait and reword messages

* fix pr comments
* 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
* 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
@gitar-bot

gitar-bot Bot commented Oct 28, 2025 •

Copy link
Copy Markdown

Gitar analyzes/fixes CI failures, runs prompts as workflows and addresses comments starting with Gitar.

⚙️ Options:

  • Automatically accept changes

📝 Submit Feedback

@davixcky
davixcky changed the base branch from main to add-logs-support October 28, 2025 20:12
@foxish

foxish commented Oct 28, 2025

Copy link
Copy Markdown
Member

Please add timestamps - they're necessary for basic usability IMO.

line2 := fmt.Sprintf(" %s [%s]", requestURI, routingKey)
line1 := fmt.Sprintf("%s %s%s", method, host, path)
line2 := fmt.Sprintf(" ↳ %s • %s",
subtleStyle.Render(req.RoutingKey),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to show the routing key at all - it's implied since you can only watch 1 sandbox, so, I'd think we can show it at the top of the UI and not in every request (if at all)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The watched directories are cumulative, so the routing key may in fact vary.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And also when we use the inspect sub-command, we are not passing the routing key

@foxish

foxish commented Oct 28, 2025

Copy link
Copy Markdown
Member

Please add timestamps - they're necessary for basic usability IMO.

I'd propose the following for the left hand side pane.

<Timestamp> <HTTP/gRPC> Method (if HTTP) URI (host/path)

Base automatically changed from add-logs-support to main October 29, 2025 20:45

@foxish foxish left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, as per our sync via DM assuming that the pending issues will be resolved in future PRs

@davixcky
davixcky merged commit 251c7d9 into main Oct 29, 2025
@davixcky
davixcky deleted the fix-visual-items branch October 29, 2025 21:27
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.

3 participants