Update the series view command to be in greyscale if the user has not claimed the card #297

Merged
Vylpes merged 5 commits from feature/279-series-view-image-grid-2 into develop 2024-07-12 17:35:13 +01:00
Owner
  • Install Jimp package so we can manipulate images
  • Update the ImageHelper class to accept the user id so we can check if a user has claimed the card
  • Update the /series view command to pass the user id into the ImageHelper

#279

- Install `Jimp` package so we can manipulate images - Update the `ImageHelper` class to accept the user id so we can check if a user has claimed the card - Update the `/series view` command to pass the user id into the ImageHelper #279
Vylpes added 2 commits 2024-07-10 16:56:35 +01:00
Fix linter
All checks were successful
Test / build (push) Successful in 9s
bdb6f3da3d
Vylpes requested review from VylpesTester 2024-07-10 16:56:37 +01:00
Vylpes added the
type
subtask
label 2024-07-10 16:56:40 +01:00
VylpesTester was assigned by Vylpes 2024-07-10 16:56:43 +01:00
Vylpes added 1 commit 2024-07-10 17:00:54 +01:00
Update the ImageHelper to check an entity's count
All checks were successful
Test / build (push) Successful in 9s
3b9706ae94
VylpesTester requested changes 2024-07-12 16:12:31 +01:00
Dismissed
@ -31,0 +39,4 @@
const imageData = await Jimp.read(filePath);
if (userId != null) {
const claimed = await Inventory.ExistsByCardNumberAndUserId(userId, card.id);
Member

This should also actually check the Quantity of the inventory, not just if it exists

This should also actually check the Quantity of the inventory, not just if it exists
Vylpes marked this conversation as resolved
Vylpes added 2 commits 2024-07-12 17:33:13 +01:00
Vylpes requested review from VylpesTester 2024-07-12 17:33:37 +01:00
VylpesTester approved these changes 2024-07-12 17:35:06 +01:00
Vylpes merged commit b6f814f895 into develop 2024-07-12 17:35:13 +01:00
Vylpes deleted branch feature/279-series-view-image-grid-2 2024-07-12 17:35:13 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: External/card-drop#297
No description provided.