Skip to content

Refactor download progress template to use Alpine.js data context #2600

@coderabbitai

Description

@coderabbitai

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Prioritized

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions