feat(cms): CMS-driven Effects panel (E33)#26
Closed
thierrzz wants to merge 2 commits into
Closed
Conversation
- admin/src/collections/Effects.ts — new Payload collection (key, label, thumbnail, prompt, order, active); push:true auto-creates the table - admin/src/payload.config.ts — register Effects in the collections array - backend/api/v1/effects.ts — anonymous GET /v1/effects (key/label/thumb/order, prompt stays server-side) - backend/lib/payload.ts — fetchActiveEffects() with 60s cache + normalizeEffect() - backend/api/v1/stylize.ts — CMS-first lookup; STYLE_PROMPTS kept as seed-window fallback until the 4 launch effects are confirmed in Payload admin Seed on first deploy: add clay / wood / 3d / scribble with prompts from STYLE_PROMPTS in stylize.ts before disabling the hardcoded fallback. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…ActiveEffects payloadBase() is a v2-main helper that doesn't exist in origin/main's payload.ts; fetchActiveEffects used it but origin/main's other fetch functions use the inline PAYLOAD_API_URL.replace() pattern — align to fix the TS2304 build error on the deploy branch. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a Payload CMS collection for Effects so you can add/edit effects (key, thumbnail, prompt) from admin.aaavatar.nl without a backend or app release.
Changes
After merge: seed the 4 launch effects
Go to admin.aaavatar.nl/effects and create rows for clay, wood, 3d, scribble. Copy the prompts from STYLE_PROMPTS in backend/api/v1/stylize.ts.
Verify
curl https://api.aaavatar.nl/v1/effects
🤖 Generated with Claude Code