-
-
Notifications
You must be signed in to change notification settings - Fork 2
Feature/202505 native preview image #2147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…com/qdraw/starsky into feature/202505_native_preview_image
There was a problem hiding this 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 improves thumbnail handling and database query efficiency while cleaning up unused code and modernizing syntax across the codebase.
- Introduces native preview image generation for macOS and Windows.
- Refactors multiple database query methods and adjusts error logging.
- Implements new thumbnail generation services and updates WebSocket notification handling.
Reviewed Changes
Copilot reviewed 81 out of 81 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
starsky/starsky.foundation.native/PreviewImageNative/*.cs | New native preview image service and helper implementations for macOS and Windows. |
starsky/starsky.foundation.database/Query/*.cs | Refactored queries with updated error handling, logging, and utilization of new features. |
starsky/starsky.feature.thumbnail/Services/*.cs | Updated thumbnail generation services, background job service, and WebSocket notification. |
starsky/starsky.feature.export/Services/ExportService.cs | Adjusted thumbnail generation call with improved ThumbnailGenerationType usage. |
starsky/package.json | Added a new format script for code formatting. |
starsky/starsky.feature.thumbnail/Services/SmallThumbnailBackgroundJobService.cs
Outdated
Show resolved
Hide resolved
…roundJobService.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
PR Details
Description / Motivation and Context
This pull request introduces several changes across multiple files, primarily focusing on improving thumbnail generation, enhancing socket-based communication, and refactoring database query methods. Key updates include the addition of new services for thumbnail management, modifications to existing methods for better functionality, and code cleanup to improve readability and maintainability.
Thumbnail Generation Enhancements:
ISmallThumbnailBackgroundJobService
and implemented it inSmallThumbnailBackgroundJobService
to handle background jobs for small thumbnails. This includes queue management and generating thumbnails of typeThumbnailGenerationType.SmallOnly
. [1] [2]IThumbnailSocketService
and implemented it inThumbnailSocketService
to manage WebSocket notifications for thumbnail updates. This replaces the previousIWebSocketConnectionsService
usage inManualThumbnailGenerationService
. [1] [2] [3]ManualThumbnailGenerationService
to useThumbnailSocketService
for sending thumbnail generation results via WebSocket. Removed redundant methods likeWhichFilesNeedToBePushedForUpdates
. [1] [2]Database Query Refactoring:
GetAllFilesQuery
andGetAllObjectsQuery
now use normalized paths and streamlined logic. [1] [2] [3]LogDebug
instead ofLogInformation
).Code Cleanup and Minor Improvements:
ManualThumbnailGenerationService
andQueryGetAllFiles
. This reduces clutter and improves maintainability. [1] [2]IQuery
to improve clarity.package.json
to include a newformat
script for code formatting.These changes collectively enhance the functionality, performance, and maintainability of the codebase, particularly in the areas of thumbnail generation and database operations.
Related Issue
How Has This Been Tested
Types of changes
Checklist