feat: Implement game restart, battlefield styling with art crops and tapped stacks, and initial draw fixes.
Some checks failed
Build and Deploy / build (push) Failing after 1m10s

This commit is contained in:
2025-12-18 20:26:42 +01:00
parent ca7b5bf7fa
commit bc5eda5e2a
35 changed files with 1337 additions and 634 deletions

View File

@@ -0,0 +1,26 @@
---
title: Organized Caching Subdirectories
status: Completed
---
## Objectives
- Organize cached images within edition folders into distinct subdirectories: `art_full` (normal) and `art_crop` (crop).
- Update Server (`CardService`) to save images to these new paths.
- Update Client (`PackGeneratorService`) to construct paths referencing these new subdirectories.
## Implementation Details
1. **Server (`CardService.ts`)**:
- Changed normal image save path to: `[imagesDir]/[setCode]/art_full/[uuid].jpg`
- Changed art crop save path to: `[imagesDir]/[setCode]/art_crop/[uuid].jpg`
- Note: Extension is standardized to `.jpg` for simplicity.
2. **Client (`PackGeneratorService.ts`)**:
- Updated `image` property to use `.../[setCode]/art_full/[id].jpg`
- Updated `imageArtCrop` property to use `.../[setCode]/art_crop/[id].jpg`
## Migration Note
- Existing cached images in the root of `[setCode]` folder will be ignored by the new logic.
- Users will need to re-parse or re-import sets/cubes to populate the new folder structure. This is an intentional breaking change for cleaner organization.
## Outcome
Filesystem is now cleaner with clear separation between full card art and crop art.