Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added pull handles to JWT editor view #17

Merged
merged 1 commit into from
Jan 19, 2024
Merged

Added pull handles to JWT editor view #17

merged 1 commit into from
Jan 19, 2024

Conversation

eldstal
Copy link
Contributor

@eldstal eldstal commented Jan 19, 2024

In the current version, the JWT editor is inflexible and hard to read on small screens or with larger font sizes.

This PR adds two pull handles to the JWT editor tab (as shown in Burp request/response views). The user can use these to vertically shrink the serialized text field and the signature hex view, to focus on the contents of the token.

Current cramped view:
image

More helpful view (note the pull handles between serial, tabview and signature):
image

This makes the view more useful on small screens or with large font
sizes, since the user can focus on the token contents rather than the
serialized view or signature hex dump
@DolphFlynn
Copy link
Owner

Thanks for the PR. It looks like a really nice improvement!

Do you think that the JWE panel should have them as well?

@eldstal
Copy link
Contributor Author

eldstal commented Jan 19, 2024

The top divider applies whichever tab is selected (the SplitPanel which provides it is a parent of the Tab panel).

I saw no obvious place to put a divider inside the JWE tab, it seems more balanced (multiple similar fields) than the JWT panel (more commonly useful stuff followed by the large Signature field).

I may have missed something, but placing two dividers in the JWE tab would (AFAICT) lead to a hierarchy of paired panels, which probably wouldn't behave as the user would expect.

@DolphFlynn
Copy link
Owner

Fair enough 👍

I'll merge it now and email PortSwigger over the weekend to kick start getting it into the BAppStore.

Copy link
Owner

@DolphFlynn DolphFlynn left a comment

Choose a reason for hiding this comment

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

Much appreciated 👍

@DolphFlynn DolphFlynn merged commit 0d715b9 into DolphFlynn:main Jan 19, 2024
1 check passed
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.

2 participants