Skip to content

feat: add thumbnails to wire cells upload previews - WPB-19266#3440

Merged
samwyndham merged 10 commits intodevelopfrom
feat/cells-image-thumbnails-WPB-19266
Aug 14, 2025
Merged

feat: add thumbnails to wire cells upload previews - WPB-19266#3440
samwyndham merged 10 commits intodevelopfrom
feat/cells-image-thumbnails-WPB-19266

Conversation

@samwyndham
Copy link
Contributor

@samwyndham samwyndham commented Aug 8, 2025

TaskWPB-19266 [iOS] Generate thumbnail for image upload preview

Issue

This PR adds thumbnails to the previews when uploading assets to wire cells

ScreenRecording_08-08-2025.08-44-19_1.mov

Testing

Run unit tests


Checklist

  • Title contains a reference JIRA issue number like [WPB-XXX].
  • Description is filled and free of optional paragraphs.
  • Adds/updates automated tests.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements thumbnail generation for image and video assets in the Wire cells attachments carousel, replacing the placeholder nil thumbnail values with actual generated thumbnails using QuickLook.

  • Adds thumbnail generation capability to AttachmentsCarouselViewModel using a ThumbnailGenerator protocol
  • Updates the constructor to use dependency injection instead of hardcoded empty arrays
  • Adds comprehensive unit tests for the thumbnail generation functionality

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
ConversationInputBarViewController.swift Updates constructor call to use parameterless initializer
AttachmentsCarouselViewModelTests.swift Adds comprehensive unit tests for thumbnail generation scenarios
WireCellsDraft+Fixture.swift Extends test fixture to support file type and size parameters
UIImage+Fixture.swift Adds test fixture helper for creating UIImage instances
AttachmentsCarouselViewModel.swift Implements core thumbnail generation logic with caching and async generation
AttachmentsCarouselItem.swift Updates model to support Equatable/Sendable for testing and concurrency
ThumbnailGenerator.swift Defines protocol and QLThumbnailGenerator extension for thumbnail generation

@samwyndham samwyndham changed the title feat/cells image thumbnails wpb 19266 feat: add thumbnails to wire cells upload previews - WPB-19266 Aug 8, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2025

Test Results

1 999 tests   1 972 ✅  2m 14s ⏱️
  328 suites     27 💤
    2 files        0 ❌

Results for commit ec45c23.

♻️ This comment has been updated with latest results.

@samwyndham samwyndham requested review from a team, johnxnguyen, jullianm and netbe and removed request for a team and netbe August 8, 2025 08:45
Copy link
Contributor

@jullianm jullianm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, left one question about thumbnail generation error handling on the UI side

Base automatically changed from feat/upload-draft-image-preview-WPB-17604 to develop August 14, 2025 09:06
@samwyndham samwyndham force-pushed the feat/cells-image-thumbnails-WPB-19266 branch from 01bc21c to ec45c23 Compare August 14, 2025 11:28
@samwyndham samwyndham enabled auto-merge August 14, 2025 11:29
@samwyndham samwyndham added this pull request to the merge queue Aug 14, 2025
Merged via the queue into develop with commit 0cc7372 Aug 14, 2025
9 checks passed
@samwyndham samwyndham deleted the feat/cells-image-thumbnails-WPB-19266 branch August 14, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants