tanishqgandhi1908 opened a new issue, #8380: URL: https://github.com/apache/texera/issues/8380
### What happened? The same resource reports its size differently depending on where you look, and a dataset with no versions renders blanks where the model page renders an em dash. **1. Card view hides the size row, list view shows "0 B".** A dataset that has been created but never uploaded to (`empty-dataset` below) shows no size line at all in card view, and `Size: 0 B` in list view. Nothing tells the reader those are the same state. **2. "0 B" also means "unknown".** The size formatter maps both `0` and `undefined` to `"0 B"`, so a resource whose size could not be determined is indistinguishable from a genuinely empty one. **3. A just-copied workflow reads `Size: 0 B`.** Every other workflow in the list reads its real size (109.00 B in the screenshot); the copy reads `0 B` until the list is refetched, because the row is built locally with a hardcoded size instead of coming back from search. **4. The dataset and model detail cards disagree with each other and with themselves.** Side by side on a dataset and a model that both have no versions: | Field | dataset (`empty-dataset`) | model (`empty-model`) | | --- | --- | --- | | Last updated | *(blank)* | — | | Latest version file | *(blank)* | — | | Latest version size | 0 B | — | So the dataset leaves absent facts blank, the model em-dashes them, and the two pages even disagree about the size of the same kind of nothing. Expected: one convention everywhere — a fact with nothing to show renders "—", and a size renders `0 B`, because zero bytes is a meaningful answer. That applies to both detail pages and to both list and card view. Card view — empty-dataset has no size line at all: <img width="1440" height="900" alt="Image" src="https://github.com/user-attachments/assets/7aef5430-915b-4b9b-8021-33488521f294" /> List view, same four datasets — empty-dataset now reads Size: 0 B: <img width="1440" height="900" alt="Image" src="https://github.com/user-attachments/assets/9ddd7162-93b8-40aa-be69-386e0c27b5fe" /> Dataset Data Card with no versions — blanks and 0 B: <img width="1440" height="900" alt="Image" src="https://github.com/user-attachments/assets/be658790-253e-435a-b941-1a92ece65596" /> Model card with no versions — "—" throughout: <img width="1440" height="900" alt="Image" src="https://github.com/user-attachments/assets/917b2e15-5826-4813-bc95-7d37b36cff51" /> A freshly copied workflow, Size: 0 B next to real sizes: <img width="1440" height="900" alt="Image" src="https://github.com/user-attachments/assets/f198d0fb-9a89-4618-aab5-6f4c24d3d992" /> ### How to reproduce? 1. Create a dataset and do not upload anything to it. 2. Your Work → Datasets in card view: the card shows no size line. Switch to list view: the same row now says Size: 0 B. 3. Open that dataset's Data Card: "Last updated" and "Latest version file" are blank and "Latest version size" is 0 B. Open a model with no versions for comparison: every absent field is "—", including the size. 4. Your Work → Workflows in list view, hover a row and click Copy: the new ..._copy row shows Size: 0 B while the others show their real size. ### Version/Branch 1.4.0-incubating-SNAPSHOT (main) ### Commit Hash (Optional) _No response_ ### What browsers are you seeing the problem on? _No response_ ### Relevant log output ```shell ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
