Profile selector: add sortable columns and total weight display#515
Merged
Profile selector: add sortable columns and total weight display#515
Conversation
…lumns - Replace profile list divs with a table layout for better structure - Add sorting by profile name and total non-idle weight with ascending/descending toggle - Display total weight and percentage in the weight column - Introduce SortIcon component to indicate sort direction - Update styles for table, headers, rows, and cells - Maintain selection and hover states with refs on table rows - Increase max width of profile select container for improved layout Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>
Owner
Author
|
@JLC827 Can you take a look at this and see if this would work for your needs? See https://github.com/jlfwong/speedscope/blob/main/CONTRIBUTING.md for instructions on getting this running locally |
|
@jlfwong Fantastic! This solves the problem I was having completely. Thank you so much for implementing this. For what it's worth, I hit a couple of minor setup hurdles on Windows. I'm sharing them here in case it helps other contributors in the future:
Thanks again! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
UI Components
SortIconcomponent to visually indicate sorting directionProfileSelectRowto render table rows with name and weight cellsSorting Logic
SortFieldandSortDirectionenums andSortMethodinterfaceStyling
Test plan
🌿 Generated by Terry
ℹ️ Tag @terragon-labs to ask questions and address PR feedback
📎 Task: https://www.terragonlabs.com/task/74df1090-b029-4226-abad-194cc2be3ac9
Fixes #514