Skip to content

Show file size for CRAM datasets and in download tooltip#22273

Merged
mvdbeek merged 2 commits intogalaxyproject:devfrom
dannon:ds-size
Mar 31, 2026
Merged

Show file size for CRAM datasets and in download tooltip#22273
mvdbeek merged 2 commits intogalaxyproject:devfrom
dannon:ds-size

Conversation

@dannon
Copy link
Copy Markdown
Member

@dannon dannon commented Mar 27, 2026

CRAM's set_peek was hardcoding its blurb as "binary data" instead of calling nice_size() like every other binary datatype, so CRAM datasets didn't show their file size in the history panel. This came up when someone uploaded a CRAM that was unexpectedly small and there was no visible indication.

Also adds the dataset file size to the download button tooltip -- hovering now shows "Download (1.5 GB)" instead of just "Download". This surfaces size information without adding clutter to the history UI. Follows the same pattern already used in DownloadWorkbookButton.vue.

dannon added 2 commits March 26, 2026 22:47
CRAM's set_peek was hardcoding "binary data" as the blurb instead of
calling nice_size like every other binary datatype. This meant CRAM
datasets didn't show their file size in the history panel.
Adds the dataset file size to the download button tooltip, so hovering
shows something like "Download (1.5 GB)" instead of just "Download".
Uses the existing bytesToString formatter. Falls back to plain
"Download" for empty or zero-size datasets.
@dannon dannon marked this pull request as ready for review March 27, 2026 11:58
@github-actions github-actions Bot added this to the 26.1 milestone Mar 27, 2026
@mvdbeek mvdbeek merged commit 47a0104 into galaxyproject:dev Mar 31, 2026
59 of 64 checks passed
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in Galaxy Dev - weeklies Mar 31, 2026
@github-actions
Copy link
Copy Markdown

This PR was merged without a "kind/" label, please correct.

@itisAliRH itisAliRH deleted the ds-size branch April 1, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

4 participants