Context
The download progress template in templates/documents/partials/download_progress.html currently uses manual DOM manipulation (e.g., document.getElementById, classList.remove) to update the UI during the ZIP file creation process.
Proposal
Refactor the template to use Alpine.js data context and utilities like x-class to simplify the class manipulation logic and reduce verbose JavaScript statements.
Benefits
- Cleaner, more declarative code
- Better integration with Alpine.js patterns used elsewhere in the codebase
- Reduced manual DOM manipulation
References
Related Files
templates/documents/partials/download_progress.html