Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Pickers: fixes from the review of the picker covers

Adarsh7282278cfc61
diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md
index df34dace..3d1e7945 100644
--- a/docs/DEVELOPMENT.md
+++ b/docs/DEVELOPMENT.md
@@ -58,6 +58,7 @@ node tests/e2e/split-soundtrack.mjs [url] [outDir] [--live] # Audio → Split s
node tests/e2e/moss-image.mjs [url] [--fal|--live] # MOSS-Image in the Image studio's model menu on both engines, Options → Quality from the keyboard, its Settings → Models & licences rows; prices follow what the server runs (--fal: $0.05 and a LoRA run's unknown price; --live: Free on your GPU)
node tests/e2e/cinema-path.mjs [url] # Fly path in Cinema's 3D scene: + Keyframe and K, a move, Preview, Film on the cloud (an H3 Max take) and on your GPU (the path rendered in the browser, 81 frames), the Path sheet at 390 px
node tests/e2e/turnaround.mjs [url] # Turnaround video from a Character Sheet, Fly around on a character's page (the cloud routes and the consent line) and Soul Cast's take in Cinema, with a demo run to the film
+node tests/e2e/picker-covers.mjs [url] # covers in the camera motion, Mix and Cinema move pickers: small posters only, a hovered clip stops when the pointer leaves, the picked clip goes on, the arrow keys play a move, Cinema loads the list when shown
```
`layers.mjs` and `cinema-scene.mjs` expect their open-engine step to run in demo mode: with a reachable ComfyUI they fail (demo stills are SVG placeholders ComfyUI can't read, and Layers needs the Qwen-Image-Layered weights). `cinema-original.mjs`, `genjutsu-original.mjs`, `character-swap-studio.mjs`, `mixed-shorts-original.mjs`, `marketing-originals.mjs`, `popcorn-evolution.mjs`, `skills-run.mjs` and `skills-builder.mjs` also expect demo mode with ComfyUI unreachable (`popcorn-evolution.mjs` Ollama too); `open-tools.mjs` reads whether the app reaches a ComfyUI and expects the matching open-engine price, and with any string as `FAL_KEY` shows fal's prices (nothing is sent). Since PR #13 a ComfyUI port that accepts connections counts as reachable at first, so for them point `COMFYUI_URL` at a closed port, such as `http://127.0.0.1:1`. The four new ones check each page at 1440 and 390 px, light and dark. `split-soundtrack.mjs` (without `--live`), `cinema-path.mjs` and `turnaround.mjs` expect demo mode with ComfyUI unreachable; `split-soundtrack.mjs --live` instead runs real splits on a ComfyUI with ComfyUI-DBS and its weights (about half a minute for its 6 s clip on a CPU). `moss-image.mjs` expects the hosted price, so start the app with `FAL_KEY=anything` (nothing is sent: Generate is never pressed), and "Free" on your GPU, which needs a reachable ComfyUI.
diff --git a/public/previews/presets/thumbs/app-3d-figure.jpg b/public/previews/presets/thumbs/app-3d-figure.jpg
new file mode 100644
index 00000000..d4a32d04
Binary files /dev/null and b/public/previews/presets/thumbs/app-3d-figure.jpg differ
diff --git a/public/previews/presets/thumbs/app-3d-render.jpg b/public/previews/presets/thumbs/app-3d-render.jpg
new file mode 100644
index 00000000..fa9a3af5
Binary files /dev/null and b/public/previews/presets/thumbs/app-3d-render.jpg differ
diff --git a/public/previews/presets/thumbs/app-3d-rotation.jpg b/public/previews/presets/thumbs/app-3d-rotation.jpg
new file mode 100644
index 00000000..79023095
Binary files /dev/null and b/public/previews/presets/thumbs/app-3d-rotation.jpg differ
diff --git a/public/previews/presets/thumbs/app-60s-cafe.jpg b/public/previews/presets/thumbs/app-60s-cafe.jpg
new file mode 100644
index 00000000..0df13d09
Binary files /dev/null and b/public/previews/presets/thumbs/app-60s-cafe.jpg differ
diff --git a/public/previews/presets/thumbs/app-ad-creative.jpg b/public/previews/presets/thumbs/app-ad-creative.jpg
new file mode 100644
index 00000000..9a8a9b79
Binary files /dev/null and b/public/previews/presets/thumbs/app-ad-creative.jpg differ
diff --git a/public/previews/presets/thumbs/app-age-shift.jpg b/public/previews/presets/thumbs/app-age-shift.jpg
new file mode 100644
index 00000000..3ba8d6a7
Binary files /dev/null and b/public/previews/presets/thumbs/app-age-shift.jpg differ
diff --git a/public/previews/presets/thumbs/app-ai-influencer.jpg b/public/previews/presets/thumbs/app-ai-influencer.jpg
new file mode 100644
index 00000000..6233c04b
Binary files /dev/null and b/public/previews/presets/thumbs/app-ai-influencer.jpg differ
diff --git a/public/previews/presets/thumbs/app-ai-stylist.jpg b/public/previews/presets/thumbs/app-ai-stylist.jpg
new file mode 100644
index 00000000..e64cfb6f
Binary files /dev/null and b/public/previews/presets/thumbs/app-ai-stylist.jpg differ
diff --git a/public/previews/presets/thumbs/app-angles.jpg b/public/previews/presets/thumbs/app-angles.jpg
new file mode 100644
index 00000000..25dee0b5
Binary files /dev/null and b/public/previews/presets/thumbs/app-angles.jpg differ
diff --git a/public/previews/presets/thumbs/app-asmr-add-on.jpg b/public/previews/presets/thumbs/app-asmr-add-on.jpg
new file mode 100644
index 00000000..7a8f7201
Binary files /dev/null and b/public/previews/presets/thumbs/app-asmr-add-on.jpg differ
diff --git a/public/previews/presets/thumbs/app-asmr-classic.jpg b/public/previews/presets/thumbs/app-asmr-classic.jpg
new file mode 100644
index 00000000..9564f0d7
Binary files /dev/null and b/public/previews/presets/thumbs/app-asmr-classic.jpg differ
diff --git a/public/previews/presets/thumbs/app-asmr-host.jpg b/public/previews/presets/thumbs/app-asmr-host.jpg
new file mode 100644
index 00000000..0671f3f3
Binary files /dev/null and b/public/previews/presets/thumbs/app-asmr-host.jpg differ
diff --git a/public/previews/presets/thumbs/app-asmr-promo.jpg b/public/previews/presets/thumbs/app-asmr-promo.jpg
new file mode 100644
index 00000000..27e3dea3
Binary files /dev/null and b/public/previews/presets/thumbs/app-asmr-promo.jpg differ
diff --git a/public/previews/presets/thumbs/app-banana-eating.jpg b/public/previews/presets/thumbs/app-banana-eating.jpg
new file mode 100644
index 00000000..9d2a73c4
Binary files /dev/null and b/public/previews/presets/thumbs/app-banana-eating.jpg differ
diff --git a/public/previews/presets/thumbs/app-behind-the-scenes.jpg b/public/previews/presets/thumbs/app-behind-the-scenes.jpg
new file mode 100644
index 00000000..3644fb0c
Binary files /dev/null and b/public/previews/presets/thumbs/app-behind-the-scenes.jpg differ
diff --git a/public/previews/presets/thumbs/app-billboard-ad.jpg b/public/previews/presets/thumbs/app-billboard-ad.jpg
new file mode 100644
index 00000000..b6975c62
Binary files /dev/null and b/public/previews/presets/thumbs/app-billboard-ad.jpg differ
diff --git a/public/previews/presets/thumbs/app-breakdown.jpg b/public/previews/presets/thumbs/app-breakdown.jpg
new file mode 100644
index 00000000..f20a98c0
Binary files /dev/null and b/public/previews/presets/thumbs/app-breakdown.jpg differ
diff --git a/public/previews/presets/thumbs/app-brick-cube.jpg b/public/previews/presets/thumbs/app-brick-cube.jpg
new file mode 100644
index 00000000..bfbe443d
Binary files /dev/null and b/public/previews/presets/thumbs/app-brick-cube.jpg differ
diff --git a/public/previews/presets/thumbs/app-bring-to-life.jpg b/public/previews/presets/thumbs/app-bring-to-life.jpg
new file mode 100644
index 00000000..16ed62c6
Binary files /dev/null and b/public/previews/presets/thumbs/app-bring-to-life.jpg differ
diff --git a/public/previews/presets/thumbs/app-bullet-time-scene.jpg b/public/previews/presets/thumbs/app-bullet-time-scene.jpg
new file mode 100644
index 00000000..0e1c79ca
Binary files /dev/null and b/public/previews/presets/thumbs/app-bullet-time-scene.jpg differ
diff --git a/public/previews/presets/thumbs/app-bullet-time-splash.jpg b/public/previews/presets/thumbs/app-bullet-time-splash.jpg
new file mode 100644
index 00000000..df0e8080
Binary files /dev/null and b/public/previews/presets/thumbs/app-bullet-time-splash.jpg differ
diff --git a/public/previews/presets/thumbs/app-bullet-time-white.jpg b/public/previews/presets/thumbs/app-bullet-time-white.jpg
new file mode 100644
index 00000000..ee23c63d
Binary files /dev/null and b/public/previews/presets/thumbs/app-bullet-time-white.jpg differ
diff --git a/public/previews/presets/thumbs/app-burning-sunset.jpg b/public/previews/presets/thumbs/app-burning-sunset.jpg
new file mode 100644
index 00000000..e19a5b1d
Binary files /dev/null and b/public/previews/presets/thumbs/app-burning-sunset.jpg differ
diff --git a/public/previews/presets/thumbs/app-chameleon.jpg b/public/previews/presets/thumbs/app-chameleon.jpg
new file mode 100644
index 00000000..45b8994a
Binary files /dev/null and b/public/previews/presets/thumbs/app-chameleon.jpg differ
diff --git a/public/previews/presets/thumbs/app-change-background.jpg b/public/previews/presets/thumbs/app-change-background.jpg
new file mode 100644
index 00000000..08e3e5d0
Binary files /dev/null and b/public/previews/presets/thumbs/app-change-background.jpg differ
diff --git a/public/previews/presets/thumbs/app-character-swap.jpg b/public/previews/presets/thumbs/app-character-swap.jpg
new file mode 100644
index 00000000..f053ac07
Binary files /dev/null and b/public/previews/presets/thumbs/app-character-swap.jpg differ
diff --git a/public/previews/presets/thumbs/app-click-to-ad.jpg b/public/previews/presets/thumbs/app-click-to-ad.jpg
new file mode 100644
index 00000000..56a974ea
Binary files /dev/null and b/public/previews/presets/thumbs/app-click-to-ad.jpg differ
diff --git a/public/previews/presets/thumbs/app-clipcut.jpg b/public/previews/presets/thumbs/app-clipcut.jpg
new file mode 100644
index 00000000..5511984d
Binary files /dev/null and b/public/previews/presets/thumbs/app-clipcut.jpg differ
diff --git a/public/previews/presets/thumbs/app-cloud-surf.jpg b/public/previews/presets/thumbs/app-cloud-surf.jpg
new file mode 100644
index 00000000..b2f77323
Binary files /dev/null and b/public/previews/presets/thumbs/app-cloud-surf.jpg differ
diff --git a/public/previews/presets/thumbs/app-color-grading.jpg b/public/previews/presets/thumbs/app-color-grading.jpg
new file mode 100644
index 00000000..a734b030
Binary files /dev/null and b/public/previews/presets/thumbs/app-color-grading.jpg differ
diff --git a/public/previews/presets/thumbs/app-colorize.jpg b/public/previews/presets/thumbs/app-colorize.jpg
new file mode 100644
index 00000000..26caf421
Binary files /dev/null and b/public/previews/presets/thumbs/app-colorize.jpg differ
diff --git a/public/previews/presets/thumbs/app-comic-book.jpg b/public/previews/presets/thumbs/app-comic-book.jpg
new file mode 100644
index 00000000..da7af7ba
Binary files /dev/null and b/public/previews/presets/thumbs/app-comic-book.jpg differ
diff --git a/public/previews/presets/thumbs/app-commercial-faces.jpg b/public/previews/presets/thumbs/app-commercial-faces.jpg
new file mode 100644
index 00000000..2b494d55
Binary files /dev/null and b/public/previews/presets/thumbs/app-commercial-faces.jpg differ
diff --git a/public/previews/presets/thumbs/app-dance.jpg b/public/previews/presets/thumbs/app-dance.jpg
new file mode 100644
index 00000000..e82324fd
Binary files /dev/null and b/public/previews/presets/thumbs/app-dance.jpg differ
diff --git a/public/previews/presets/thumbs/app-expand-image.jpg b/public/previews/presets/thumbs/app-expand-image.jpg
new file mode 100644
index 00000000..2efac7e1
Binary files /dev/null and b/public/previews/presets/thumbs/app-expand-image.jpg differ
diff --git a/public/previews/presets/thumbs/app-expression-edit.jpg b/public/previews/presets/thumbs/app-expression-edit.jpg
new file mode 100644
index 00000000..acebe7d1
Binary files /dev/null and b/public/previews/presets/thumbs/app-expression-edit.jpg differ
diff --git a/public/previews/presets/thumbs/app-face-swap.jpg b/public/previews/presets/thumbs/app-face-swap.jpg
new file mode 100644
index 00000000..9bbf484c
Binary files /dev/null and b/public/previews/presets/thumbs/app-face-swap.jpg differ
diff --git a/public/previews/presets/thumbs/app-figurine.jpg b/public/previews/presets/thumbs/app-figurine.jpg
new file mode 100644
index 00000000..036b7b14
Binary files /dev/null and b/public/previews/presets/thumbs/app-figurine.jpg differ
diff --git a/public/previews/presets/thumbs/app-fridge-ad.jpg b/public/previews/presets/thumbs/app-fridge-ad.jpg
new file mode 100644
index 00000000..6a58a6cf
Binary files /dev/null and b/public/previews/presets/thumbs/app-fridge-ad.jpg differ
diff --git a/public/previews/presets/thumbs/app-game-dump.jpg b/public/previews/presets/thumbs/app-game-dump.jpg
new file mode 100644
index 00000000..1df4de57
Binary files /dev/null and b/public/previews/presets/thumbs/app-game-dump.jpg differ
diff --git a/public/previews/presets/thumbs/app-ghoulgao.jpg b/public/previews/presets/thumbs/app-ghoulgao.jpg
new file mode 100644
index 00000000..c7b2fb19
Binary files /dev/null and b/public/previews/presets/thumbs/app-ghoulgao.jpg differ
diff --git a/public/previews/presets/thumbs/app-giallo-horror.jpg b/public/previews/presets/thumbs/app-giallo-horror.jpg
new file mode 100644
index 00000000..0fd8716b
Binary files /dev/null and b/public/previews/presets/thumbs/app-giallo-horror.jpg differ
diff --git a/public/previews/presets/thumbs/app-giant-product.jpg b/public/previews/presets/thumbs/app-giant-product.jpg
new file mode 100644
index 00000000..1299e5df
Binary files /dev/null and b/public/previews/presets/thumbs/app-giant-product.jpg differ
diff --git a/public/previews/presets/thumbs/app-glitter-sticker.jpg b/public/previews/presets/thumbs/app-glitter-sticker.jpg
new file mode 100644
index 00000000..f6f73cb6
Binary files /dev/null and b/public/previews/presets/thumbs/app-glitter-sticker.jpg differ
diff --git a/public/previews/presets/thumbs/app-graffiti-ad.jpg b/public/previews/presets/thumbs/app-graffiti-ad.jpg
new file mode 100644
index 00000000..8d61a688
Binary files /dev/null and b/public/previews/presets/thumbs/app-graffiti-ad.jpg differ
diff --git a/public/previews/presets/thumbs/app-gtai.jpg b/public/previews/presets/thumbs/app-gtai.jpg
new file mode 100644
index 00000000..069cb2ea
Binary files /dev/null and b/public/previews/presets/thumbs/app-gtai.jpg differ
diff --git a/public/previews/presets/thumbs/app-hairstyle-try-on.jpg b/public/previews/presets/thumbs/app-hairstyle-try-on.jpg
new file mode 100644
index 00000000..a14a879a
Binary files /dev/null and b/public/previews/presets/thumbs/app-hairstyle-try-on.jpg differ
diff --git a/public/previews/presets/thumbs/app-headshot-generator.jpg b/public/previews/presets/thumbs/app-headshot-generator.jpg
new file mode 100644
index 00000000..b5203688
Binary files /dev/null and b/public/previews/presets/thumbs/app-headshot-generator.jpg differ
diff --git a/public/previews/presets/thumbs/app-hook-frame.jpg b/public/previews/presets/thumbs/app-hook-frame.jpg
new file mode 100644
index 00000000..f6bd13a4
Binary files /dev/null and b/public/previews/presets/thumbs/app-hook-frame.jpg differ
diff --git a/public/previews/presets/thumbs/app-hug.jpg b/public/previews/presets/thumbs/app-hug.jpg
new file mode 100644
index 00000000..241e7147
Binary files /dev/null and b/public/previews/presets/thumbs/app-hug.jpg differ
diff --git a/public/previews/presets/thumbs/app-idol.jpg b/public/previews/presets/thumbs/app-idol.jpg
new file mode 100644
index 00000000..23b523a9
Binary files /dev/null and b/public/previews/presets/thumbs/app-idol.jpg differ
diff --git a/public/previews/presets/thumbs/app-image-to-3d.jpg b/public/previews/presets/thumbs/app-image-to-3d.jpg
new file mode 100644
index 00000000..45125d4d
Binary files /dev/null and b/public/previews/presets/thumbs/app-image-to-3d.jpg differ
diff --git a/public/previews/presets/thumbs/app-j-magazine.jpg b/public/previews/presets/thumbs/app-j-magazine.jpg
new file mode 100644
index 00000000..11894908
Binary files /dev/null and b/public/previews/presets/thumbs/app-j-magazine.jpg differ
diff --git a/public/previews/presets/thumbs/app-j-poster.jpg b/public/previews/presets/thumbs/app-j-poster.jpg
new file mode 100644
index 00000000..b9ea06ac
Binary files /dev/null and b/public/previews/presets/thumbs/app-j-poster.jpg differ
diff --git a/public/previews/presets/thumbs/app-japanese-show.jpg b/public/previews/presets/thumbs/app-japanese-show.jpg
new file mode 100644
index 00000000..213d50d2
Binary files /dev/null and b/public/previews/presets/thumbs/app-japanese-show.jpg differ
diff --git a/public/previews/presets/thumbs/app-kick-ad.jpg b/public/previews/presets/thumbs/app-kick-ad.jpg
new file mode 100644
index 00000000..e5b1def5
Binary files /dev/null and b/public/previews/presets/thumbs/app-kick-ad.jpg differ
diff --git a/public/previews/presets/thumbs/app-latex.jpg b/public/previews/presets/thumbs/app-latex.jpg
new file mode 100644
index 00000000..566b7c61
Binary files /dev/null and b/public/previews/presets/thumbs/app-latex.jpg differ
diff --git a/public/previews/presets/thumbs/app-link-to-video-ad.jpg b/public/previews/presets/thumbs/app-link-to-video-ad.jpg
new file mode 100644
index 00000000..ad442bb0
Binary files /dev/null and b/public/previews/presets/thumbs/app-link-to-video-ad.jpg differ
diff --git a/public/previews/presets/thumbs/app-macro-scene.jpg b/public/previews/presets/thumbs/app-macro-scene.jpg
new file mode 100644
index 00000000..29a5df6d
Binary files /dev/null and b/public/previews/presets/thumbs/app-macro-scene.jpg differ
diff --git a/public/previews/presets/thumbs/app-macroshot-product.jpg b/public/previews/presets/thumbs/app-macroshot-product.jpg
new file mode 100644
index 00000000..3141ab6a
Binary files /dev/null and b/public/previews/presets/thumbs/app-macroshot-product.jpg differ
diff --git a/public/previews/presets/thumbs/app-magic-button.jpg b/public/previews/presets/thumbs/app-magic-button.jpg
new file mode 100644
index 00000000..df05ad82
Binary files /dev/null and b/public/previews/presets/thumbs/app-magic-button.jpg differ
diff --git a/public/previews/presets/thumbs/app-makeup-studio.jpg b/public/previews/presets/thumbs/app-makeup-studio.jpg
new file mode 100644
index 00000000..29168463
Binary files /dev/null and b/public/previews/presets/thumbs/app-makeup-studio.jpg differ
diff --git a/public/previews/presets/thumbs/app-mascot.jpg b/public/previews/presets/thumbs/app-mascot.jpg
new file mode 100644
index 00000000..df02065e
Binary files /dev/null and b/public/previews/presets/thumbs/app-mascot.jpg differ
diff --git a/public/previews/presets/thumbs/app-match-colors.jpg b/public/previews/presets/thumbs/app-match-colors.jpg
new file mode 100644
index 00000000..f70118a5
Binary files /dev/null and b/public/previews/presets/thumbs/app-match-colors.jpg differ
diff --git a/public/previews/presets/thumbs/app-match-lighting.jpg b/public/previews/presets/thumbs/app-match-lighting.jpg
new file mode 100644
index 00000000..0d839ea3
Binary files /dev/null and b/public/previews/presets/thumbs/app-match-lighting.jpg differ
diff --git a/public/previews/presets/thumbs/app-melting-doodle.jpg b/public/previews/presets/thumbs/app-melting-doodle.jpg
new file mode 100644
index 00000000..fba4df02
Binary files /dev/null and b/public/previews/presets/thumbs/app-melting-doodle.jpg differ
diff --git a/public/previews/presets/thumbs/app-meme-generator.jpg b/public/previews/presets/thumbs/app-meme-generator.jpg
new file mode 100644
index 00000000..dd4284dc
Binary files /dev/null and b/public/previews/presets/thumbs/app-meme-generator.jpg differ
diff --git a/public/previews/presets/thumbs/app-micro-beasts.jpg b/public/previews/presets/thumbs/app-micro-beasts.jpg
new file mode 100644
index 00000000..6eaea1d3
Binary files /dev/null and b/public/previews/presets/thumbs/app-micro-beasts.jpg differ
diff --git a/public/previews/presets/thumbs/app-mugshot.jpg b/public/previews/presets/thumbs/app-mugshot.jpg
new file mode 100644
index 00000000..7ea7d986
Binary files /dev/null and b/public/previews/presets/thumbs/app-mugshot.jpg differ
diff --git a/public/previews/presets/thumbs/app-mukbang.jpg b/public/previews/presets/thumbs/app-mukbang.jpg
new file mode 100644
index 00000000..6819f1cd
Binary files /dev/null and b/public/previews/presets/thumbs/app-mukbang.jpg differ
diff --git a/public/previews/presets/thumbs/app-nano-strike.jpg b/public/previews/presets/thumbs/app-nano-strike.jpg
new file mode 100644
index 00000000..4cccc488
Binary files /dev/null and b/public/previews/presets/thumbs/app-nano-strike.jpg differ
diff --git a/public/previews/presets/thumbs/app-nano-theft.jpg b/public/previews/presets/thumbs/app-nano-theft.jpg
new file mode 100644
index 00000000..953235c8
Binary files /dev/null and b/public/previews/presets/thumbs/app-nano-theft.jpg differ
diff --git a/public/previews/presets/thumbs/app-object-remover.jpg b/public/previews/presets/thumbs/app-object-remover.jpg
new file mode 100644
index 00000000..dbd593ea
Binary files /dev/null and b/public/previews/presets/thumbs/app-object-remover.jpg differ
diff --git a/public/previews/presets/thumbs/app-outfit-shot.jpg b/public/previews/presets/thumbs/app-outfit-shot.jpg
new file mode 100644
index 00000000..23815f09
Binary files /dev/null and b/public/previews/presets/thumbs/app-outfit-shot.jpg differ
diff --git a/public/previews/presets/thumbs/app-outfit-swap.jpg b/public/previews/presets/thumbs/app-outfit-swap.jpg
new file mode 100644
index 00000000..4928ae32
Binary files /dev/null and b/public/previews/presets/thumbs/app-outfit-swap.jpg differ
diff --git a/public/previews/presets/thumbs/app-outfit-vending.jpg b/public/previews/presets/thumbs/app-outfit-vending.jpg
new file mode 100644
index 00000000..82ed4321
Binary files /dev/null and b/public/previews/presets/thumbs/app-outfit-vending.jpg differ
diff --git a/public/previews/presets/thumbs/app-packshot.jpg b/public/previews/presets/thumbs/app-packshot.jpg
new file mode 100644
index 00000000..ab482445
Binary files /dev/null and b/public/previews/presets/thumbs/app-packshot.jpg differ
diff --git a/public/previews/presets/thumbs/app-paint-app.jpg b/public/previews/presets/thumbs/app-paint-app.jpg
new file mode 100644
index 00000000..d6ef002c
Binary files /dev/null and b/public/previews/presets/thumbs/app-paint-app.jpg differ
diff --git a/public/previews/presets/thumbs/app-pixel-game.jpg b/public/previews/presets/thumbs/app-pixel-game.jpg
new file mode 100644
index 00000000..9b660a9a
Binary files /dev/null and b/public/previews/presets/thumbs/app-pixel-game.jpg differ
diff --git a/public/previews/presets/thumbs/app-plushies.jpg b/public/previews/presets/thumbs/app-plushies.jpg
new file mode 100644
index 00000000..110de957
Binary files /dev/null and b/public/previews/presets/thumbs/app-plushies.jpg differ
diff --git a/public/previews/presets/thumbs/app-poster.jpg b/public/previews/presets/thumbs/app-poster.jpg
new file mode 100644
index 00000000..3e7e5d83
Binary files /dev/null and b/public/previews/presets/thumbs/app-poster.jpg differ
diff --git a/public/previews/presets/thumbs/app-product-360.jpg b/public/previews/presets/thumbs/app-product-360.jpg
new file mode 100644
index 00000000..5adb6a90
Binary files /dev/null and b/public/previews/presets/thumbs/app-product-360.jpg differ
diff --git a/public/previews/presets/thumbs/app-product-placement.jpg b/public/previews/presets/thumbs/app-product-placement.jpg
new file mode 100644
index 00000000..00cd6ca7
Binary files /dev/null and b/public/previews/presets/thumbs/app-product-placement.jpg differ
diff --git a/public/previews/presets/thumbs/app-product-shot.jpg b/public/previews/presets/thumbs/app-product-shot.jpg
new file mode 100644
index 00000000..94304a61
Binary files /dev/null and b/public/previews/presets/thumbs/app-product-shot.jpg differ
diff --git a/public/previews/presets/thumbs/app-rap-god.jpg b/public/previews/presets/thumbs/app-rap-god.jpg
new file mode 100644
index 00000000..b7b1aa24
Binary files /dev/null and b/public/previews/presets/thumbs/app-rap-god.jpg differ
diff --git a/public/previews/presets/thumbs/app-recast.jpg b/public/previews/presets/thumbs/app-recast.jpg
new file mode 100644
index 00000000..9a50b8cc
Binary files /dev/null and b/public/previews/presets/thumbs/app-recast.jpg differ
diff --git a/public/previews/presets/thumbs/app-relight.jpg b/public/previews/presets/thumbs/app-relight.jpg
new file mode 100644
index 00000000..851fbf8c
Binary files /dev/null and b/public/previews/presets/thumbs/app-relight.jpg differ
diff --git a/public/previews/presets/thumbs/app-remove-background.jpg b/public/previews/presets/thumbs/app-remove-background.jpg
new file mode 100644
index 00000000..42fdc39f
Binary files /dev/null and b/public/previews/presets/thumbs/app-remove-background.jpg differ
diff --git a/public/previews/presets/thumbs/app-renaissance.jpg b/public/previews/presets/thumbs/app-renaissance.jpg
new file mode 100644
index 00000000..c588aa2d
Binary files /dev/null and b/public/previews/presets/thumbs/app-renaissance.jpg differ
diff --git a/public/previews/presets/thumbs/app-restore-photo.jpg b/public/previews/presets/thumbs/app-restore-photo.jpg
new file mode 100644
index 00000000..56982f7d
Binary files /dev/null and b/public/previews/presets/thumbs/app-restore-photo.jpg differ
diff --git a/public/previews/presets/thumbs/app-roller-coaster.jpg b/public/previews/presets/thumbs/app-roller-coaster.jpg
new file mode 100644
index 00000000..99f40d58
Binary files /dev/null and b/public/previews/presets/thumbs/app-roller-coaster.jpg differ
diff --git a/public/previews/presets/thumbs/app-sand-worm.jpg b/public/previews/presets/thumbs/app-sand-worm.jpg
new file mode 100644
index 00000000..0352507b
Binary files /dev/null and b/public/previews/presets/thumbs/app-sand-worm.jpg differ
diff --git a/public/previews/presets/thumbs/app-shots.jpg b/public/previews/presets/thumbs/app-shots.jpg
new file mode 100644
index 00000000..88fdf971
Binary files /dev/null and b/public/previews/presets/thumbs/app-shots.jpg differ
diff --git a/public/previews/presets/thumbs/app-signboard.jpg b/public/previews/presets/thumbs/app-signboard.jpg
new file mode 100644
index 00000000..0d9bbed4
Binary files /dev/null and b/public/previews/presets/thumbs/app-signboard.jpg differ
diff --git a/public/previews/presets/thumbs/app-similarity-score.jpg b/public/previews/presets/thumbs/app-similarity-score.jpg
new file mode 100644
index 00000000..5db13c4c
Binary files /dev/null and b/public/previews/presets/thumbs/app-similarity-score.jpg differ
diff --git a/public/previews/presets/thumbs/app-simlife.jpg b/public/previews/presets/thumbs/app-simlife.jpg
new file mode 100644
index 00000000..4b6a0701
Binary files /dev/null and b/public/previews/presets/thumbs/app-simlife.jpg differ
diff --git a/public/previews/presets/thumbs/app-sketch-to-real.jpg b/public/previews/presets/thumbs/app-sketch-to-real.jpg
new file mode 100644
index 00000000..3075eed0
Binary files /dev/null and b/public/previews/presets/thumbs/app-sketch-to-real.jpg differ
diff --git a/public/previews/presets/thumbs/app-skibidi.jpg b/public/previews/presets/thumbs/app-skibidi.jpg
new file mode 100644
index 00000000..525943e0
Binary files /dev/null and b/public/previews/presets/thumbs/app-skibidi.jpg differ
diff --git a/public/previews/presets/thumbs/app-skin-enhancer.jpg b/public/previews/presets/thumbs/app-skin-enhancer.jpg
new file mode 100644
index 00000000..372e90d2
Binary files /dev/null and b/public/previews/presets/thumbs/app-skin-enhancer.jpg differ
diff --git a/public/previews/presets/thumbs/app-social-media-icon.jpg b/public/previews/presets/thumbs/app-social-media-icon.jpg
new file mode 100644
index 00000000..5335c60e
Binary files /dev/null and b/public/previews/presets/thumbs/app-social-media-icon.jpg differ
diff --git a/public/previews/presets/thumbs/app-steal-the-look.jpg b/public/previews/presets/thumbs/app-steal-the-look.jpg
new file mode 100644
index 00000000..2e1492b6
Binary files /dev/null and b/public/previews/presets/thumbs/app-steal-the-look.jpg differ
diff --git a/public/previews/presets/thumbs/app-sticker-match-cut.jpg b/public/previews/presets/thumbs/app-sticker-match-cut.jpg
new file mode 100644
index 00000000..c8b09008
Binary files /dev/null and b/public/previews/presets/thumbs/app-sticker-match-cut.jpg differ
diff --git a/public/previews/presets/thumbs/app-sticker-pack.jpg b/public/previews/presets/thumbs/app-sticker-pack.jpg
new file mode 100644
index 00000000..9ddc1f2c
Binary files /dev/null and b/public/previews/presets/thumbs/app-sticker-pack.jpg differ
diff --git a/public/previews/presets/thumbs/app-storm-creature.jpg b/public/previews/presets/thumbs/app-storm-creature.jpg
new file mode 100644
index 00000000..af3a8931
Binary files /dev/null and b/public/previews/presets/thumbs/app-storm-creature.jpg differ
diff --git a/public/previews/presets/thumbs/app-style-snap.jpg b/public/previews/presets/thumbs/app-style-snap.jpg
new file mode 100644
index 00000000..96593b8e
Binary files /dev/null and b/public/previews/presets/thumbs/app-style-snap.jpg differ
diff --git a/public/previews/presets/thumbs/app-style-transfer.jpg b/public/previews/presets/thumbs/app-style-transfer.jpg
new file mode 100644
index 00000000..492a9385
Binary files /dev/null and b/public/previews/presets/thumbs/app-style-transfer.jpg differ
diff --git a/public/previews/presets/thumbs/app-text-edit.jpg b/public/previews/presets/thumbs/app-text-edit.jpg
new file mode 100644
index 00000000..bd9109ec
Binary files /dev/null and b/public/previews/presets/thumbs/app-text-edit.jpg differ
diff --git a/public/previews/presets/thumbs/app-this-is-fine.jpg b/public/previews/presets/thumbs/app-this-is-fine.jpg
new file mode 100644
index 00000000..2c06406b
Binary files /dev/null and b/public/previews/presets/thumbs/app-this-is-fine.jpg differ
diff --git a/public/previews/presets/thumbs/app-transitions.jpg b/public/previews/presets/thumbs/app-transitions.jpg
new file mode 100644
index 00000000..efb07a99
Binary files /dev/null and b/public/previews/presets/thumbs/app-transitions.jpg differ
diff --git a/public/previews/presets/thumbs/app-truck-ad.jpg b/public/previews/presets/thumbs/app-truck-ad.jpg
new file mode 100644
index 00000000..b3053782
Binary files /dev/null and b/public/previews/presets/thumbs/app-truck-ad.jpg differ
diff --git a/public/previews/presets/thumbs/app-unboxing-video.jpg b/public/previews/presets/thumbs/app-unboxing-video.jpg
new file mode 100644
index 00000000..80543e59
Binary files /dev/null and b/public/previews/presets/thumbs/app-unboxing-video.jpg differ
diff --git a/public/previews/presets/thumbs/app-upscale.jpg b/public/previews/presets/thumbs/app-upscale.jpg
new file mode 100644
index 00000000..e0ff28a4
Binary files /dev/null and b/public/previews/presets/thumbs/app-upscale.jpg differ
diff --git a/public/previews/presets/thumbs/app-urban-cuts.jpg b/public/previews/presets/thumbs/app-urban-cuts.jpg
new file mode 100644
index 00000000..cd524a4a
Binary files /dev/null and b/public/previews/presets/thumbs/app-urban-cuts.jpg differ
diff --git a/public/previews/presets/thumbs/app-vectorize.jpg b/public/previews/presets/thumbs/app-vectorize.jpg
new file mode 100644
index 00000000..c5b677c9
Binary files /dev/null and b/public/previews/presets/thumbs/app-vectorize.jpg differ
diff --git a/public/previews/presets/thumbs/app-victory-card.jpg b/public/previews/presets/thumbs/app-victory-card.jpg
new file mode 100644
index 00000000..5346ef61
Binary files /dev/null and b/public/previews/presets/thumbs/app-victory-card.jpg differ
diff --git a/public/previews/presets/thumbs/app-video-background-remover.jpg b/public/previews/presets/thumbs/app-video-background-remover.jpg
new file mode 100644
index 00000000..700a43a7
Binary files /dev/null and b/public/previews/presets/thumbs/app-video-background-remover.jpg differ
diff --git a/public/previews/presets/thumbs/app-video-face-swap.jpg b/public/previews/presets/thumbs/app-video-face-swap.jpg
new file mode 100644
index 00000000..82295ab4
Binary files /dev/null and b/public/previews/presets/thumbs/app-video-face-swap.jpg differ
diff --git a/public/previews/presets/thumbs/app-virtual-try-on.jpg b/public/previews/presets/thumbs/app-virtual-try-on.jpg
new file mode 100644
index 00000000..6bf7948f
Binary files /dev/null and b/public/previews/presets/thumbs/app-virtual-try-on.jpg differ
diff --git a/public/previews/presets/thumbs/app-volcano-ad.jpg b/public/previews/presets/thumbs/app-volcano-ad.jpg
new file mode 100644
index 00000000..e3093f1b
Binary files /dev/null and b/public/previews/presets/thumbs/app-volcano-ad.jpg differ
diff --git a/public/previews/presets/thumbs/app-what-s-next.jpg b/public/previews/presets/thumbs/app-what-s-next.jpg
new file mode 100644
index 00000000..afd1137d
Binary files /dev/null and b/public/previews/presets/thumbs/app-what-s-next.jpg differ
diff --git a/public/previews/presets/thumbs/app-yes-kiss.jpg b/public/previews/presets/thumbs/app-yes-kiss.jpg
new file mode 100644
index 00000000..df650c5c
Binary files /dev/null and b/public/previews/presets/thumbs/app-yes-kiss.jpg differ
diff --git a/public/previews/presets/thumbs/app-zoom-out.jpg b/public/previews/presets/thumbs/app-zoom-out.jpg
new file mode 100644
index 00000000..fcaa9ef0
Binary files /dev/null and b/public/previews/presets/thumbs/app-zoom-out.jpg differ
diff --git a/public/previews/presets/thumbs/app-zooms.jpg b/public/previews/presets/thumbs/app-zooms.jpg
new file mode 100644
index 00000000..6cba8d63
Binary files /dev/null and b/public/previews/presets/thumbs/app-zooms.jpg differ
diff --git a/public/previews/presets/thumbs/effect-acid.jpg b/public/previews/presets/thumbs/effect-acid.jpg
new file mode 100644
index 00000000..994ee4af
Binary files /dev/null and b/public/previews/presets/thumbs/effect-acid.jpg differ
diff --git a/public/previews/presets/thumbs/effect-act-natural.jpg b/public/previews/presets/thumbs/effect-act-natural.jpg
new file mode 100644
index 00000000..dd452f98
Binary files /dev/null and b/public/previews/presets/thumbs/effect-act-natural.jpg differ
diff --git a/public/previews/presets/thumbs/effect-agamemnon.jpg b/public/previews/presets/thumbs/effect-agamemnon.jpg
new file mode 100644
index 00000000..79e4ab86
Binary files /dev/null and b/public/previews/presets/thumbs/effect-agamemnon.jpg differ
diff --git a/public/previews/presets/thumbs/effect-agent-reveal.jpg b/public/previews/presets/thumbs/effect-agent-reveal.jpg
new file mode 100644
index 00000000..c119face
Binary files /dev/null and b/public/previews/presets/thumbs/effect-agent-reveal.jpg differ
diff --git a/public/previews/presets/thumbs/effect-air-bending.jpg b/public/previews/presets/thumbs/effect-air-bending.jpg
new file mode 100644
index 00000000..de02b311
Binary files /dev/null and b/public/previews/presets/thumbs/effect-air-bending.jpg differ
diff --git a/public/previews/presets/thumbs/effect-akrill.jpg b/public/previews/presets/thumbs/effect-akrill.jpg
new file mode 100644
index 00000000..c2233cff
Binary files /dev/null and b/public/previews/presets/thumbs/effect-akrill.jpg differ
diff --git a/public/previews/presets/thumbs/effect-angel-wings.jpg b/public/previews/presets/thumbs/effect-angel-wings.jpg
new file mode 100644
index 00000000..f5f921a3
Binary files /dev/null and b/public/previews/presets/thumbs/effect-angel-wings.jpg differ
diff --git a/public/previews/presets/thumbs/effect-angry-mode.jpg b/public/previews/presets/thumbs/effect-angry-mode.jpg
new file mode 100644
index 00000000..554a557a
Binary files /dev/null and b/public/previews/presets/thumbs/effect-angry-mode.jpg differ
diff --git a/public/previews/presets/thumbs/effect-animalization.jpg b/public/previews/presets/thumbs/effect-animalization.jpg
new file mode 100644
index 00000000..87473f51
Binary files /dev/null and b/public/previews/presets/thumbs/effect-animalization.jpg differ
diff --git a/public/previews/presets/thumbs/effect-aquarium.jpg b/public/previews/presets/thumbs/effect-aquarium.jpg
new file mode 100644
index 00000000..dcd29c82
Binary files /dev/null and b/public/previews/presets/thumbs/effect-aquarium.jpg differ
diff --git a/public/previews/presets/thumbs/effect-architecture-wave.jpg b/public/previews/presets/thumbs/effect-architecture-wave.jpg
new file mode 100644
index 00000000..d89d8c50
Binary files /dev/null and b/public/previews/presets/thumbs/effect-architecture-wave.jpg differ
diff --git a/public/previews/presets/thumbs/effect-atomic.jpg b/public/previews/presets/thumbs/effect-atomic.jpg
new file mode 100644
index 00000000..5aabf5ca
Binary files /dev/null and b/public/previews/presets/thumbs/effect-atomic.jpg differ
diff --git a/public/previews/presets/thumbs/effect-attack-of-clones.jpg b/public/previews/presets/thumbs/effect-attack-of-clones.jpg
new file mode 100644
index 00000000..9ba49865
Binary files /dev/null and b/public/previews/presets/thumbs/effect-attack-of-clones.jpg differ
diff --git a/public/previews/presets/thumbs/effect-ballet.jpg b/public/previews/presets/thumbs/effect-ballet.jpg
new file mode 100644
index 00000000..90dcc40f
Binary files /dev/null and b/public/previews/presets/thumbs/effect-ballet.jpg differ
diff --git a/public/previews/presets/thumbs/effect-balloon.jpg b/public/previews/presets/thumbs/effect-balloon.jpg
new file mode 100644
index 00000000..85cdcb04
Binary files /dev/null and b/public/previews/presets/thumbs/effect-balloon.jpg differ
diff --git a/public/previews/presets/thumbs/effect-beach-ride.jpg b/public/previews/presets/thumbs/effect-beach-ride.jpg
new file mode 100644
index 00000000..8443741b
Binary files /dev/null and b/public/previews/presets/thumbs/effect-beach-ride.jpg differ
diff --git a/public/previews/presets/thumbs/effect-beast-appearance.jpg b/public/previews/presets/thumbs/effect-beast-appearance.jpg
new file mode 100644
index 00000000..9158e2a6
Binary files /dev/null and b/public/previews/presets/thumbs/effect-beast-appearance.jpg differ
diff --git a/public/previews/presets/thumbs/effect-black-gloss.jpg b/public/previews/presets/thumbs/effect-black-gloss.jpg
new file mode 100644
index 00000000..d6e4ae0f
Binary files /dev/null and b/public/previews/presets/thumbs/effect-black-gloss.jpg differ
diff --git a/public/previews/presets/thumbs/effect-black-tears.jpg b/public/previews/presets/thumbs/effect-black-tears.jpg
new file mode 100644
index 00000000..ec743ed0
Binary files /dev/null and b/public/previews/presets/thumbs/effect-black-tears.jpg differ
diff --git a/public/previews/presets/thumbs/effect-bleach-bypass.jpg b/public/previews/presets/thumbs/effect-bleach-bypass.jpg
new file mode 100644
index 00000000..7b3faccb
Binary files /dev/null and b/public/previews/presets/thumbs/effect-bleach-bypass.jpg differ
diff --git a/public/previews/presets/thumbs/effect-bleached-warm.jpg b/public/previews/presets/thumbs/effect-bleached-warm.jpg
new file mode 100644
index 00000000..75d780e0
Binary files /dev/null and b/public/previews/presets/thumbs/effect-bleached-warm.jpg differ
diff --git a/public/previews/presets/thumbs/effect-bloom-mouth.jpg b/public/previews/presets/thumbs/effect-bloom-mouth.jpg
new file mode 100644
index 00000000..aab48472
Binary files /dev/null and b/public/previews/presets/thumbs/effect-bloom-mouth.jpg differ
diff --git a/public/previews/presets/thumbs/effect-blue-depth.jpg b/public/previews/presets/thumbs/effect-blue-depth.jpg
new file mode 100644
index 00000000..87d8d344
Binary files /dev/null and b/public/previews/presets/thumbs/effect-blue-depth.jpg differ
diff --git a/public/previews/presets/thumbs/effect-boarding-pass.jpg b/public/previews/presets/thumbs/effect-boarding-pass.jpg
new file mode 100644
index 00000000..298e2339
Binary files /dev/null and b/public/previews/presets/thumbs/effect-boarding-pass.jpg differ
diff --git a/public/previews/presets/thumbs/effect-boiling-point.jpg b/public/previews/presets/thumbs/effect-boiling-point.jpg
new file mode 100644
index 00000000..989cd1a5
Binary files /dev/null and b/public/previews/presets/thumbs/effect-boiling-point.jpg differ
diff --git a/public/previews/presets/thumbs/effect-broken-mirror.jpg b/public/previews/presets/thumbs/effect-broken-mirror.jpg
new file mode 100644
index 00000000..f069e8a1
Binary files /dev/null and b/public/previews/presets/thumbs/effect-broken-mirror.jpg differ
diff --git a/public/previews/presets/thumbs/effect-bubbles.jpg b/public/previews/presets/thumbs/effect-bubbles.jpg
new file mode 100644
index 00000000..675724a1
Binary files /dev/null and b/public/previews/presets/thumbs/effect-bubbles.jpg differ
diff --git a/public/previews/presets/thumbs/effect-buddy.jpg b/public/previews/presets/thumbs/effect-buddy.jpg
new file mode 100644
index 00000000..e34447af
Binary files /dev/null and b/public/previews/presets/thumbs/effect-buddy.jpg differ
diff --git a/public/previews/presets/thumbs/effect-building-explosion.jpg b/public/previews/presets/thumbs/effect-building-explosion.jpg
new file mode 100644
index 00000000..b35e660b
Binary files /dev/null and b/public/previews/presets/thumbs/effect-building-explosion.jpg differ
diff --git a/public/previews/presets/thumbs/effect-burning-man.jpg b/public/previews/presets/thumbs/effect-burning-man.jpg
new file mode 100644
index 00000000..c9869879
Binary files /dev/null and b/public/previews/presets/thumbs/effect-burning-man.jpg differ
diff --git a/public/previews/presets/thumbs/effect-cakeify.jpg b/public/previews/presets/thumbs/effect-cakeify.jpg
new file mode 100644
index 00000000..2877b5c4
Binary files /dev/null and b/public/previews/presets/thumbs/effect-cakeify.jpg differ
diff --git a/public/previews/presets/thumbs/effect-candy-pink.jpg b/public/previews/presets/thumbs/effect-candy-pink.jpg
new file mode 100644
index 00000000..2425662d
Binary files /dev/null and b/public/previews/presets/thumbs/effect-candy-pink.jpg differ
diff --git a/public/previews/presets/thumbs/effect-cannabis.jpg b/public/previews/presets/thumbs/effect-cannabis.jpg
new file mode 100644
index 00000000..fd06fb52
Binary files /dev/null and b/public/previews/presets/thumbs/effect-cannabis.jpg differ
diff --git a/public/previews/presets/thumbs/effect-canvas.jpg b/public/previews/presets/thumbs/effect-canvas.jpg
new file mode 100644
index 00000000..3b7d0026
Binary files /dev/null and b/public/previews/presets/thumbs/effect-canvas.jpg differ
diff --git a/public/previews/presets/thumbs/effect-car-drive.jpg b/public/previews/presets/thumbs/effect-car-drive.jpg
new file mode 100644
index 00000000..a98eace3
Binary files /dev/null and b/public/previews/presets/thumbs/effect-car-drive.jpg differ
diff --git a/public/previews/presets/thumbs/effect-car-explosion.jpg b/public/previews/presets/thumbs/effect-car-explosion.jpg
new file mode 100644
index 00000000..2d930e00
Binary files /dev/null and b/public/previews/presets/thumbs/effect-car-explosion.jpg differ
diff --git a/public/previews/presets/thumbs/effect-censorship.jpg b/public/previews/presets/thumbs/effect-censorship.jpg
new file mode 100644
index 00000000..ee15d9f5
Binary files /dev/null and b/public/previews/presets/thumbs/effect-censorship.jpg differ
diff --git a/public/previews/presets/thumbs/effect-classic-bw.jpg b/public/previews/presets/thumbs/effect-classic-bw.jpg
new file mode 100644
index 00000000..e5e2b52b
Binary files /dev/null and b/public/previews/presets/thumbs/effect-classic-bw.jpg differ
diff --git a/public/previews/presets/thumbs/effect-clone-explosion.jpg b/public/previews/presets/thumbs/effect-clone-explosion.jpg
new file mode 100644
index 00000000..d0934fad
Binary files /dev/null and b/public/previews/presets/thumbs/effect-clone-explosion.jpg differ
diff --git a/public/previews/presets/thumbs/effect-clones.jpg b/public/previews/presets/thumbs/effect-clones.jpg
new file mode 100644
index 00000000..bb0376b2
Binary files /dev/null and b/public/previews/presets/thumbs/effect-clones.jpg differ
diff --git a/public/previews/presets/thumbs/effect-clothes-rain.jpg b/public/previews/presets/thumbs/effect-clothes-rain.jpg
new file mode 100644
index 00000000..5c166239
Binary files /dev/null and b/public/previews/presets/thumbs/effect-clothes-rain.jpg differ
diff --git a/public/previews/presets/thumbs/effect-cold-steel.jpg b/public/previews/presets/thumbs/effect-cold-steel.jpg
new file mode 100644
index 00000000..f80dada3
Binary files /dev/null and b/public/previews/presets/thumbs/effect-cold-steel.jpg differ
diff --git a/public/previews/presets/thumbs/effect-cold-vision.jpg b/public/previews/presets/thumbs/effect-cold-vision.jpg
new file mode 100644
index 00000000..3992ee4e
Binary files /dev/null and b/public/previews/presets/thumbs/effect-cold-vision.jpg differ
diff --git a/public/previews/presets/thumbs/effect-color-rain.jpg b/public/previews/presets/thumbs/effect-color-rain.jpg
new file mode 100644
index 00000000..907ee54e
Binary files /dev/null and b/public/previews/presets/thumbs/effect-color-rain.jpg differ
diff --git a/public/previews/presets/thumbs/effect-column-wipe.jpg b/public/previews/presets/thumbs/effect-column-wipe.jpg
new file mode 100644
index 00000000..3a7fe287
Binary files /dev/null and b/public/previews/presets/thumbs/effect-column-wipe.jpg differ
diff --git a/public/previews/presets/thumbs/effect-comic.jpg b/public/previews/presets/thumbs/effect-comic.jpg
new file mode 100644
index 00000000..ccdf61af
Binary files /dev/null and b/public/previews/presets/thumbs/effect-comic.jpg differ
diff --git a/public/previews/presets/thumbs/effect-contre-jour.jpg b/public/previews/presets/thumbs/effect-contre-jour.jpg
new file mode 100644
index 00000000..bc7247e0
Binary files /dev/null and b/public/previews/presets/thumbs/effect-contre-jour.jpg differ
diff --git a/public/previews/presets/thumbs/effect-cotton-cloud.jpg b/public/previews/presets/thumbs/effect-cotton-cloud.jpg
new file mode 100644
index 00000000..bace4b8b
Binary files /dev/null and b/public/previews/presets/thumbs/effect-cotton-cloud.jpg differ
diff --git a/public/previews/presets/thumbs/effect-crimson-vigil.jpg b/public/previews/presets/thumbs/effect-crimson-vigil.jpg
new file mode 100644
index 00000000..a7a09ee9
Binary files /dev/null and b/public/previews/presets/thumbs/effect-crimson-vigil.jpg differ
diff --git a/public/previews/presets/thumbs/effect-crush.jpg b/public/previews/presets/thumbs/effect-crush.jpg
new file mode 100644
index 00000000..d2a75446
Binary files /dev/null and b/public/previews/presets/thumbs/effect-crush.jpg differ
diff --git a/public/previews/presets/thumbs/effect-crying.jpg b/public/previews/presets/thumbs/effect-crying.jpg
new file mode 100644
index 00000000..ead26031
Binary files /dev/null and b/public/previews/presets/thumbs/effect-crying.jpg differ
diff --git a/public/previews/presets/thumbs/effect-cutout.jpg b/public/previews/presets/thumbs/effect-cutout.jpg
new file mode 100644
index 00000000..cc61191e
Binary files /dev/null and b/public/previews/presets/thumbs/effect-cutout.jpg differ
diff --git a/public/previews/presets/thumbs/effect-cyborg.jpg b/public/previews/presets/thumbs/effect-cyborg.jpg
new file mode 100644
index 00000000..0f4c0951
Binary files /dev/null and b/public/previews/presets/thumbs/effect-cyborg.jpg differ
diff --git a/public/previews/presets/thumbs/effect-cyclope.jpg b/public/previews/presets/thumbs/effect-cyclope.jpg
new file mode 100644
index 00000000..3e2a0dec
Binary files /dev/null and b/public/previews/presets/thumbs/effect-cyclope.jpg differ
diff --git a/public/previews/presets/thumbs/effect-datamosh.jpg b/public/previews/presets/thumbs/effect-datamosh.jpg
new file mode 100644
index 00000000..16140be9
Binary files /dev/null and b/public/previews/presets/thumbs/effect-datamosh.jpg differ
diff --git a/public/previews/presets/thumbs/effect-deflate.jpg b/public/previews/presets/thumbs/effect-deflate.jpg
new file mode 100644
index 00000000..d17cabdf
Binary files /dev/null and b/public/previews/presets/thumbs/effect-deflate.jpg differ
diff --git a/public/previews/presets/thumbs/effect-diamond.jpg b/public/previews/presets/thumbs/effect-diamond.jpg
new file mode 100644
index 00000000..c378827a
Binary files /dev/null and b/public/previews/presets/thumbs/effect-diamond.jpg differ
diff --git a/public/previews/presets/thumbs/effect-dirty-lens.jpg b/public/previews/presets/thumbs/effect-dirty-lens.jpg
new file mode 100644
index 00000000..497190c7
Binary files /dev/null and b/public/previews/presets/thumbs/effect-dirty-lens.jpg differ
diff --git a/public/previews/presets/thumbs/effect-disintegration.jpg b/public/previews/presets/thumbs/effect-disintegration.jpg
new file mode 100644
index 00000000..d990796e
Binary files /dev/null and b/public/previews/presets/thumbs/effect-disintegration.jpg differ
diff --git a/public/previews/presets/thumbs/effect-display-transition.jpg b/public/previews/presets/thumbs/effect-display-transition.jpg
new file mode 100644
index 00000000..059c9164
Binary files /dev/null and b/public/previews/presets/thumbs/effect-display-transition.jpg differ
diff --git a/public/previews/presets/thumbs/effect-dolphin-ride.jpg b/public/previews/presets/thumbs/effect-dolphin-ride.jpg
new file mode 100644
index 00000000..c9449856
Binary files /dev/null and b/public/previews/presets/thumbs/effect-dolphin-ride.jpg differ
diff --git a/public/previews/presets/thumbs/effect-dream-date.jpg b/public/previews/presets/thumbs/effect-dream-date.jpg
new file mode 100644
index 00000000..8d7bbf70
Binary files /dev/null and b/public/previews/presets/thumbs/effect-dream-date.jpg differ
diff --git a/public/previews/presets/thumbs/effect-drunk-master.jpg b/public/previews/presets/thumbs/effect-drunk-master.jpg
new file mode 100644
index 00000000..39debaec
Binary files /dev/null and b/public/previews/presets/thumbs/effect-drunk-master.jpg differ
diff --git a/public/previews/presets/thumbs/effect-duplicate.jpg b/public/previews/presets/thumbs/effect-duplicate.jpg
new file mode 100644
index 00000000..cb3fc803
Binary files /dev/null and b/public/previews/presets/thumbs/effect-duplicate.jpg differ
diff --git a/public/previews/presets/thumbs/effect-earth-element.jpg b/public/previews/presets/thumbs/effect-earth-element.jpg
new file mode 100644
index 00000000..a16ed7d8
Binary files /dev/null and b/public/previews/presets/thumbs/effect-earth-element.jpg differ
diff --git a/public/previews/presets/thumbs/effect-earth-wave.jpg b/public/previews/presets/thumbs/effect-earth-wave.jpg
new file mode 100644
index 00000000..0cd4d27e
Binary files /dev/null and b/public/previews/presets/thumbs/effect-earth-wave.jpg differ
diff --git a/public/previews/presets/thumbs/effect-earth-zoom-out.jpg b/public/previews/presets/thumbs/effect-earth-zoom-out.jpg
new file mode 100644
index 00000000..0e6f8644
Binary files /dev/null and b/public/previews/presets/thumbs/effect-earth-zoom-out.jpg differ
diff --git a/public/previews/presets/thumbs/effect-eating.jpg b/public/previews/presets/thumbs/effect-eating.jpg
new file mode 100644
index 00000000..c2a7fd5d
Binary files /dev/null and b/public/previews/presets/thumbs/effect-eating.jpg differ
diff --git a/public/previews/presets/thumbs/effect-exploded-view.jpg b/public/previews/presets/thumbs/effect-exploded-view.jpg
new file mode 100644
index 00000000..bb4dba81
Binary files /dev/null and b/public/previews/presets/thumbs/effect-exploded-view.jpg differ
diff --git a/public/previews/presets/thumbs/effect-explosion.jpg b/public/previews/presets/thumbs/effect-explosion.jpg
new file mode 100644
index 00000000..55aa2255
Binary files /dev/null and b/public/previews/presets/thumbs/effect-explosion.jpg differ
diff --git a/public/previews/presets/thumbs/effect-fairies-around.jpg b/public/previews/presets/thumbs/effect-fairies-around.jpg
new file mode 100644
index 00000000..07504da6
Binary files /dev/null and b/public/previews/presets/thumbs/effect-fairies-around.jpg differ
diff --git a/public/previews/presets/thumbs/effect-fairytale-castle.jpg b/public/previews/presets/thumbs/effect-fairytale-castle.jpg
new file mode 100644
index 00000000..b830ee24
Binary files /dev/null and b/public/previews/presets/thumbs/effect-fairytale-castle.jpg differ
diff --git a/public/previews/presets/thumbs/effect-fallen-angel.jpg b/public/previews/presets/thumbs/effect-fallen-angel.jpg
new file mode 100644
index 00000000..e512fb7a
Binary files /dev/null and b/public/previews/presets/thumbs/effect-fallen-angel.jpg differ
diff --git a/public/previews/presets/thumbs/effect-film-colors.jpg b/public/previews/presets/thumbs/effect-film-colors.jpg
new file mode 100644
index 00000000..e618235e
Binary files /dev/null and b/public/previews/presets/thumbs/effect-film-colors.jpg differ
diff --git a/public/previews/presets/thumbs/effect-fire-breath.jpg b/public/previews/presets/thumbs/effect-fire-breath.jpg
new file mode 100644
index 00000000..f6d1fa57
Binary files /dev/null and b/public/previews/presets/thumbs/effect-fire-breath.jpg differ
diff --git a/public/previews/presets/thumbs/effect-fire-element.jpg b/public/previews/presets/thumbs/effect-fire-element.jpg
new file mode 100644
index 00000000..5ee43d5e
Binary files /dev/null and b/public/previews/presets/thumbs/effect-fire-element.jpg differ
diff --git a/public/previews/presets/thumbs/effect-firelava.jpg b/public/previews/presets/thumbs/effect-firelava.jpg
new file mode 100644
index 00000000..6d4fe16b
Binary files /dev/null and b/public/previews/presets/thumbs/effect-firelava.jpg differ
diff --git a/public/previews/presets/thumbs/effect-firework.jpg b/public/previews/presets/thumbs/effect-firework.jpg
new file mode 100644
index 00000000..d73a803f
Binary files /dev/null and b/public/previews/presets/thumbs/effect-firework.jpg differ
diff --git a/public/previews/presets/thumbs/effect-fix-and-pose.jpg b/public/previews/presets/thumbs/effect-fix-and-pose.jpg
new file mode 100644
index 00000000..c3e66013
Binary files /dev/null and b/public/previews/presets/thumbs/effect-fix-and-pose.jpg differ
diff --git a/public/previews/presets/thumbs/effect-flame-on.jpg b/public/previews/presets/thumbs/effect-flame-on.jpg
new file mode 100644
index 00000000..218aa3c3
Binary files /dev/null and b/public/previews/presets/thumbs/effect-flame-on.jpg differ
diff --git a/public/previews/presets/thumbs/effect-flame-transition.jpg b/public/previews/presets/thumbs/effect-flame-transition.jpg
new file mode 100644
index 00000000..f5e7c9f4
Binary files /dev/null and b/public/previews/presets/thumbs/effect-flame-transition.jpg differ
diff --git a/public/previews/presets/thumbs/effect-flash-comic.jpg b/public/previews/presets/thumbs/effect-flash-comic.jpg
new file mode 100644
index 00000000..ded63371
Binary files /dev/null and b/public/previews/presets/thumbs/effect-flash-comic.jpg differ
diff --git a/public/previews/presets/thumbs/effect-flashback.jpg b/public/previews/presets/thumbs/effect-flashback.jpg
new file mode 100644
index 00000000..321a5a88
Binary files /dev/null and b/public/previews/presets/thumbs/effect-flashback.jpg differ
diff --git a/public/previews/presets/thumbs/effect-floating-fall.jpg b/public/previews/presets/thumbs/effect-floating-fall.jpg
new file mode 100644
index 00000000..a8316d3f
Binary files /dev/null and b/public/previews/presets/thumbs/effect-floating-fall.jpg differ
diff --git a/public/previews/presets/thumbs/effect-floating-fish.jpg b/public/previews/presets/thumbs/effect-floating-fish.jpg
new file mode 100644
index 00000000..80df880b
Binary files /dev/null and b/public/previews/presets/thumbs/effect-floating-fish.jpg differ
diff --git a/public/previews/presets/thumbs/effect-flood.jpg b/public/previews/presets/thumbs/effect-flood.jpg
new file mode 100644
index 00000000..a693c486
Binary files /dev/null and b/public/previews/presets/thumbs/effect-flood.jpg differ
diff --git a/public/previews/presets/thumbs/effect-floral-eyes.jpg b/public/previews/presets/thumbs/effect-floral-eyes.jpg
new file mode 100644
index 00000000..2c973483
Binary files /dev/null and b/public/previews/presets/thumbs/effect-floral-eyes.jpg differ
diff --git a/public/previews/presets/thumbs/effect-fragments.jpg b/public/previews/presets/thumbs/effect-fragments.jpg
new file mode 100644
index 00000000..134b634c
Binary files /dev/null and b/public/previews/presets/thumbs/effect-fragments.jpg differ
diff --git a/public/previews/presets/thumbs/effect-freezing.jpg b/public/previews/presets/thumbs/effect-freezing.jpg
new file mode 100644
index 00000000..a517e142
Binary files /dev/null and b/public/previews/presets/thumbs/effect-freezing.jpg differ
diff --git a/public/previews/presets/thumbs/effect-frozen-in-motion.jpg b/public/previews/presets/thumbs/effect-frozen-in-motion.jpg
new file mode 100644
index 00000000..b96b5538
Binary files /dev/null and b/public/previews/presets/thumbs/effect-frozen-in-motion.jpg differ
diff --git a/public/previews/presets/thumbs/effect-garden-bloom.jpg b/public/previews/presets/thumbs/effect-garden-bloom.jpg
new file mode 100644
index 00000000..4c7c799a
Binary files /dev/null and b/public/previews/presets/thumbs/effect-garden-bloom.jpg differ
diff --git a/public/previews/presets/thumbs/effect-gas-transformation.jpg b/public/previews/presets/thumbs/effect-gas-transformation.jpg
new file mode 100644
index 00000000..b2034c3d
Binary files /dev/null and b/public/previews/presets/thumbs/effect-gas-transformation.jpg differ
diff --git a/public/previews/presets/thumbs/effect-giant-grab.jpg b/public/previews/presets/thumbs/effect-giant-grab.jpg
new file mode 100644
index 00000000..cbb01d73
Binary files /dev/null and b/public/previews/presets/thumbs/effect-giant-grab.jpg differ
diff --git a/public/previews/presets/thumbs/effect-giant-people.jpg b/public/previews/presets/thumbs/effect-giant-people.jpg
new file mode 100644
index 00000000..5689900f
Binary files /dev/null and b/public/previews/presets/thumbs/effect-giant-people.jpg differ
diff --git a/public/previews/presets/thumbs/effect-giant.jpg b/public/previews/presets/thumbs/effect-giant.jpg
new file mode 100644
index 00000000..5d0b7165
Binary files /dev/null and b/public/previews/presets/thumbs/effect-giant.jpg differ
diff --git a/public/previews/presets/thumbs/effect-glitch.jpg b/public/previews/presets/thumbs/effect-glitch.jpg
new file mode 100644
index 00000000..7e90001d
Binary files /dev/null and b/public/previews/presets/thumbs/effect-glitch.jpg differ
diff --git a/public/previews/presets/thumbs/effect-glow-trace.jpg b/public/previews/presets/thumbs/effect-glow-trace.jpg
new file mode 100644
index 00000000..e8db6a07
Binary files /dev/null and b/public/previews/presets/thumbs/effect-glow-trace.jpg differ
diff --git a/public/previews/presets/thumbs/effect-glowing-fish.jpg b/public/previews/presets/thumbs/effect-glowing-fish.jpg
new file mode 100644
index 00000000..d9f5918b
Binary files /dev/null and b/public/previews/presets/thumbs/effect-glowing-fish.jpg differ
diff --git a/public/previews/presets/thumbs/effect-glowshift.jpg b/public/previews/presets/thumbs/effect-glowshift.jpg
new file mode 100644
index 00000000..0f382311
Binary files /dev/null and b/public/previews/presets/thumbs/effect-glowshift.jpg differ
diff --git a/public/previews/presets/thumbs/effect-gorilla-transfer.jpg b/public/previews/presets/thumbs/effect-gorilla-transfer.jpg
new file mode 100644
index 00000000..955c278e
Binary files /dev/null and b/public/previews/presets/thumbs/effect-gorilla-transfer.jpg differ
diff --git a/public/previews/presets/thumbs/effect-group-photo.jpg b/public/previews/presets/thumbs/effect-group-photo.jpg
new file mode 100644
index 00000000..6f8330bf
Binary files /dev/null and b/public/previews/presets/thumbs/effect-group-photo.jpg differ
diff --git a/public/previews/presets/thumbs/effect-hair-style.jpg b/public/previews/presets/thumbs/effect-hair-style.jpg
new file mode 100644
index 00000000..08efe126
Binary files /dev/null and b/public/previews/presets/thumbs/effect-hair-style.jpg differ
diff --git a/public/previews/presets/thumbs/effect-hand-paint.jpg b/public/previews/presets/thumbs/effect-hand-paint.jpg
new file mode 100644
index 00000000..25f56f7e
Binary files /dev/null and b/public/previews/presets/thumbs/effect-hand-paint.jpg differ
diff --git a/public/previews/presets/thumbs/effect-hand-transition.jpg b/public/previews/presets/thumbs/effect-hand-transition.jpg
new file mode 100644
index 00000000..e01d5f4d
Binary files /dev/null and b/public/previews/presets/thumbs/effect-hand-transition.jpg differ
diff --git a/public/previews/presets/thumbs/effect-handheld-run.jpg b/public/previews/presets/thumbs/effect-handheld-run.jpg
new file mode 100644
index 00000000..07c97b0e
Binary files /dev/null and b/public/previews/presets/thumbs/effect-handheld-run.jpg differ
diff --git a/public/previews/presets/thumbs/effect-happy-mode.jpg b/public/previews/presets/thumbs/effect-happy-mode.jpg
new file mode 100644
index 00000000..0b8bff3a
Binary files /dev/null and b/public/previews/presets/thumbs/effect-happy-mode.jpg differ
diff --git a/public/previews/presets/thumbs/effect-happy.jpg b/public/previews/presets/thumbs/effect-happy.jpg
new file mode 100644
index 00000000..9f539152
Binary files /dev/null and b/public/previews/presets/thumbs/effect-happy.jpg differ
diff --git a/public/previews/presets/thumbs/effect-head-explosion.jpg b/public/previews/presets/thumbs/effect-head-explosion.jpg
new file mode 100644
index 00000000..6fea20d1
Binary files /dev/null and b/public/previews/presets/thumbs/effect-head-explosion.jpg differ
diff --git a/public/previews/presets/thumbs/effect-head-off.jpg b/public/previews/presets/thumbs/effect-head-off.jpg
new file mode 100644
index 00000000..ed221510
Binary files /dev/null and b/public/previews/presets/thumbs/effect-head-off.jpg differ
diff --git a/public/previews/presets/thumbs/effect-helicopter-escape.jpg b/public/previews/presets/thumbs/effect-helicopter-escape.jpg
new file mode 100644
index 00000000..2c08b19f
Binary files /dev/null and b/public/previews/presets/thumbs/effect-helicopter-escape.jpg differ
diff --git a/public/previews/presets/thumbs/effect-hero-flight.jpg b/public/previews/presets/thumbs/effect-hero-flight.jpg
new file mode 100644
index 00000000..562d343e
Binary files /dev/null and b/public/previews/presets/thumbs/effect-hero-flight.jpg differ
diff --git a/public/previews/presets/thumbs/effect-high-flip.jpg b/public/previews/presets/thumbs/effect-high-flip.jpg
new file mode 100644
index 00000000..5c05f5ab
Binary files /dev/null and b/public/previews/presets/thumbs/effect-high-flip.jpg differ
diff --git a/public/previews/presets/thumbs/effect-hole-transition.jpg b/public/previews/presets/thumbs/effect-hole-transition.jpg
new file mode 100644
index 00000000..9018ddad
Binary files /dev/null and b/public/previews/presets/thumbs/effect-hole-transition.jpg differ
diff --git a/public/previews/presets/thumbs/effect-horror-face.jpg b/public/previews/presets/thumbs/effect-horror-face.jpg
new file mode 100644
index 00000000..a7f32cc7
Binary files /dev/null and b/public/previews/presets/thumbs/effect-horror-face.jpg differ
diff --git a/public/previews/presets/thumbs/effect-hyper-neon.jpg b/public/previews/presets/thumbs/effect-hyper-neon.jpg
new file mode 100644
index 00000000..5a79f5d4
Binary files /dev/null and b/public/previews/presets/thumbs/effect-hyper-neon.jpg differ
diff --git a/public/previews/presets/thumbs/effect-i-can-fly.jpg b/public/previews/presets/thumbs/effect-i-can-fly.jpg
new file mode 100644
index 00000000..eaa1f0c1
Binary files /dev/null and b/public/previews/presets/thumbs/effect-i-can-fly.jpg differ
diff --git a/public/previews/presets/thumbs/effect-ice-rose.jpg b/public/previews/presets/thumbs/effect-ice-rose.jpg
new file mode 100644
index 00000000..17fc65c4
Binary files /dev/null and b/public/previews/presets/thumbs/effect-ice-rose.jpg differ
diff --git a/public/previews/presets/thumbs/effect-infinite-clones.jpg b/public/previews/presets/thumbs/effect-infinite-clones.jpg
new file mode 100644
index 00000000..6ef119ac
Binary files /dev/null and b/public/previews/presets/thumbs/effect-infinite-clones.jpg differ
diff --git a/public/previews/presets/thumbs/effect-inflate.jpg b/public/previews/presets/thumbs/effect-inflate.jpg
new file mode 100644
index 00000000..105ab0be
Binary files /dev/null and b/public/previews/presets/thumbs/effect-inflate.jpg differ
diff --git a/public/previews/presets/thumbs/effect-innerlight.jpg b/public/previews/presets/thumbs/effect-innerlight.jpg
new file mode 100644
index 00000000..fb1c1013
Binary files /dev/null and b/public/previews/presets/thumbs/effect-innerlight.jpg differ
diff --git a/public/previews/presets/thumbs/effect-invisible.jpg b/public/previews/presets/thumbs/effect-invisible.jpg
new file mode 100644
index 00000000..20b0710a
Binary files /dev/null and b/public/previews/presets/thumbs/effect-invisible.jpg differ
diff --git a/public/previews/presets/thumbs/effect-jelly-drift.jpg b/public/previews/presets/thumbs/effect-jelly-drift.jpg
new file mode 100644
index 00000000..57b3a887
Binary files /dev/null and b/public/previews/presets/thumbs/effect-jelly-drift.jpg differ
diff --git a/public/previews/presets/thumbs/effect-jump-transition.jpg b/public/previews/presets/thumbs/effect-jump-transition.jpg
new file mode 100644
index 00000000..22b6c015
Binary files /dev/null and b/public/previews/presets/thumbs/effect-jump-transition.jpg differ
diff --git a/public/previews/presets/thumbs/effect-lacewalker.jpg b/public/previews/presets/thumbs/effect-lacewalker.jpg
new file mode 100644
index 00000000..2bfda832
Binary files /dev/null and b/public/previews/presets/thumbs/effect-lacewalker.jpg differ
diff --git a/public/previews/presets/thumbs/effect-lava.jpg b/public/previews/presets/thumbs/effect-lava.jpg
new file mode 100644
index 00000000..bb84227a
Binary files /dev/null and b/public/previews/presets/thumbs/effect-lava.jpg differ
diff --git a/public/previews/presets/thumbs/effect-layer-mixed-media.jpg b/public/previews/presets/thumbs/effect-layer-mixed-media.jpg
new file mode 100644
index 00000000..f5549265
Binary files /dev/null and b/public/previews/presets/thumbs/effect-layer-mixed-media.jpg differ
diff --git a/public/previews/presets/thumbs/effect-lens-crack.jpg b/public/previews/presets/thumbs/effect-lens-crack.jpg
new file mode 100644
index 00000000..7b5f5024
Binary files /dev/null and b/public/previews/presets/thumbs/effect-lens-crack.jpg differ
diff --git a/public/previews/presets/thumbs/effect-lens-flare.jpg b/public/previews/presets/thumbs/effect-lens-flare.jpg
new file mode 100644
index 00000000..fc11b3f9
Binary files /dev/null and b/public/previews/presets/thumbs/effect-lens-flare.jpg differ
diff --git a/public/previews/presets/thumbs/effect-levitation.jpg b/public/previews/presets/thumbs/effect-levitation.jpg
new file mode 100644
index 00000000..9e6ec8cc
Binary files /dev/null and b/public/previews/presets/thumbs/effect-levitation.jpg differ
diff --git a/public/previews/presets/thumbs/effect-lidar-transition.jpg b/public/previews/presets/thumbs/effect-lidar-transition.jpg
new file mode 100644
index 00000000..2ac0dbd5
Binary files /dev/null and b/public/previews/presets/thumbs/effect-lidar-transition.jpg differ
diff --git a/public/previews/presets/thumbs/effect-lime-jam.jpg b/public/previews/presets/thumbs/effect-lime-jam.jpg
new file mode 100644
index 00000000..a7940240
Binary files /dev/null and b/public/previews/presets/thumbs/effect-lime-jam.jpg differ
diff --git a/public/previews/presets/thumbs/effect-live-concert.jpg b/public/previews/presets/thumbs/effect-live-concert.jpg
new file mode 100644
index 00000000..20351dc5
Binary files /dev/null and b/public/previews/presets/thumbs/effect-live-concert.jpg differ
diff --git a/public/previews/presets/thumbs/effect-look-boom.jpg b/public/previews/presets/thumbs/effect-look-boom.jpg
new file mode 100644
index 00000000..567c3800
Binary files /dev/null and b/public/previews/presets/thumbs/effect-look-boom.jpg differ
diff --git a/public/previews/presets/thumbs/effect-lsd.jpg b/public/previews/presets/thumbs/effect-lsd.jpg
new file mode 100644
index 00000000..e33eb5f4
Binary files /dev/null and b/public/previews/presets/thumbs/effect-lsd.jpg differ
diff --git a/public/previews/presets/thumbs/effect-luminous-gaze.jpg b/public/previews/presets/thumbs/effect-luminous-gaze.jpg
new file mode 100644
index 00000000..d754266b
Binary files /dev/null and b/public/previews/presets/thumbs/effect-luminous-gaze.jpg differ
diff --git a/public/previews/presets/thumbs/effect-magazine.jpg b/public/previews/presets/thumbs/effect-magazine.jpg
new file mode 100644
index 00000000..116865ed
Binary files /dev/null and b/public/previews/presets/thumbs/effect-magazine.jpg differ
diff --git a/public/previews/presets/thumbs/effect-marble.jpg b/public/previews/presets/thumbs/effect-marble.jpg
new file mode 100644
index 00000000..26cb26f8
Binary files /dev/null and b/public/previews/presets/thumbs/effect-marble.jpg differ
diff --git a/public/previews/presets/thumbs/effect-medusa-gorgona.jpg b/public/previews/presets/thumbs/effect-medusa-gorgona.jpg
new file mode 100644
index 00000000..78beca8f
Binary files /dev/null and b/public/previews/presets/thumbs/effect-medusa-gorgona.jpg differ
diff --git a/public/previews/presets/thumbs/effect-melt-transition.jpg b/public/previews/presets/thumbs/effect-melt-transition.jpg
new file mode 100644
index 00000000..82f75015
Binary files /dev/null and b/public/previews/presets/thumbs/effect-melt-transition.jpg differ
diff --git a/public/previews/presets/thumbs/effect-melting.jpg b/public/previews/presets/thumbs/effect-melting.jpg
new file mode 100644
index 00000000..a17233d2
Binary files /dev/null and b/public/previews/presets/thumbs/effect-melting.jpg differ
diff --git a/public/previews/presets/thumbs/effect-mighty-fighter.jpg b/public/previews/presets/thumbs/effect-mighty-fighter.jpg
new file mode 100644
index 00000000..39672fa9
Binary files /dev/null and b/public/previews/presets/thumbs/effect-mighty-fighter.jpg differ
diff --git a/public/previews/presets/thumbs/effect-modern.jpg b/public/previews/presets/thumbs/effect-modern.jpg
new file mode 100644
index 00000000..1209233c
Binary files /dev/null and b/public/previews/presets/thumbs/effect-modern.jpg differ
diff --git a/public/previews/presets/thumbs/effect-monet-muse.jpg b/public/previews/presets/thumbs/effect-monet-muse.jpg
new file mode 100644
index 00000000..8b2621ce
Binary files /dev/null and b/public/previews/presets/thumbs/effect-monet-muse.jpg differ
diff --git a/public/previews/presets/thumbs/effect-money-rain.jpg b/public/previews/presets/thumbs/effect-money-rain.jpg
new file mode 100644
index 00000000..630e0e5e
Binary files /dev/null and b/public/previews/presets/thumbs/effect-money-rain.jpg differ
diff --git a/public/previews/presets/thumbs/effect-monster-dab.jpg b/public/previews/presets/thumbs/effect-monster-dab.jpg
new file mode 100644
index 00000000..c72cc926
Binary files /dev/null and b/public/previews/presets/thumbs/effect-monster-dab.jpg differ
diff --git a/public/previews/presets/thumbs/effect-monstrosity.jpg b/public/previews/presets/thumbs/effect-monstrosity.jpg
new file mode 100644
index 00000000..16d7b89e
Binary files /dev/null and b/public/previews/presets/thumbs/effect-monstrosity.jpg differ
diff --git a/public/previews/presets/thumbs/effect-moonwalk.jpg b/public/previews/presets/thumbs/effect-moonwalk.jpg
new file mode 100644
index 00000000..6f7a8018
Binary files /dev/null and b/public/previews/presets/thumbs/effect-moonwalk.jpg differ
diff --git a/public/previews/presets/thumbs/effect-morning-routine.jpg b/public/previews/presets/thumbs/effect-morning-routine.jpg
new file mode 100644
index 00000000..325effe3
Binary files /dev/null and b/public/previews/presets/thumbs/effect-morning-routine.jpg differ
diff --git a/public/previews/presets/thumbs/effect-morphskin.jpg b/public/previews/presets/thumbs/effect-morphskin.jpg
new file mode 100644
index 00000000..a10e360f
Binary files /dev/null and b/public/previews/presets/thumbs/effect-morphskin.jpg differ
diff --git a/public/previews/presets/thumbs/effect-motor-ride.jpg b/public/previews/presets/thumbs/effect-motor-ride.jpg
new file mode 100644
index 00000000..5d235fba
Binary files /dev/null and b/public/previews/presets/thumbs/effect-motor-ride.jpg differ
diff --git a/public/previews/presets/thumbs/effect-multiverse.jpg b/public/previews/presets/thumbs/effect-multiverse.jpg
new file mode 100644
index 00000000..c9e572e3
Binary files /dev/null and b/public/previews/presets/thumbs/effect-multiverse.jpg differ
diff --git a/public/previews/presets/thumbs/effect-muscle-up.jpg b/public/previews/presets/thumbs/effect-muscle-up.jpg
new file mode 100644
index 00000000..2221de3f
Binary files /dev/null and b/public/previews/presets/thumbs/effect-muscle-up.jpg differ
diff --git a/public/previews/presets/thumbs/effect-mystification.jpg b/public/previews/presets/thumbs/effect-mystification.jpg
new file mode 100644
index 00000000..2df6868f
Binary files /dev/null and b/public/previews/presets/thumbs/effect-mystification.jpg differ
diff --git a/public/previews/presets/thumbs/effect-naturalistic-clean.jpg b/public/previews/presets/thumbs/effect-naturalistic-clean.jpg
new file mode 100644
index 00000000..e0b806a1
Binary files /dev/null and b/public/previews/presets/thumbs/effect-naturalistic-clean.jpg differ
diff --git a/public/previews/presets/thumbs/effect-nature-bloom.jpg b/public/previews/presets/thumbs/effect-nature-bloom.jpg
new file mode 100644
index 00000000..ea159db4
Binary files /dev/null and b/public/previews/presets/thumbs/effect-nature-bloom.jpg differ
diff --git a/public/previews/presets/thumbs/effect-noir.jpg b/public/previews/presets/thumbs/effect-noir.jpg
new file mode 100644
index 00000000..36fcd6d9
Binary files /dev/null and b/public/previews/presets/thumbs/effect-noir.jpg differ
diff --git a/public/previews/presets/thumbs/effect-northern-lights.jpg b/public/previews/presets/thumbs/effect-northern-lights.jpg
new file mode 100644
index 00000000..3563898c
Binary files /dev/null and b/public/previews/presets/thumbs/effect-northern-lights.jpg differ
diff --git a/public/previews/presets/thumbs/effect-nostalgic-blue.jpg b/public/previews/presets/thumbs/effect-nostalgic-blue.jpg
new file mode 100644
index 00000000..d76e4533
Binary files /dev/null and b/public/previews/presets/thumbs/effect-nostalgic-blue.jpg differ
diff --git a/public/previews/presets/thumbs/effect-objects-around.jpg b/public/previews/presets/thumbs/effect-objects-around.jpg
new file mode 100644
index 00000000..98b44cca
Binary files /dev/null and b/public/previews/presets/thumbs/effect-objects-around.jpg differ
diff --git a/public/previews/presets/thumbs/effect-ocean.jpg b/public/previews/presets/thumbs/effect-ocean.jpg
new file mode 100644
index 00000000..49157bc0
Binary files /dev/null and b/public/previews/presets/thumbs/effect-ocean.jpg differ
diff --git a/public/previews/presets/thumbs/effect-oni-mask.jpg b/public/previews/presets/thumbs/effect-oni-mask.jpg
new file mode 100644
index 00000000..b5c83dd2
Binary files /dev/null and b/public/previews/presets/thumbs/effect-oni-mask.jpg differ
diff --git a/public/previews/presets/thumbs/effect-origami.jpg b/public/previews/presets/thumbs/effect-origami.jpg
new file mode 100644
index 00000000..0e345f54
Binary files /dev/null and b/public/previews/presets/thumbs/effect-origami.jpg differ
diff --git a/public/previews/presets/thumbs/effect-outfit-check.jpg b/public/previews/presets/thumbs/effect-outfit-check.jpg
new file mode 100644
index 00000000..55c34bdf
Binary files /dev/null and b/public/previews/presets/thumbs/effect-outfit-check.jpg differ
diff --git a/public/previews/presets/thumbs/effect-outfit-switch.jpg b/public/previews/presets/thumbs/effect-outfit-switch.jpg
new file mode 100644
index 00000000..3742b1cf
Binary files /dev/null and b/public/previews/presets/thumbs/effect-outfit-switch.jpg differ
diff --git a/public/previews/presets/thumbs/effect-overexposed.jpg b/public/previews/presets/thumbs/effect-overexposed.jpg
new file mode 100644
index 00000000..0402995e
Binary files /dev/null and b/public/previews/presets/thumbs/effect-overexposed.jpg differ
diff --git a/public/previews/presets/thumbs/effect-overhead-fall.jpg b/public/previews/presets/thumbs/effect-overhead-fall.jpg
new file mode 100644
index 00000000..ca31e1f4
Binary files /dev/null and b/public/previews/presets/thumbs/effect-overhead-fall.jpg differ
diff --git a/public/previews/presets/thumbs/effect-overtime.jpg b/public/previews/presets/thumbs/effect-overtime.jpg
new file mode 100644
index 00000000..f374b3f6
Binary files /dev/null and b/public/previews/presets/thumbs/effect-overtime.jpg differ
diff --git a/public/previews/presets/thumbs/effect-paint-splash.jpg b/public/previews/presets/thumbs/effect-paint-splash.jpg
new file mode 100644
index 00000000..19938af5
Binary files /dev/null and b/public/previews/presets/thumbs/effect-paint-splash.jpg differ
diff --git a/public/previews/presets/thumbs/effect-palette.jpg b/public/previews/presets/thumbs/effect-palette.jpg
new file mode 100644
index 00000000..796e203c
Binary files /dev/null and b/public/previews/presets/thumbs/effect-palette.jpg differ
diff --git a/public/previews/presets/thumbs/effect-paparazzi.jpg b/public/previews/presets/thumbs/effect-paparazzi.jpg
new file mode 100644
index 00000000..de256a26
Binary files /dev/null and b/public/previews/presets/thumbs/effect-paparazzi.jpg differ
diff --git a/public/previews/presets/thumbs/effect-paper.jpg b/public/previews/presets/thumbs/effect-paper.jpg
new file mode 100644
index 00000000..a1642b25
Binary files /dev/null and b/public/previews/presets/thumbs/effect-paper.jpg differ
diff --git a/public/previews/presets/thumbs/effect-particles.jpg b/public/previews/presets/thumbs/effect-particles.jpg
new file mode 100644
index 00000000..690191ae
Binary files /dev/null and b/public/previews/presets/thumbs/effect-particles.jpg differ
diff --git a/public/previews/presets/thumbs/effect-peak-moment.jpg b/public/previews/presets/thumbs/effect-peak-moment.jpg
new file mode 100644
index 00000000..2da8a5b1
Binary files /dev/null and b/public/previews/presets/thumbs/effect-peak-moment.jpg differ
diff --git a/public/previews/presets/thumbs/effect-pearl-earring.jpg b/public/previews/presets/thumbs/effect-pearl-earring.jpg
new file mode 100644
index 00000000..73732a7f
Binary files /dev/null and b/public/previews/presets/thumbs/effect-pearl-earring.jpg differ
diff --git a/public/previews/presets/thumbs/effect-pigeons.jpg b/public/previews/presets/thumbs/effect-pigeons.jpg
new file mode 100644
index 00000000..5b4fc772
Binary files /dev/null and b/public/previews/presets/thumbs/effect-pigeons.jpg differ
diff --git a/public/previews/presets/thumbs/effect-pixelated-face.jpg b/public/previews/presets/thumbs/effect-pixelated-face.jpg
new file mode 100644
index 00000000..9133531e
Binary files /dev/null and b/public/previews/presets/thumbs/effect-pixelated-face.jpg differ
diff --git a/public/previews/presets/thumbs/effect-pizza-fall.jpg b/public/previews/presets/thumbs/effect-pizza-fall.jpg
new file mode 100644
index 00000000..2a87a892
Binary files /dev/null and b/public/previews/presets/thumbs/effect-pizza-fall.jpg differ
diff --git a/public/previews/presets/thumbs/effect-plasma-explosion.jpg b/public/previews/presets/thumbs/effect-plasma-explosion.jpg
new file mode 100644
index 00000000..7562e430
Binary files /dev/null and b/public/previews/presets/thumbs/effect-plasma-explosion.jpg differ
diff --git a/public/previews/presets/thumbs/effect-plate-check.jpg b/public/previews/presets/thumbs/effect-plate-check.jpg
new file mode 100644
index 00000000..23a8f343
Binary files /dev/null and b/public/previews/presets/thumbs/effect-plate-check.jpg differ
diff --git a/public/previews/presets/thumbs/effect-point-cloud.jpg b/public/previews/presets/thumbs/effect-point-cloud.jpg
new file mode 100644
index 00000000..4ccd74ee
Binary files /dev/null and b/public/previews/presets/thumbs/effect-point-cloud.jpg differ
diff --git a/public/previews/presets/thumbs/effect-polygon.jpg b/public/previews/presets/thumbs/effect-polygon.jpg
new file mode 100644
index 00000000..fae6b7e1
Binary files /dev/null and b/public/previews/presets/thumbs/effect-polygon.jpg differ
diff --git a/public/previews/presets/thumbs/effect-pool-jump.jpg b/public/previews/presets/thumbs/effect-pool-jump.jpg
new file mode 100644
index 00000000..b856d430
Binary files /dev/null and b/public/previews/presets/thumbs/effect-pool-jump.jpg differ
diff --git a/public/previews/presets/thumbs/effect-portal.jpg b/public/previews/presets/thumbs/effect-portal.jpg
new file mode 100644
index 00000000..f80130be
Binary files /dev/null and b/public/previews/presets/thumbs/effect-portal.jpg differ
diff --git a/public/previews/presets/thumbs/effect-powder-explosion.jpg b/public/previews/presets/thumbs/effect-powder-explosion.jpg
new file mode 100644
index 00000000..612a28fd
Binary files /dev/null and b/public/previews/presets/thumbs/effect-powder-explosion.jpg differ
diff --git a/public/previews/presets/thumbs/effect-practicals.jpg b/public/previews/presets/thumbs/effect-practicals.jpg
new file mode 100644
index 00000000..381004d8
Binary files /dev/null and b/public/previews/presets/thumbs/effect-practicals.jpg differ
diff --git a/public/previews/presets/thumbs/effect-push-to-glass.jpg b/public/previews/presets/thumbs/effect-push-to-glass.jpg
new file mode 100644
index 00000000..01036161
Binary files /dev/null and b/public/previews/presets/thumbs/effect-push-to-glass.jpg differ
diff --git a/public/previews/presets/thumbs/effect-random-glow.jpg b/public/previews/presets/thumbs/effect-random-glow.jpg
new file mode 100644
index 00000000..6d7a285d
Binary files /dev/null and b/public/previews/presets/thumbs/effect-random-glow.jpg differ
diff --git a/public/previews/presets/thumbs/effect-raven-transition.jpg b/public/previews/presets/thumbs/effect-raven-transition.jpg
new file mode 100644
index 00000000..307f5e8d
Binary files /dev/null and b/public/previews/presets/thumbs/effect-raven-transition.jpg differ
diff --git a/public/previews/presets/thumbs/effect-red-carpet.jpg b/public/previews/presets/thumbs/effect-red-carpet.jpg
new file mode 100644
index 00000000..f8c4590a
Binary files /dev/null and b/public/previews/presets/thumbs/effect-red-carpet.jpg differ
diff --git a/public/previews/presets/thumbs/effect-saint-glow.jpg b/public/previews/presets/thumbs/effect-saint-glow.jpg
new file mode 100644
index 00000000..9d1a8809
Binary files /dev/null and b/public/previews/presets/thumbs/effect-saint-glow.jpg differ
diff --git a/public/previews/presets/thumbs/effect-sakura-petals.jpg b/public/previews/presets/thumbs/effect-sakura-petals.jpg
new file mode 100644
index 00000000..fda71ab7
Binary files /dev/null and b/public/previews/presets/thumbs/effect-sakura-petals.jpg differ
diff --git a/public/previews/presets/thumbs/effect-sand-cut.jpg b/public/previews/presets/thumbs/effect-sand-cut.jpg
new file mode 100644
index 00000000..ce3776b1
Binary files /dev/null and b/public/previews/presets/thumbs/effect-sand-cut.jpg differ
diff --git a/public/previews/presets/thumbs/effect-sand-storm.jpg b/public/previews/presets/thumbs/effect-sand-storm.jpg
new file mode 100644
index 00000000..7a408c60
Binary files /dev/null and b/public/previews/presets/thumbs/effect-sand-storm.jpg differ
diff --git a/public/previews/presets/thumbs/effect-scrapbook-collage.jpg b/public/previews/presets/thumbs/effect-scrapbook-collage.jpg
new file mode 100644
index 00000000..89ade8f3
Binary files /dev/null and b/public/previews/presets/thumbs/effect-scrapbook-collage.jpg differ
diff --git a/public/previews/presets/thumbs/effect-seamless-transition.jpg b/public/previews/presets/thumbs/effect-seamless-transition.jpg
new file mode 100644
index 00000000..7be3e207
Binary files /dev/null and b/public/previews/presets/thumbs/effect-seamless-transition.jpg differ
diff --git a/public/previews/presets/thumbs/effect-selfception.jpg b/public/previews/presets/thumbs/effect-selfception.jpg
new file mode 100644
index 00000000..ab1bac17
Binary files /dev/null and b/public/previews/presets/thumbs/effect-selfception.jpg differ
diff --git a/public/previews/presets/thumbs/effect-selfie-outfit.jpg b/public/previews/presets/thumbs/effect-selfie-outfit.jpg
new file mode 100644
index 00000000..83899224
Binary files /dev/null and b/public/previews/presets/thumbs/effect-selfie-outfit.jpg differ
diff --git a/public/previews/presets/thumbs/effect-selfie-posing.jpg b/public/previews/presets/thumbs/effect-selfie-posing.jpg
new file mode 100644
index 00000000..f7fd3a80
Binary files /dev/null and b/public/previews/presets/thumbs/effect-selfie-posing.jpg differ
diff --git a/public/previews/presets/thumbs/effect-selfie.jpg b/public/previews/presets/thumbs/effect-selfie.jpg
new file mode 100644
index 00000000..4dbfc5bf
Binary files /dev/null and b/public/previews/presets/thumbs/effect-selfie.jpg differ
diff --git a/public/previews/presets/thumbs/effect-set-on-fire.jpg b/public/previews/presets/thumbs/effect-set-on-fire.jpg
new file mode 100644
index 00000000..7ceb96bd
Binary files /dev/null and b/public/previews/presets/thumbs/effect-set-on-fire.jpg differ
diff --git a/public/previews/presets/thumbs/effect-shadow-smoke.jpg b/public/previews/presets/thumbs/effect-shadow-smoke.jpg
new file mode 100644
index 00000000..1557191f
Binary files /dev/null and b/public/previews/presets/thumbs/effect-shadow-smoke.jpg differ
diff --git a/public/previews/presets/thumbs/effect-shocked.jpg b/public/previews/presets/thumbs/effect-shocked.jpg
new file mode 100644
index 00000000..022aaeef
Binary files /dev/null and b/public/previews/presets/thumbs/effect-shocked.jpg differ
diff --git a/public/previews/presets/thumbs/effect-silhouette.jpg b/public/previews/presets/thumbs/effect-silhouette.jpg
new file mode 100644
index 00000000..5570609c
Binary files /dev/null and b/public/previews/presets/thumbs/effect-silhouette.jpg differ
diff --git a/public/previews/presets/thumbs/effect-skatedog.jpg b/public/previews/presets/thumbs/effect-skatedog.jpg
new file mode 100644
index 00000000..150ec756
Binary files /dev/null and b/public/previews/presets/thumbs/effect-skatedog.jpg differ
diff --git a/public/previews/presets/thumbs/effect-sketch.jpg b/public/previews/presets/thumbs/effect-sketch.jpg
new file mode 100644
index 00000000..e2ee3b07
Binary files /dev/null and b/public/previews/presets/thumbs/effect-sketch.jpg differ
diff --git a/public/previews/presets/thumbs/effect-skin-surge.jpg b/public/previews/presets/thumbs/effect-skin-surge.jpg
new file mode 100644
index 00000000..19403891
Binary files /dev/null and b/public/previews/presets/thumbs/effect-skin-surge.jpg differ
diff --git a/public/previews/presets/thumbs/effect-smash-and-grab.jpg b/public/previews/presets/thumbs/effect-smash-and-grab.jpg
new file mode 100644
index 00000000..ac31b9bc
Binary files /dev/null and b/public/previews/presets/thumbs/effect-smash-and-grab.jpg differ
diff --git a/public/previews/presets/thumbs/effect-smoke-transition.jpg b/public/previews/presets/thumbs/effect-smoke-transition.jpg
new file mode 100644
index 00000000..154750be
Binary files /dev/null and b/public/previews/presets/thumbs/effect-smoke-transition.jpg differ
diff --git a/public/previews/presets/thumbs/effect-sodium-decay.jpg b/public/previews/presets/thumbs/effect-sodium-decay.jpg
new file mode 100644
index 00000000..d370e509
Binary files /dev/null and b/public/previews/presets/thumbs/effect-sodium-decay.jpg differ
diff --git a/public/previews/presets/thumbs/effect-soft-cross.jpg b/public/previews/presets/thumbs/effect-soft-cross.jpg
new file mode 100644
index 00000000..26eb84e2
Binary files /dev/null and b/public/previews/presets/thumbs/effect-soft-cross.jpg differ
diff --git a/public/previews/presets/thumbs/effect-soft-palette.jpg b/public/previews/presets/thumbs/effect-soft-palette.jpg
new file mode 100644
index 00000000..f179c9a0
Binary files /dev/null and b/public/previews/presets/thumbs/effect-soft-palette.jpg differ
diff --git a/public/previews/presets/thumbs/effect-soul-jump.jpg b/public/previews/presets/thumbs/effect-soul-jump.jpg
new file mode 100644
index 00000000..b0c12547
Binary files /dev/null and b/public/previews/presets/thumbs/effect-soul-jump.jpg differ
diff --git a/public/previews/presets/thumbs/effect-spiders-from-mouth.jpg b/public/previews/presets/thumbs/effect-spiders-from-mouth.jpg
new file mode 100644
index 00000000..43eca708
Binary files /dev/null and b/public/previews/presets/thumbs/effect-spiders-from-mouth.jpg differ
diff --git a/public/previews/presets/thumbs/effect-spirit-animal.jpg b/public/previews/presets/thumbs/effect-spirit-animal.jpg
new file mode 100644
index 00000000..14477910
Binary files /dev/null and b/public/previews/presets/thumbs/effect-spirit-animal.jpg differ
diff --git a/public/previews/presets/thumbs/effect-splash-transition.jpg b/public/previews/presets/thumbs/effect-splash-transition.jpg
new file mode 100644
index 00000000..13c29484
Binary files /dev/null and b/public/previews/presets/thumbs/effect-splash-transition.jpg differ
diff --git a/public/previews/presets/thumbs/effect-squish.jpg b/public/previews/presets/thumbs/effect-squish.jpg
new file mode 100644
index 00000000..463adf1b
Binary files /dev/null and b/public/previews/presets/thumbs/effect-squish.jpg differ
diff --git a/public/previews/presets/thumbs/effect-starship-troopers.jpg b/public/previews/presets/thumbs/effect-starship-troopers.jpg
new file mode 100644
index 00000000..b3c95478
Binary files /dev/null and b/public/previews/presets/thumbs/effect-starship-troopers.jpg differ
diff --git a/public/previews/presets/thumbs/effect-static-posing.jpg b/public/previews/presets/thumbs/effect-static-posing.jpg
new file mode 100644
index 00000000..4c5b37c9
Binary files /dev/null and b/public/previews/presets/thumbs/effect-static-posing.jpg differ
diff --git a/public/previews/presets/thumbs/effect-stop-world.jpg b/public/previews/presets/thumbs/effect-stop-world.jpg
new file mode 100644
index 00000000..b303f046
Binary files /dev/null and b/public/previews/presets/thumbs/effect-stop-world.jpg differ
diff --git a/public/previews/presets/thumbs/effect-street-colossus.jpg b/public/previews/presets/thumbs/effect-street-colossus.jpg
new file mode 100644
index 00000000..e9fd3aba
Binary files /dev/null and b/public/previews/presets/thumbs/effect-street-colossus.jpg differ
diff --git a/public/previews/presets/thumbs/effect-studio-slide.jpg b/public/previews/presets/thumbs/effect-studio-slide.jpg
new file mode 100644
index 00000000..f8eb9ad1
Binary files /dev/null and b/public/previews/presets/thumbs/effect-studio-slide.jpg differ
diff --git a/public/previews/presets/thumbs/effect-sunglasses.jpg b/public/previews/presets/thumbs/effect-sunglasses.jpg
new file mode 100644
index 00000000..cd105643
Binary files /dev/null and b/public/previews/presets/thumbs/effect-sunglasses.jpg differ
diff --git a/public/previews/presets/thumbs/effect-super-fast-run.jpg b/public/previews/presets/thumbs/effect-super-fast-run.jpg
new file mode 100644
index 00000000..734b0d4c
Binary files /dev/null and b/public/previews/presets/thumbs/effect-super-fast-run.jpg differ
diff --git a/public/previews/presets/thumbs/effect-super-saiyan.jpg b/public/previews/presets/thumbs/effect-super-saiyan.jpg
new file mode 100644
index 00000000..40075587
Binary files /dev/null and b/public/previews/presets/thumbs/effect-super-saiyan.jpg differ
diff --git a/public/previews/presets/thumbs/effect-superstar.jpg b/public/previews/presets/thumbs/effect-superstar.jpg
new file mode 100644
index 00000000..66da5567
Binary files /dev/null and b/public/previews/presets/thumbs/effect-superstar.jpg differ
diff --git a/public/previews/presets/thumbs/effect-tattoo-animation.jpg b/public/previews/presets/thumbs/effect-tattoo-animation.jpg
new file mode 100644
index 00000000..896c5979
Binary files /dev/null and b/public/previews/presets/thumbs/effect-tattoo-animation.jpg differ
diff --git a/public/previews/presets/thumbs/effect-teal-orange-epic.jpg b/public/previews/presets/thumbs/effect-teal-orange-epic.jpg
new file mode 100644
index 00000000..b40ddd89
Binary files /dev/null and b/public/previews/presets/thumbs/effect-teal-orange-epic.jpg differ
diff --git a/public/previews/presets/thumbs/effect-tentacles.jpg b/public/previews/presets/thumbs/effect-tentacles.jpg
new file mode 100644
index 00000000..d835e52b
Binary files /dev/null and b/public/previews/presets/thumbs/effect-tentacles.jpg differ
diff --git a/public/previews/presets/thumbs/effect-thunder-god.jpg b/public/previews/presets/thumbs/effect-thunder-god.jpg
new file mode 100644
index 00000000..1b209f56
Binary files /dev/null and b/public/previews/presets/thumbs/effect-thunder-god.jpg differ
diff --git a/public/previews/presets/thumbs/effect-tiny-planet.jpg b/public/previews/presets/thumbs/effect-tiny-planet.jpg
new file mode 100644
index 00000000..88d3d7e4
Binary files /dev/null and b/public/previews/presets/thumbs/effect-tiny-planet.jpg differ
diff --git a/public/previews/presets/thumbs/effect-toxic.jpg b/public/previews/presets/thumbs/effect-toxic.jpg
new file mode 100644
index 00000000..3041290d
Binary files /dev/null and b/public/previews/presets/thumbs/effect-toxic.jpg differ
diff --git a/public/previews/presets/thumbs/effect-tracking.jpg b/public/previews/presets/thumbs/effect-tracking.jpg
new file mode 100644
index 00000000..ad72d10f
Binary files /dev/null and b/public/previews/presets/thumbs/effect-tracking.jpg differ
diff --git a/public/previews/presets/thumbs/effect-train-rush.jpg b/public/previews/presets/thumbs/effect-train-rush.jpg
new file mode 100644
index 00000000..6ef32bc1
Binary files /dev/null and b/public/previews/presets/thumbs/effect-train-rush.jpg differ
diff --git a/public/previews/presets/thumbs/effect-trucksition.jpg b/public/previews/presets/thumbs/effect-trucksition.jpg
new file mode 100644
index 00000000..a94e9f6e
Binary files /dev/null and b/public/previews/presets/thumbs/effect-trucksition.jpg differ
diff --git a/public/previews/presets/thumbs/effect-turn-into-statue.jpg b/public/previews/presets/thumbs/effect-turn-into-statue.jpg
new file mode 100644
index 00000000..d187068c
Binary files /dev/null and b/public/previews/presets/thumbs/effect-turn-into-statue.jpg differ
diff --git a/public/previews/presets/thumbs/effect-turning-metal.jpg b/public/previews/presets/thumbs/effect-turning-metal.jpg
new file mode 100644
index 00000000..e442f876
Binary files /dev/null and b/public/previews/presets/thumbs/effect-turning-metal.jpg differ
diff --git a/public/previews/presets/thumbs/effect-turning-monkey.jpg b/public/previews/presets/thumbs/effect-turning-monkey.jpg
new file mode 100644
index 00000000..a690b5d3
Binary files /dev/null and b/public/previews/presets/thumbs/effect-turning-monkey.jpg differ
diff --git a/public/previews/presets/thumbs/effect-two-color.jpg b/public/previews/presets/thumbs/effect-two-color.jpg
new file mode 100644
index 00000000..f5265304
Binary files /dev/null and b/public/previews/presets/thumbs/effect-two-color.jpg differ
diff --git a/public/previews/presets/thumbs/effect-ultraviolet.jpg b/public/previews/presets/thumbs/effect-ultraviolet.jpg
new file mode 100644
index 00000000..70dd5d81
Binary files /dev/null and b/public/previews/presets/thumbs/effect-ultraviolet.jpg differ
diff --git a/public/previews/presets/thumbs/effect-vanish.jpg b/public/previews/presets/thumbs/effect-vanish.jpg
new file mode 100644
index 00000000..e6499c09
Binary files /dev/null and b/public/previews/presets/thumbs/effect-vanish.jpg differ
diff --git a/public/previews/presets/thumbs/effect-vintage.jpg b/public/previews/presets/thumbs/effect-vintage.jpg
new file mode 100644
index 00000000..9a4b6789
Binary files /dev/null and b/public/previews/presets/thumbs/effect-vintage.jpg differ
diff --git a/public/previews/presets/thumbs/effect-visor-x.jpg b/public/previews/presets/thumbs/effect-visor-x.jpg
new file mode 100644
index 00000000..164354ce
Binary files /dev/null and b/public/previews/presets/thumbs/effect-visor-x.jpg differ
diff --git a/public/previews/presets/thumbs/effect-water-bending.jpg b/public/previews/presets/thumbs/effect-water-bending.jpg
new file mode 100644
index 00000000..1c471fd6
Binary files /dev/null and b/public/previews/presets/thumbs/effect-water-bending.jpg differ
diff --git a/public/previews/presets/thumbs/effect-water-element.jpg b/public/previews/presets/thumbs/effect-water-element.jpg
new file mode 100644
index 00000000..66480819
Binary files /dev/null and b/public/previews/presets/thumbs/effect-water-element.jpg differ
diff --git a/public/previews/presets/thumbs/effect-water-splash.jpg b/public/previews/presets/thumbs/effect-water-splash.jpg
new file mode 100644
index 00000000..80b4f00f
Binary files /dev/null and b/public/previews/presets/thumbs/effect-water-splash.jpg differ
diff --git a/public/previews/presets/thumbs/effect-werewolf.jpg b/public/previews/presets/thumbs/effect-werewolf.jpg
new file mode 100644
index 00000000..9e136885
Binary files /dev/null and b/public/previews/presets/thumbs/effect-werewolf.jpg differ
diff --git a/public/previews/presets/thumbs/effect-wild-ride.jpg b/public/previews/presets/thumbs/effect-wild-ride.jpg
new file mode 100644
index 00000000..12a8afa0
Binary files /dev/null and b/public/previews/presets/thumbs/effect-wild-ride.jpg differ
diff --git a/public/previews/presets/thumbs/effect-wind-to-face.jpg b/public/previews/presets/thumbs/effect-wind-to-face.jpg
new file mode 100644
index 00000000..6c15b24a
Binary files /dev/null and b/public/previews/presets/thumbs/effect-wind-to-face.jpg differ
diff --git a/public/previews/presets/thumbs/effect-window.jpg b/public/previews/presets/thumbs/effect-window.jpg
new file mode 100644
index 00000000..adde95de
Binary files /dev/null and b/public/previews/presets/thumbs/effect-window.jpg differ
diff --git a/public/previews/presets/thumbs/effect-windows.jpg b/public/previews/presets/thumbs/effect-windows.jpg
new file mode 100644
index 00000000..17cc4e58
Binary files /dev/null and b/public/previews/presets/thumbs/effect-windows.jpg differ
diff --git a/public/previews/presets/thumbs/effect-wireframe.jpg b/public/previews/presets/thumbs/effect-wireframe.jpg
new file mode 100644
index 00000000..8f8ae904
Binary files /dev/null and b/public/previews/presets/thumbs/effect-wireframe.jpg differ
diff --git a/public/previews/presets/thumbs/effect-wonderland.jpg b/public/previews/presets/thumbs/effect-wonderland.jpg
new file mode 100644
index 00000000..b8b45bf2
Binary files /dev/null and b/public/previews/presets/thumbs/effect-wonderland.jpg differ
diff --git a/public/previews/presets/thumbs/effect-world-morphing.jpg b/public/previews/presets/thumbs/effect-world-morphing.jpg
new file mode 100644
index 00000000..5a9325cc
Binary files /dev/null and b/public/previews/presets/thumbs/effect-world-morphing.jpg differ
diff --git a/public/previews/presets/thumbs/effect-x-ray.jpg b/public/previews/presets/thumbs/effect-x-ray.jpg
new file mode 100644
index 00000000..1443e7f0
Binary files /dev/null and b/public/previews/presets/thumbs/effect-x-ray.jpg differ
diff --git a/public/previews/presets/thumbs/effect-yacht.jpg b/public/previews/presets/thumbs/effect-yacht.jpg
new file mode 100644
index 00000000..6500d0da
Binary files /dev/null and b/public/previews/presets/thumbs/effect-yacht.jpg differ
diff --git a/public/previews/presets/thumbs/motion-360-orbit.jpg b/public/previews/presets/thumbs/motion-360-orbit.jpg
new file mode 100644
index 00000000..4566aa82
Binary files /dev/null and b/public/previews/presets/thumbs/motion-360-orbit.jpg differ
diff --git a/public/previews/presets/thumbs/motion-action-run.jpg b/public/previews/presets/thumbs/motion-action-run.jpg
new file mode 100644
index 00000000..c973f20e
Binary files /dev/null and b/public/previews/presets/thumbs/motion-action-run.jpg differ
diff --git a/public/previews/presets/thumbs/motion-aerial-pullback.jpg b/public/previews/presets/thumbs/motion-aerial-pullback.jpg
new file mode 100644
index 00000000..26e056e9
Binary files /dev/null and b/public/previews/presets/thumbs/motion-aerial-pullback.jpg differ
diff --git a/public/previews/presets/thumbs/motion-arc-left.jpg b/public/previews/presets/thumbs/motion-arc-left.jpg
new file mode 100644
index 00000000..e9bf4d8c
Binary files /dev/null and b/public/previews/presets/thumbs/motion-arc-left.jpg differ
diff --git a/public/previews/presets/thumbs/motion-arc-right.jpg b/public/previews/presets/thumbs/motion-arc-right.jpg
new file mode 100644
index 00000000..19ff10ca
Binary files /dev/null and b/public/previews/presets/thumbs/motion-arc-right.jpg differ
diff --git a/public/previews/presets/thumbs/motion-baseball-kick.jpg b/public/previews/presets/thumbs/motion-baseball-kick.jpg
new file mode 100644
index 00000000..7f6721e5
Binary files /dev/null and b/public/previews/presets/thumbs/motion-baseball-kick.jpg differ
diff --git a/public/previews/presets/thumbs/motion-basketball-dunks.jpg b/public/previews/presets/thumbs/motion-basketball-dunks.jpg
new file mode 100644
index 00000000..f4b41e7d
Binary files /dev/null and b/public/previews/presets/thumbs/motion-basketball-dunks.jpg differ
diff --git a/public/previews/presets/thumbs/motion-boxing.jpg b/public/previews/presets/thumbs/motion-boxing.jpg
new file mode 100644
index 00000000..ab414ccc
Binary files /dev/null and b/public/previews/presets/thumbs/motion-boxing.jpg differ
diff --git a/public/previews/presets/thumbs/motion-bts.jpg b/public/previews/presets/thumbs/motion-bts.jpg
new file mode 100644
index 00000000..5db5d050
Binary files /dev/null and b/public/previews/presets/thumbs/motion-bts.jpg differ
diff --git a/public/previews/presets/thumbs/motion-bullet-time.jpg b/public/previews/presets/thumbs/motion-bullet-time.jpg
new file mode 100644
index 00000000..38efe7c0
Binary files /dev/null and b/public/previews/presets/thumbs/motion-bullet-time.jpg differ
diff --git a/public/previews/presets/thumbs/motion-car-chasing.jpg b/public/previews/presets/thumbs/motion-car-chasing.jpg
new file mode 100644
index 00000000..d72825f3
Binary files /dev/null and b/public/previews/presets/thumbs/motion-car-chasing.jpg differ
diff --git a/public/previews/presets/thumbs/motion-car-grip.jpg b/public/previews/presets/thumbs/motion-car-grip.jpg
new file mode 100644
index 00000000..da214b63
Binary files /dev/null and b/public/previews/presets/thumbs/motion-car-grip.jpg differ
diff --git a/public/previews/presets/thumbs/motion-catwalk.jpg b/public/previews/presets/thumbs/motion-catwalk.jpg
new file mode 100644
index 00000000..d2b2e700
Binary files /dev/null and b/public/previews/presets/thumbs/motion-catwalk.jpg differ
diff --git a/public/previews/presets/thumbs/motion-classic-static.jpg b/public/previews/presets/thumbs/motion-classic-static.jpg
new file mode 100644
index 00000000..eea09210
Binary files /dev/null and b/public/previews/presets/thumbs/motion-classic-static.jpg differ
diff --git a/public/previews/presets/thumbs/motion-crane-down.jpg b/public/previews/presets/thumbs/motion-crane-down.jpg
new file mode 100644
index 00000000..6196002c
Binary files /dev/null and b/public/previews/presets/thumbs/motion-crane-down.jpg differ
diff --git a/public/previews/presets/thumbs/motion-crane-over-the-head.jpg b/public/previews/presets/thumbs/motion-crane-over-the-head.jpg
new file mode 100644
index 00000000..af46aadc
Binary files /dev/null and b/public/previews/presets/thumbs/motion-crane-over-the-head.jpg differ
diff --git a/public/previews/presets/thumbs/motion-crane-up.jpg b/public/previews/presets/thumbs/motion-crane-up.jpg
new file mode 100644
index 00000000..5cf3ba4b
Binary files /dev/null and b/public/previews/presets/thumbs/motion-crane-up.jpg differ
diff --git a/public/previews/presets/thumbs/motion-crash-zoom-in.jpg b/public/previews/presets/thumbs/motion-crash-zoom-in.jpg
new file mode 100644
index 00000000..590085b7
Binary files /dev/null and b/public/previews/presets/thumbs/motion-crash-zoom-in.jpg differ
diff --git a/public/previews/presets/thumbs/motion-crash-zoom-out.jpg b/public/previews/presets/thumbs/motion-crash-zoom-out.jpg
new file mode 100644
index 00000000..a6fbbdcc
Binary files /dev/null and b/public/previews/presets/thumbs/motion-crash-zoom-out.jpg differ
diff --git a/public/previews/presets/thumbs/motion-documentary-snap.jpg b/public/previews/presets/thumbs/motion-documentary-snap.jpg
new file mode 100644
index 00000000..df4c789b
Binary files /dev/null and b/public/previews/presets/thumbs/motion-documentary-snap.jpg differ
diff --git a/public/previews/presets/thumbs/motion-dolly-in.jpg b/public/previews/presets/thumbs/motion-dolly-in.jpg
new file mode 100644
index 00000000..707af359
Binary files /dev/null and b/public/previews/presets/thumbs/motion-dolly-in.jpg differ
diff --git a/public/previews/presets/thumbs/motion-dolly-left.jpg b/public/previews/presets/thumbs/motion-dolly-left.jpg
new file mode 100644
index 00000000..95ba19de
Binary files /dev/null and b/public/previews/presets/thumbs/motion-dolly-left.jpg differ
diff --git a/public/previews/presets/thumbs/motion-dolly-out.jpg b/public/previews/presets/thumbs/motion-dolly-out.jpg
new file mode 100644
index 00000000..4a6d0c72
Binary files /dev/null and b/public/previews/presets/thumbs/motion-dolly-out.jpg differ
diff --git a/public/previews/presets/thumbs/motion-dolly-right.jpg b/public/previews/presets/thumbs/motion-dolly-right.jpg
new file mode 100644
index 00000000..7466bd00
Binary files /dev/null and b/public/previews/presets/thumbs/motion-dolly-right.jpg differ
diff --git a/public/previews/presets/thumbs/motion-dolly-zoom-in.jpg b/public/previews/presets/thumbs/motion-dolly-zoom-in.jpg
new file mode 100644
index 00000000..aa1cd2eb
Binary files /dev/null and b/public/previews/presets/thumbs/motion-dolly-zoom-in.jpg differ
diff --git a/public/previews/presets/thumbs/motion-double-dolly.jpg b/public/previews/presets/thumbs/motion-double-dolly.jpg
new file mode 100644
index 00000000..5eb8b563
Binary files /dev/null and b/public/previews/presets/thumbs/motion-double-dolly.jpg differ
diff --git a/public/previews/presets/thumbs/motion-downhill-pov.jpg b/public/previews/presets/thumbs/motion-downhill-pov.jpg
new file mode 100644
index 00000000..cd099225
Binary files /dev/null and b/public/previews/presets/thumbs/motion-downhill-pov.jpg differ
diff --git a/public/previews/presets/thumbs/motion-dreamy-flow.jpg b/public/previews/presets/thumbs/motion-dreamy-flow.jpg
new file mode 100644
index 00000000..9a193e74
Binary files /dev/null and b/public/previews/presets/thumbs/motion-dreamy-flow.jpg differ
diff --git a/public/previews/presets/thumbs/motion-drone-reveal.jpg b/public/previews/presets/thumbs/motion-drone-reveal.jpg
new file mode 100644
index 00000000..7e088069
Binary files /dev/null and b/public/previews/presets/thumbs/motion-drone-reveal.jpg differ
diff --git a/public/previews/presets/thumbs/motion-dutch-angle.jpg b/public/previews/presets/thumbs/motion-dutch-angle.jpg
new file mode 100644
index 00000000..6ac424b5
Binary files /dev/null and b/public/previews/presets/thumbs/motion-dutch-angle.jpg differ
diff --git a/public/previews/presets/thumbs/motion-earth-zoom-out.jpg b/public/previews/presets/thumbs/motion-earth-zoom-out.jpg
new file mode 100644
index 00000000..2d2e807c
Binary files /dev/null and b/public/previews/presets/thumbs/motion-earth-zoom-out.jpg differ
diff --git a/public/previews/presets/thumbs/motion-eating-zoom.jpg b/public/previews/presets/thumbs/motion-eating-zoom.jpg
new file mode 100644
index 00000000..51cc57f0
Binary files /dev/null and b/public/previews/presets/thumbs/motion-eating-zoom.jpg differ
diff --git a/public/previews/presets/thumbs/motion-epic-scale.jpg b/public/previews/presets/thumbs/motion-epic-scale.jpg
new file mode 100644
index 00000000..3aabd196
Binary files /dev/null and b/public/previews/presets/thumbs/motion-epic-scale.jpg differ
diff --git a/public/previews/presets/thumbs/motion-eyes-in.jpg b/public/previews/presets/thumbs/motion-eyes-in.jpg
new file mode 100644
index 00000000..e991d5bb
Binary files /dev/null and b/public/previews/presets/thumbs/motion-eyes-in.jpg differ
diff --git a/public/previews/presets/thumbs/motion-face-punch.jpg b/public/previews/presets/thumbs/motion-face-punch.jpg
new file mode 100644
index 00000000..ff409693
Binary files /dev/null and b/public/previews/presets/thumbs/motion-face-punch.jpg differ
diff --git a/public/previews/presets/thumbs/motion-fisheye.jpg b/public/previews/presets/thumbs/motion-fisheye.jpg
new file mode 100644
index 00000000..e3d974bb
Binary files /dev/null and b/public/previews/presets/thumbs/motion-fisheye.jpg differ
diff --git a/public/previews/presets/thumbs/motion-flying-cam-transition.jpg b/public/previews/presets/thumbs/motion-flying-cam-transition.jpg
new file mode 100644
index 00000000..392bbee4
Binary files /dev/null and b/public/previews/presets/thumbs/motion-flying-cam-transition.jpg differ
diff --git a/public/previews/presets/thumbs/motion-flying.jpg b/public/previews/presets/thumbs/motion-flying.jpg
new file mode 100644
index 00000000..24f41c16
Binary files /dev/null and b/public/previews/presets/thumbs/motion-flying.jpg differ
diff --git a/public/previews/presets/thumbs/motion-focus-change.jpg b/public/previews/presets/thumbs/motion-focus-change.jpg
new file mode 100644
index 00000000..6b032b61
Binary files /dev/null and b/public/previews/presets/thumbs/motion-focus-change.jpg differ
diff --git a/public/previews/presets/thumbs/motion-fpv-drone.jpg b/public/previews/presets/thumbs/motion-fpv-drone.jpg
new file mode 100644
index 00000000..cc3a9446
Binary files /dev/null and b/public/previews/presets/thumbs/motion-fpv-drone.jpg differ
diff --git a/public/previews/presets/thumbs/motion-general.jpg b/public/previews/presets/thumbs/motion-general.jpg
new file mode 100644
index 00000000..2eebfab3
Binary files /dev/null and b/public/previews/presets/thumbs/motion-general.jpg differ
diff --git a/public/previews/presets/thumbs/motion-glam.jpg b/public/previews/presets/thumbs/motion-glam.jpg
new file mode 100644
index 00000000..862388af
Binary files /dev/null and b/public/previews/presets/thumbs/motion-glam.jpg differ
diff --git a/public/previews/presets/thumbs/motion-handheld.jpg b/public/previews/presets/thumbs/motion-handheld.jpg
new file mode 100644
index 00000000..9162343a
Binary files /dev/null and b/public/previews/presets/thumbs/motion-handheld.jpg differ
diff --git a/public/previews/presets/thumbs/motion-head-tracking.jpg b/public/previews/presets/thumbs/motion-head-tracking.jpg
new file mode 100644
index 00000000..be895ea1
Binary files /dev/null and b/public/previews/presets/thumbs/motion-head-tracking.jpg differ
diff --git a/public/previews/presets/thumbs/motion-helicopter-shot.jpg b/public/previews/presets/thumbs/motion-helicopter-shot.jpg
new file mode 100644
index 00000000..ec9ce0e9
Binary files /dev/null and b/public/previews/presets/thumbs/motion-helicopter-shot.jpg differ
diff --git a/public/previews/presets/thumbs/motion-hero-cam.jpg b/public/previews/presets/thumbs/motion-hero-cam.jpg
new file mode 100644
index 00000000..3fb26c16
Binary files /dev/null and b/public/previews/presets/thumbs/motion-hero-cam.jpg differ
diff --git a/public/previews/presets/thumbs/motion-hyperlapse.jpg b/public/previews/presets/thumbs/motion-hyperlapse.jpg
new file mode 100644
index 00000000..0e26b080
Binary files /dev/null and b/public/previews/presets/thumbs/motion-hyperlapse.jpg differ
diff --git a/public/previews/presets/thumbs/motion-impossible-camera.jpg b/public/previews/presets/thumbs/motion-impossible-camera.jpg
new file mode 100644
index 00000000..8ef3e45c
Binary files /dev/null and b/public/previews/presets/thumbs/motion-impossible-camera.jpg differ
diff --git a/public/previews/presets/thumbs/motion-incline.jpg b/public/previews/presets/thumbs/motion-incline.jpg
new file mode 100644
index 00000000..31fd78da
Binary files /dev/null and b/public/previews/presets/thumbs/motion-incline.jpg differ
diff --git a/public/previews/presets/thumbs/motion-intimate-observer.jpg b/public/previews/presets/thumbs/motion-intimate-observer.jpg
new file mode 100644
index 00000000..e09b9df4
Binary files /dev/null and b/public/previews/presets/thumbs/motion-intimate-observer.jpg differ
diff --git a/public/previews/presets/thumbs/motion-jib-down.jpg b/public/previews/presets/thumbs/motion-jib-down.jpg
new file mode 100644
index 00000000..a47b5cbf
Binary files /dev/null and b/public/previews/presets/thumbs/motion-jib-down.jpg differ
diff --git a/public/previews/presets/thumbs/motion-jib-up.jpg b/public/previews/presets/thumbs/motion-jib-up.jpg
new file mode 100644
index 00000000..51183859
Binary files /dev/null and b/public/previews/presets/thumbs/motion-jib-up.jpg differ
diff --git a/public/previews/presets/thumbs/motion-kiss.jpg b/public/previews/presets/thumbs/motion-kiss.jpg
new file mode 100644
index 00000000..aaf17c36
Binary files /dev/null and b/public/previews/presets/thumbs/motion-kiss.jpg differ
diff --git a/public/previews/presets/thumbs/motion-lazy-orbit.jpg b/public/previews/presets/thumbs/motion-lazy-orbit.jpg
new file mode 100644
index 00000000..f845ab16
Binary files /dev/null and b/public/previews/presets/thumbs/motion-lazy-orbit.jpg differ
diff --git a/public/previews/presets/thumbs/motion-lazy-susan.jpg b/public/previews/presets/thumbs/motion-lazy-susan.jpg
new file mode 100644
index 00000000..95623a5b
Binary files /dev/null and b/public/previews/presets/thumbs/motion-lazy-susan.jpg differ
diff --git a/public/previews/presets/thumbs/motion-low-shutter.jpg b/public/previews/presets/thumbs/motion-low-shutter.jpg
new file mode 100644
index 00000000..8e44b78d
Binary files /dev/null and b/public/previews/presets/thumbs/motion-low-shutter.jpg differ
diff --git a/public/previews/presets/thumbs/motion-moonwalk-left.jpg b/public/previews/presets/thumbs/motion-moonwalk-left.jpg
new file mode 100644
index 00000000..f03ea352
Binary files /dev/null and b/public/previews/presets/thumbs/motion-moonwalk-left.jpg differ
diff --git a/public/previews/presets/thumbs/motion-moonwalk-right.jpg b/public/previews/presets/thumbs/motion-moonwalk-right.jpg
new file mode 100644
index 00000000..befcdc14
Binary files /dev/null and b/public/previews/presets/thumbs/motion-moonwalk-right.jpg differ
diff --git a/public/previews/presets/thumbs/motion-mouth-in.jpg b/public/previews/presets/thumbs/motion-mouth-in.jpg
new file mode 100644
index 00000000..2ec3400e
Binary files /dev/null and b/public/previews/presets/thumbs/motion-mouth-in.jpg differ
diff --git a/public/previews/presets/thumbs/motion-object-pov.jpg b/public/previews/presets/thumbs/motion-object-pov.jpg
new file mode 100644
index 00000000..c49f68f9
Binary files /dev/null and b/public/previews/presets/thumbs/motion-object-pov.jpg differ
diff --git a/public/previews/presets/thumbs/motion-one-take.jpg b/public/previews/presets/thumbs/motion-one-take.jpg
new file mode 100644
index 00000000..f0134841
Binary files /dev/null and b/public/previews/presets/thumbs/motion-one-take.jpg differ
diff --git a/public/previews/presets/thumbs/motion-overhead.jpg b/public/previews/presets/thumbs/motion-overhead.jpg
new file mode 100644
index 00000000..1d28a5a2
Binary files /dev/null and b/public/previews/presets/thumbs/motion-overhead.jpg differ
diff --git a/public/previews/presets/thumbs/motion-pan-left.jpg b/public/previews/presets/thumbs/motion-pan-left.jpg
new file mode 100644
index 00000000..63e05074
Binary files /dev/null and b/public/previews/presets/thumbs/motion-pan-left.jpg differ
diff --git a/public/previews/presets/thumbs/motion-pan-right.jpg b/public/previews/presets/thumbs/motion-pan-right.jpg
new file mode 100644
index 00000000..abef4d54
Binary files /dev/null and b/public/previews/presets/thumbs/motion-pan-right.jpg differ
diff --git a/public/previews/presets/thumbs/motion-pan.jpg b/public/previews/presets/thumbs/motion-pan.jpg
new file mode 100644
index 00000000..54c3ef71
Binary files /dev/null and b/public/previews/presets/thumbs/motion-pan.jpg differ
diff --git a/public/previews/presets/thumbs/motion-pedestal-down.jpg b/public/previews/presets/thumbs/motion-pedestal-down.jpg
new file mode 100644
index 00000000..bb5cd5a9
Binary files /dev/null and b/public/previews/presets/thumbs/motion-pedestal-down.jpg differ
diff --git a/public/previews/presets/thumbs/motion-pov.jpg b/public/previews/presets/thumbs/motion-pov.jpg
new file mode 100644
index 00000000..f61b03a8
Binary files /dev/null and b/public/previews/presets/thumbs/motion-pov.jpg differ
diff --git a/public/previews/presets/thumbs/motion-rap-flex.jpg b/public/previews/presets/thumbs/motion-rap-flex.jpg
new file mode 100644
index 00000000..5f99b36f
Binary files /dev/null and b/public/previews/presets/thumbs/motion-rap-flex.jpg differ
diff --git a/public/previews/presets/thumbs/motion-rapid-zoom-in.jpg b/public/previews/presets/thumbs/motion-rapid-zoom-in.jpg
new file mode 100644
index 00000000..c8cc83c4
Binary files /dev/null and b/public/previews/presets/thumbs/motion-rapid-zoom-in.jpg differ
diff --git a/public/previews/presets/thumbs/motion-rapid-zoom-out.jpg b/public/previews/presets/thumbs/motion-rapid-zoom-out.jpg
new file mode 100644
index 00000000..75ccb400
Binary files /dev/null and b/public/previews/presets/thumbs/motion-rapid-zoom-out.jpg differ
diff --git a/public/previews/presets/thumbs/motion-raw-chaos.jpg b/public/previews/presets/thumbs/motion-raw-chaos.jpg
new file mode 100644
index 00000000..5d0bde17
Binary files /dev/null and b/public/previews/presets/thumbs/motion-raw-chaos.jpg differ
diff --git a/public/previews/presets/thumbs/motion-road-rush.jpg b/public/previews/presets/thumbs/motion-road-rush.jpg
new file mode 100644
index 00000000..68cb6856
Binary files /dev/null and b/public/previews/presets/thumbs/motion-road-rush.jpg differ
diff --git a/public/previews/presets/thumbs/motion-robo-arm.jpg b/public/previews/presets/thumbs/motion-robo-arm.jpg
new file mode 100644
index 00000000..2c7c364e
Binary files /dev/null and b/public/previews/presets/thumbs/motion-robo-arm.jpg differ
diff --git a/public/previews/presets/thumbs/motion-robot-arm.jpg b/public/previews/presets/thumbs/motion-robot-arm.jpg
new file mode 100644
index 00000000..cd5c4bf8
Binary files /dev/null and b/public/previews/presets/thumbs/motion-robot-arm.jpg differ
diff --git a/public/previews/presets/thumbs/motion-roll-transition.jpg b/public/previews/presets/thumbs/motion-roll-transition.jpg
new file mode 100644
index 00000000..52b80bfa
Binary files /dev/null and b/public/previews/presets/thumbs/motion-roll-transition.jpg differ
diff --git a/public/previews/presets/thumbs/motion-silent-machine.jpg b/public/previews/presets/thumbs/motion-silent-machine.jpg
new file mode 100644
index 00000000..26410ff8
Binary files /dev/null and b/public/previews/presets/thumbs/motion-silent-machine.jpg differ
diff --git a/public/previews/presets/thumbs/motion-skate-cruise.jpg b/public/previews/presets/thumbs/motion-skate-cruise.jpg
new file mode 100644
index 00000000..fb7139ef
Binary files /dev/null and b/public/previews/presets/thumbs/motion-skate-cruise.jpg differ
diff --git a/public/previews/presets/thumbs/motion-skateboard-glide.jpg b/public/previews/presets/thumbs/motion-skateboard-glide.jpg
new file mode 100644
index 00000000..b5ea3d77
Binary files /dev/null and b/public/previews/presets/thumbs/motion-skateboard-glide.jpg differ
diff --git a/public/previews/presets/thumbs/motion-skateboard-ollie.jpg b/public/previews/presets/thumbs/motion-skateboard-ollie.jpg
new file mode 100644
index 00000000..bb87fb67
Binary files /dev/null and b/public/previews/presets/thumbs/motion-skateboard-ollie.jpg differ
diff --git a/public/previews/presets/thumbs/motion-ski-carving.jpg b/public/previews/presets/thumbs/motion-ski-carving.jpg
new file mode 100644
index 00000000..16cfb7e7
Binary files /dev/null and b/public/previews/presets/thumbs/motion-ski-carving.jpg differ
diff --git a/public/previews/presets/thumbs/motion-ski-powder.jpg b/public/previews/presets/thumbs/motion-ski-powder.jpg
new file mode 100644
index 00000000..548b730e
Binary files /dev/null and b/public/previews/presets/thumbs/motion-ski-powder.jpg differ
diff --git a/public/previews/presets/thumbs/motion-slow-motion.jpg b/public/previews/presets/thumbs/motion-slow-motion.jpg
new file mode 100644
index 00000000..833d0936
Binary files /dev/null and b/public/previews/presets/thumbs/motion-slow-motion.jpg differ
diff --git a/public/previews/presets/thumbs/motion-snorricam.jpg b/public/previews/presets/thumbs/motion-snorricam.jpg
new file mode 100644
index 00000000..430099e7
Binary files /dev/null and b/public/previews/presets/thumbs/motion-snorricam.jpg differ
diff --git a/public/previews/presets/thumbs/motion-snowboard-carving.jpg b/public/previews/presets/thumbs/motion-snowboard-carving.jpg
new file mode 100644
index 00000000..2b4f45f7
Binary files /dev/null and b/public/previews/presets/thumbs/motion-snowboard-carving.jpg differ
diff --git a/public/previews/presets/thumbs/motion-snowboard-powder.jpg b/public/previews/presets/thumbs/motion-snowboard-powder.jpg
new file mode 100644
index 00000000..4ead8b61
Binary files /dev/null and b/public/previews/presets/thumbs/motion-snowboard-powder.jpg differ
diff --git a/public/previews/presets/thumbs/motion-static.jpg b/public/previews/presets/thumbs/motion-static.jpg
new file mode 100644
index 00000000..ba84a1a9
Binary files /dev/null and b/public/previews/presets/thumbs/motion-static.jpg differ
diff --git a/public/previews/presets/thumbs/motion-super-dolly-in.jpg b/public/previews/presets/thumbs/motion-super-dolly-in.jpg
new file mode 100644
index 00000000..17f4da9b
Binary files /dev/null and b/public/previews/presets/thumbs/motion-super-dolly-in.jpg differ
diff --git a/public/previews/presets/thumbs/motion-super-dolly-out.jpg b/public/previews/presets/thumbs/motion-super-dolly-out.jpg
new file mode 100644
index 00000000..c9100fe5
Binary files /dev/null and b/public/previews/presets/thumbs/motion-super-dolly-out.jpg differ
diff --git a/public/previews/presets/thumbs/motion-through-object-in.jpg b/public/previews/presets/thumbs/motion-through-object-in.jpg
new file mode 100644
index 00000000..d47c7dff
Binary files /dev/null and b/public/previews/presets/thumbs/motion-through-object-in.jpg differ
diff --git a/public/previews/presets/thumbs/motion-through-object-out.jpg b/public/previews/presets/thumbs/motion-through-object-out.jpg
new file mode 100644
index 00000000..f59f61b5
Binary files /dev/null and b/public/previews/presets/thumbs/motion-through-object-out.jpg differ
diff --git a/public/previews/presets/thumbs/motion-tilt-down.jpg b/public/previews/presets/thumbs/motion-tilt-down.jpg
new file mode 100644
index 00000000..81cc95b2
Binary files /dev/null and b/public/previews/presets/thumbs/motion-tilt-down.jpg differ
diff --git a/public/previews/presets/thumbs/motion-tilt-up.jpg b/public/previews/presets/thumbs/motion-tilt-up.jpg
new file mode 100644
index 00000000..246f84df
Binary files /dev/null and b/public/previews/presets/thumbs/motion-tilt-up.jpg differ
diff --git a/public/previews/presets/thumbs/motion-timelapse-glam.jpg b/public/previews/presets/thumbs/motion-timelapse-glam.jpg
new file mode 100644
index 00000000..d12fcea6
Binary files /dev/null and b/public/previews/presets/thumbs/motion-timelapse-glam.jpg differ
diff --git a/public/previews/presets/thumbs/motion-timelapse-human.jpg b/public/previews/presets/thumbs/motion-timelapse-human.jpg
new file mode 100644
index 00000000..309f7e72
Binary files /dev/null and b/public/previews/presets/thumbs/motion-timelapse-human.jpg differ
diff --git a/public/previews/presets/thumbs/motion-timelapse-landscape.jpg b/public/previews/presets/thumbs/motion-timelapse-landscape.jpg
new file mode 100644
index 00000000..0186195e
Binary files /dev/null and b/public/previews/presets/thumbs/motion-timelapse-landscape.jpg differ
diff --git a/public/previews/presets/thumbs/motion-timelapse.jpg b/public/previews/presets/thumbs/motion-timelapse.jpg
new file mode 100644
index 00000000..626e5102
Binary files /dev/null and b/public/previews/presets/thumbs/motion-timelapse.jpg differ
diff --git a/public/previews/presets/thumbs/motion-tracking.jpg b/public/previews/presets/thumbs/motion-tracking.jpg
new file mode 100644
index 00000000..1722bfe1
Binary files /dev/null and b/public/previews/presets/thumbs/motion-tracking.jpg differ
diff --git a/public/previews/presets/thumbs/motion-truck-left.jpg b/public/previews/presets/thumbs/motion-truck-left.jpg
new file mode 100644
index 00000000..224d461c
Binary files /dev/null and b/public/previews/presets/thumbs/motion-truck-left.jpg differ
diff --git a/public/previews/presets/thumbs/motion-truck-right.jpg b/public/previews/presets/thumbs/motion-truck-right.jpg
new file mode 100644
index 00000000..13f2729c
Binary files /dev/null and b/public/previews/presets/thumbs/motion-truck-right.jpg differ
diff --git a/public/previews/presets/thumbs/motion-whip-pan.jpg b/public/previews/presets/thumbs/motion-whip-pan.jpg
new file mode 100644
index 00000000..b476dbf6
Binary files /dev/null and b/public/previews/presets/thumbs/motion-whip-pan.jpg differ
diff --git a/public/previews/presets/thumbs/motion-wiggle.jpg b/public/previews/presets/thumbs/motion-wiggle.jpg
new file mode 100644
index 00000000..d7175e44
Binary files /dev/null and b/public/previews/presets/thumbs/motion-wiggle.jpg differ
diff --git a/public/previews/presets/thumbs/motion-yoyo-zoom.jpg b/public/previews/presets/thumbs/motion-yoyo-zoom.jpg
new file mode 100644
index 00000000..05fac3b5
Binary files /dev/null and b/public/previews/presets/thumbs/motion-yoyo-zoom.jpg differ
diff --git a/public/previews/presets/thumbs/motion-zoom-in.jpg b/public/previews/presets/thumbs/motion-zoom-in.jpg
new file mode 100644
index 00000000..5b97187b
Binary files /dev/null and b/public/previews/presets/thumbs/motion-zoom-in.jpg differ
diff --git a/public/previews/presets/thumbs/motion-zoom-out.jpg b/public/previews/presets/thumbs/motion-zoom-out.jpg
new file mode 100644
index 00000000..9ff940cd
Binary files /dev/null and b/public/previews/presets/thumbs/motion-zoom-out.jpg differ
diff --git a/public/previews/presets/thumbs/motion-zoom.jpg b/public/previews/presets/thumbs/motion-zoom.jpg
new file mode 100644
index 00000000..1804f865
Binary files /dev/null and b/public/previews/presets/thumbs/motion-zoom.jpg differ
diff --git a/scripts/eval/README.md b/scripts/eval/README.md
index d99d9f03..999b8ccb 100644
--- a/scripts/eval/README.md
+++ b/scripts/eval/README.md
@@ -459,7 +459,8 @@ first 4 seconds, muted, at most 512 px, with its first frame as the poster. They
DoP preset, `effect-thunder-god`) or look id (`v1-general`). The gallery cards play a listed cover
instead of their procedural preview. Next to it, `src/lib/preset-covers.generated.ts` says only which
presets have a cover and a clip: the pickers (camera motions, Mix, Cinema Studio's moves) read that in
-the browser.
+the browser. Their tiles show each poster's small copy (320 px wide) from `thumbs/` next to it, which
+every run makes where it's missing or older than its poster.
- `--variant catalog` takes that variant's renders for every case instead, such as what ships today.
- `--dry-run` lists what it would pick.
diff --git a/scripts/eval/lib/covers.mjs b/scripts/eval/lib/covers.mjs
index af42146e..093ab008 100644
--- a/scripts/eval/lib/covers.mjs
+++ b/scripts/eval/lib/covers.mjs
@@ -22,6 +22,11 @@ const CLIP_SECONDS = 4;
const CLIP_FPS = 24;
/** Frames at a clip's end crossfaded into its first ones: the cards play clips with `loop`, and this hides the jump. */
const LOOP_FADE = 6;
+/** Width of a poster's small copy (px), which the pickers' tiles show: enough for a 136 px tile on a 2x screen. */
+const THUMB_PX = 320;
+
+/** Where a poster's small copy goes: thumbs/ next to it (the pickers read it there: thumbOf, src/lib/preset-covers.ts). */
+export const thumbOf = (poster) => poster.replace(/\/([^/]+)$/, "/thumbs/$1");
const HEADER = `/**
* Real preset covers: renders from measured runs of the evaluation harness (scripts/eval, pnpm eval:covers),
@@ -68,7 +73,8 @@ export function readManifest(file = MANIFEST_FILE) {
const SLIM_HEADER = `/**
* Which presets have a real cover, for the pickers in the browser (read through presetCover, preset-covers.ts):
* 1 for a clip at /previews/presets/<id>.mp4 with its poster at <id>.jpg, 0 for a still there, or the files of a
- * cover kept elsewhere. The slim side of preset-previews.generated.ts, whose provenance stays on the server.
+ * cover kept elsewhere. Each poster has a small copy for the pickers' tiles in thumbs/ next to it. The slim side
+ * of preset-previews.generated.ts, whose provenance stays on the server.
* Generated with it by pnpm eval:covers: run it again rather than editing.
*/
export type PresetCoverEntry = 0 | 1 | { poster: string; video?: string };
@@ -91,6 +97,29 @@ export function writeManifest(entries, file = MANIFEST_FILE) {
fs.writeFileSync(path.join(path.dirname(file), "preset-covers.generated.ts"), `${SLIM_HEADER}${JSON.stringify(slim, null, 2)};\n`);
}
+/** A /previews URL as a file in publicDir; null for anything else. */
+function previewFile(url, publicDir) {
+ const parts = typeof url === "string" ? url.split("/").filter(Boolean) : [];
+ return parts[0] === "previews" && !parts.includes("..") ? path.join(publicDir, ...parts) : null;
+}
+
+/**
+ * Make the small copy of every listed poster that the pickers' tiles show (thumbOf: THUMB_PX wide, about 5 to 12 KB
+ * where the poster is 40 to 70), where it's missing or older than its poster. Returns the files it made.
+ */
+export function writeThumbs(entries, publicDir = path.dirname(COVERS_DIR)) {
+ const made = [];
+ for (const e of Object.values(entries)) {
+ const poster = previewFile(e.poster, publicDir);
+ const thumb = previewFile(typeof e.poster === "string" && thumbOf(e.poster), publicDir);
+ if (!poster || !thumb || !fs.existsSync(poster) || newer(thumb, poster)) continue;
+ fs.mkdirSync(path.dirname(thumb), { recursive: true });
+ run(["-i", poster, "-vf", `scale='min(${THUMB_PX},iw)':-2,format=yuvj420p`, "-frames:v", "1", "-q:v", "5", thumb]);
+ made.push(thumb);
+ }
+ return made;
+}
+
/** The preset a case's cover belongs to: a DoP preset id, a Soul look's Fuobe id, else the case id. */
function coverKey(row) {
if (row.recipe?.kind === "soul-look" && row.recipe.look?.slug) return row.recipe.look.slug;
@@ -264,18 +293,21 @@ export function makeCovers(dir, opts = {}) {
dropReplaced(before, manifest, publicDir);
result.covers.push({ key: p.key, caseId: p.caseId, job: p.row.id, metric: p.metric, score: p.score, ...(p.licence && { licence: p.licence }), ...manifest[p.key] });
}
- if (picked.length) writeManifest(manifest, opts.manifest);
+ if (picked.length) {
+ writeThumbs(manifest, publicDir);
+ writeManifest(manifest, opts.manifest);
+ }
return result;
}
/** Remove a replaced entry's files that no entry names any more (its cover now lives in another folder). */
function dropReplaced(old, manifest, publicDir) {
if (!old) return;
- const named = new Set(Object.values(manifest).flatMap((e) => [e.poster, e.video].filter(Boolean)));
- for (const url of [old.poster, old.video]) {
- const parts = typeof url === "string" ? url.split("/").filter(Boolean) : [];
- if (named.has(url) || parts[0] !== "previews" || parts.includes("..")) continue;
- fs.rmSync(path.join(publicDir, ...parts), { force: true });
+ const files = (e) => [e.poster, e.video, typeof e.poster === "string" && thumbOf(e.poster)].filter(Boolean);
+ const named = new Set(Object.values(manifest).flatMap(files));
+ for (const url of files(old)) {
+ const file = previewFile(url, publicDir);
+ if (!named.has(url) && file) fs.rmSync(file, { force: true });
}
}
@@ -370,6 +402,9 @@ export function coversFromMasters(dir, opts) {
}
result.covers.push({ key: p.id, kind: p.kind, from: p.src, ...(kept && { kept: true }), ...entry });
}
- if (ours.length && !opts.dryRun) writeManifest(manifest, opts.manifest);
+ if (ours.length && !opts.dryRun) {
+ writeThumbs(manifest, publicDir);
+ writeManifest(manifest, opts.manifest);
+ }
return result;
}
diff --git a/src/components/cinema/camera-moves.tsx b/src/components/cinema/camera-moves.tsx
index d82b1e09..9dd3faec 100644
--- a/src/components/cinema/camera-moves.tsx
+++ b/src/components/cinema/camera-moves.tsx
@@ -1,132 +1,30 @@
"use client";
-import { ArrowDownAZ, Check, Hash, ListOrdered, X } from "lucide-react";
-import { useMemo, useRef, useState } from "react";
-import { CoverScrollBox, CoverTile, usePickerPlayback } from "@/components/cover-tile";
-import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "@/components/ui/command";
+import dynamic from "next/dynamic";
+import { Check, Hash, Loader2, X } from "lucide-react";
+import { useState } from "react";
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
-import { CAMERA_MOVES, cinemaMoveRoute, moveBySlug, type CameraMove } from "@/lib/catalog/cinema";
+import { moveBySlug } from "@/lib/catalog/cinema";
import type { Engine } from "@/lib/catalog/types";
-import { moveCover } from "@/lib/preset-covers";
import { cn } from "@/lib/utils";
-/** Name matches first (prefix, then word start, then anywhere), the slug and the hint after. */
-function moveScore(value: string, search: string, keywords?: string[]): number {
- const q = search.trim().toLowerCase();
- if (!q) return 1;
- const name = value.toLowerCase();
- if (name.startsWith(q)) return 1;
- if (name.split(/\s+/).some((w) => w.startsWith(q))) return 0.9;
- if (name.includes(q)) return 0.8;
- const [slug = "", hint = ""] = (keywords ?? []).map((k) => k.toLowerCase());
- if (slug.includes(q.replace(/\s+/g, "-"))) return 0.6;
- return hint.includes(q) ? 0.2 : 0;
-}
-
-/** How Fuobe Cinema drives a move on this engine, given a start frame (a small badge in the picker). */
-function routeBadge(m: CameraMove, engine: Engine, civitai?: boolean): string | null {
- const r = cinemaMoveRoute(m.slug, engine, true, { civitai });
- return r.via === "camera-lora" ? "Camera LoRA" : r.via === "lora" ? "LoRA" : r.via === "fun-camera" ? "Fun Camera" : r.via === "hosted-move" ? "Focus move" : null;
-}
-
/**
- * One move: the cover of the camera motion it runs (its clip plays while the row is highlighted, by the pointer or
- * the arrow keys), with its place in the shot's order on it once picked; the move's name, how it runs and its hint.
+ * The camera moves list, with each move's cover (move-list.tsx): its own chunk, with the covers map and the clip
+ * player, loaded when the "#" picker or the Director panel's Movement tab shows it rather than with every Cinema
+ * Studio page.
*/
-function MoveRow({ move: m, badge, order, highlighted, onPick }: { move: CameraMove; badge: string | null; order: number; highlighted: boolean; onPick: () => void }) {
- const { playing } = usePickerPlayback(m.slug, { highlighted });
- return (
- <CommandItem value={m.name} keywords={[m.slug, m.hint]} onSelect={onPick} className="group/move items-start gap-2.5 py-2">
- <CoverTile
- cover={moveCover(m)}
- playing={playing}
- picked={order >= 0 ? order + 1 : undefined}
- className="mt-0.5 h-9 w-12 rounded-md"
- fallback={
- <span className="absolute inset-0 grid place-items-center text-muted-foreground">
- <Hash className="size-3.5" />
- </span>
- }
- />
- <span className="min-w-0 flex-1">
- <span className="flex items-center gap-1.5 text-[13px] font-medium">
- {m.name}
- {badge && <span className="rounded-full bg-brand-faint px-1.5 py-px text-[10px] font-medium text-brand-text">{badge}</span>}
- </span>
- <span className="block text-[12px] leading-snug text-muted-foreground">{m.hint}</span>
- </span>
- <span className="mt-0.5 shrink-0 text-[11px] font-medium text-brand-text opacity-0 group-data-[selected=true]/move:opacity-100">Use</span>
- </CommandItem>
- );
-}
+export const MoveList = dynamic(() => import("./move-list").then((m) => m.MoveList), {
+ loading: () => (
+ <div className="grid h-40 place-items-center" role="status" aria-label="Loading camera moves">
+ <Loader2 className="size-4 animate-spin text-muted-foreground" />
+ </div>
+ ),
+});
+
+/** Load the moves list ahead, once a move is likely: a video prompt being typed, the # button or Movement tab pointed at. */
+export const prefetchMoves = () => void import("./move-list");
-export function MoveList({
- engine,
- badges = true,
- civitai,
- selected,
- onPick,
- defaultQuery,
- autoFocus,
-}: {
- engine: Engine;
- /** Say how Fuobe Cinema drives each move (off when a partner model gets the moves in words). */
- badges?: boolean;
- /** A civitai key is set (false: a cloud move whose LoRA downloads from civitai runs on its words, so no badge). */
- civitai?: boolean;
- selected: string[];
- onPick: (slug: string) => void;
- /** What was typed after "#" in the prompt (the list mounts fresh each time the picker opens). */
- defaultQuery?: string;
- autoFocus?: boolean;
-}) {
- const [sort, setSort] = useState<"default" | "name">("default");
- const [query, setQuery] = useState(defaultQuery ?? "");
- // The highlighted row (its value, the move's name): controlled, as cmdk only reports it then.
- const [highlighted, setHighlighted] = useState("");
- const box = useRef<HTMLDivElement>(null);
- const moves = useMemo(() => (sort === "name" ? [...CAMERA_MOVES].sort((a, b) => a.name.localeCompare(b.name)) : CAMERA_MOVES), [sort]);
- return (
- <Command loop className="bg-transparent" filter={moveScore} value={highlighted} onValueChange={setHighlighted}>
- <div className="flex items-center gap-1 pr-1">
- <div className="min-w-0 flex-1">
- <CommandInput placeholder="Search camera moves…" value={query} onValueChange={setQuery} autoFocus={autoFocus} />
- </div>
- <Tooltip>
- <TooltipTrigger asChild>
- <button
- type="button"
- onClick={() => setSort((s) => (s === "default" ? "name" : "default"))}
- className="grid size-8 shrink-0 place-items-center rounded-lg text-muted-foreground hover:bg-accent hover:text-foreground"
- aria-label={sort === "default" ? "Sort by name" : "Default order"}
- >
- {sort === "default" ? <ArrowDownAZ className="size-4" /> : <ListOrdered className="size-4" />}
- </button>
- </TooltipTrigger>
- <TooltipContent>{sort === "default" ? "Sort: Name (A–Z)" : "Sort: Default"}</TooltipContent>
- </Tooltip>
- </div>
- <CoverScrollBox value={box}>
- <CommandList ref={box} className="max-h-[min(52vh,360px)]">
- <CommandEmpty>No camera moves match your search</CommandEmpty>
- <CommandGroup>
- {moves.map((m) => (
- <MoveRow
- key={m.slug}
- move={m}
- badge={badges ? routeBadge(m, engine, civitai) : null}
- order={selected.indexOf(m.slug)}
- highlighted={highlighted === m.name}
- onPick={() => onPick(m.slug)}
- />
- ))}
- </CommandGroup>
- </CommandList>
- </CoverScrollBox>
- </Command>
- );
-}
/** "#" picker: opens from the # button or when "#" is typed in the prompt; several moves per shot, in order. */
export function MovePicker({
@@ -159,6 +57,8 @@ export function MovePicker({
selected.length ? "bg-brand-faint text-brand-text hover:bg-brand-faint-hover" : "bg-secondary text-secondary-foreground hover:bg-accent",
)}
aria-label="Add a camera move"
+ onPointerEnter={prefetchMoves}
+ onFocus={prefetchMoves}
>
<Hash className="size-3.5" />
</button>
diff --git a/src/components/cinema/director-panel.tsx b/src/components/cinema/director-panel.tsx
index 5438f330..a976ff9d 100644
--- a/src/components/cinema/director-panel.tsx
+++ b/src/components/cinema/director-panel.tsx
@@ -34,7 +34,7 @@ import {
import type { StudioElement } from "@/lib/catalog/elements";
import type { Engine } from "@/lib/catalog/types";
import { cn } from "@/lib/utils";
-import { MoveChips, MoveList } from "./camera-moves";
+import { MoveChips, MoveList, prefetchMoves } from "./camera-moves";
import { PaletteEditor } from "./palette-editor";
type Patch = (p: Partial<DirectorSettings>) => void;
@@ -222,6 +222,8 @@ export function CameraChip({
role="tab"
aria-selected={tab === t.id}
onClick={() => setTab(t.id)}
+ onPointerEnter={t.id === "movement" ? prefetchMoves : undefined}
+ onFocus={t.id === "movement" ? prefetchMoves : undefined}
className={cn(
"inline-flex h-7 shrink-0 items-center gap-1 rounded-full px-3 text-[12px] font-medium transition-colors",
tab === t.id ? "bg-background text-foreground shadow-soft" : "text-muted-foreground hover:text-foreground",
diff --git a/src/components/cinema/move-list.tsx b/src/components/cinema/move-list.tsx
new file mode 100644
index 00000000..7be2efb1
--- /dev/null
+++ b/src/components/cinema/move-list.tsx
@@ -0,0 +1,144 @@
+"use client";
+
+import { ArrowDownAZ, Hash, ListOrdered } from "lucide-react";
+import { useMemo, useRef, useState } from "react";
+import { CoverScrollBox, CoverTile, usePickerPlayback } from "@/components/cover-tile";
+import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "@/components/ui/command";
+import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
+import { CAMERA_MOVES, cinemaMoveRoute, type CameraMove } from "@/lib/catalog/cinema";
+import type { Engine } from "@/lib/catalog/types";
+import { moveCover } from "@/lib/preset-covers";
+
+/*
+ * The camera moves list of Cinema Studio's "#" picker and the Director panel's Movement tab, with each move's cover.
+ * Its own chunk (with the covers map and the clip player): camera-moves.tsx loads it with next/dynamic when it shows.
+ */
+
+/** Name matches first (prefix, then word start, then anywhere), the slug and the hint after. */
+function moveScore(value: string, search: string, keywords?: string[]): number {
+ const q = search.trim().toLowerCase();
+ if (!q) return 1;
+ const name = value.toLowerCase();
+ if (name.startsWith(q)) return 1;
+ if (name.split(/\s+/).some((w) => w.startsWith(q))) return 0.9;
+ if (name.includes(q)) return 0.8;
+ const [slug = "", hint = ""] = (keywords ?? []).map((k) => k.toLowerCase());
+ if (slug.includes(q.replace(/\s+/g, "-"))) return 0.6;
+ return hint.includes(q) ? 0.2 : 0;
+}
+
+/** How Fuobe Cinema drives a move on this engine, given a start frame (a small badge in the picker). */
+function routeBadge(m: CameraMove, engine: Engine, civitai?: boolean): string | null {
+ const r = cinemaMoveRoute(m.slug, engine, true, { civitai });
+ return r.via === "camera-lora" ? "Camera LoRA" : r.via === "lora" ? "LoRA" : r.via === "fun-camera" ? "Fun Camera" : r.via === "hosted-move" ? "Focus move" : null;
+}
+
+/**
+ * One move: the cover of the camera motion it runs (its clip plays while the pointer rests on the row, or while the
+ * arrow keys highlight it), with its place in the shot's order on it once picked; the move's name, how it runs and
+ * its hint.
+ */
+function MoveRow({ move: m, badge, order, highlighted, onPick }: { move: CameraMove; badge: string | null; order: number; highlighted: boolean; onPick: () => void }) {
+ const { playing, handlers } = usePickerPlayback(m.slug, { highlighted });
+ return (
+ <CommandItem value={m.name} keywords={[m.slug, m.hint]} onSelect={onPick} {...handlers} className="group/move items-start gap-2.5 py-2">
+ <CoverTile
+ cover={moveCover(m)}
+ playing={playing}
+ picked={order >= 0 ? order + 1 : undefined}
+ className="mt-0.5 h-9 w-12 rounded-md"
+ fallback={
+ <span className="absolute inset-0 grid place-items-center text-muted-foreground">
+ <Hash className="size-3.5" />
+ </span>
+ }
+ />
+ <span className="min-w-0 flex-1">
+ <span className="flex items-center gap-1.5 text-[13px] font-medium">
+ {m.name}
+ {badge && <span className="rounded-full bg-brand-faint px-1.5 py-px text-[10px] font-medium text-brand-text">{badge}</span>}
+ </span>
+ <span className="block text-[12px] leading-snug text-muted-foreground">{m.hint}</span>
+ </span>
+ <span className="mt-0.5 shrink-0 text-[11px] font-medium text-brand-text opacity-0 group-data-[selected=true]/move:opacity-100">Use</span>
+ </CommandItem>
+ );
+}
+
+export function MoveList({
+ engine,
+ badges = true,
+ civitai,
+ selected,
+ onPick,
+ defaultQuery,
+ autoFocus,
+}: {
+ engine: Engine;
+ /** Say how Fuobe Cinema drives each move (off when a partner model gets the moves in words). */
+ badges?: boolean;
+ /** A civitai key is set (false: a cloud move whose LoRA downloads from civitai runs on its words, so no badge). */
+ civitai?: boolean;
+ selected: string[];
+ onPick: (slug: string) => void;
+ /** What was typed after "#" in the prompt (the list mounts fresh each time the picker opens). */
+ defaultQuery?: string;
+ autoFocus?: boolean;
+}) {
+ const [sort, setSort] = useState<"default" | "name">("default");
+ const [query, setQuery] = useState(defaultQuery ?? "");
+ // The highlighted row (its value, the move's name): controlled, as cmdk only reports it then.
+ const [highlighted, setHighlighted] = useState("");
+ // Whether the keys moved the highlight last. cmdk also highlights the row under the pointer and keeps it after the
+ // pointer leaves the list, so a row the pointer is on plays from the pointer itself (MoveRow's handlers).
+ const [keyed, setKeyed] = useState(false);
+ const box = useRef<HTMLDivElement>(null);
+ const moves = useMemo(() => (sort === "name" ? [...CAMERA_MOVES].sort((a, b) => a.name.localeCompare(b.name)) : CAMERA_MOVES), [sort]);
+ return (
+ <Command
+ loop
+ className="bg-transparent"
+ filter={moveScore}
+ value={highlighted}
+ onValueChange={setHighlighted}
+ onKeyDown={() => setKeyed(true)}
+ onPointerMove={() => setKeyed(false)}
+ >
+ <div className="flex items-center gap-1 pr-1">
+ <div className="min-w-0 flex-1">
+ <CommandInput placeholder="Search camera moves…" value={query} onValueChange={setQuery} autoFocus={autoFocus} />
+ </div>
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <button
+ type="button"
+ onClick={() => setSort((s) => (s === "default" ? "name" : "default"))}
+ className="grid size-8 shrink-0 place-items-center rounded-lg text-muted-foreground hover:bg-accent hover:text-foreground"
+ aria-label={sort === "default" ? "Sort by name" : "Default order"}
+ >
+ {sort === "default" ? <ArrowDownAZ className="size-4" /> : <ListOrdered className="size-4" />}
+ </button>
+ </TooltipTrigger>
+ <TooltipContent>{sort === "default" ? "Sort: Name (A–Z)" : "Sort: Default"}</TooltipContent>
+ </Tooltip>
+ </div>
+ <CoverScrollBox value={box}>
+ <CommandList ref={box} className="max-h-[min(52vh,360px)]">
+ <CommandEmpty>No camera moves match your search</CommandEmpty>
+ <CommandGroup>
+ {moves.map((m) => (
+ <MoveRow
+ key={m.slug}
+ move={m}
+ badge={badges ? routeBadge(m, engine, civitai) : null}
+ order={selected.indexOf(m.slug)}
+ highlighted={keyed && highlighted === m.name}
+ onPick={() => onPick(m.slug)}
+ />
+ ))}
+ </CommandGroup>
+ </CommandList>
+ </CoverScrollBox>
+ </Command>
+ );
+}
diff --git a/src/components/cinema/prompt-bar.tsx b/src/components/cinema/prompt-bar.tsx
index d764b92d..fbd7c80b 100644
--- a/src/components/cinema/prompt-bar.tsx
+++ b/src/components/cinema/prompt-bar.tsx
@@ -68,7 +68,7 @@ import { formatCost } from "@/lib/format";
import { modKey } from "@/lib/keys";
import { cn } from "@/lib/utils";
import { toastError } from "@/lib/refusals";
-import { MoveChips, MovePicker } from "./camera-moves";
+import { MoveChips, MovePicker, prefetchMoves } from "./camera-moves";
import { CameraChip, EmotionChip, FilmSetupChip, LightingChip, PaletteChip } from "./director-panel";
import { directorPicks, draftToInput, type BarAction, type CinemaDraft, type RefItem } from "./draft";
import { useCinemaGenerate } from "./hooks";
@@ -428,7 +428,9 @@ export function PromptBar(props: PromptBarProps) {
}, []);
const onPrompt = (v: string) => {
- // Typing "#" opens the camera-move picker (the # itself doesn't stay in the prompt).
+ // Typing "#" opens the camera-move picker (the # itself doesn't stay in the prompt): its list loads while a
+ // video prompt is typed, so the search box is there for what's typed after the "#".
+ if (video) prefetchMoves();
const el = document.activeElement as HTMLTextAreaElement | null;
const caret = el?.tagName === "TEXTAREA" ? (el.selectionStart ?? v.length) : v.length;
if (video && v.length === draft.prompt.length + 1 && v[caret - 1] === "#" && (caret === 1 || /\s/.test(v[caret - 2]))) {
diff --git a/src/components/cover-tile.tsx b/src/components/cover-tile.tsx
index f0918b2a..162c2a53 100644
--- a/src/components/cover-tile.tsx
+++ b/src/components/cover-tile.tsx
@@ -13,8 +13,8 @@ const playback = createPickerPlayback(browserPlaybackEnv);
/**
* Whether a picker's tile plays its clip, and the handlers to spread on it: hovered with a mouse or focused from the
- * keyboard, after a short rest; `highlighted`, a list's active row (where the device can hover: a list highlights its
- * first row by itself, which on a phone would play unasked); else, while none of those plays, `picked`.
+ * keyboard, after a short rest; `highlighted`, a list's row the arrow keys moved to (where the device can hover);
+ * else, while none of those plays, `picked`. The pointer or focus leaving the picked tile doesn't stop its clip.
*/
export function usePickerPlayback(id: string, { picked = false, highlighted = false } = {}) {
const playing = useSyncExternalStore(
@@ -32,10 +32,10 @@ export function usePickerPlayback(id: string, { picked = false, highlighted = fa
playing,
handlers: {
onPointerEnter: (e: React.PointerEvent) => e.pointerType === "mouse" && playback.play(id),
- onPointerLeave: (e: React.PointerEvent) => e.pointerType === "mouse" && playback.stop(id),
+ onPointerLeave: (e: React.PointerEvent) => e.pointerType === "mouse" && playback.stop(id, picked),
// Keyboard focus only: a tap (or click) focuses the tile too.
onFocus: (e: React.FocusEvent) => e.currentTarget.matches(":focus-visible") && playback.play(id),
- onBlur: () => playback.stop(id),
+ onBlur: () => playback.stop(id, picked),
},
};
}
@@ -75,10 +75,11 @@ function whenNear(el: Element, box: Element, onNear: () => void): () => void {
/**
* A preset's picture in a picker (the camera motion and Mix grids, Cinema Studio's moves, the chips): its real
- * cover, the one its gallery card shows (presetCover), else `fallback`, the drawn tile. The poster loads lazily and
- * the clip goes over it only while `playing` (usePickerPlayback: hovered, keyboard-focused, highlighted or picked,
- * one at a time). `className` gives the box its size or aspect ratio, so nothing shifts while the poster loads. A
- * picked tile is marked on the picture: a check, or its place in an order.
+ * cover, the one its gallery card shows (presetCover), else `fallback`, the drawn tile. The poster's small copy
+ * loads lazily and the clip goes over it only while `playing` (usePickerPlayback: hovered, keyboard-focused,
+ * highlighted or picked, one at a time). `className` gives the box its size or aspect ratio, so nothing shifts while
+ * the poster loads. A picked tile is marked on the picture: a check (the tile says it's picked, aria-pressed), or
+ * its place in an order, which a screen reader reads with the tile's name.
*/
export function CoverTile({
cover,
@@ -106,20 +107,13 @@ export function CoverTile({
}, [near, hasCover, box]);
return (
<span ref={ref} className={cn("relative block shrink-0 overflow-hidden bg-muted", className)}>
- {cover
- ? near && (
- <>
- {/* eslint-disable-next-line @next/next/no-img-element */}
- <img src={cover.poster} alt="" draggable={false} loading="lazy" decoding="async" className="absolute inset-0 size-full object-cover" aria-hidden />
- {/* A cover is drawn as rendered: the scene is only for procedural previews. */}
- {cover.video && playing && <PresetPreview preview={{ ...cover, scene: "portrait" }} hue={0} playing />}
- </>
- )
- : fallback}
+ {/* The galleries' cover: the lazy poster (here its small copy), and the clip over it only while it plays. The
+ scene is only for procedural previews. */}
+ {cover ? near && <PresetPreview preview={{ poster: cover.thumb, video: cover.video, scene: "portrait" }} hue={0} playing={playing} /> : fallback}
{picked !== undefined && picked !== false && (
<span
data-picked=""
- aria-hidden
+ aria-hidden={picked === true || undefined}
className="absolute top-1 right-1 grid size-4 place-items-center rounded-full bg-primary text-[10px] font-semibold text-primary-foreground shadow-sm ring-1 ring-black/15"
>
{picked === true ? <Check className="size-3" strokeWidth={3} /> : picked}
diff --git a/src/components/studio/chip.tsx b/src/components/studio/chip.tsx
index 6f3a6634..97bf24a6 100644
--- a/src/components/studio/chip.tsx
+++ b/src/components/studio/chip.tsx
@@ -23,21 +23,30 @@ export const Chip = forwardRef<HTMLButtonElement, React.ComponentProps<"button">
/**
* A selected chip with its own clear button next to it (a real, focusable button, so the choice
- * can be removed from the keyboard). `children` is the trigger chip.
+ * can be removed from the keyboard). `children` is the trigger chip. It stays in the same wrapper
+ * either way (laid out as if there were none until picked), so a pick doesn't remount it: Mix's
+ * popover stays open after a pick, and its grid and the clip playing in it go on.
*/
export function ClearableChip({ active, onClear, clearLabel, children }: { active: boolean; onClear: () => void; clearLabel: string; children: React.ReactNode }) {
- if (!active) return <>{children}</>;
return (
- <span className="inline-flex shrink-0 items-center rounded-full bg-brand-faint text-brand-text [&>button:first-child]:bg-transparent [&>button:first-child]:pr-1.5 [&>button:first-child:hover]:bg-brand-faint-hover">
+ <span
+ className={
+ active
+ ? "inline-flex shrink-0 items-center rounded-full bg-brand-faint text-brand-text [&>button:first-child]:bg-transparent [&>button:first-child]:pr-1.5 [&>button:first-child:hover]:bg-brand-faint-hover"
+ : "contents"
+ }
+ >
{children}
- <button
- type="button"
- onClick={onClear}
- aria-label={clearLabel}
- className="mr-1 -ml-0.5 grid size-6 place-items-center rounded-full opacity-70 transition outline-none hover:bg-brand-faint-hover hover:opacity-100 focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-ring/50"
- >
- <X className="size-3.5" />
- </button>
+ {active && (
+ <button
+ type="button"
+ onClick={onClear}
+ aria-label={clearLabel}
+ className="mr-1 -ml-0.5 grid size-6 place-items-center rounded-full opacity-70 transition outline-none hover:bg-brand-faint-hover hover:opacity-100 focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-ring/50"
+ >
+ <X className="size-3.5" />
+ </button>
+ )}
</span>
);
}
diff --git a/src/lib/picker-playback.ts b/src/lib/picker-playback.ts
index 4a5b7cbf..7841d0b5 100644
--- a/src/lib/picker-playback.ts
+++ b/src/lib/picker-playback.ts
@@ -5,8 +5,9 @@
* being in view: a picker shows dozens of tiles at once.
*
* The picked tile plays unasked, so not with Save-Data or on 2G, and only once no other tile has played for
- * PICKED_RESUME (moving the pointer from tile to tile doesn't restart it each time). Nothing plays when the user
- * prefers reduced motion.
+ * PICKED_RESUME (moving the pointer from tile to tile doesn't restart it each time). When the pointer or focus
+ * leaves the picked tile itself, or a tile picked while it played, its clip just goes on. Nothing plays when the
+ * user prefers reduced motion.
*
* Pure apart from the environment it's given, so the rules are testable without a browser.
*/
@@ -59,11 +60,15 @@ export function createPickerPlayback(env: Pick<PlaybackEnv, "matches" | "delay"
}, HOVER_INTENT);
pending = { id, cancel };
},
- /** Stop this one, if it's the one playing (or about to); the picked tile plays again after PICKED_RESUME. */
- stop(id: string) {
+ /**
+ * Stop this one, if it's the one playing (or about to); the picked tile plays again after PICKED_RESUME. When this
+ * one is the picked tile (`picked`), it plays on as that, without a gap.
+ */
+ stop(id: string, picked = false) {
if (pending?.id === id) cancelPending();
if (asked === id) {
asked = null;
+ if (picked) resting = true;
notify();
}
if (asked === null && !pending && !resting && !resume)
diff --git a/src/lib/preset-covers.generated.ts b/src/lib/preset-covers.generated.ts
index f948e1ea..8328be77 100644
--- a/src/lib/preset-covers.generated.ts
+++ b/src/lib/preset-covers.generated.ts
@@ -1,7 +1,8 @@
/**
* Which presets have a real cover, for the pickers in the browser (read through presetCover, preset-covers.ts):
* 1 for a clip at /previews/presets/<id>.mp4 with its poster at <id>.jpg, 0 for a still there, or the files of a
- * cover kept elsewhere. The slim side of preset-previews.generated.ts, whose provenance stays on the server.
+ * cover kept elsewhere. Each poster has a small copy for the pickers' tiles in thumbs/ next to it. The slim side
+ * of preset-previews.generated.ts, whose provenance stays on the server.
* Generated with it by pnpm eval:covers: run it again rather than editing.
*/
export type PresetCoverEntry = 0 | 1 | { poster: string; video?: string };
@@ -131,22 +132,22 @@ export const PRESET_COVERS: Record<string, PresetCoverEntry> = {
"app-zoom-out": 0,
"app-zooms": 1,
"effect-acid": 0,
- "effect-act-natural": 0,
+ "effect-act-natural": 1,
"effect-agamemnon": 0,
- "effect-agent-reveal": 0,
+ "effect-agent-reveal": 1,
"effect-air-bending": 0,
"effect-akrill": 0,
- "effect-angel-wings": 0,
- "effect-angry-mode": 0,
- "effect-animalization": 0,
- "effect-aquarium": 0,
- "effect-architecture-wave": 0,
- "effect-atomic": 0,
- "effect-attack-of-clones": 0,
- "effect-ballet": 0,
- "effect-balloon": 0,
- "effect-beach-ride": 0,
- "effect-beast-appearance": 0,
+ "effect-angel-wings": 1,
+ "effect-angry-mode": 1,
+ "effect-animalization": 1,
+ "effect-aquarium": 1,
+ "effect-architecture-wave": 1,
+ "effect-atomic": 1,
+ "effect-attack-of-clones": 1,
+ "effect-ballet": 1,
+ "effect-balloon": 1,
+ "effect-beach-ride": 1,
+ "effect-beast-appearance": 1,
"effect-black-gloss": 0,
"effect-black-tears": 0,
"effect-bleach-bypass": 0,
@@ -157,234 +158,234 @@ export const PRESET_COVERS: Record<string, PresetCoverEntry> = {
"effect-boiling-point": 0,
"effect-broken-mirror": 0,
"effect-bubbles": 0,
- "effect-buddy": 0,
+ "effect-buddy": 1,
"effect-building-explosion": 1,
- "effect-burning-man": 0,
- "effect-cakeify": 0,
+ "effect-burning-man": 1,
+ "effect-cakeify": 1,
"effect-candy-pink": 0,
"effect-cannabis": 0,
"effect-canvas": 0,
- "effect-car-drive": 0,
+ "effect-car-drive": 1,
"effect-car-explosion": 1,
- "effect-censorship": 0,
+ "effect-censorship": 1,
"effect-classic-bw": 0,
- "effect-clone-explosion": 0,
- "effect-clones": 0,
- "effect-clothes-rain": 0,
+ "effect-clone-explosion": 1,
+ "effect-clones": 1,
+ "effect-clothes-rain": 1,
"effect-cold-steel": 0,
"effect-cold-vision": 0,
"effect-color-rain": 0,
- "effect-column-wipe": 0,
+ "effect-column-wipe": 1,
"effect-comic": 0,
"effect-contre-jour": 0,
- "effect-cotton-cloud": 0,
+ "effect-cotton-cloud": 1,
"effect-crimson-vigil": 0,
"effect-crush": 0,
- "effect-crying": 0,
+ "effect-crying": 1,
"effect-cutout": 0,
- "effect-cyborg": 0,
- "effect-cyclope": 0,
- "effect-datamosh": 0,
- "effect-deflate": 0,
- "effect-diamond": 0,
- "effect-dirty-lens": 0,
+ "effect-cyborg": 1,
+ "effect-cyclope": 1,
+ "effect-datamosh": 1,
+ "effect-deflate": 1,
+ "effect-diamond": 1,
+ "effect-dirty-lens": 1,
"effect-disintegration": 0,
- "effect-display-transition": 0,
+ "effect-display-transition": 1,
"effect-dolphin-ride": 0,
- "effect-dream-date": 0,
- "effect-drunk-master": 0,
- "effect-duplicate": 0,
+ "effect-dream-date": 1,
+ "effect-drunk-master": 1,
+ "effect-duplicate": 1,
"effect-earth-element": 1,
"effect-earth-wave": 1,
- "effect-earth-zoom-out": 0,
- "effect-eating": 0,
+ "effect-earth-zoom-out": 1,
+ "effect-eating": 1,
"effect-exploded-view": 0,
- "effect-explosion": 0,
- "effect-fairies-around": 0,
+ "effect-explosion": 1,
+ "effect-fairies-around": 1,
"effect-fairytale-castle": 0,
- "effect-fallen-angel": 0,
+ "effect-fallen-angel": 1,
"effect-film-colors": 0,
- "effect-fire-breath": 0,
+ "effect-fire-breath": 1,
"effect-fire-element": 1,
"effect-firelava": 1,
- "effect-firework": 0,
- "effect-fix-and-pose": 0,
+ "effect-firework": 1,
+ "effect-fix-and-pose": 1,
"effect-flame-on": 1,
- "effect-flame-transition": 0,
+ "effect-flame-transition": 1,
"effect-flash-comic": 0,
- "effect-flashback": 0,
- "effect-floating-fall": 0,
- "effect-floating-fish": 0,
- "effect-flood": 0,
+ "effect-flashback": 1,
+ "effect-floating-fall": 1,
+ "effect-floating-fish": 1,
+ "effect-flood": 1,
"effect-floral-eyes": 0,
"effect-fragments": 0,
"effect-freezing": 1,
"effect-frozen-in-motion": 0,
- "effect-garden-bloom": 0,
- "effect-gas-transformation": 0,
- "effect-giant": 0,
- "effect-giant-grab": 0,
- "effect-giant-people": 0,
- "effect-glitch": 0,
- "effect-glow-trace": 0,
- "effect-glowing-fish": 0,
- "effect-glowshift": 0,
- "effect-gorilla-transfer": 0,
- "effect-group-photo": 0,
- "effect-hair-style": 0,
+ "effect-garden-bloom": 1,
+ "effect-gas-transformation": 1,
+ "effect-giant": 1,
+ "effect-giant-grab": 1,
+ "effect-giant-people": 1,
+ "effect-glitch": 1,
+ "effect-glow-trace": 1,
+ "effect-glowing-fish": 1,
+ "effect-glowshift": 1,
+ "effect-gorilla-transfer": 1,
+ "effect-group-photo": 1,
+ "effect-hair-style": 1,
"effect-hand-paint": 0,
- "effect-hand-transition": 0,
- "effect-handheld-run": 0,
- "effect-happy": 0,
- "effect-happy-mode": 0,
+ "effect-hand-transition": 1,
+ "effect-handheld-run": 1,
+ "effect-happy": 1,
+ "effect-happy-mode": 1,
"effect-head-explosion": 1,
"effect-head-off": 1,
"effect-helicopter-escape": 0,
- "effect-hero-flight": 0,
- "effect-high-flip": 0,
- "effect-hole-transition": 0,
- "effect-horror-face": 0,
+ "effect-hero-flight": 1,
+ "effect-high-flip": 1,
+ "effect-hole-transition": 1,
+ "effect-horror-face": 1,
"effect-hyper-neon": 0,
- "effect-i-can-fly": 0,
- "effect-ice-rose": 0,
- "effect-infinite-clones": 0,
- "effect-inflate": 0,
- "effect-innerlight": 0,
- "effect-invisible": 0,
- "effect-jelly-drift": 0,
- "effect-jump-transition": 0,
+ "effect-i-can-fly": 1,
+ "effect-ice-rose": 1,
+ "effect-infinite-clones": 1,
+ "effect-inflate": 1,
+ "effect-innerlight": 1,
+ "effect-invisible": 1,
+ "effect-jelly-drift": 1,
+ "effect-jump-transition": 1,
"effect-lacewalker": 0,
"effect-lava": 0,
"effect-layer-mixed-media": 0,
"effect-lens-crack": 1,
- "effect-lens-flare": 0,
+ "effect-lens-flare": 1,
"effect-levitation": 1,
"effect-lidar-transition": 0,
"effect-lime-jam": 0,
- "effect-live-concert": 0,
- "effect-look-boom": 0,
+ "effect-live-concert": 1,
+ "effect-look-boom": 1,
"effect-lsd": 0,
- "effect-luminous-gaze": 0,
+ "effect-luminous-gaze": 1,
"effect-magazine": 0,
"effect-marble": 0,
- "effect-medusa-gorgona": 0,
- "effect-melt-transition": 0,
- "effect-melting": 0,
+ "effect-medusa-gorgona": 1,
+ "effect-melt-transition": 1,
+ "effect-melting": 1,
"effect-mighty-fighter": 0,
"effect-modern": 0,
"effect-monet-muse": 0,
- "effect-money-rain": 0,
- "effect-monster-dab": 0,
- "effect-monstrosity": 0,
+ "effect-money-rain": 1,
+ "effect-monster-dab": 1,
+ "effect-monstrosity": 1,
"effect-moonwalk": 0,
- "effect-morning-routine": 0,
- "effect-morphskin": 0,
- "effect-motor-ride": 0,
+ "effect-morning-routine": 1,
+ "effect-morphskin": 1,
+ "effect-motor-ride": 1,
"effect-multiverse": 0,
- "effect-muscle-up": 0,
+ "effect-muscle-up": 1,
"effect-mystification": 0,
"effect-naturalistic-clean": 0,
- "effect-nature-bloom": 0,
+ "effect-nature-bloom": 1,
"effect-noir": 0,
- "effect-northern-lights": 0,
+ "effect-northern-lights": 1,
"effect-nostalgic-blue": 0,
- "effect-objects-around": 0,
+ "effect-objects-around": 1,
"effect-ocean": 0,
- "effect-oni-mask": 0,
+ "effect-oni-mask": 1,
"effect-origami": 0,
- "effect-outfit-check": 0,
- "effect-outfit-switch": 0,
+ "effect-outfit-check": 1,
+ "effect-outfit-switch": 1,
"effect-overexposed": 0,
"effect-overhead-fall": 0,
"effect-overtime": 0,
"effect-paint-splash": 0,
"effect-palette": 0,
- "effect-paparazzi": 0,
+ "effect-paparazzi": 1,
"effect-paper": 0,
"effect-particles": 0,
- "effect-peak-moment": 0,
+ "effect-peak-moment": 1,
"effect-pearl-earring": 0,
"effect-pigeons": 0,
- "effect-pixelated-face": 0,
- "effect-pizza-fall": 0,
- "effect-plasma-explosion": 0,
- "effect-plate-check": 0,
- "effect-point-cloud": 0,
- "effect-polygon": 0,
- "effect-pool-jump": 0,
- "effect-portal": 0,
+ "effect-pixelated-face": 1,
+ "effect-pizza-fall": 1,
+ "effect-plasma-explosion": 1,
+ "effect-plate-check": 1,
+ "effect-point-cloud": 1,
+ "effect-polygon": 1,
+ "effect-pool-jump": 1,
+ "effect-portal": 1,
"effect-powder-explosion": 1,
"effect-practicals": 0,
- "effect-push-to-glass": 0,
+ "effect-push-to-glass": 1,
"effect-random-glow": 0,
- "effect-raven-transition": 0,
- "effect-red-carpet": 0,
- "effect-saint-glow": 0,
- "effect-sakura-petals": 0,
- "effect-sand-cut": 0,
+ "effect-raven-transition": 1,
+ "effect-red-carpet": 1,
+ "effect-saint-glow": 1,
+ "effect-sakura-petals": 1,
+ "effect-sand-cut": 1,
"effect-sand-storm": 1,
- "effect-scrapbook-collage": 0,
- "effect-seamless-transition": 0,
- "effect-selfception": 0,
- "effect-selfie": 0,
+ "effect-scrapbook-collage": 1,
+ "effect-seamless-transition": 1,
+ "effect-selfception": 1,
+ "effect-selfie": 1,
"effect-selfie-outfit": 0,
- "effect-selfie-posing": 0,
+ "effect-selfie-posing": 1,
"effect-set-on-fire": 1,
- "effect-shadow-smoke": 0,
- "effect-shocked": 0,
+ "effect-shadow-smoke": 1,
+ "effect-shocked": 1,
"effect-silhouette": 0,
"effect-skatedog": 0,
"effect-sketch": 0,
- "effect-skin-surge": 0,
- "effect-smash-and-grab": 0,
- "effect-smoke-transition": 0,
+ "effect-skin-surge": 1,
+ "effect-smash-and-grab": 1,
+ "effect-smoke-transition": 1,
"effect-sodium-decay": 0,
"effect-soft-cross": 0,
"effect-soft-palette": 0,
- "effect-soul-jump": 0,
- "effect-spiders-from-mouth": 0,
- "effect-spirit-animal": 0,
- "effect-splash-transition": 0,
- "effect-squish": 0,
- "effect-starship-troopers": 0,
- "effect-static-posing": 0,
- "effect-stop-world": 0,
- "effect-street-colossus": 0,
- "effect-studio-slide": 0,
- "effect-sunglasses": 0,
- "effect-super-fast-run": 0,
- "effect-super-saiyan": 0,
+ "effect-soul-jump": 1,
+ "effect-spiders-from-mouth": 1,
+ "effect-spirit-animal": 1,
+ "effect-splash-transition": 1,
+ "effect-squish": 1,
+ "effect-starship-troopers": 1,
+ "effect-static-posing": 1,
+ "effect-stop-world": 1,
+ "effect-street-colossus": 1,
+ "effect-studio-slide": 1,
+ "effect-sunglasses": 1,
+ "effect-super-fast-run": 1,
+ "effect-super-saiyan": 1,
"effect-superstar": 0,
- "effect-tattoo-animation": 0,
+ "effect-tattoo-animation": 1,
"effect-teal-orange-epic": 0,
- "effect-tentacles": 0,
+ "effect-tentacles": 1,
"effect-thunder-god": 1,
- "effect-tiny-planet": 0,
+ "effect-tiny-planet": 1,
"effect-toxic": 0,
"effect-tracking": 0,
- "effect-train-rush": 0,
- "effect-trucksition": 0,
+ "effect-train-rush": 1,
+ "effect-trucksition": 1,
"effect-turn-into-statue": 0,
"effect-turning-metal": 1,
- "effect-turning-monkey": 0,
+ "effect-turning-monkey": 1,
"effect-two-color": 0,
"effect-ultraviolet": 0,
- "effect-vanish": 0,
+ "effect-vanish": 1,
"effect-vintage": 0,
- "effect-visor-x": 0,
+ "effect-visor-x": 1,
"effect-water-bending": 1,
"effect-water-element": 1,
- "effect-water-splash": 0,
- "effect-werewolf": 0,
- "effect-wild-ride": 0,
+ "effect-water-splash": 1,
+ "effect-werewolf": 1,
+ "effect-wild-ride": 1,
"effect-wind-to-face": 1,
"effect-window": 0,
"effect-windows": 0,
- "effect-wireframe": 0,
- "effect-wonderland": 0,
- "effect-world-morphing": 0,
- "effect-x-ray": 0,
- "effect-yacht": 0,
+ "effect-wireframe": 1,
+ "effect-wonderland": 1,
+ "effect-world-morphing": 1,
+ "effect-x-ray": 1,
+ "effect-yacht": 1,
"motion-360-orbit": 1,
"motion-action-run": 1,
"motion-aerial-pullback": 0,
diff --git a/src/lib/preset-covers.ts b/src/lib/preset-covers.ts
index 0b45b898..36c3624c 100644
--- a/src/lib/preset-covers.ts
+++ b/src/lib/preset-covers.ts
@@ -8,18 +8,30 @@ import type { CameraMove } from "./catalog/cinema";
import { PRESET_COVERS } from "./preset-covers.generated";
export interface PresetCover {
- /** The still (a clip's first frame), shown at rest. */
+ /** The still (a clip's first frame), as the gallery card shows it. */
poster: string;
+ /** The poster's small copy (320 px wide), which a picker's tile shows at rest. */
+ thumb: string;
/** The short muted clip, played only while the tile is hovered, focused or picked. */
video?: string;
}
+/** Where pnpm eval:covers puts a poster's small copy: thumbs/ next to it (scripts/eval/lib/covers.mjs, thumbOf). */
+export const thumbOf = (poster: string) => poster.replace(/\/([^/]+)$/, "/thumbs/$1");
+
+/**
+ * Presets without a cover of their own that show another one, of the same shot: the 3D Rotation motion spins the
+ * subject in place like a product on a turntable, which is the 3D Rotation app's cover.
+ */
+const SAME_SHOT: Record<string, string> = { "motion-3d-rotation": "app-3d-rotation" };
+
export function presetCover(id: string | undefined): PresetCover | undefined {
- if (!id || !Object.hasOwn(PRESET_COVERS, id)) return undefined;
+ if (!id) return undefined;
+ if (!Object.hasOwn(PRESET_COVERS, id)) return Object.hasOwn(SAME_SHOT, id) ? presetCover(SAME_SHOT[id]) : undefined;
const c = PRESET_COVERS[id];
- if (typeof c === "object") return c;
const base = `/previews/presets/${id}`;
- return c ? { poster: `${base}.jpg`, video: `${base}.mp4` } : { poster: `${base}.jpg` };
+ const { poster, video } = typeof c === "object" ? c : { poster: `${base}.jpg`, video: c ? `${base}.mp4` : undefined };
+ return { poster, thumb: thumbOf(poster), ...(video && { video }) };
}
/**
diff --git a/tests/covers-from-masters.test.ts b/tests/covers-from-masters.test.ts
index 12134748..d25fe4fa 100644
--- a/tests/covers-from-masters.test.ts
+++ b/tests/covers-from-masters.test.ts
@@ -90,12 +90,21 @@ describe("covers from masters", () => {
expect(v.streams.map((x: { codec_type: string }) => x.codec_type)).toEqual(["video"]);
expect(Math.max(v.streams[0].width, v.streams[0].height)).toBeLessThanOrEqual(512);
expect(Number(v.format.duration)).toBeLessThanOrEqual(4.1);
+ // Each poster's small copy for the pickers' tiles, in thumbs/ next to it: at most 320 px wide, a fraction of the poster.
+ for (const id of ["app-headshot-generator", "effect-set-on-fire"]) {
+ const t = probe(path.join("thumbs", `${id}.jpg`)).streams[0];
+ expect(t.width, id).toBe(Math.min(320, probe(`${id}.jpg`).streams[0].width));
+ expect(fs.statSync(path.join(out, "thumbs", `${id}.jpg`)).size, id).toBeLessThan(fs.statSync(path.join(out, `${id}.jpg`)).size);
+ }
+ const thumbTime = () => fs.statSync(path.join(out, "thumbs", "effect-set-on-fire.jpg")).mtimeMs;
+ const thumbAt = thumbTime();
// Again: nothing changed, so nothing is encoded; the manifest is the same.
const before = fs.readFileSync(manifest, "utf8");
const again = coversFromMasters(masters, { ...PROVENANCE, publicDir: pub, manifest });
expect(again.covers.every((c) => c.kept)).toBe(true);
expect(fs.readFileSync(manifest, "utf8")).toBe(before);
+ expect(thumbTime()).toBe(thumbAt);
// A preset whose clip goes away becomes a still cover and loses its old clip; --only touches just that id.
fs.rmSync(path.join(masters, "effect-set-on-fire", "clip.mp4"));
@@ -105,11 +114,13 @@ describe("covers from masters", () => {
expect(readManifest(manifest)["effect-set-on-fire"]).toEqual({ poster: "/previews/presets/effect-set-on-fire.jpg", run: "comfyui-previews-test", engine: "comfyui", model: "ideogram4", variant: "lean-json" });
expect(fs.existsSync(path.join(out, "effect-set-on-fire.mp4"))).toBe(false);
expect(readManifest(manifest)["effect-thunder-god"]).toEqual(measured);
+ // Its new poster gets a new small copy.
+ expect(thumbTime()).toBeGreaterThan(thumbAt);
// A master for a preset whose cover a measured run made: kept, and listed, unless --replace.
const dop = path.join(pub, "previews", "dop");
- fs.mkdirSync(dop, { recursive: true });
- for (const ext of ["jpg", "mp4"]) fs.writeFileSync(path.join(dop, `effect-thunder-god.${ext}`), "x");
+ fs.mkdirSync(path.join(dop, "thumbs"), { recursive: true });
+ for (const f of ["effect-thunder-god.jpg", "effect-thunder-god.mp4", "thumbs/effect-thunder-god.jpg"]) fs.writeFileSync(path.join(dop, f), "x");
master(masters, "effect-thunder-god", { "start.png": still() });
const held = coversFromMasters(masters, { ...PROVENANCE, publicDir: pub, manifest, only: ["effect-thunder-god"] });
expect(held.covers).toEqual([]);
@@ -118,7 +129,9 @@ describe("covers from masters", () => {
const replaced = coversFromMasters(masters, { ...PROVENANCE, publicDir: pub, manifest, only: ["effect-thunder-god"], replace: true });
expect(replaced.covers.map((c) => c.key)).toEqual(["effect-thunder-god"]);
expect(readManifest(manifest)["effect-thunder-god"]).toMatchObject({ poster: "/previews/presets/effect-thunder-god.jpg", run: "comfyui-previews-test" });
- expect(fs.readdirSync(dop)).toEqual([]);
+ // The replaced cover's files go, its poster's small copy too.
+ expect(fs.readdirSync(dop, { recursive: true, encoding: "utf8" }).filter((f) => /\.(jpg|mp4)$/.test(f))).toEqual([]);
+ expect(fs.existsSync(path.join(out, "thumbs", "effect-thunder-god.jpg"))).toBe(true);
});
it("reads a missing manifest as empty, and stops at one it can't read rather than write over it", () => {
diff --git a/tests/e2e/picker-covers.mjs b/tests/e2e/picker-covers.mjs
new file mode 100644
index 00000000..319018a5
--- /dev/null
+++ b/tests/e2e/picker-covers.mjs
@@ -0,0 +1,158 @@
+// Picker covers check, in a browser: what the unit tests (tests/picker-covers.test.ts) can't run without one.
+// The camera motion and Mix pickers load small posters only and no clip until a tile plays; a hovered clip stops when
+// the pointer leaves; the picked motion's clip goes on, without a gap or a restart, when the pointer leaves it.
+// Cinema Studio's moves list loads only when shown; a row plays while the pointer rests on it and stops when the
+// pointer leaves the list, and the row the arrow keys move to plays.
+// Usage: node tests/e2e/picker-covers.mjs [appUrl] (app must be running; demo mode is fine).
+// Exits 1 when a check fails. Playwright and Chromium are found as tests/e2e/_browser.mjs says.
+import { DESKTOP, launch } from "./_browser.mjs";
+
+const app = (process.argv.slice(2).find((a) => !a.startsWith("--")) ?? "http://localhost:3000").replace(/\/$/, "");
+const failures = [];
+const check = (label, ok, extra = "") => {
+ console.log(`${ok ? "ok " : "FAIL"} ${label.padEnd(64)}${extra ? ` ${extra}` : ""}`);
+ if (!ok) failures.push(label);
+};
+
+const browser = await launch();
+const page = await (await browser.newContext(DESKTOP)).newPage();
+page.on("pageerror", (e) => check(`no page error (${e.message.split("\n")[0]})`, false));
+
+/** Posters and clips the page fetched, and the scripts with the pickers' covers code in them. */
+const posters = [];
+const clips = [];
+const coverScripts = [];
+page.on("response", async (r) => {
+ const u = new URL(r.url());
+ if (u.pathname.startsWith("/previews/") && u.pathname.endsWith(".jpg")) {
+ const body = await r.body().catch(() => Buffer.alloc(0));
+ posters.push({ path: u.pathname, bytes: body.length });
+ } else if (u.pathname.endsWith(".js")) {
+ // thumbOf's pattern (src/lib/preset-covers.ts): only the pickers' chunks have it.
+ if ((await r.text().catch(() => "")).includes("/thumbs/$1")) coverScripts.push(u.pathname);
+ }
+});
+page.on("request", (r) => {
+ const u = new URL(r.url());
+ if (u.pathname.startsWith("/previews/") && u.pathname.endsWith(".mp4")) clips.push(u.pathname);
+});
+
+/** The clips in an open popover: which file, whether it plays, how far in. */
+const videos = () =>
+ page.evaluate(() =>
+ [...document.querySelectorAll("[data-radix-popper-content-wrapper] video")].map((v) => ({ file: (v.getAttribute("src") ?? "").split("/").pop(), playing: !v.paused, t: v.currentTime })),
+ );
+const until = async (fn, ms) => {
+ for (const end = Date.now() + ms; ; await page.waitForTimeout(40)) {
+ const v = await fn();
+ if (v || Date.now() > end) return v;
+ }
+};
+const playing = (file, ms = 3000) => until(async () => (await videos()).some((v) => v.file === file && v.playing && v.t > 0), ms);
+const away = () => page.mouse.move(4, 450);
+const kb = (list) => Math.round(list.reduce((s, p) => s + p.bytes, 0) / 1024);
+/** Click until `shows` appears: a click before the page hydrates does nothing. */
+const open = async (button, shows) => {
+ for (let i = 0; i < 30 && !(await shows.isVisible().catch(() => false)); i++) {
+ await button.click().catch(() => {});
+ await shows.waitFor({ timeout: 2000 }).catch(() => {});
+ }
+};
+
+let project;
+try {
+ // The camera motion picker (Video studio).
+ await page.goto(`${app}/video`, { waitUntil: "load", timeout: 120_000 });
+ const grid = page.locator('[aria-label="Camera motions"]');
+ const tile = (name) => grid.locator("button[aria-pressed]", { hasText: new RegExp(`^${name}$`) }).first();
+ await page.getByRole("button", { name: "Camera motion" }).waitFor({ timeout: 60_000 });
+ posters.length = 0;
+ await open(page.getByRole("button", { name: "Camera motion" }), tile("Zoom In"));
+ await page.waitForTimeout(1500);
+ const opened = posters.splice(0);
+ check("motion picker: small posters only", opened.length > 0 && opened.every((p) => p.path.startsWith("/previews/presets/thumbs/")), `${opened.length} posters`);
+ check("…well under 300 KB when it opens", kb(opened) < 300, `${kb(opened)} KB`);
+ check("…and no clip until a tile plays", clips.length === 0, clips.join(", "));
+ await tile("Dolly In").hover();
+ check("hovering Dolly In plays its clip", await playing("motion-dolly-in.mp4"));
+ await away();
+ await page.waitForTimeout(250);
+ check("…which goes once the pointer leaves", (await videos()).length === 0, JSON.stringify(await videos()));
+
+ // Picked: it plays when the picker opens again, and goes on when the pointer rests on it and leaves.
+ await tile("Zoom In").click();
+ await page.waitForTimeout(500);
+ if (!(await grid.isVisible().catch(() => false))) await open(page.getByRole("button", { name: "Zoom In", exact: true }).first(), tile("Zoom In"));
+ check("the picked motion plays when the picker opens again", await playing("motion-zoom-in.mp4", 4000));
+ await tile("Zoom In").hover();
+ await page.waitForTimeout(600);
+ await away();
+ const trace = [];
+ for (let i = 0; i < 16; i++) {
+ trace.push((await videos()).find((v) => v.file === "motion-zoom-in.mp4")?.t ?? null);
+ await page.waitForTimeout(40);
+ }
+ // Never back to the poster (null): the clip stays mounted and doesn't start over.
+ check("…and goes on without a gap when the pointer leaves it", trace.every((t) => t !== null), trace.map((t) => (t === null ? "poster" : t.toFixed(2))).join(" "));
+ await page.keyboard.press("Escape");
+
+ // Mix, an effects tab: small posters there too.
+ await page.goto(`${app}/video?preset=motion-crash-zoom-in`, { waitUntil: "load", timeout: 120_000 });
+ const mix = page.locator('[aria-label="Mix"]');
+ await page.getByRole("button", { name: "Mix", exact: true }).waitFor({ timeout: 60_000 });
+ await open(page.getByRole("button", { name: "Mix", exact: true }), mix.locator("button[aria-pressed]").nth(5));
+ await page.waitForTimeout(1500);
+ // Rest on a tile, pick it (Mix stays open), go on to its strength slider: its clip goes on, no gap, no restart.
+ const dolly = mix.locator("button[aria-pressed]", { hasText: /^Dolly In$/ }).first();
+ await dolly.hover();
+ await playing("motion-dolly-in.mp4");
+ await dolly.click();
+ await page.getByRole("slider", { name: "Dolly In strength" }).hover();
+ const picked = [];
+ for (let i = 0; i < 16; i++) {
+ picked.push((await videos()).find((v) => v.file === "motion-dolly-in.mp4")?.t ?? null);
+ await page.waitForTimeout(40);
+ }
+ check("Mix: a tile picked while it plays goes on when the pointer leaves", picked.every((t) => t !== null), picked.map((t) => (t === null ? "poster" : t.toFixed(2))).join(" "));
+ posters.length = 0;
+ await mix.getByRole("tab", { name: "Color Grade" }).click();
+ await page.waitForTimeout(2000);
+ const tab = posters.splice(0);
+ check("Mix, Color Grade tab: small posters only, well under 300 KB", tab.length > 0 && tab.every((p) => p.path.includes("/thumbs/")) && kb(tab) < 300, `${tab.length} posters, ${kb(tab)} KB`);
+ await page.keyboard.press("Escape");
+
+ // Cinema Studio's moves.
+ const res = await page.request.fetch(`${app}/api/cinema/projects`, { method: "POST", headers: { "Content-Type": "application/json" }, data: JSON.stringify({ name: "Picker covers check" }) });
+ project = await res.json();
+ coverScripts.length = 0;
+ await page.goto(`${app}/cinema/${project.id}`, { waitUntil: "load", timeout: 120_000 });
+ await page.waitForSelector("text=Your first shot", { timeout: 120_000 });
+ await page.waitForTimeout(1500);
+ check("Cinema loads no covers code before the moves list shows", coverScripts.length === 0, coverScripts.join(", "));
+ await open(page.getByRole("radiogroup", { name: "Mode" }).getByRole("radio", { name: "Video" }), page.getByRole("button", { name: "Add a camera move" }));
+ const row = (name) => page.locator("[cmdk-item]", { hasText: name }).first();
+ await open(page.getByRole("button", { name: "Add a camera move" }), row("Tilt Up"));
+ await page.waitForTimeout(800);
+ check("…and loads it with the list", coverScripts.length > 0);
+ check("the moves list shows small posters", (await page.locator("[cmdk-list] img").count()) > 0 && (await page.locator("[cmdk-list] img").first().getAttribute("src"))?.includes("/thumbs/"));
+ check("…and plays nothing on opening", !(await videos()).some((v) => v.playing));
+ await row("Tilt Up").hover();
+ check("hovering Tilt Up plays its clip", await playing("motion-tilt-up.mp4"));
+ await away();
+ await page.waitForTimeout(300);
+ check("…which stops once the pointer leaves the list", !(await videos()).some((v) => v.playing), JSON.stringify(await videos()));
+ // The arrow keys: the highlighted row plays.
+ await page.getByPlaceholder("Search camera moves…").fill("tilt down");
+ await page.keyboard.press("ArrowDown");
+ await page.keyboard.press("ArrowUp");
+ check("the row the arrow keys move to plays", await playing("motion-tilt-down.mp4"));
+ await page.keyboard.press("Escape");
+} catch (e) {
+ check(`ran to the end (${e.message.split("\n")[0]})`, false);
+} finally {
+ if (project?.id) await page.request.fetch(`${app}/api/cinema/projects/${project.id}`, { method: "DELETE" }).catch(() => {});
+ await browser.close();
+}
+
+console.log(failures.length ? `\n${failures.length} failed` : "\nall passed");
+process.exit(failures.length ? 1 : 0);
diff --git a/tests/picker-covers.test.ts b/tests/picker-covers.test.ts
index 16047b8c..89c19483 100644
--- a/tests/picker-covers.test.ts
+++ b/tests/picker-covers.test.ts
@@ -1,21 +1,29 @@
+import fs from "node:fs";
+import path from "node:path";
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { createElement } from "react";
import { renderToStaticMarkup } from "react-dom/server";
import { describe, expect, it } from "vitest";
-import { MoveList } from "@/components/cinema/camera-moves";
+import { MoveList } from "@/components/cinema/move-list";
import { CoverTile } from "@/components/cover-tile";
-import { PresetGrid } from "@/components/studio/preset-chips";
+import { CatalogProvider } from "@/components/studio/catalog";
+import { ClearableChip } from "@/components/studio/chip";
+import { MixChip, PresetChip, PresetGrid } from "@/components/studio/preset-chips";
+import type { StudioConfig } from "@/components/studio/studio-context";
import { TooltipProvider } from "@/components/ui/tooltip";
-import { EFFECTS, MOTIONS } from "@/lib/catalog";
+import { APPS, EFFECTS, MOTIONS } from "@/lib/catalog";
import { CAMERA_MOVES } from "@/lib/catalog/cinema";
import type { Preset } from "@/lib/catalog/types";
import { createPickerPlayback, PICKED_RESUME } from "@/lib/picker-playback";
-import { moveCover, presetCover } from "@/lib/preset-covers";
+import { moveCover, presetCover, thumbOf } from "@/lib/preset-covers";
+import { PRESET_COVERS } from "@/lib/preset-covers.generated";
import { PRESET_PREVIEWS } from "@/lib/preset-previews.generated";
import { HOVER_INTENT } from "@/lib/preview-playback";
+import type { StudioCatalog } from "@/lib/studio-catalog";
/*
* The pickers show the same real covers as the galleries (the camera motion and Mix grids, Cinema Studio's moves),
- * rendered on the server as they first paint: posters only, every clip waits for a hover, focus or pick.
+ * rendered on the server as they first paint: small posters only, every clip waits for a hover, focus or pick.
*/
const grid = (list: Preset[], value?: string) => renderToStaticMarkup(createElement(PresetGrid, { list, value, noneLabel: "None", onPick: () => {} }));
@@ -25,23 +33,24 @@ const tiles = (html: string) =>
.split("<button")
.slice(1)
.filter((b) => !b.includes('role="tab"'));
-const covered = (list: Preset[]) => list.filter((p) => PRESET_PREVIEWS[p.id]);
+const covered = (list: Preset[]) => list.filter((p) => presetCover(p.id));
const count = (html: string, s: string) => html.split(s).length - 1;
const mixable = [...MOTIONS, ...EFFECTS].filter((p) => !p.inputs.some((i) => i.key === "endImage"));
+const motion = (id: string) => MOTIONS.find((p) => p.id === id)!;
describe("the camera motion picker", () => {
const html = grid(MOTIONS);
const all = tiles(html);
const tile = (p: Preset) => all.find((t) => t.includes(`>${p.name.replaceAll("&", "&amp;").replaceAll("'", "&#x27;")}</span>`))!;
- it("shows every motion's cover where it has one, as a lazy poster; the others and None keep their drawn tile", () => {
+ it("shows every motion's cover where it has one, as a small lazy poster; the others and None keep their drawn tile", () => {
expect(all).toHaveLength(MOTIONS.length + 1);
for (const p of MOTIONS) {
const t = tile(p);
expect(t, p.id).toBeDefined();
- const cover = PRESET_PREVIEWS[p.id];
+ const cover = presetCover(p.id);
if (cover) {
- expect(t, p.id).toContain(`src="${cover.poster}"`);
+ expect(t, p.id).toContain(`src="${cover.thumb}"`);
expect(t, p.id).toMatch(/<img[^>]*loading="lazy"[^>]*decoding="async"/);
expect(t, p.id).not.toContain("linear-gradient");
} else {
@@ -58,8 +67,15 @@ describe("the camera motion picker", () => {
});
it("never borrows another move's cover: Dolly Zoom Out isn't shown with Dolly Zoom In's opposite move", () => {
- const out = MOTIONS.find((p) => p.id === "motion-dolly-zoom-out")!;
- expect(tile(out)).not.toContain("motion-dolly-zoom-in");
+ expect(tile(motion("motion-dolly-zoom-out"))).not.toContain("motion-dolly-zoom-in");
+ expect(presetCover("motion-dolly-zoom-out")).toBeUndefined();
+ });
+
+ it("shows 3D Rotation with the 3D Rotation app's cover, the same turntable shot", () => {
+ const t = tile(motion("motion-3d-rotation"));
+ expect(t).toContain('src="/previews/presets/thumbs/app-3d-rotation.jpg"');
+ expect(t).not.toContain("linear-gradient");
+ expect(presetCover("motion-3d-rotation")).toEqual(presetCover("app-3d-rotation"));
});
it("loads no clip until one is hovered, focused or picked", () => {
@@ -68,43 +84,81 @@ describe("the camera motion picker", () => {
});
it("marks the picked motion on its picture, and only that one", () => {
- const picked = covered(MOTIONS).find((p) => PRESET_PREVIEWS[p.id].video)!;
+ const picked = covered(MOTIONS).find((p) => presetCover(p.id)!.video)!;
const html = grid(MOTIONS, picked.id);
const marked = tiles(html).filter((t) => t.includes('aria-pressed="true"'));
expect(marked).toHaveLength(1);
- expect(marked[0]).toContain(`src="${PRESET_PREVIEWS[picked.id].poster}"`);
+ expect(marked[0]).toContain(`src="${presetCover(picked.id)!.thumb}"`);
expect(marked[0]).toContain('data-picked=""');
expect(count(html, "data-picked")).toBe(1);
});
});
describe("the Mix picker", () => {
- it("shows the cover of every motion and effect that has one, posters only", () => {
+ it("shows the cover of every motion and effect that has one, small posters only", () => {
const html = grid(mixable);
- for (const p of covered(mixable)) expect(html, p.id).toContain(`src="${PRESET_PREVIEWS[p.id].poster}"`);
+ for (const p of covered(mixable)) expect(html, p.id).toContain(`src="${presetCover(p.id)!.thumb}"`);
expect(count(html, "<img")).toBe(covered(mixable).length);
expect(count(html, "linear-gradient")).toBe(mixable.length - covered(mixable).length);
expect(html).not.toContain("<video");
});
});
+/** A JPEG's width and height, from its first frame header. */
+function jpegSize(buf: Buffer): { width: number; height: number } {
+ for (let i = 2; i < buf.length; ) {
+ const marker = buf[i + 1];
+ const len = buf.readUInt16BE(i + 2);
+ if (marker >= 0xc0 && marker <= 0xcf && ![0xc4, 0xc8, 0xcc].includes(marker)) return { height: buf.readUInt16BE(i + 5), width: buf.readUInt16BE(i + 7) };
+ i += 2 + len;
+ }
+ throw new Error("no frame header");
+}
+
+describe("the pickers' small posters", () => {
+ const pub = path.join(process.cwd(), "public");
+ const file = (url: string) => path.join(pub, ...url.split("/").filter(Boolean));
+
+ it("are each poster at most 320 px wide, in thumbs/ next to it, a fraction of its size", () => {
+ let total = 0;
+ for (const id of Object.keys(PRESET_COVERS)) {
+ const cover = presetCover(id)!;
+ expect(cover.thumb, id).toBe(thumbOf(cover.poster));
+ expect(cover.thumb, id).toBe(cover.poster.replace(/\/([^/]+)$/, "/thumbs/$1"));
+ const thumb = fs.readFileSync(file(cover.thumb));
+ const { width } = jpegSize(thumb);
+ expect(width, id).toBeLessThanOrEqual(320);
+ expect(width, id).toBeGreaterThanOrEqual(Math.min(320, jpegSize(fs.readFileSync(file(cover.poster))).width));
+ expect(thumb.length, id).toBeLessThan(fs.statSync(file(cover.poster)).size);
+ total += thumb.length;
+ }
+ // About 12 KB each where the posters are 40 to 70: a tab of 16 tiles is about 200 KB, not 1.3 MB.
+ expect(total / Object.keys(PRESET_COVERS).length).toBeLessThan(16_000);
+ });
+});
+
describe("the cover tile", () => {
- const clip = { poster: "/previews/presets/motion-zoom-in.jpg", video: "/previews/presets/motion-zoom-in.mp4" };
+ const clip = { poster: "/previews/presets/motion-zoom-in.jpg", thumb: "/previews/presets/thumbs/motion-zoom-in.jpg", video: "/previews/presets/motion-zoom-in.mp4" };
const tile = (props: Partial<React.ComponentProps<typeof CoverTile>>) =>
renderToStaticMarkup(createElement(CoverTile, { cover: clip, playing: false, className: "aspect-video", ...props }));
- it("shows the poster at rest, lazily, filling its box without shifting anything", () => {
+ it("shows the small poster at rest, lazily, filling its box without shifting anything", () => {
const html = tile({});
expect(html).toMatch(/<span class="[^"]*relative[^"]*aspect-video[^"]*"/);
- expect(html).toMatch(/<img [^>]*src="\/previews\/presets\/motion-zoom-in\.jpg"/);
+ expect(html).toMatch(/<img [^>]*src="\/previews\/presets\/thumbs\/motion-zoom-in\.jpg"/);
expect(html).toMatch(/loading="lazy"/);
expect(html).toMatch(/class="absolute inset-0 size-full object-cover"/);
expect(html).not.toContain("<video");
+ expect(html).not.toContain(clip.poster);
});
- it("adds the clip only while it plays, and never for a cover that is a still", () => {
- expect(tile({ playing: true })).toMatch(/<video [^>]*src="\/previews\/presets\/motion-zoom-in\.mp4"/);
- expect(tile({ playing: true, cover: { poster: clip.poster } })).not.toContain("<video");
+ it("adds the clip only while it plays, over the same small poster, and never for a cover that is a still", () => {
+ // The galleries' clip player (PresetPreview's Clip), which sets its source once mounted in the browser.
+ const playing = tile({ playing: true });
+ expect(count(playing, "<video")).toBe(1);
+ expect(playing).toMatch(/<img [^>]*src="\/previews\/presets\/thumbs\/motion-zoom-in\.jpg"[^>]*>(<!-- -->)?<video /);
+ expect(playing).not.toContain(clip.poster);
+ expect(tile({ playing: true, cover: { poster: clip.poster, thumb: clip.thumb } })).not.toContain("<video");
});
it("draws the fallback when there is no cover", () => {
@@ -114,10 +168,54 @@ describe("the cover tile", () => {
expect(html).not.toContain("<video");
});
- it("marks a picked tile with a check, or with its place in an order", () => {
+ it("marks a picked tile with a check, or with its place in an order, which a screen reader reads", () => {
expect(tile({})).not.toContain("data-picked");
- expect(tile({ picked: true })).toMatch(/data-picked=""[^>]*>.*<svg/);
- expect(tile({ picked: 2 })).toMatch(/data-picked=""[^>]*>2</);
+ expect(tile({ picked: true })).toMatch(/data-picked=""[^>]*aria-hidden="true"[^>]*>.*<svg/);
+ expect(tile({ picked: 2 })).toMatch(/<span data-picked=""(?![^>]*aria-hidden)[^>]*>2</);
+ });
+});
+
+describe("the camera motion and Mix chips", () => {
+ const config = (preset: Preset) => ({ feature: "video", kind: "video", ops: [], slots: [], preset }) as unknown as StudioConfig;
+ const render = (preset: Preset, chip: React.ReactElement) =>
+ renderToStaticMarkup(
+ createElement(
+ QueryClientProvider,
+ { client: new QueryClient() },
+ createElement(CatalogProvider, { catalog: { models: [], lookup: [] } as unknown as StudioCatalog, config: config(preset) } as React.ComponentProps<typeof CatalogProvider>, chip),
+ ),
+ );
+ /** The chip itself (the popover's trigger), not its clear button. */
+ const trigger = (html: string) => html.split("<button")[1];
+ const bare = motion("motion-dolly-zoom-out");
+ const zoom = motion("motion-zoom-in");
+
+ it("show the picked motion's small poster in place of its icon, and the icon when it has no cover", () => {
+ const withCover = trigger(render(zoom, createElement(PresetChip, { type: "motion", value: zoom.id, onChange: () => {} })));
+ expect(withCover).toContain(`src="${presetCover(zoom.id)!.thumb}"`);
+ expect(withCover).not.toContain("<svg");
+ expect(withCover).toContain(">Zoom In</button>");
+ const without = trigger(render(bare, createElement(PresetChip, { type: "motion", value: bare.id, onChange: () => {} })));
+ expect(without).not.toContain("<img");
+ expect(without).toContain("<svg");
+ });
+
+ it("show the mixed preset's small poster in place of the Mix icon", () => {
+ const mix = (second: Preset) =>
+ trigger(render(second, createElement(MixChip, { primary: motion("motion-crash-zoom-in"), strength: 0.8, mix: { presetId: second.id, strength: 0.6 }, onChange: () => {} })));
+ expect(mix(zoom)).toContain(`src="${presetCover(zoom.id)!.thumb}"`);
+ expect(mix(zoom)).not.toContain("<svg");
+ expect(mix(bare)).not.toContain("<img");
+ expect(mix(bare)).toContain("lucide-shuffle");
+ });
+
+ it("keep the chip where it is when a pick makes it clearable, so an open Mix doesn't remount and restart the clip", () => {
+ // React keeps a subtree only while the elements above it stay the same: the chip sits in the same wrapper,
+ // first, with or without its clear button.
+ const chip = (active: boolean) =>
+ renderToStaticMarkup(createElement(ClearableChip, { active, onClear: () => {}, clearLabel: "Remove the mix" } as React.ComponentProps<typeof ClearableChip>, createElement("i")));
+ expect(chip(false)).toMatch(/^<span class="contents"><i><\/i><\/span>$/);
+ expect(chip(true)).toMatch(/^<span class="[^"]*inline-flex[^"]*"><i><\/i><button [^>]*aria-label="Remove the mix"/);
});
});
@@ -132,18 +230,27 @@ describe("Cinema Studio's camera moves", () => {
expect(CAMERA_MOVES.filter((m) => moveCover(m)).length).toBeGreaterThan(30);
});
- it("list them with their poster, and the order number on it once picked", () => {
+ it("list them with their small poster, and the order number on it once picked, read out with the move", () => {
const html = renderToStaticMarkup(createElement(TooltipProvider, null, createElement(MoveList, { engine: "open", selected: ["dolly-in"], onPick: () => {} })));
const rows = html.split('cmdk-item=""').slice(1);
expect(rows).toHaveLength(CAMERA_MOVES.length);
for (const m of CAMERA_MOVES) {
const row = rows.find((r) => r.includes(`>${m.name}<`))!;
const cover = moveCover(m);
- if (cover) expect(row, m.slug).toContain(`src="${cover.poster}"`);
+ if (cover) expect(row, m.slug).toContain(`src="${cover.thumb}"`);
else expect(row, m.slug).not.toContain("<img");
}
expect(html).not.toContain("<video");
- expect(rows.find((r) => r.includes(">Dolly In<"))).toMatch(/data-picked=""[^>]*>1</);
+ const dolly = rows.find((r) => r.includes(">Dolly In<"))!;
+ // The number is in no aria-hidden element: the row's name starts with it, as before the covers.
+ expect(dolly).toMatch(/<span data-picked=""(?![^>]*aria-hidden)[^>]*>1<\/span>/);
+ });
+});
+
+describe("which covers the pickers borrow", () => {
+ it("only 3D Rotation's, from the app that films the same turntable shot", () => {
+ const borrowed = [...APPS, ...MOTIONS, ...EFFECTS].filter((p) => !PRESET_PREVIEWS[p.id] && presetCover(p.id)).map((p) => p.id);
+ expect(borrowed).toEqual(["motion-3d-rotation"]);
});
});
@@ -207,17 +314,36 @@ describe("which picker tile plays", () => {
expect(p.plays("picked", true)).toBe(true);
});
- it("keeps the picked tile playing while the pointer rests on it", () => {
+ it("keeps the picked tile's clip going while the pointer rests on it and after it leaves: no gap, no restart", () => {
const { env, advance } = fakeEnv();
const p = createPickerPlayback(env);
p.play("picked");
advance(HOVER_INTENT);
expect(p.plays("picked", true)).toBe(true);
- p.stop("picked");
+ // The pointer (or keyboard focus) leaves the picked tile: it plays on at once, so its clip isn't remounted.
+ p.stop("picked", true);
+ expect(p.plays("picked", true)).toBe(true);
+ advance(PICKED_RESUME);
+ expect(p.plays("picked", true)).toBe(true);
+ // Another tile still takes over once the pointer rests on it, and gives the picked one back after.
+ p.play("other");
+ advance(HOVER_INTENT);
+ expect([p.plays("picked", true), p.plays("other")]).toEqual([false, true]);
+ p.stop("other");
advance(PICKED_RESUME);
expect(p.plays("picked", true)).toBe(true);
});
+ it("keeps a tile playing that was picked while it played, when the pointer goes on to the strength slider", () => {
+ const { env, advance } = fakeEnv();
+ const p = createPickerPlayback(env);
+ p.play("a");
+ advance(HOVER_INTENT);
+ // Clicked: "a" is the picked tile now (Mix stays open after a pick), and the pointer leaves it.
+ p.stop("a", true);
+ expect(p.plays("a", true)).toBe(true);
+ });
+
it("plays one tile at a time, the last one asked for", () => {
const { env, advance } = fakeEnv();
const p = createPickerPlayback(env);
diff --git a/tests/preset-covers.test.ts b/tests/preset-covers.test.ts
index 68df2ac2..1a7c679e 100644
--- a/tests/preset-covers.test.ts
+++ b/tests/preset-covers.test.ts
@@ -6,7 +6,7 @@ import { APPS, EFFECTS, MOTIONS } from "@/lib/catalog";
import { SOUL_LOOK_CARDS } from "@/lib/catalog/soul-looks.generated";
import { toPresetCard } from "@/lib/preset-card-data";
import { isCover } from "@/lib/preset-cards";
-import { presetCover } from "@/lib/preset-covers";
+import { presetCover, thumbOf } from "@/lib/preset-covers";
import { PRESET_COVERS } from "@/lib/preset-covers.generated";
import { PRESET_PREVIEWS } from "@/lib/preset-previews.generated";
@@ -39,8 +39,8 @@ describe("the preset covers manifest", () => {
}
});
- it("leaves no cover file in public/previews that no entry names", () => {
- const named = new Set(entries.flatMap(([, e]) => [e.poster, e.video].filter(Boolean)));
+ it("leaves no cover file in public/previews that no entry names (with its poster's small copy for the pickers)", () => {
+ const named = new Set(entries.flatMap(([, e]) => [e.poster, thumbOf(e.poster), e.video].filter(Boolean)));
const dir = path.join(root, "public", "previews");
const files = fs.existsSync(dir) ? fs.readdirSync(dir, { recursive: true, encoding: "utf8" }).filter((f) => /\.(jpg|mp4)$/.test(f)) : [];
const orphans = files.map((f) => `/previews/${f.replaceAll("\\", "/")}`).filter((u) => !named.has(u));
@@ -62,8 +62,9 @@ describe("the preset covers manifest", () => {
it("gives the pickers every cover through the slim map, with the same files, and nothing else", () => {
// Written with the manifest by pnpm eval:covers (scripts/eval/lib/covers.mjs): a manifest changed without it fails here.
expect(Object.keys(PRESET_COVERS)).toEqual(entries.map(([k]) => k));
- for (const [id, e] of entries) expect(presetCover(id), id).toEqual({ poster: e.poster, ...(e.video && { video: e.video }) });
- for (const p of [...APPS, ...MOTIONS, ...EFFECTS]) if (!PRESET_PREVIEWS[p.id]) expect(presetCover(p.id), p.id).toBeUndefined();
+ for (const [id, e] of entries) expect(presetCover(id), id).toEqual({ poster: e.poster, thumb: thumbOf(e.poster), ...(e.video && { video: e.video }) });
+ // Save 3D Rotation, which shows the 3D Rotation app's turntable shot (tests/picker-covers.test.ts).
+ for (const p of [...APPS, ...MOTIONS, ...EFFECTS]) if (!PRESET_PREVIEWS[p.id] && p.id !== "motion-3d-rotation") expect(presetCover(p.id), p.id).toBeUndefined();
for (const id of [undefined, "", "toString", "constructor", "__proto__"]) expect(presetCover(id), String(id)).toBeUndefined();
});
@@ -72,11 +73,14 @@ describe("the preset covers manifest", () => {
// home's, shorts' and mixed media's chunks, so importing the manifest there (or preset-card-data.ts,
// which does) would ship it to all of them. A new importer belongs here only if it's a server page
// or loaded on its own (next/dynamic), like the preset header.
+ const sources = fs
+ .readdirSync(path.join(root, "src"), { recursive: true, encoding: "utf8" })
+ .filter((f) => /\.tsx?$/.test(f))
+ .map((f) => ({ file: f.replaceAll("\\", "/"), text: fs.readFileSync(path.join(root, "src", f), "utf8") }));
const importers = (spec: RegExp) =>
- fs
- .readdirSync(path.join(root, "src"), { recursive: true, encoding: "utf8" })
- .filter((f) => /\.tsx?$/.test(f) && spec.test(fs.readFileSync(path.join(root, "src", f), "utf8")))
- .map((f) => f.replaceAll("\\", "/"))
+ sources
+ .filter((s) => spec.test(s.text))
+ .map((s) => s.file)
.sort();
expect(importers(/from "[^"]*preset-previews\.generated"/)).toEqual(["lib/preset-card-data.ts"]);
expect(importers(/from "[^"]*preset-card-data"/)).toEqual([
@@ -86,13 +90,17 @@ describe("the preset covers manifest", () => {
"app/(studio)/page.tsx",
"components/preset-header.tsx",
]);
- // The slim map (which presets have a cover, and a clip: a few KB) is for the pickers, each in its studio's code:
- // the camera motion and Mix pickers (their own chunk, next/dynamic in composer.tsx) and Cinema Studio's moves.
+ // The slim map (which presets have a cover, and a clip: a few KB) is for the pickers, each in its own chunk: the
+ // camera motion and Mix pickers (next/dynamic in composer.tsx) and Cinema Studio's moves (next/dynamic in
+ // camera-moves.tsx, loaded when the "#" picker or the Director panel's Movement tab shows them).
expect(importers(/from "[^"]*preset-covers\.generated"/)).toEqual(["lib/preset-covers.ts"]);
// (A type is no code: the cover tile takes a cover without importing the map.)
- expect(importers(/^import (?!type )[^;]*from "[^"]*preset-covers";/m)).toEqual(["components/cinema/camera-moves.tsx", "components/studio/preset-chips.tsx"]);
+ expect(importers(/^import (?!type )[^;]*from "[^"]*preset-covers";/m)).toEqual(["components/cinema/move-list.tsx", "components/studio/preset-chips.tsx"]);
const composer = fs.readFileSync(path.join(root, "src", "components", "studio", "composer.tsx"), "utf8");
expect(composer).toMatch(/dynamic\(\(\) => import\("\.\/preset-chips"\)/);
+ expect(importers(/from "[^"]*\/move-list"/)).toEqual([]);
+ const moves = fs.readFileSync(path.join(root, "src", "components", "cinema", "camera-moves.tsx"), "utf8");
+ expect(moves).toMatch(/dynamic\(\(\) => import\("\.\/move-list"\)/);
const header = fs.readFileSync(path.join(root, "src", "components", "studio", "studio-page.tsx"), "utf8");
expect(header).toMatch(/dynamic\(\(\) => import\("@\/components\/preset-header"\)/);
});