Skip to content

fix: Present empty folder sizes as zero [WPB-27776] - #22103

Merged
cristianoliveira merged 5 commits into
mainfrom
feat/WPB-27776-present-null-sizes-as-zero
Aug 7, 2026
Merged

cristianoliveira merged 5 commits into
mainfrom
feat/WPB-27776-present-null-sizes-as-zero

Conversation

@cristianoliveira

@cristianoliveira cristianoliveira commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor
TaskWPB-27776 [Web] Add "0 bytes" to the size attribute when folder is empty

Problem

Empty folders in Cells can have a null or omitted size. This currently produces an unavailable or invalid size instead of a meaningful value users can compare.

Jira: WPB-27776

Approach

Use one shared Cells node transformation for global Drive, conversation browsing, and conversation search. Normalize null and omitted sizes to zero before formatting, while optionally enriching global results with conversation data.

@cristianoliveira
cristianoliveira marked this pull request as ready for review August 4, 2026 14:41
@cristianoliveira
cristianoliveira requested a review from a team August 4, 2026 14:41
Normalize absent Cells node sizes to zero in both global Drive and
conversation views so empty folders display a meaningful, comparable size.
Cover null and omitted backend values in both transformation paths.

Jira: https://wearezeta.atlassian.net/browse/WPB-27776
Replace the separate global and conversation node mappers with one shared
Cells transformation. Keep conversation enrichment optional so scoped views
can use the same mapping without requiring workspace context.

Jira: https://wearezeta.atlassian.net/browse/WPB-27776
Name the transformer test factory as a stub so its testing purpose is
explicit at each call site.

Jira: https://wearezeta.atlassian.net/browse/WPB-27776
Keep absent file size metadata displayed as unknown while empty folders continue to show zero bytes. Add regression coverage for null and omitted file sizes.

Jira: https://wearezeta.atlassian.net/browse/WPB-27776
@cristianoliveira
cristianoliveira force-pushed the feat/WPB-27776-present-null-sizes-as-zero branch from 46bb8ea to 9d5f903 Compare August 5, 2026 12:46
Use the shared null-or-undefined predicate when identifying missing Cells
node sizes, making the intent explicit and consistent with the codebase.

Jira: https://wearezeta.atlassian.net/browse/WPB-27776
@cristianoliveira
cristianoliveira added this pull request to the merge queue Aug 7, 2026
Merged via the queue into main with commit fca60db Aug 7, 2026
16 checks passed
@cristianoliveira
cristianoliveira deleted the feat/WPB-27776-present-null-sizes-as-zero branch August 7, 2026 09:23
@github-actions

github-actions Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

First appeared in

Environment Release
Beta 2026-08-07.1-beta.1
Production 2026-08-07.1-production

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants