manager-ui
manager-ui copied to clipboard
Content: Multi Page Table - File Type Column - Incorrect File Thumbnails
Problem
The file type column thumbnail in the multi-page table is not displaying correctly:
- 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.
- 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
- Ensure the file type column in the multi-page table pulls the correct thumbnail for each file type.
- Use the same thumbnail displayed in the content item view.
- 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
- Please test with different file types (.png, .docx, .gif, .pptx, etc) to ensure thumbnails are displayed correctly.
- Validate behavior for missing and unsupported files and invalid URLs.