manager-ui icon indicating copy to clipboard operation
manager-ui copied to clipboard

Content: Multi Page Table - File Type Column - Incorrect File Thumbnails

Open zcolah opened this issue 2 weeks ago • 0 comments

Problem

The file type column thumbnail in the multi-page table is not displaying correctly:

  1. Multi-Page Table Thumbnail: Incorrectly displays the generic "Image Icon" even though a file is added. This should only happen when no file is added.
  2. Content Item Thumbnail: Currently shows "Failed to Load". This thumbnail should have appeared in the table as well.

Loom Video: Loom Recording

Expected Behavior

  • If a file is uploaded, the table should display the appropriate thumbnail for that file, matching what is shown in the content item view.
  • If no file is uploaded, display the "Image Icon" as a placeholder.

Solution

Update Thumbnail Logic

  1. Ensure the file type column in the multi-page table pulls the correct thumbnail for each file type.
  2. Use the same thumbnail displayed in the content item view.
  3. Handling Edge Cases
  • If the file fails to load, show "Failed to Load" (consistent with the content item view).
  • If no file is uploaded, display the default "Image Icon."
  • If the URL is invalid, display the red error icon thumbnail as we do in the content item

Testing

  1. Please test with different file types (.png, .docx, .gif, .pptx, etc) to ensure thumbnails are displayed correctly.
  2. Validate behavior for missing and unsupported files and invalid URLs.

zcolah avatar Feb 12 '25 19:02 zcolah