Skip to content

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

Open
cristianoliveira wants to merge 4 commits into
mainfrom
feat/WPB-27776-present-null-sizes-as-zero
Open

fix: Present empty folder sizes as zero [WPB-27776]#22103
cristianoliveira wants to merge 4 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.

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

1 participant