Commit Graph

26 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
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
74fd9a33ac Increase VectorEngine timeouts and add image UI
Add VectorEngine image generation config and raise request timeouts (env + scripts) from 180000 to 1000000ms. Introduce a reusable CreativeImageInputPanel component with tests and wire up mobile keyboard-focus helpers; update generation views and related tests (CustomWorldGenerationView, BarkBattle editor, Match3D, Puzzle flows). Improve API error handling / VectorEngine request guidance (packages/shared http.ts and docs), and apply multiple backend/frontend fixes for puzzle/match3d/prompt handling. Also include extensive docs and decision-log updates describing UI/UX decisions and verification steps.
2026-05-15 02:40:59 +08:00
548db78ca7 Update Match3D/image-generation docs & code
Adds/updates documentation, assets and implementation for Match3D and puzzle image generation workflows. Key changes: decision logs and pitfalls updated to prefer VectorEngine Gemini for Match3D material sheets and to require edits (multipart) for 1:1 container reference images; guidance added for when to use APIMart vs VectorEngine. .env.example clarified APIMart/Responses config. Many new public assets and PPT visuals added. Code changes across frontend and backend: updated shared contracts, server-rs match3d/puzzle/image-generation handlers, VectorEngine/OpenAI image generation clients, and multiple React components/tests to handle UI/background/container image signing, edits workflow, and puzzle UI background resolution. Added src/services/puzzle-runtime/puzzleUiBackgroundSource.ts and related test updates. Includes notes about multipart HTTP/1.1 requirement and test/verification commands in docs.
2026-05-14 20:34:45 +08:00
d33c937ebc 1 2026-05-14 14:21:17 +08:00
2dc9d752e4 1 2026-05-14 13:40:50 +08:00
5a55180b78 1 2026-05-14 01:11:58 +08:00
01c5ab985a 1 2026-05-13 00:28:07 +08:00
481a27fc53 1 2026-05-11 20:27:41 +08:00
192accd796 1 2026-05-10 22:20:54 +08:00
1c16152708 1 2026-05-10 13:18:46 +08:00
a0ed128bde 1 2026-05-09 17:15:23 +08:00
94975e4735 1 2026-05-08 20:48:29 +08:00
abf1f1ebea 1 2026-05-08 11:44:42 +08:00
07e777fef8 1 2026-05-05 14:40:41 +08:00
5831703156 1
Some checks failed
CI / verify (push) Has been cancelled
2026-05-02 20:43:41 +08:00
acc55d0e13 1 2026-05-02 17:56:42 +08:00
33dd105630 1 2026-05-01 22:16:01 +08:00
2e9d0f4640 1 2026-05-01 01:30:02 +08:00
fe02603ba1 1 2026-05-01 00:33:39 +08:00
9d684cb7b3 1 2026-04-30 17:49:07 +08:00
89ab1bf1c0 1
Some checks failed
CI / verify (push) Has been cancelled
2026-04-29 23:10:43 +08:00
730f485f48 1 2026-04-29 20:56:59 +08:00
a9febe7678 1
Some checks failed
CI / verify (push) Has been cancelled
2026-04-28 10:57:40 +08:00
fa2dbb310b 1 2026-04-27 14:23:19 +08:00
cbc27bad4a init with react+axum+spacetimedb
Some checks failed
CI / verify (push) Has been cancelled
2026-04-26 18:06:23 +08:00