feat(asset): show poster and hover preview while video is transcoding (#419)

* feat(asset): show poster and hover preview while video is transcoding

Generate and persist the sprite (and its poster) before the proxy
transcodes run, so the poster/sprite are available in the file list
while the asset is still processing.

Render the preview in the file card behind a translucent processing
overlay instead of a blank skeleton, and replace hardcoded status text
with existing i18n keys.

* feat(asset): pulse the cover and show Preparing/Uploading labels while processing

Drop the processing text overlay on the file card preview in favour of a
subtle pulsing opacity on the cover, and show "Uploading..."/"Preparing..."
in the creator row so the real author and date only appear once the asset
is ready.

* feat(asset): use a hollow ring for the preparing placeholder

Match the geometry of the upload progress ring (empty inside, no
percentage) and hide the duration badge while processing, so the
upload-to-processing transition reads as one continuous animation.

* style(asset): shrink-only preparing ring in muted grey at fixed opacity

Animate only the ring size (1 -> 0.8 -> 1) and hold a constant 0.6
opacity, using a muted grey stroke instead of primary.
This commit is contained in:
Yiling-J
2026-09-19 15:25:41 +08:00
committed by GitHub
parent 09b65a1eb6
commit de634a5dc5
10 changed files with 398 additions and 84 deletions
+11
View File
@@ -114,9 +114,20 @@
--color-sidebar-ring: var(--sidebar-ring);
--animate-upload-breathing: upload-breathing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
--animate-preparing-breathe: preparing-breathe 1.6s ease-in-out infinite;
--animate-drift-slow: drift-slow 15s ease-in-out infinite alternate;
--animate-drift-medium: drift-medium 12s ease-in-out infinite alternate;
@keyframes preparing-breathe {
0%,
100% {
transform: scale(1);
}
50% {
transform: scale(0.8);
}
}
@keyframes upload-breathing {
0% {
filter: drop-shadow(0 0 1px rgb(var(--primary)));