tanishqgandhi1908 opened a new pull request, #9260:
URL: https://github.com/apache/texera/pull/9260

   ### What changes were proposed in this PR?
   
   The right bar on Versions & Files was removed with `*ngIf` when collapsed, 
which destroyed the uploader inside it. Uploads in progress were cut off with 
no message: the destroyed uploader marked them finished and the server kept an 
open upload session for the file. On expand, a fresh uploader showed "No 
pending changes".
   
   The bar is now hidden with `[hidden]` instead, so the uploader and its 
uploads survive a collapse. This covers both datasets and models, which share 
`VersionsFilesBrowserComponent`.
   
   | Before | After |
   |---|---|
   | _before-1-uploading_ | _after-1-uploading_ |
   | _before-2-after-collapse_: upload gone, "No pending changes" | 
_after-2-after-collapse_: still "Uploading: 1 file(s)" |
   | | _after-3-settings-while-collapsed_: rename correctly blocked while the 
upload runs |
   
   ### Any related issues, documentation, discussions?
   
   Closes #9258.
   
   ### How was this PR tested?
   
   - New `VersionsFilesBrowserComponent` test: collapsing keeps the same 
uploader instance and hides the bar; expanding shows it again. It fails with 
the old `*ngIf`.
   - Two `ModelDetailComponent` tests asserted that the bar is removed when 
collapsed; they now assert that it is hidden.
   - `versions-files-browser`, `dataset-detail` and `model-detail` specs pass 
(232 tests); prettier and eslint are clean.
   - Manually on a local stack: an 18 MB upload with throttled bandwidth keeps 
going across collapse and expand, and Settings shows rename blocked meanwhile 
(screenshots above).
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Claude Opus 5.5)
   


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

Reply via email to