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.

People pickers: Continue on the picked card, bar kept under the grid; three more covers

Adarshf9aa6cb684cc
diff --git a/public/previews/templates/photodump/cool-girl-dump-4.jpg b/public/previews/templates/photodump/cool-girl-dump-4.jpg
index 97aac8b8..8ced3348 100644
Binary files a/public/previews/templates/photodump/cool-girl-dump-4.jpg and b/public/previews/templates/photodump/cool-girl-dump-4.jpg differ
diff --git a/public/previews/templates/photodump/thumbs/cool-girl-dump-4.jpg b/public/previews/templates/photodump/thumbs/cool-girl-dump-4.jpg
index 6588ca62..c162043e 100644
Binary files a/public/previews/templates/photodump/thumbs/cool-girl-dump-4.jpg and b/public/previews/templates/photodump/thumbs/cool-girl-dump-4.jpg differ
diff --git a/public/previews/templates/soul/thumbs/v2-old-smartphone.jpg b/public/previews/templates/soul/thumbs/v2-old-smartphone.jpg
new file mode 100644
index 00000000..1865db99
Binary files /dev/null and b/public/previews/templates/soul/thumbs/v2-old-smartphone.jpg differ
diff --git a/public/previews/templates/soul/thumbs/v2-warm-ambient.jpg b/public/previews/templates/soul/thumbs/v2-warm-ambient.jpg
new file mode 100644
index 00000000..9a42d618
Binary files /dev/null and b/public/previews/templates/soul/thumbs/v2-warm-ambient.jpg differ
diff --git a/public/previews/templates/soul/v2-old-smartphone.jpg b/public/previews/templates/soul/v2-old-smartphone.jpg
new file mode 100644
index 00000000..87e456c6
Binary files /dev/null and b/public/previews/templates/soul/v2-old-smartphone.jpg differ
diff --git a/public/previews/templates/soul/v2-warm-ambient.jpg b/public/previews/templates/soul/v2-warm-ambient.jpg
new file mode 100644
index 00000000..a6e24b1d
Binary files /dev/null and b/public/previews/templates/soul/v2-warm-ambient.jpg differ
diff --git a/src/components/fashion/fashion-view.tsx b/src/components/fashion/fashion-view.tsx
index afae5792..7eb42d42 100644
--- a/src/components/fashion/fashion-view.tsx
+++ b/src/components/fashion/fashion-view.tsx
@@ -11,7 +11,7 @@ import type { SlotValue } from "@/components/studio/media-slot";
import { radioKeys, radioTab } from "@/components/studio/radio-keys";
import { DownloadAll, ResultsGrid } from "@/components/photodump/results";
import { useRun, useRunPreview } from "@/components/photodump/hooks";
-import { barPlace, CLEAR_OF_BAR, showPicked } from "@/components/photodump/clear-of-bar";
+import { CLEAR_OF_BAR, PICKED_GO, PICKER_BAR, showPicked } from "@/components/photodump/clear-of-bar";
import { RunLine, Steps } from "@/components/photodump/steps";
import { CharacterPicker } from "@/components/photodump/subject";
import { UploadBox } from "@/components/photodump/upload-box";
@@ -83,6 +83,7 @@ export function FashionView() {
if (msg) toast(msg, { id: "fashion-blocker" });
return !!msg;
};
+ const goOn = () => !block(fashionBlocker(s)) && dispatch({ type: "next" });
const startBase = () => {
if (block(fashionBlocker(s)) || !baseBody) return;
base.mutate(baseBody, {
@@ -132,13 +133,18 @@ export function FashionView() {
{FASHION.map((x) => {
const sel = x.id === s.templateId;
return (
- <div key={x.id} data-picker-card className={cn("min-w-0", CLEAR_OF_BAR)}>
+ <div key={x.id} data-picker-card className={cn("relative min-w-0", CLEAR_OF_BAR)}>
<div
onClick={(e) => (dispatch({ type: "template", id: x.id }), showPicked(e.currentTarget))}
className={cn("relative cursor-pointer overflow-hidden rounded-xl ring-offset-2 ring-offset-background", sel && "ring-3 ring-primary")}
>
<TemplatePreview t={x} className="aspect-[6/7]" />
</div>
+ {sel && (
+ <Button className={PICKED_GO} onClick={goOn}>
+ Continue <ArrowRight />
+ </Button>
+ )}
<button
type="button"
role="radio"
@@ -155,9 +161,9 @@ export function FashionView() {
);
})}
</div>
- <div className={cn(barPlace(!!t), "z-10 flex items-center justify-between gap-3 rounded-2xl border bg-background/95 p-3 shadow-normal backdrop-blur")}>
- <p className="min-w-0 truncate text-[13px]">{t ? <span className="font-medium">{t.name}</span> : <span className="text-muted-foreground">Pick a template</span>}</p>
- <Button aria-disabled={!t} className={cn(!t && "opacity-50")} onClick={() => !block(fashionBlocker(s)) && dispatch({ type: "next" })}>
+ <div className={PICKER_BAR}>
+ <p className="min-w-0 truncate text-[13px]">{t ? <span className="font-medium">{titleCase(t.name)}</span> : <span className="text-muted-foreground">Pick a template</span>}</p>
+ <Button aria-disabled={!t} className={cn(!t && "opacity-50")} onClick={goOn}>
Continue <ArrowRight />
</Button>
</div>
@@ -168,7 +174,7 @@ export function FashionView() {
<section aria-label="Character" className="space-y-4">
<div>
<h2 className="font-heading text-[26px] leading-tight">Pick your character</h2>
- <p className="text-[14px] text-muted-foreground">Select or create the character who wears your product. Next makes 4 base shots in the {t.name} set at 3:4.</p>
+ <p className="text-[14px] text-muted-foreground">Select or create the character who wears your product. Next makes 4 base shots in the {titleCase(t.name)} set at 3:4.</p>
</div>
<CharacterPicker value={s.elementId} onChange={(id) => dispatch({ type: "element", id })} />
<Footer onBack={() => dispatch({ type: "back" })} line={<RunLine preview={baseBody ? preview.data : undefined} loading={preview.isFetching} />}>
@@ -248,7 +254,7 @@ export function FashionView() {
<div className="flex flex-wrap items-end justify-between gap-3">
<div>
<h2 className="font-heading text-[26px] leading-tight">Get your photoset</h2>
- <p className="text-[14px] text-muted-foreground">{busy(setItems) ? `Shooting ${setItems.length} photos in the ${t.name} set…` : `${t.name} · ${setItems.length} photos`}</p>
+ <p className="text-[14px] text-muted-foreground">{busy(setItems) ? `Shooting ${setItems.length} photos in the ${titleCase(t.name)} set…` : `${titleCase(t.name)} · ${setItems.length} photos`}</p>
</div>
<div className="flex flex-wrap gap-2">
<DownloadAll items={setItems} />
diff --git a/src/components/photodump/clear-of-bar.ts b/src/components/photodump/clear-of-bar.ts
index a83801d7..2ddd75ae 100644
--- a/src/components/photodump/clear-of-bar.ts
+++ b/src/components/photodump/clear-of-bar.ts
@@ -1,20 +1,23 @@
/**
* Picker cards and the Continue bar under a picker grid (Fashion Factory templates, Photodump packs).
*
- * The bar is sticky only once something is picked; before that it sits after the grid, so it never covers a card's name
- * on first view. A card keeps a bottom scroll margin the size of the bar (about 3.5rem tall, 0.75rem above the phone
- * tabs), so picking it or tabbing to it scrolls the whole card, name included, above the bar.
+ * The bar always sits in flow after the grid, never over it, so no card name is ever covered: not on first view, not
+ * while scrolling, not after a pick and not when a saved pick is restored. The picked card carries its own Continue
+ * button (PICKED_GO), so going on never needs a scroll down to the bar. A card keeps a bottom scroll margin, so picking
+ * it or tabbing to it scrolls the whole card, name included, into view above the phone tabs.
*/
-export const CLEAR_OF_BAR = "scroll-mb-[calc(var(--chrome-bottom)+5.5rem)]";
+export const CLEAR_OF_BAR = "scroll-mb-[calc(var(--chrome-bottom)+1rem)]";
-/** The Continue bar's position: sticky above the phone tabs once `picked`, else in flow after the grid. */
-export const barPlace = (picked: boolean) => (picked ? "sticky bottom-[calc(var(--chrome-bottom)+0.75rem)]" : "relative");
+/** The Continue bar under the grid: in flow, never sticky. */
+export const PICKER_BAR = "relative z-10 flex items-center justify-between gap-3 rounded-2xl border bg-background/95 p-3 shadow-normal";
-/** Scrolls a picked card (the element carrying CLEAR_OF_BAR) clear of the bar that shows once something is picked. */
+/** The Continue button on the picked card: top left of its cover, clear of the name. */
+export const PICKED_GO = "absolute top-2 left-2 z-10 h-8 rounded-full px-3 text-[12.5px] shadow-normal";
+
+/** Scrolls a picked card (the element carrying CLEAR_OF_BAR) fully into view. */
export function showPicked(el: Element | null | undefined) {
const card = el?.closest("[data-picker-card]");
if (!card) return;
const smooth = !window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
- // After React has rendered the pick, so the bar is already sticky.
requestAnimationFrame(() => card.scrollIntoView({ block: "nearest", behavior: smooth ? "smooth" : "auto" }));
}
diff --git a/src/components/photodump/photodump-view.tsx b/src/components/photodump/photodump-view.tsx
index 95c75b1d..4ca5d35b 100644
--- a/src/components/photodump/photodump-view.tsx
+++ b/src/components/photodump/photodump-view.tsx
@@ -21,7 +21,7 @@ import { onAttr, TAB_PILL, TabRow } from "@/components/ui/tab-row";
import { linkTab, TabFromLink } from "@/components/nav/tab-from-link";
import { toastError } from "@/lib/refusals";
import { useAskFirst } from "./ask-first";
-import { barPlace, CLEAR_OF_BAR, showPicked } from "./clear-of-bar";
+import { CLEAR_OF_BAR, PICKED_GO, PICKER_BAR, showPicked } from "./clear-of-bar";
import { PackCover } from "./covers";
import { useOwnsElements, usePhotoCharacters, useRun, useRunPreview, usePackActions, useUserPacks } from "./hooks";
import { DownloadAll, ResultsGrid, runState } from "./results";
@@ -294,6 +294,11 @@ export function PhotodumpView() {
>
<PackCover id={p.id} name={p.name} count={p.count} refs={p.refs} hue={p.hue} tone={p.tone} className="aspect-[3/4]" />
</button>
+ {sel && (
+ <Button className={PICKED_GO} onClick={() => go(1)}>
+ Use this pack <ArrowRight />
+ </Button>
+ )}
<p className="mt-1.5 line-clamp-2 px-0.5 text-[12px] text-muted-foreground">
{p.custom ? "Your pack · " : ""}{p.description}
</p>
@@ -312,7 +317,7 @@ export function PhotodumpView() {
})}
</div>
{!shown.length && <p className="py-10 text-center text-[14px] text-muted-foreground">{tab === "mine" && !needle ? "No packs of your own yet — create one from your reference photos." : `No packs match “${q}”`}</p>}
- <div className={cn(barPlace(!!pack), "z-10 flex items-center justify-between gap-3 rounded-2xl border bg-background/95 p-3 shadow-normal backdrop-blur")}>
+ <div className={PICKER_BAR}>
<p className="min-w-0 truncate text-[13px]">{pack ?<><span className="font-medium">{pack.name}</span> · {pack.count} photos</> : <span className="text-muted-foreground">Pick a pack to continue</span>}</p>
<Button disabled={!pack} onClick={() => go(1)}>
Use this pack <ArrowRight />
diff --git a/src/lib/template-covers.generated.ts b/src/lib/template-covers.generated.ts
index 713495cb..a526f1d0 100644
--- a/src/lib/template-covers.generated.ts
+++ b/src/lib/template-covers.generated.ts
@@ -131,7 +131,7 @@ export const TEMPLATE_COVERS: Record<string, TemplateCoverEntry> = {
"photodump/alter-ego": {"poster":"/previews/templates/photodump/alter-ego.jpg?v=a7565609","frames":["/previews/templates/photodump/alter-ego-2.jpg?v=198bec16","/previews/templates/photodump/alter-ego-3.jpg?v=8a7ba2fb","/previews/templates/photodump/alter-ego-4.jpg?v=8b31c430"]},
"photodump/aura-farming": {"poster":"/previews/templates/photodump/aura-farming.jpg?v=c0d40623","frames":["/previews/templates/photodump/aura-farming-2.jpg?v=3ed94ca3","/previews/templates/photodump/aura-farming-3.jpg?v=c80093cc","/previews/templates/photodump/aura-farming-4.jpg?v=ebd29b27"]},
"photodump/candid-glow": {"poster":"/previews/templates/photodump/candid-glow.jpg?v=865da875","frames":["/previews/templates/photodump/candid-glow-2.jpg?v=2e356e41","/previews/templates/photodump/candid-glow-3.jpg?v=7959981a","/previews/templates/photodump/candid-glow-4.jpg?v=8b609266"]},
- "photodump/cool-girl-dump": {"poster":"/previews/templates/photodump/cool-girl-dump.jpg?v=c5c49511","frames":["/previews/templates/photodump/cool-girl-dump-2.jpg?v=0bd31047","/previews/templates/photodump/cool-girl-dump-3.jpg?v=2e6534a6","/previews/templates/photodump/cool-girl-dump-4.jpg?v=3bbfbbd3"]},
+ "photodump/cool-girl-dump": {"poster":"/previews/templates/photodump/cool-girl-dump.jpg?v=c5c49511","frames":["/previews/templates/photodump/cool-girl-dump-2.jpg?v=0bd31047","/previews/templates/photodump/cool-girl-dump-3.jpg?v=2e6534a6","/previews/templates/photodump/cool-girl-dump-4.jpg?v=47123445"]},
"photodump/editorial-shots": {"poster":"/previews/templates/photodump/editorial-shots.jpg?v=cc7e4815","frames":["/previews/templates/photodump/editorial-shots-2.jpg?v=38625581","/previews/templates/photodump/editorial-shots-3.jpg?v=8c5017da","/previews/templates/photodump/editorial-shots-4.jpg?v=faab1b7a"]},
"photodump/looksmaxing": {"poster":"/previews/templates/photodump/looksmaxing.jpg?v=1b358eeb","frames":["/previews/templates/photodump/looksmaxing-2.jpg?v=ead1155f","/previews/templates/photodump/looksmaxing-3.jpg?v=d1322301","/previews/templates/photodump/looksmaxing-4.jpg?v=31f3b79d"]},
"photodump/male-archive": {"poster":"/previews/templates/photodump/male-archive.jpg?v=28fbeb43","frames":["/previews/templates/photodump/male-archive-2.jpg?v=5d006868","/previews/templates/photodump/male-archive-3.jpg?v=c4ccf696","/previews/templates/photodump/male-archive-4.jpg?v=d33b1b83"]},
@@ -204,6 +204,7 @@ export const TEMPLATE_COVERS: Record<string, TemplateCoverEntry> = {
"soul/v2-nature-light": "4c2db0d6",
"soul/v2-neutral-pastel-film": "faefeddd",
"soul/v2-new-indie": "c004265a",
+ "soul/v2-old-smartphone": "c18ad8e1",
"soul/v2-retro-bw": "29bee81f",
"soul/v2-siren": "4518177d",
"soul/v2-street-photography": "31eb8402",
@@ -212,6 +213,7 @@ export const TEMPLATE_COVERS: Record<string, TemplateCoverEntry> = {
"soul/v2-swag-era": "2f7053f1",
"soul/v2-theatrical-light": "c84e3b30",
"soul/v2-underwater": "cc916807",
+ "soul/v2-warm-ambient": "5c699f55",
"soul/v2-warm-contrast-film": "a976d34e",
"soul/v2-warm-vivid-film": "ba0a31b6",
"soul/v2-y2k-street": "ed2b9703",