mirror of
https://github.com/koel/koel.git
synced 2026-04-25 16:56:02 +03:00
[PR #2156] [MERGED] refactor: extract artwork fields to a reusable component #2115
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#2115
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/koel/koel/pull/2156
Author: @phanan
Created: 10/26/2025
Status: ✅ Merged
Merged: 10/26/2025
Merged by: @phanan
Base:
master← Head:artwork📝 Commits (1)
4e13a79refactor: extract artwork fields to a reusable component📊 Changes
71 files changed (+693 additions, -1184 deletions)
View changed files
📝
app/Helpers.php(+4 -4)➖
app/Http/Controllers/API/AlbumCoverController.php(+0 -34)➖
app/Http/Controllers/API/Artist/ArtistImageController.php(+0 -34)📝
app/Http/Controllers/API/FetchAlbumThumbnailController.php(+3 -3)➖
app/Http/Controllers/API/PlaylistCoverController.php(+0 -32)➖
app/Http/Controllers/API/Radio/RadioStationLogoController.php(+0 -22)📝
app/Http/Controllers/API/RadioStationController.php(+1 -1)📝
app/Http/Requests/API/Album/AlbumUpdateRequest.php(+2 -2)📝
app/Http/Requests/API/Artist/ArtistUpdateRequest.php(+3 -2)📝
app/Http/Requests/API/Playlist/PlaylistUpdateRequest.php(+1 -1)📝
app/Http/Requests/API/Radio/RadioStationStoreRequest.php(+2 -2)📝
app/Http/Requests/API/Radio/RadioStationUpdateRequest.php(+4 -4)➕
app/Jobs/GenerateAlbumThumbnailJob.php(+18 -0)📝
app/Observers/AlbumObserver.php(+9 -0)📝
app/Services/AlbumService.php(+74 -8)📝
app/Services/ArtistService.php(+12 -11)📝
app/Services/EncyclopediaService.php(+18 -2)📝
app/Services/ImageStorage.php(+6 -99)📝
app/Services/PlaylistService.php(+11 -31)📝
app/Services/RadioService.php(+2 -8)...and 51 more files
📄 Description
Description
Extract artwork fields to a reusable component. This also means rewriting the backend logic of image creation and storage.
Motivation
Previously, each of the artwork-able resource types (album, artist, playlist, radio station…) maintained its own (arbeit similar) implementation of adding and removing the artwork field. This PR creates one reusable component,
ArtworkField, to unify the UI/UX.Screenshots (if applicable)
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.