xuang7 opened a new pull request, #3658:
URL: https://github.com/apache/texera/pull/3658
### **Purpose**
This PR improves the file upload UI to prevent progress confusion and
provide smoother progress bar updates. It now shows only the latest task for
each file, tracks chunk progress independently, and removes canceled uploads
from the list while cleaning up subscriptions.
### **Changes**
- dataset-detail.component.ts
- Before starting a new upload, cancel and remove any existing task with
the same file path
- Update task list filtering to replace old entries for the same file
- dataset.service.ts
- Track chunk progress independently for smoother progress bar updates
- Cap displayed upload progress at 99% until finalization to avoid
confusion from showing 100% before the process is truly complete
### **Demonstration**
**Before - same file could be displayed twice:**
<img width="388" height="512" alt="prev"
src="https://github.com/user-attachments/assets/a8a27401-dcfe-43c8-b340-617f4ca8b1df"
/>
**After – behavior with this PR:**
1. Start uploading a file
2. Cancel midway
3. Re-upload the same file (old entry is replaced)
https://github.com/user-attachments/assets/36be1dd3-6bcf-4d16-bef7-a000bb5917be
--
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]