Commit Graph

8 Commits

Author SHA1 Message Date
7b37271f17 Puzzle: support history images & partial generation
Allow history-generated image paths to be submitted where Data URLs were previously required and avoid treating partial/result-page generations as blocking the whole draft. Backend: resolve history /generated-* references via resolve_puzzle_reference_image_as_data_url and convert to PuzzleDownloadedImage; add PuzzleDownloadedImage::from_resolved_reference_image; extend draft handling to apply generated level metadata (auto-naming) and normalize generation_status to treat levels with images as ready. API: add shouldAutoNameLevel to action contracts and use it to request/refine generated level names. Spacetime/module and mappers: normalize completed level statuses when saving/reading so result-page background or per-level generation doesn't mask completed drafts. Frontend: expose resolver helpers, only mark a work as generating when no usable cover or ready level exists, keep level controls enabled during UI-background regeneration, and add tests covering history-image submission, auto-naming, and UI-background/partial-generation behaviors.
2026-05-19 10:02:13 +08:00
kdletters
5e03b3d2f2 修复冲突错误 2026-05-19 00:07:43 +08:00
kdletters
269f35cecf refactor: split large modules and normalize rust layout 2026-05-18 19:40:14 +08:00
kdletters
472a47eae7 refactor(api-server): split puzzle module 2026-05-18 17:50:16 +08:00
kdletters
73f937d78a feat(api-server): cache puzzle gallery card view 2026-05-17 05:50:33 +08:00
a45e358e83 Add generationStatus and match3d/runtime fixes
Introduce persistent generationStatus to work summaries (puzzle & match3d) and propagate generation recovery rules across docs and frontend/backends so "generating" is restored from server-side work summary rather than ephemeral front-end notices. Update API server image/asset handling (improve match3d material sheet green/alpha decontamination and promote generatedItemAssets background fields) and add runtime improvements: alpha-based hotspot hit-testing, tray insertion/three-match animation behavior, and session re-read on client-side VectorEngine timeouts/lock-screen interruptions. Many docs, tests and related frontend modules updated/added to reflect these contract and behavior changes.
2026-05-16 22:59:02 +08:00
b97a3ccebd Merge origin/master into hermes/hermes-4fd30995 2026-05-15 03:41:50 +08:00
1b54db4f92 refactor: modularize api server assets and handlers 2026-05-14 22:54:52 +08:00