Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(site): fix download log size display#24758

Merged
geokat merged 1 commit into
mainfrom
george/site-fix-download-log-size-display
Apr 29, 2026
Merged

fix(site): fix download log size display#24758
geokat merged 1 commit into
mainfrom
george/site-fix-download-log-size-display

Conversation

@geokat
Copy link
Copy Markdown
Contributor

@geokat geokat commented Apr 27, 2026

Previously, the workspace "Download logs" dialog formatted the original byte
count with the promoted unit, so sizes above 1 KiB could be shown incorrectly,
for example 4472 KB instead of 4.37 KB. Exact 1024-byte files also stayed
in bytes.

Update humanBlobSize to format the scaled value correctly, promote 1024 B
to 1 KB, and omit trailing .00 for whole numbers. Export the helper and add
a focused regression test covering bytes, the KiB boundary, fractional KiB, and
MiB cases.

Before After
Before After

@geokat geokat marked this pull request as ready for review April 27, 2026 23:51
@geokat geokat force-pushed the george/site-fix-download-log-size-display branch from 76f285d to 3a30a13 Compare April 28, 2026 20:59
@geokat geokat force-pushed the george/site-fix-download-log-size-display branch from 3a30a13 to 07700d1 Compare April 29, 2026 17:38
@geokat geokat merged commit 25ae415 into main Apr 29, 2026
26 of 27 checks passed
@geokat geokat deleted the george/site-fix-download-log-size-display branch April 29, 2026 17:52
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants