Skip to content

Improve Span Details Panel UI and Functionality per design #76

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

Merged
merged 8 commits into from
Aug 14, 2025

Conversation

dcoric
Copy link
Contributor

@dcoric dcoric commented Aug 14, 2025

Improves the Span Details Panel with the following changes:

  • Updates styling for a cleaner and more user-friendly interface, including row hover effects and refined dark mode appearance.
  • Enhances functionality with an improved search input, including a clear button.
  • Adjusts accordion styling and adds a minimum width to the drawer.
image image

dcoric added 6 commits August 14, 2025 12:28
- Fixed span details header and search bar
- Matched spacing and colouring in details
Enhances the visual presentation of the span details panel by adjusting font weights and adding padding to the accordion component, improving readability and overall user experience.
The changes include:
- Adding padding to the accordion component.
- Adjusting the background color of rows in the table.
- Adding a close button to the span details panel.
- Updating the search input placeholder text.
- Changing the span detail headers to uppercase and light font.
Improves the contrast of table rows in dark mode by changing the alternating background color from a dark gray to white.
Improves the visual separation of the span overlay drawer from the content below it.

The drawer now includes a top border, making it easier to distinguish the drawer's boundaries. This enhances the user interface by providing clearer visual cues.
@dcoric dcoric requested a review from nojaf August 14, 2025 11:22
Copy link
Member

@nojaf nojaf left a comment

Choose a reason for hiding this comment

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

Not bad, left some nitpicks.

Adds `whitespace-nowrap` to span details to prevent text wrapping, improving readability.

Adjusts the background color of the span overlay drawer for better contrast.

Improves vertical spacing in span details
@dcoric dcoric requested a review from nojaf August 14, 2025 11:52
Copy link
Member

@nojaf nojaf left a comment

Choose a reason for hiding this comment

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

Almost there!

<input type="text" placeholder="Search" value={search} onChange={(e) => setSearch(e.target.value)} />
<table className="w-full">
<div className="z-10 overflow-hidden text-sm">
<div className="px-2 py-2">
Copy link
Member

Choose a reason for hiding this comment

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

Don't do px-2 py-2, do p-2

Copy link
Member

Choose a reason for hiding this comment

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

Do a search and replace on this, we have it elsewhere as well.

/>
</div>
</div>
<div className="px-4">
Copy link
Member

Choose a reason for hiding this comment

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

Why add an extra div here? If it only has a single child, why not add the padding there?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one is so we can extend the line from end to end of a panel. With padding, that line is broken by the padding width

/>
</div>
</div>
<div className="px-4">
Copy link
Member

Choose a reason for hiding this comment

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

Ensure this align better with the accordeon sections:

Image

The scrollbar is over the copy button.

@dcoric dcoric merged commit 00244a2 into main Aug 14, 2025
5 checks passed
@dcoric dcoric deleted the denis-coric/span-details-style branch August 14, 2025 13:10
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