Project

General

Profile

Actions

dev #1309

open

Implementation of Download and Compressed Pages

Added by Ayat Rahman over 1 year ago. Updated over 1 year ago.

Status:
Pending
Priority:
High
Assignee:
Target version:
Start date:
11/27/2024
Due date:
11/28/2024 (about 17 months late)
% Done:

70%

Estimated time:
7:00 h
Spent time:

Description

Description:

We need to integrate the API for the Download Page and Compressed Page, ensuring that the following functionalities are implemented:

  1. Download Page:

    • Description: The page where users can download the compressed files after successful compression.
    • Functionality: Enable users to download the compressed files directly from the API response.
  2. Compressed Page:

    • Description: The page where users can see their compressed files, along with additional metadata (like file size, status, etc.).
    • Functionality: Display the list of compressed files with their download links and related information.

Task Breakdown:

1. Download Page API Integration:

  • Download Compressed Files:

    • Implement the API call to fetch the compressed file for download.
    • Ensure the appropriate file is returned upon request.
    • Handle the download flow properly (e.g., saving the file locally or presenting a download link).
  • File Status:

    • Retrieve the status of the compression process (success/failure) from the API.
    • Display appropriate messages on the download page based on the status.
  • Error Handling:

    • Display error messages if the download fails or if the file is not available for download.

2. Compressed Page API Integration:

  • Display Compressed Files:

    • Fetch the list of compressed files from the server.
    • Ensure each file’s metadata (name, size, compression status, download link) is displayed on the page.
  • API Call for File List:

    • Call the API endpoint to get the list of compressed files once the compression process is complete.
    • Display the compressed file details, allowing users to preview and download them.
  • File Metadata:

    • Show relevant file information such as original size, compressed size, and compression status.
    • Ensure correct formatting and display for each file (e.g., size in KB/MB).

3. UI and UX Requirements:

  • Download Button:

    • Implement a download button that allows users to download compressed files directly.
  • Progress Indicator:

    • On the Compressed Page, ensure that a progress indicator is shown while files are being downloaded or processed.
  • File Previews:

    • Show file thumbnails or previews, where applicable (for images or PDFs).
  • Error and Success Messages:

    • Display proper success and failure messages when users attempt to download or view the compressed files.

4. Error Handling:

  • Handle API errors during file fetching or downloading.
  • Ensure proper handling of network errors, such as timeouts or file not found errors.

Acceptance Criteria:

  • The Download Page should correctly allow the user to download compressed files.
  • The Compressed Page should show a list of compressed files with the appropriate metadata.
  • API errors (e.g., file not available) should be displayed to the user in a friendly manner.

Actions

Also available in: Atom PDF