feat: add a total file size summary to the summary statistics line for the anvil explorer (#4495) #4571
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.
Closes #4495.
This pull request enhances how summary data is displayed by introducing support for showing total file size and improving the formatting of summary counts. The main changes include adding a new summary type for total file size, updating how summary counts are formatted for display, and ensuring these changes are reflected in both shared and site-specific configuration files.
Summary display improvements:
TOTAL_FILE_SIZE
to theSUMMARY
enum and included it in summary key and label mappings, allowing the UI to display total file size information. [1] [2] [3]BIND_SUMMARY_RESPONSE
mapping inconstants.ts
to useformatCountSize
for all count values andformatFileSize
specifically for total file size, ensuring consistent and user-friendly formatting of summary data.site-config/anvil-cmg/dev/index/common/constants.ts
) to include the new total file size summary.Codebase consistency and cleanup:
mapSummary
function, since formatting is now handled by the binder functions inBIND_SUMMARY_RESPONSE
. [1] [2]formatCountSize
,formatFileSize
) inconstants.ts
to support the new summary formatting logic.