Skip to content

Traffic inspect improvements and fixes - #246

Merged
daniel-de-vera merged 2 commits into
mainfrom
traffic-inspect-fixes
Oct 30, 2025
Merged

daniel-de-vera merged 2 commits into
mainfrom
traffic-inspect-fixes

Conversation

@daniel-de-vera

Copy link
Copy Markdown
Contributor

This PR introduces several improvements and fixes to traffic inspect:

  • Removes the Meta section on the right pane (now we only have Request and Response).
  • Display source file path and response status/proto.
  • Improve request/response bodies rendering (taking into consideration content types and size).
  • Make the request format deterministic in height in the left panel (avoiding issues like [TUI] - Fix left pane UI rendering #242 (comment)).
  • Minor changes in section title colors (requested by Ani).

E.g.:

screen-capture.48.webm

@foxish

foxish commented Oct 30, 2025

Copy link
Copy Markdown
Member

Changes introduced as per video and description LGTM

@davixcky davixcky left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM after the comment

line1 += truncateURL(host, l.width-len(line1)-1)
// method fullPath
line2 := fmt.Sprintf("%-6s ", method)
line2 += truncateURL(fullPath, l.width-len(line2)-1)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's better to use the lipglos.Width(line2) cause it take in account other things i think

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.

It's done in 5abeb58.

@daniel-de-vera
daniel-de-vera merged commit 7c04c5f into main Oct 30, 2025
@daniel-de-vera
daniel-de-vera deleted the traffic-inspect-fixes branch October 30, 2025 18:48
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