Skip to content

Display package description rather than summary#362

Open
RRosio wants to merge 3 commits intomamba-org:mainfrom
RRosio:fix_pkg_descriptions
Open

Display package description rather than summary#362
RRosio wants to merge 3 commits intomamba-org:mainfrom
RRosio:fix_pkg_descriptions

Conversation

@RRosio
Copy link
Collaborator

@RRosio RRosio commented Dec 13, 2025

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

Screenshot 2025-12-12 at 7 12 04 PM

@RRosio RRosio added this to the v6.1.0 milestone Dec 13, 2025
@RRosio RRosio added the enhancement New feature or request label Dec 13, 2025
@github-actions
Copy link

Binder 👈 Launch a binder notebook on the branch RRosio/gator/fix_pkg_descriptions

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

@RRosio
Copy link
Collaborator Author

RRosio commented Dec 13, 2025

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...

@RRosio RRosio modified the milestones: v6.1.0, v6.1.x Dec 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Information in package description column does not always match the installed package version's description

2 participants