Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

replace Video Gen's bare-filename gallery dropdowns with the thumbnail picker

[._.]/ Adam Eivy83deda7c9cf6
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index cd56118c38..c956c41459 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -2,6 +2,8 @@
## Media
+- **Picking a source image on Video Gen now shows you the images.** Every gallery slot on the Video Gen form — the image-to-video source frame, the FFLF first/last pair, each multi-keyframe row, and each IC-LoRA reference row — used to be a dropdown of bare filenames capped at the 50 newest renders, which meant choosing a frame by guessing at `ltx-1754...png`. Those dropdowns are now the same searchable thumbnail-grid picker the Image Gen image-to-image form uses: your whole gallery, with previews, full-text search across prompt/model/seed/LoRA, and universe/collection and type filters. Uploading a frame from disk works exactly as before.
+
- **Accepting a restricted model's license now counts everywhere, and the acceptance appears where you're blocked.** Generating a music video scene with MiniMax H3 failed with "requires acknowledgement of its territory restrictions, Community License, and Acceptable Use Policy" — even for someone who had already ticked exactly that box on the Video Gen page, because the acknowledgement was only remembered in that page's browser storage and no other screen had a way to show it. The acknowledgement is now a property of the install: accept it once, on any screen, and every render path is authorized — the Video Gen page, the music video scene board, and background producers like pipeline stages and scheduled agent runs that have no way to ask you. The music video board also shows the acknowledgement panel inline next to its renderer picker, so the terms are readable and acceptable on the screen that triggers the render; when a render is refused anyway, the message now says where the acceptance is made instead of naming rules with no way to reach them. Acceptance is keyed to the exact reviewed license version, so a future revision asks again rather than inheriting an old approval. And because the recorded acknowledgement is the *only* thing that authorizes a render — a request can no longer assert its own — withdrawing it takes effect everywhere at once, including on work already sitting in the render queue.
## Music Video
diff --git a/client/src/components/videoGen/FramePanel.jsx b/client/src/components/videoGen/FramePanel.jsx
index 55f525f6a2..b5005ac5e5 100644
--- a/client/src/components/videoGen/FramePanel.jsx
+++ b/client/src/components/videoGen/FramePanel.jsx
@@ -4,13 +4,13 @@
* currently set, and clearing either one snaps the slot back to the dual
* upload+gallery picker.
*
- * Presentational — all selection state and the visible-gallery list are owned
- * by the VideoGen page and passed in. `visibleGallery` is the pre-filtered
- * gallery option list (shared across pickers so the filter runs once per
- * gallery change).
+ * Presentational — all selection state is owned by the VideoGen page.
+ * `onBrowseGallery` opens that page's shared GalleryImagePicker modal (the same
+ * searchable thumbnail grid the Image Gen i2i form uses).
*/
import { Upload } from 'lucide-react';
import FilePickerButton from '../ui/FilePickerButton';
+import GalleryPickButton from './GalleryPickButton';
import ImagePreview from './ImagePreview';
export default function FramePanel({
@@ -18,8 +18,7 @@ export default function FramePanel({
file,
upload,
uploadUrl,
- visibleGallery,
- onPickGallery,
+ onBrowseGallery,
onUpload,
onClear,
alt,
@@ -49,17 +48,7 @@ export default function FramePanel({
/>
) : (
<div className="space-y-1.5">
- <select
- value=""
- onChange={(e) => onPickGallery(e.target.value || null)}
- aria-label={`${label} — pick from gallery`}
- className="w-full bg-port-bg border border-port-border rounded px-2 py-1 text-xs text-white focus:outline-none focus:border-port-accent disabled:opacity-50"
- >
- <option value="">Pick from gallery…</option>
- {visibleGallery.map((img) => (
- <option key={img.filename} value={img.filename}>{img.filename}</option>
- ))}
- </select>
+ <GalleryPickButton label={label} onClick={onBrowseGallery} />
<FilePickerButton
accept="image/*"
onChange={(e) => onUpload(e.target.files?.[0] || null)}
diff --git a/client/src/components/videoGen/FramePanel.test.jsx b/client/src/components/videoGen/FramePanel.test.jsx
index ecfc3e019d..0ec7fa868a 100644
--- a/client/src/components/videoGen/FramePanel.test.jsx
+++ b/client/src/components/videoGen/FramePanel.test.jsx
@@ -2,8 +2,6 @@ import { describe, it, expect, vi } from 'vitest';
import { render, screen, fireEvent } from '@testing-library/react';
import FramePanel from './FramePanel';
-const GALLERY = [{ filename: 'a.png' }, { filename: 'b.png' }];
-
describe('FramePanel', () => {
it('renders the gallery + upload picker when empty', () => {
render(
@@ -12,8 +10,7 @@ describe('FramePanel', () => {
file={null}
upload={null}
uploadUrl={null}
- visibleGallery={GALLERY}
- onPickGallery={vi.fn()}
+ onBrowseGallery={vi.fn()}
onUpload={vi.fn()}
onClear={vi.fn()}
alt="Source"
@@ -25,23 +22,22 @@ describe('FramePanel', () => {
expect(screen.queryByText('Clear')).toBeNull();
});
- it('fires onPickGallery with the chosen filename', () => {
- const onPickGallery = vi.fn();
+ it('opens the gallery picker when the browse button is clicked', () => {
+ const onBrowseGallery = vi.fn();
render(
<FramePanel
label="First frame"
file={null}
upload={null}
uploadUrl={null}
- visibleGallery={GALLERY}
- onPickGallery={onPickGallery}
+ onBrowseGallery={onBrowseGallery}
onUpload={vi.fn()}
onClear={vi.fn()}
alt="Source"
/>,
);
- fireEvent.change(screen.getByLabelText(/First frame — pick from gallery/i), { target: { value: 'b.png' } });
- expect(onPickGallery).toHaveBeenCalledWith('b.png');
+ fireEvent.click(screen.getByLabelText(/First frame — pick from gallery/i));
+ expect(onBrowseGallery).toHaveBeenCalled();
});
it('shows the gallery preview + Clear when a file is set', () => {
@@ -52,8 +48,7 @@ describe('FramePanel', () => {
file="a.png"
upload={null}
uploadUrl={null}
- visibleGallery={GALLERY}
- onPickGallery={vi.fn()}
+ onBrowseGallery={vi.fn()}
onUpload={vi.fn()}
onClear={onClear}
alt="Source"
@@ -72,8 +67,7 @@ describe('FramePanel', () => {
file={null}
upload={null}
uploadUrl={null}
- visibleGallery={GALLERY}
- onPickGallery={vi.fn()}
+ onBrowseGallery={vi.fn()}
onUpload={vi.fn()}
onClear={vi.fn()}
alt="End frame"
diff --git a/client/src/components/videoGen/GalleryPickButton.jsx b/client/src/components/videoGen/GalleryPickButton.jsx
new file mode 100644
index 0000000000..502f0c9282
--- /dev/null
+++ b/client/src/components/videoGen/GalleryPickButton.jsx
@@ -0,0 +1,26 @@
+/**
+ * The "open the gallery picker" trigger shared by every gallery-image slot on
+ * the Video Gen form — the frame panels, the multi-keyframe rows, and the
+ * IC-LoRA reference rows. Each one hands the click back to the page, which owns
+ * the single GalleryImagePicker modal and records which slot the pick lands in.
+ *
+ * `filled` flips both the copy and the accessible name together (WCAG 2.5.3 —
+ * a voice-control user says what they can see), so a slot that already holds an
+ * image invites a swap rather than a first pick.
+ */
+import { Images } from 'lucide-react';
+
+export default function GalleryPickButton({ label, filled = false, onClick }) {
+ const action = filled ? 'change image' : 'pick from gallery';
+ return (
+ <button
+ type="button"
+ onClick={onClick}
+ aria-label={`${label} — ${action}`}
+ className="w-full flex items-center justify-center gap-2 bg-port-bg border border-port-border rounded px-2 py-1.5 text-xs text-gray-300 hover:text-white hover:border-port-accent focus:outline-none focus:border-port-accent"
+ >
+ <Images className="w-3.5 h-3.5" />
+ {filled ? 'Change image…' : 'Pick from gallery…'}
+ </button>
+ );
+}
diff --git a/client/src/components/videoGen/GalleryPickButton.test.jsx b/client/src/components/videoGen/GalleryPickButton.test.jsx
new file mode 100644
index 0000000000..15dea5ea08
--- /dev/null
+++ b/client/src/components/videoGen/GalleryPickButton.test.jsx
@@ -0,0 +1,23 @@
+import { describe, it, expect, vi } from 'vitest';
+import { render, screen, fireEvent } from '@testing-library/react';
+import GalleryPickButton from './GalleryPickButton';
+
+describe('GalleryPickButton', () => {
+ it('invites a first pick when the slot is empty', () => {
+ const onClick = vi.fn();
+ render(<GalleryPickButton label="Source image" onClick={onClick} />);
+ const btn = screen.getByLabelText('Source image — pick from gallery');
+ expect(btn.textContent).toMatch(/Pick from gallery/i);
+ fireEvent.click(btn);
+ expect(onClick).toHaveBeenCalled();
+ });
+
+ it('offers a swap when the slot is filled, with the accessible name tracking the copy', () => {
+ // WCAG 2.5.3 — a voice-control user says the words they can see, so the
+ // aria-label must flip along with the visible label.
+ render(<GalleryPickButton label="Keyframe 3" filled onClick={vi.fn()} />);
+ const btn = screen.getByLabelText('Keyframe 3 — change image');
+ expect(btn.textContent).toMatch(/Change image/i);
+ expect(screen.queryByLabelText('Keyframe 3 — pick from gallery')).toBeNull();
+ });
+});
diff --git a/client/src/components/videoGen/IcLoraPanel.jsx b/client/src/components/videoGen/IcLoraPanel.jsx
index 29124805d0..cdb1a8b3ba 100644
--- a/client/src/components/videoGen/IcLoraPanel.jsx
+++ b/client/src/components/videoGen/IcLoraPanel.jsx
@@ -24,6 +24,7 @@ import { formatBytes } from '../../utils/formatters';
import { icResolutionIssue } from '../../lib/videoGenParams';
import FilePickerButton from '../ui/FilePickerButton';
import ModelDownloadBadge from '../media/ModelDownloadBadge';
+import GalleryPickButton from './GalleryPickButton';
import ImagePreview from './ImagePreview';
import Ltx2RuntimeMissingNotice from './Ltx2RuntimeMissingNotice';
@@ -36,9 +37,8 @@ export default function IcLoraPanel({
// Image-kind (Ingredients) reference rows: gallery basenames, min/max enforced
// by the registry spec. The page owns the array and the three mutators.
referenceImageFiles = [],
- visibleGallery = [],
onAddReferenceImage,
- onUpdateReferenceImage,
+ onBrowseReferenceImage,
onRemoveReferenceImage,
icStrength,
icSkipStage2,
@@ -92,18 +92,11 @@ export default function IcLoraPanel({
{referenceImageFiles.map((file, i) => (
<div key={i} className="flex items-start gap-2">
<div className="flex-1 space-y-1">
- <label htmlFor={`ic-ref-img-${i}`} className="sr-only">{`${spec.label} reference ${i + 1} gallery image`}</label>
- <select
- id={`ic-ref-img-${i}`}
- value={file}
- onChange={(e) => onUpdateReferenceImage(i, e.target.value)}
- className="w-full bg-port-bg border border-port-border rounded px-2 py-1 text-xs text-white focus:outline-none focus:border-port-accent"
- >
- <option value="">Pick from gallery…</option>
- {visibleGallery.map((img) => (
- <option key={img.filename} value={img.filename}>{img.filename}</option>
- ))}
- </select>
+ <GalleryPickButton
+ label={`${spec.label} reference ${i + 1}`}
+ filled={!!file}
+ onClick={() => onBrowseReferenceImage(i)}
+ />
{file && (
<ImagePreview src={`/data/images/${file}`} alt={`${spec.label} reference ${i + 1}`} label={file} />
)}
diff --git a/client/src/components/videoGen/IcLoraPanel.test.jsx b/client/src/components/videoGen/IcLoraPanel.test.jsx
index 5f5790d667..91f2e6156b 100644
--- a/client/src/components/videoGen/IcLoraPanel.test.jsx
+++ b/client/src/components/videoGen/IcLoraPanel.test.jsx
@@ -105,32 +105,28 @@ describe('IcLoraPanel — image-kind references (#3112)', () => {
...baseProps,
spec: ING,
referenceImageFiles: ['owl.png', ''],
- visibleGallery: [
- { filename: 'owl.png' }, { filename: 'store.png' }, { filename: 'tote.png' },
- ],
weightStatus: { id: 'ic-ingredients', repo: 'org/ingredients', cached: true, sizeBytes: 1_308_778_338 },
onAddReferenceImage: vi.fn(),
- onUpdateReferenceImage: vi.fn(),
+ onBrowseReferenceImage: vi.fn(),
onRemoveReferenceImage: vi.fn(),
};
it('renders one gallery row per reference, not the clip upload/history pair', () => {
render(<IcLoraPanel {...imageProps} />);
- expect(screen.getByLabelText(/Ingredients reference 1 gallery image/i)).toBeTruthy();
- expect(screen.getByLabelText(/Ingredients reference 2 gallery image/i)).toBeTruthy();
+ // Row 1 already holds owl.png, so its trigger offers a swap; row 2 is empty.
+ expect(screen.getByLabelText('Ingredients reference 1 — change image')).toBeTruthy();
+ expect(screen.getByLabelText('Ingredients reference 2 — pick from gallery')).toBeTruthy();
// The video-only inputs must be absent — offering them would let a clip ride
// into an image-kind weight, which the route rejects.
expect(screen.queryByText(/Upload a reference still/i)).toBeNull();
expect(screen.queryByLabelText(/Pick a previous render/i)).toBeNull();
});
- it('reports the picked gallery file through onUpdateReferenceImage', () => {
- const onUpdateReferenceImage = vi.fn();
- render(<IcLoraPanel {...imageProps} onUpdateReferenceImage={onUpdateReferenceImage} />);
- fireEvent.change(screen.getByLabelText(/Ingredients reference 2 gallery image/i), {
- target: { value: 'store.png' },
- });
- expect(onUpdateReferenceImage).toHaveBeenCalledWith(1, 'store.png');
+ it('opens the gallery picker for the clicked reference row', () => {
+ const onBrowseReferenceImage = vi.fn();
+ render(<IcLoraPanel {...imageProps} onBrowseReferenceImage={onBrowseReferenceImage} />);
+ fireEvent.click(screen.getByLabelText(/Ingredients reference 2 — pick from gallery/i));
+ expect(onBrowseReferenceImage).toHaveBeenCalledWith(1);
});
it('shows the row count against the spec maximum', () => {
diff --git a/client/src/components/videoGen/KeyframePanel.jsx b/client/src/components/videoGen/KeyframePanel.jsx
index 79cf77b8fc..8466051648 100644
--- a/client/src/components/videoGen/KeyframePanel.jsx
+++ b/client/src/components/videoGen/KeyframePanel.jsx
@@ -3,12 +3,14 @@
* 2–8 gallery images at specific pixel-frame indices and the model
* interpolates between them.
*
- * Presentational — keyframe state, mutators, validation error, and the
- * visible-gallery list are owned by the VideoGen page and passed in. Only
- * rendered when the selected model supports keyframes (mode === 'fflf' &&
- * keyframesSupported); the parent gates that.
+ * Presentational — keyframe state, mutators, and the validation error are owned
+ * by the VideoGen page and passed in. Only rendered when the selected model
+ * supports keyframes (mode === 'fflf' && keyframesSupported); the parent gates
+ * that. `onBrowseKeyframe(i)` opens that page's shared GalleryImagePicker for
+ * the given row.
*/
import { X, ListPlus } from 'lucide-react';
+import GalleryPickButton from './GalleryPickButton';
import ImagePreview from './ImagePreview';
export default function KeyframePanel({
@@ -16,10 +18,10 @@ export default function KeyframePanel({
keyframesActive,
keyframes,
numFrames,
- visibleGallery,
keyframesError,
onToggleMode,
onAddKeyframe,
+ onBrowseKeyframe,
onUpdateKeyframe,
onRemoveKeyframe,
}) {
@@ -43,18 +45,11 @@ export default function KeyframePanel({
{keyframes.map((kf, i) => (
<div key={i} className="flex items-start gap-2">
<div className="flex-1 space-y-1">
- <label htmlFor={`kf-file-${i}`} className="sr-only">{`Keyframe ${i + 1} gallery image`}</label>
- <select
- id={`kf-file-${i}`}
- value={kf.file}
- onChange={(e) => onUpdateKeyframe(i, { file: e.target.value })}
- className="w-full bg-port-bg border border-port-border rounded px-2 py-1 text-xs text-white focus:outline-none focus:border-port-accent"
- >
- <option value="">Pick from gallery…</option>
- {visibleGallery.map((img) => (
- <option key={img.filename} value={img.filename}>{img.filename}</option>
- ))}
- </select>
+ <GalleryPickButton
+ label={`Keyframe ${i + 1}`}
+ filled={!!kf.file}
+ onClick={() => onBrowseKeyframe(i)}
+ />
{kf.file && (
<ImagePreview src={`/data/images/${kf.file}`} alt={`Keyframe ${i + 1}`} label={kf.file} />
)}
diff --git a/client/src/components/videoGen/KeyframePanel.test.jsx b/client/src/components/videoGen/KeyframePanel.test.jsx
index 43c903c1b5..7e452822ad 100644
--- a/client/src/components/videoGen/KeyframePanel.test.jsx
+++ b/client/src/components/videoGen/KeyframePanel.test.jsx
@@ -2,17 +2,15 @@ import { describe, it, expect, vi } from 'vitest';
import { render, screen, fireEvent } from '@testing-library/react';
import KeyframePanel from './KeyframePanel';
-const GALLERY = [{ filename: 'a.png' }, { filename: 'b.png' }];
-
const baseProps = {
keyframesMode: false,
keyframesActive: false,
keyframes: [],
numFrames: 121,
- visibleGallery: GALLERY,
keyframesError: null,
onToggleMode: vi.fn(),
onAddKeyframe: vi.fn(),
+ onBrowseKeyframe: vi.fn(),
onUpdateKeyframe: vi.fn(),
onRemoveKeyframe: vi.fn(),
};
@@ -60,6 +58,24 @@ describe('KeyframePanel', () => {
expect(screen.getByText('8/8')).toBeTruthy();
});
+ it('opens the gallery picker for the clicked row', () => {
+ const onBrowseKeyframe = vi.fn();
+ render(
+ <KeyframePanel
+ {...baseProps}
+ keyframesMode
+ keyframesActive
+ keyframes={[{ file: 'a.png', index: 0 }, { file: '', index: 10 }]}
+ onBrowseKeyframe={onBrowseKeyframe}
+ />,
+ );
+ fireEvent.click(screen.getByLabelText('Keyframe 2 — pick from gallery'));
+ expect(onBrowseKeyframe).toHaveBeenCalledWith(1);
+ // A filled row offers a swap, an empty one invites a first pick — and the
+ // accessible name tracks the visible copy so voice control can say either.
+ expect(screen.getByLabelText('Keyframe 1 — change image').textContent).toMatch(/Change image/i);
+ });
+
it('surfaces the validation error when present', () => {
render(
<KeyframePanel
diff --git a/client/src/pages/VideoGen.jsx b/client/src/pages/VideoGen.jsx
index 95efbd3437..d75c3cd472 100644
--- a/client/src/pages/VideoGen.jsx
+++ b/client/src/pages/VideoGen.jsx
@@ -53,6 +53,7 @@ import ModelTermsGate from '../components/videoGen/ModelTermsGate';
import ModelRepairBanner from '../components/videoGen/ModelRepairBanner';
import VideoPreviewPanel from '../components/videoGen/VideoPreviewPanel';
import VideoGenGallery from '../components/videoGen/VideoGenGallery';
+import GalleryImagePicker from '../components/imageGen/GalleryImagePicker';
import MediaPreview from '../components/media/MediaPreview';
import StylePresetPicker from '../components/media/StylePresetPicker';
import { normalizeVideo } from '../components/media/normalize';
@@ -77,7 +78,6 @@ import {
getVideoGenStatus, generateVideo, cancelVideoGen,
listVideoHistory, deleteVideoHistoryItem, setVideoHidden, extractLastFrame,
upscaleVideo,
- listImageGallery,
patchSettingsSlice,
getActiveVideoJob,
getSettings,
@@ -201,16 +201,21 @@ export default function VideoGen() {
const termsGateBlocked = !!termsGate && !termsAccepted;
const termsDescriptionId = termsGate ? 'video-model-terms-requirement' : undefined;
- // Image gallery — used by both the start and end frame pickers so the
- // user can pull from any prior render in either slot.
- const [imageGallery, setImageGallery] = useState([]);
- // Visible gallery options, shared by every gallery <select> (the frame
- // panels and each multi-keyframe row) so the filter+slice runs once per
- // gallery change rather than once per picker per render.
- const visibleGallery = useMemo(
- () => imageGallery.filter((img) => !img.hidden).slice(0, 50),
- [imageGallery],
- );
+ // Every gallery-image slot on this page (both frame panels, each multi-keyframe
+ // row, each IC-LoRA reference row) opens the SAME GalleryImagePicker modal the
+ // Image Gen i2i form uses — a searchable thumbnail grid over the whole gallery.
+ // `null` = closed; otherwise `{ kind, index? }` records which slot the pick
+ // lands in, since one modal serves every slot.
+ const [galleryPicker, setGalleryPicker] = useState(null);
+ const handleGalleryPick = (item) => {
+ const filename = item?.filename;
+ if (!filename || !galleryPicker) return;
+ const { kind, index } = galleryPicker;
+ if (kind === 'source') pickSourceImage(filename);
+ else if (kind === 'last') pickLastImage(filename);
+ else if (kind === 'keyframe') updateKeyframe(index, { file: filename });
+ else if (kind === 'icReference') updateIcReferenceImage(index, filename);
+ };
const [history, setHistory] = useState([]);
// `preview` is URL-driven via `usePreviewRoute(previewItems)` — declared
@@ -223,7 +228,6 @@ export default function VideoGen() {
}, []);
useMediaCompletionRefresh({ onVideoCompleted: refreshHistory });
useEffect(() => { refreshHistory(); }, [refreshHistory]);
- useEffect(() => { listImageGallery().then(setImageGallery).catch(() => {}); }, []);
const { visibleHistory, hiddenHistory } = useMemo(() => ({
visibleHistory: history.filter((v) => !v.hidden),
@@ -874,10 +878,10 @@ export default function VideoGen() {
keyframesActive={keyframesActive}
keyframes={keyframes}
numFrames={numFrames}
- visibleGallery={visibleGallery}
keyframesError={keyframesError}
onToggleMode={toggleKeyframesMode}
onAddKeyframe={addKeyframe}
+ onBrowseKeyframe={(index) => setGalleryPicker({ kind: 'keyframe', index })}
onUpdateKeyframe={updateKeyframe}
onRemoveKeyframe={removeKeyframe}
/>
@@ -890,8 +894,7 @@ export default function VideoGen() {
file={sourceImageFile}
upload={sourceImageUpload}
uploadUrl={sourceUploadUrl}
- visibleGallery={visibleGallery}
- onPickGallery={pickSourceImage}
+ onBrowseGallery={() => setGalleryPicker({ kind: 'source' })}
onUpload={uploadSourceImage}
onClear={clearSourceImage}
alt="Source"
@@ -902,8 +905,7 @@ export default function VideoGen() {
file={lastImageFile}
upload={lastImageUpload}
uploadUrl={lastUploadUrl}
- visibleGallery={visibleGallery}
- onPickGallery={pickLastImage}
+ onBrowseGallery={() => setGalleryPicker({ kind: 'last' })}
onUpload={uploadLastImage}
onClear={clearLastImage}
alt="End frame"
@@ -949,9 +951,8 @@ export default function VideoGen() {
inFlightReferenceNames={icReferenceNames}
visibleHistory={visibleHistory}
referenceImageFiles={icReferenceImageFiles}
- visibleGallery={visibleGallery}
onAddReferenceImage={addIcReferenceImage}
- onUpdateReferenceImage={updateIcReferenceImage}
+ onBrowseReferenceImage={(index) => setGalleryPicker({ kind: 'icReference', index })}
onRemoveReferenceImage={removeIcReferenceImage}
icStrength={icStrength}
icSkipStage2={icSkipStage2}
@@ -1249,6 +1250,12 @@ export default function VideoGen() {
onRemix={(item) => item?.raw && handleRemixVideo(item.raw)}
/>
+ <GalleryImagePicker
+ open={!!galleryPicker}
+ onClose={() => setGalleryPicker(null)}
+ onSelect={handleGalleryPick}
+ />
+
<Drawer open={settingsOpen} onClose={closeSettings} title="Media Generation Settings" size="lg">
<ImageGenTab />
</Drawer>