Display package description rather than summary#362
Open
RRosio wants to merge 3 commits intomamba-org:mainfrom
Open
Display package description rather than summary#362RRosio wants to merge 3 commits intomamba-org:mainfrom
RRosio wants to merge 3 commits intomamba-org:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the package list display to show package descriptions instead of summaries, with a fallback to summary when description is empty. The description text is truncated to 2 lines with an ellipsis, while the full text remains available in a tooltip.
Key changes:
- Backend logic modified to prefer description over summary field
- CSS styling updated to implement multi-line text truncation with ellipsis
- Text alignment changed from flex-start to center for better visual presentation
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
mamba_gator/envmanager.py |
Updated package info retrieval to prefer description field over summary, with fallback logic |
packages/common/src/components/CondaPkgList.tsx |
Modified CSS styling to implement 2-line text truncation with webkit line-clamp properties |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Collaborator
Author
|
For some packages, it does look like the summary is more concise and maybe better suited here... but in other cases it might be the description that provides a more helpful idea of the package functionality... |
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.
This PR adds a conditional to grab the package description unless it is empty, in which case the summary is pulled. It also cuts the description with an ellipsis but keeps the full description in the tooltip