The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(character): the Character tab has the prompt window of every tab
purple44ba451674df
diff --git a/e2e/character-hub.spec.ts b/e2e/character-hub.spec.tsindex 6dd0a118..cd8997ae 100644--- a/e2e/character-hub.spec.ts+++ b/e2e/character-hub.spec.ts@@ -4,12 +4,14 @@ import { routeCloud, seedOnboardingDone, signInViaGate, cloudSwitch } from './suimport { characterPill, openCharacterHub, openCharacterTraining } from './support/character-hub'/**- * The Character area of Create (3.1.0 part B, the stage David chose on+ * The Character area of Create (3.1.0 part B, as David set it on* 16.11.2026): one pill "Character" instead of Character, Motion, Lipsync- * and Swap. The characters are tabs, the picked one stands on the left with- * its photos beside it, and the bar at the foot switches between Image,- * Swap, Motion and Talk. Without a character the area shows its three steps- * and "Create a character"; "New character" is a page of its own.+ * and Swap. The prompt window is the Composer of every tab: 660 wide,+ * centred, at the same place as on Image. Over it stands the row of the tab+ * (Image, Swap, Motion, Talk); the area above is one column of the same+ * width: the characters as tabs, the picked one as a head, its photos or+ * the inputs of the action. Without a character the area shows its three+ * steps and "Create a character"; "New character" is a page of its own.* Swap, the sound choice and the lip sync step need the account switch of* the server (features.characterHub); without it Swap says "Coming soon".*@@ -163,6 +165,18 @@ async function savePhotoCharacter(page: Page, name: string, file: string, copiesawait expect(page.locator(`[data-hub-character^="saved:"]`, { hasText: name })).toHaveAttribute('aria-selected', 'true')}+const windowBox = async (page: Page) => (await page.locator('[data-prompt-window]').boundingBox())!+const settings = (page: Page) => page.locator('[data-prompt-window] button[title="Advanced settings"]')++/** The prompt window stands where it stood on Image: same left edge, same+ * width, same lower edge. */+async function expectWindowAt(page: Page, image: { x: number; y: number; width: number; height: number }) {+ const now = await windowBox(page)+ expect(Math.abs(now.x - image.x)).toBeLessThanOrEqual(1)+ expect(Math.abs(now.width - image.width)).toBeLessThanOrEqual(1)+ expect(Math.abs(now.y + now.height - (image.y + image.height))).toBeLessThanOrEqual(1)+}+/** A tap on the first frame at a share of its width and height. */async function tapFrame(page: Page, x: number, y: number) {const frame = page.getByRole('group', { name: /First frame of your video/ })@@ -171,8 +185,11 @@ async function tapFrame(page: Page, x: number, y: number) {await frame.click({ position: { x: box.width * x, y: box.height * y } })}-test('one pill: the characters as tabs, the stage, and the bar switches the action', async ({ page }) => {+test('one pill: the characters as tabs, the stage, and the row over the window switches the action', async ({ page }) => {const seen = await boot(page, { hub: true })+ // Where the prompt window stands on Image.+ const onImage = await windowBox(page)+ expect(Math.round(onImage.width)).toBe(759)// The four old pills are one now, marked new.await expect(characterPill(page)).toBeVisible()@@ -184,9 +201,16 @@ test('one pill: the characters as tabs, the stage, and the bar switches the acti// Every source is a tab; the first character takes the stage by itself.await openCharacterHub(page)const hub = page.locator('[data-character-hub]')- await expect(hub).toHaveAttribute('data-character-hub', 'what')+ await expect(hub).toHaveAttribute('data-character-hub', 'panel')const bean = page.locator('[data-hub-character="cloud:11111111-1111-4111-8111-111111111111"]')await expect(bean).toHaveAttribute('aria-selected', 'true')+ // The same window as on Image, at the same place, and the area over it+ // is a column of its width.+ await expectWindowAt(page, onImage)+ const column = (await page.locator('.hub-column').boundingBox())!+ expect(Math.abs(column.width - onImage.width)).toBeLessThanOrEqual(1)+ expect(Math.abs(column.x - onImage.x)).toBeLessThanOrEqual(1)+ await expect(page.locator('.hub-bar, [data-swap-bar]')).toHaveCount(0)await expect(page.locator('[data-hub-card]')).toContainText('Trained · Flux')await page.locator('[data-hub-character="cloud:22222222-2222-4222-8222-222222222222"]').click()await expect(page.locator('[data-hub-card]')).toContainText('Trained · Qwen')@@ -198,11 +222,14 @@ test('one pill: the characters as tabs, the stage, and the bar switches the actiawait expect(page.locator('[data-hub-photo-only]')).toBeVisible()await shoot(page, 'a-wer')- // What Bean should do: the bar asks, nothing is picked yet.+ // Bean on the stage: Image is the action, and the text field is there.await bean.click()- await expect(hub).toHaveAttribute('data-character-hub', 'what')- await expect(page.locator('[data-hub-action-line]')).toHaveText('What should Bean do?')- for (const a of ['image', 'swap', 'motion', 'talk']) await expect(page.locator(`[data-hub-action="${a}"]`)).toHaveAttribute('aria-checked', 'false')+ await expect(hub).toHaveAttribute('data-character-hub', 'panel')+ await expect(page.locator('[data-hub-action="image"]')).toHaveAttribute('aria-checked', 'true')+ for (const a of ['swap', 'motion', 'talk']) await expect(page.locator(`[data-hub-action="${a}"]`)).toHaveAttribute('aria-checked', 'false')+ await expect(page.locator('[data-prompt-window] textarea')).toHaveAttribute('placeholder', 'Describe a new picture of Bean')+ await expect(page.locator('[data-prompt-window] textarea')).toBeEnabled()+ await expectWindowAt(page, onImage)await shoot(page, 'b-was')// Swap, Bean on person 1, with the catalogue's price.@@ -211,7 +238,10 @@ test('one pill: the characters as tabs, the stage, and the bar switches the actiawait expect(page.locator('[data-hub-action-meta]')).toHaveText('8k / s')await expect(page.locator('[data-swap-controls]')).toBeVisible()await expect(page.getByRole('button', { name: 'Character for person 1' })).toContainText('Bean')- await page.locator('[data-swap-controls] input[type=file][accept^="video"]').setInputFiles(await clip(page, 'clip.webm', 'clip.mp4'))+ // The video comes in through the upload of the prompt window.+ await expectWindowAt(page, onImage)+ await expect(page.locator('[data-prompt-window] textarea')).toBeDisabled()+ await page.locator('[data-prompt-window] [data-hub-upload]').setInputFiles(await clip(page, 'clip.webm', 'clip.mp4'))await expect(page.locator('[data-hub-clip]')).toContainText('clip.mp4')await expect(page.getByRole('group', { name: /First frame of your video/ })).toBeVisible({ timeout: 20_000 })await tapFrame(page, 0.45, 0.33)@@ -226,19 +256,27 @@ test('one pill: the characters as tabs, the stage, and the bar switches the actiawait expect(page.getByRole('radio', { name: 'Original sound' })).toHaveAttribute('aria-checked', 'true')await expect(page.getByRole('radio', { name: 'New voice, lips in sync' })).toBeDisabled()await page.getByRole('checkbox').check()- // The bar: model, length, price with its parts.- // (6 s and 62k with the real clip of LU_HUB_MEDIA_DIR; the clip recorded- // in the page is shorter.)- await expect(page.getByRole('button', { name: 'Length' })).toContainText(/\d+ s/)+ // One line says what runs and what the total is made of; the button of+ // the window names the total. (6 s and 62k with the real clip of+ // LU_HUB_MEDIA_DIR; the clip recorded in the page is shorter.)await expect(page.locator('[data-clip-price]')).toContainText(/\d+k/)await expect(page.locator('[data-clip-split]')).toContainText(/frame 14k \+ video \d+k/)+ await expect(page.locator('[data-prompt-window]').getByRole('button', { name: /^Create · \d+k$/ })).toBeEnabled()+ await expectWindowAt(page, onImage)await shoot(page, 'c-swap')+ // The length and the engines are in the settings of the window.+ await settings(page).click()+ await expect(page.locator('[data-hub-settings]').getByRole('button', { name: 'Length' })).toContainText(/\d+ s/)+ await expect(page.locator('[data-hub-settings] [data-swap-picks]')).toBeVisible()+ await shoot(page, 'c-swap-settings')+ await page.keyboard.press('Escape')+ await expect(page.locator('[data-hub-settings]')).toHaveCount(0)// Another action keeps the character.await page.getByRole('radio', { name: 'Motion Control', exact: true }).click()await expect(page.locator('[data-motion-controls]')).toBeVisible()await expect(page.locator('[data-portrait-line]')).toContainText('Bean', { timeout: 15_000 })- // The video of Swap came along; the X in the bar takes it away.+ // The video of Swap came along; the X beside its name takes it away.await expect(page.locator('[data-hub-clip]')).toContainText('clip.mp4')await page.getByRole('button', { name: 'Remove the video' }).click()await page.locator('[data-motion-controls] input[type=file][accept^="video"]').setInputFiles(await clip(page, 'podcast.webm', 'podcast.mp4'))@@ -274,13 +312,18 @@ test('Image runs on the character, its file actions stand at the character', asyawait page.locator('[data-hub-character^="cloud:1111"]').click()await page.getByRole('radio', { name: 'Character Studio', exact: true }).click()await expect(page.getByTestId('character-use-hint')).toContainText('beanchar')- // The prompt sits in the bar, like the chat's composer.- await expect(page.getByPlaceholder('Describe the scene for your character…')).toBeVisible()- await page.getByRole('button', { name: 'More options' }).click()+ // The prompt sits in the window, as on every tab.+ await expect(page.getByPlaceholder('Describe a new picture of Bean')).toBeVisible()// The file actions stand at the character on the stage, once.await expect(page.locator('[data-hub-card] [data-character-file-actions]')).toBeVisible()await expect(page.getByRole('button', { name: 'Download character' })).toHaveCount(1)- await expect(page.getByTestId('hub-more').locator('[data-character-file-actions]')).toBeHidden()+ // In the window: the field, the settings and Create. The model is in the+ // settings, not in the window.+ const win = page.locator('[data-prompt-window]')+ await expect(win.locator('button')).toHaveCount(2)+ await settings(page).click()+ await expect(page.locator('[data-hub-settings] [data-hub-setting="Model"]')).toBeVisible()+ await page.keyboard.press('Escape')})test('without the account switch: Swap says coming soon, Motion has no sound choice', async ({ page }) => {@@ -290,7 +333,6 @@ test('without the account switch: Swap says coming soon, Motion has no sound choawait expect(page.locator('[data-hub-card="photo"]')).toContainText('Just use a photo')await shoot(page, 'ohne-schalter-b')await page.getByRole('radio', { name: 'Swap Character', exact: true }).click()- await expect(page.locator('[data-hub-action-meta]')).toHaveText('Coming soon to your LU Cloud')await expect(page.locator('[data-swap-unavailable="soon"]')).toHaveText('Coming soon to your LU Cloud')await expect(page.locator('[data-swap-controls]')).toHaveCount(0)await expect(page.getByRole('button', { name: /^Create/ }).last()).toBeDisabled()@@ -332,11 +374,14 @@ test('with the switch: Swap is one click, the check stops after the frame', asynawait tapFrame(page, 0.45, 0.33)await page.getByRole('checkbox').check()await page.getByRole('switch', { name: 'Check first frame before video' }).click()- await page.getByRole('button', { name: /^Create · / }).last().click()+ await page.locator('[data-prompt-window]').getByRole('button', { name: /^Create · / }).click()await expect(page.getByText('Does this look right?')).toBeVisible({ timeout: 20_000 })await shoot(page, 'd-swap-pruefen')- await expect(page.getByRole('button', { name: /^Continue · / })).toBeEnabled()+ // The check goes through the same window: its field asks, its button goes on.+ await expect(page.locator('[data-prompt-window] textarea')).toHaveAttribute('placeholder', "What's wrong? (optional)")+ await expect(page.locator('[data-prompt-window]').getByRole('button', { name: /^Continue · / })).toBeEnabled()await expect(page.getByRole('button', { name: /^Try again · 14k/ })).toBeEnabled()+ await expect(page.locator('.hub-bar, [data-swap-bar]')).toHaveCount(0)expect(frames).toBe(1)})@@ -347,6 +392,22 @@ test('local mode: Swap is locked to the cloud, the local lanes are there', asyncawait expect(page.locator('[data-hub-card]')).toContainText('Local LoRA')// A local LoRA has no picture and no photos here: a line says so, nothing stands in.await expect(page.locator('[data-hub-no-photos]')).toBeVisible()+ // Image is the action, and the window is ready for a text. The character+ // of this machine is not put into the run by opening the tab (its LoRA and+ // its model would follow into the Image tab): Create does that.+ await expect(page.locator('[data-hub-action="image"]')).toHaveAttribute('aria-checked', 'true')+ const field = page.locator('[data-prompt-window] textarea')+ await expect(field).toHaveAttribute('placeholder', 'Describe a new picture of opa')+ const make = page.locator('[data-prompt-window]').getByRole('button', { name: 'Create' })+ await expect(make).toBeDisabled()+ await expect(page.getByTestId('character-use-hint')).toHaveCount(0)+ await field.fill('opa at the beach')+ await expect(make).toBeEnabled()+ await field.fill('')+ // Picked by hand, the character is in the run and the note says how to call it.+ await page.locator('[data-hub-character="mlx:char_opa_zimage.safetensors"]').click()+ await expect(page.locator('[data-hub-step="panel"]')).toBeVisible()+ await expect(page.locator('[data-testid="character-use-hint"], [data-testid="character-model-warning"]')).toBeVisible()await expect(page.getByRole('radio', { name: 'Swap Character, runs on LU Cloud' })).toBeVisible()await shoot(page, 'lokal-b')await page.getByRole('radio', { name: 'Swap Character, runs on LU Cloud' }).click()@@ -374,7 +435,7 @@ test('the training is a page of the area, with the way back to the stage', asyncawait expect(characterPill(page)).toHaveAttribute('aria-checked', 'true')})-test('phone width: the same stage, the character as a head over it, the bar in its short form', async ({ page }) => {+test('phone width: the same stage and the same window, nothing folded away', async ({ page }) => {await boot(page, { hub: true, width: 375, height: 812 })await openCharacterHub(page)await shoot(page, 'handy-a-wer')@@ -386,25 +447,30 @@ test('phone width: the same stage, the character as a head over it, the bar in iawait tapFrame(page, 0.45, 0.33)await tapFrame(page, 0.66, 0.36)await page.getByRole('checkbox').check()- await expect(page.locator('[data-hub-bar-summary]')).toContainText(/Auto · SCAIL-2 · 720p · \d+ s/)+ await expect(page.locator('[data-swap-summary]')).toHaveText('Auto · SCAIL-2 · 720p')+ await expect(page.locator('[data-prompt-window]').getByRole('button', { name: /^Create · \d+k$/ })).toBeVisible()await shoot(page, 'handy-c-swap')- await page.locator('[data-hub-bar-summary]').click()- await expect(page.locator('[data-hub-bar-options]')).toBeVisible()- await page.locator('[data-hub-bar-summary]').click()await page.getByRole('radio', { name: 'Motion Control', exact: true }).click()await expect(page.locator('[data-motion-controls]')).toBeVisible()await shoot(page, 'handy-e-motion')})-test('no character yet: the three steps, one button, four examples and nothing else', async ({ page }) => {+test('no character yet: the three steps, one button and the same window', async ({ page }) => {await boot(page, { hub: true, mock: {} })+ const onImage = await windowBox(page)await page.route('https://lu-labs.ai/api/loras', (route) => route.fulfill({ status: 200, headers: { ...CORS, 'content-type': 'application/json' }, body: JSON.stringify({ loras: [] }) }))await openCharacterHub(page)const hub = page.locator('[data-character-hub]')await expect(hub).toHaveAttribute('data-character-hub', 'who')await expect(page.locator('[data-hub-empty] ol > li')).toHaveCount(3)- await expect(page.locator('[data-hub-example]')).toHaveCount(4)+ await expect(page.locator('[data-hub-example], [data-hub-empty] svg[viewBox="0 0 120 80"], [data-hub-empty] img')).toHaveCount(0)await expect(page.locator('[data-hub-empty] h1, [data-hub-empty] h2')).toHaveCount(0)+ // The window is there, with its field, and says what it waits for.+ await expectWindowAt(page, onImage)+ await expect(page.locator('[data-prompt-window] textarea')).toBeVisible()+ await expect(page.locator('[data-hub-action="image"]')).toHaveAttribute('aria-checked', 'true')+ await expect(page.getByTestId('lane-input-note')).toHaveText('Create a character first.')+ await expect(page.locator('[data-prompt-window]').getByRole('button', { name: 'Create' })).toBeDisabled()await shoot(page, 'leer')await page.locator('[data-hub-create] button').click()await expect(hub).toHaveAttribute('data-character-hub', 'new')@@ -418,9 +484,15 @@ test('no character yet: the three steps, one button, four examples and nothing eawait page.locator('[data-hub-new-name]').fill('Oma')await expect(page.locator('[data-hub-save-summary]')).toHaveText('5 photos · kept on this computer · free')await shoot(page, 'neu-mit-fotos')+ await expectWindowAt(page, onImage)await page.getByRole('button', { name: 'Save Oma', exact: true }).click()await expect(hub).toHaveAttribute('data-character-hub', 'what')await expect(page.locator('[data-hub-card-name]')).toHaveText('Oma')+ // A photo character: the field asks for the picture, the button goes on+ // to Edit with its photos.+ await expect(page.locator('[data-prompt-window] textarea')).toHaveAttribute('placeholder', 'Describe a new picture of Oma')+ await expect(page.locator('[data-prompt-window]').getByRole('button', { name: 'Continue in Edit' })).toBeEnabled()+ await expectWindowAt(page, onImage)// Rename on the desktop.await page.locator('[data-hub-rename]').click()await page.getByRole('textbox', { name: 'New name for Oma' }).fill('Greta')@@ -454,7 +526,7 @@ test('no character yet: the three steps, one button, four examples and nothing eawait expect(page.locator('[data-hub-card-name]')).toHaveText('Oma')// The line about Local and Cloud stands where the picked action shows its price.await page.setViewportSize({ width: 1280, height: 800 })- await expect(page.locator('[data-hub-local-line]')).toHaveCount(0)+ await expect(page.locator('[data-hub-local-line]')).toHaveCount(1)await page.locator('[data-hub-action="motion"]').click()await expect(page.locator('[data-hub-local-line]')).toHaveText('Local runs on your own machine and costs nothing. Cloud prices in credits.')await page.setViewportSize({ width: 380, height: 800 })diff --git a/e2e/mac-motion.spec.ts b/e2e/mac-motion.spec.tsindex 9a9986a8..f06fcc03 100644--- a/e2e/mac-motion.spec.ts+++ b/e2e/mac-motion.spec.ts@@ -55,8 +55,12 @@ test('mac motion: a run stages the image and the motion video and starts the LTXawait bootLocalCreate(page, { ...MAC_OPTS, mlx: { ltx2EngineInstalled: true, installedVideos: ['ltx-2.3-q4', 'ltx-2.3-motion-control'] } })await openCharacterAction(page, 'Motion Control')await expect(page.getByText('Add driving video (dance/pose)')).toBeVisible({ timeout: 15_000 })- // The length follows the pack: 49 frames at 24 a second.- await expect(page.getByTestId('mac-video-length')).toContainText('49 frames')+ // The length follows the pack: 49 frames at 24 a second. It stands in the+ // settings of the prompt window, as every further value of the tab.+ await page.locator('[data-prompt-window] button[title="Advanced settings"]').click()+ await expect(page.locator('[data-hub-settings]').getByTestId('mac-video-length')).toContainText('49 frames')+ await page.keyboard.press('Escape')+ await expect(page.locator('[data-hub-settings]')).toHaveCount(0)await page.locator('input[type="file"][accept="image/*"]').first().setInputFiles({ name: 'fox.png', mimeType: 'image/png', buffer: ONE_PIXEL_PNG })await page.locator('input[type="file"][accept^="video/"]').first().setInputFiles({ name: 'walk.mp4', mimeType: 'video/mp4', buffer: TINY_MP4 })diff --git a/e2e/support/character-hub.ts b/e2e/support/character-hub.tsindex 4d54ebb1..655a87b2 100644--- a/e2e/support/character-hub.ts+++ b/e2e/support/character-hub.ts@@ -18,10 +18,6 @@ export async function openCharacterHub(page: Page, timeout = 15_000): Promise<voawait expect(page.locator('[data-character-hub]')).toBeVisible({ timeout })}-const ACTION_OF: Record<string, string> = {- 'Character Studio': 'image', 'Swap Character': 'swap', 'Motion Control': 'motion', 'Talking Character': 'talk',-}-/** The stage without a character ("Just use a photo"), from wherever the* area stands. With no character at all there is no stage: the area shows* its first page, and this answers false. */@@ -46,13 +42,9 @@ async function photoOnlyStage(page: Page, timeout: number): Promise<boolean> {* Character' (a locked one reads "…, runs on LU Cloud"). */export async function openCharacterAction(page: Page, name: string, timeout = 15_000): Promise<void> {await openCharacterHub(page, timeout)- if (await photoOnlyStage(page, timeout)) {- await page.getByRole('radio', { name, exact: true }).click({ timeout })- return- }- // No character yet: the examples of the first page open an action.- const action = ACTION_OF[name.replace(/, runs on LU Cloud$/, '')]- await page.locator(`[data-hub-example="${action}"]`).click({ timeout })+ // With or without a character: the row over the prompt window picks it.+ await photoOnlyStage(page, timeout)+ await page.getByRole('radio', { name, exact: true }).click({ timeout })}/** The training: "New character", "Train a model", on to the training. */@@ -74,6 +66,6 @@ export async function openCharacterTraining(page: Page, timeout = 15_000): Promiexport async function openCharacterWhat(page: Page, timeout = 15_000): Promise<void> {await openCharacterHub(page, timeout)// No character yet: Image (it runs everywhere) opens the stage.- if (!(await photoOnlyStage(page, timeout))) await page.locator('[data-hub-example="image"]').click({ timeout })+ if (!(await photoOnlyStage(page, timeout))) await page.locator('[data-hub-action="image"]').click({ timeout })await expect(page.locator('[data-hub-stage]')).toBeVisible({ timeout })}diff --git a/e2e/swap-character.spec.ts b/e2e/swap-character.spec.tsindex 1b5c61b6..f68d988e 100644--- a/e2e/swap-character.spec.ts+++ b/e2e/swap-character.spec.ts@@ -188,9 +188,12 @@ test('Swap with one click: marks, one total, the check, then the video on the ne// SCAIL 2 is the default, the notes stand grey, both switches off.await expect(panel.locator('[data-swap-tips]')).toContainText('Up to 3 people with SCAIL-2, one person with Kling (highest resolution).')await expect(page.locator('[data-swap-summary]')).toHaveText('Auto · SCAIL-2 · 720p')- // The resolution is under More options (sketches v2), with the engines.- await page.getByRole('button', { name: 'More options' }).click()- await expect(page.getByRole('radio', { name: '720p' })).toHaveAttribute('aria-checked', 'true')+ // The resolution is in the settings of the prompt window, with the engines.+ const settings = page.locator('[data-prompt-window] button[title="Advanced settings"]')+ await settings.click()+ await expect(page.locator('[data-hub-settings]').getByRole('radio', { name: '720p' })).toHaveAttribute('aria-checked', 'true')+ await page.keyboard.press('Escape')+ await expect(page.locator('[data-hub-settings]')).toHaveCount(0)await expect(create).toBeDisabled()await shoot(page, 'swap-empty')@@ -211,7 +214,8 @@ test('Swap with one click: marks, one total, the check, then the video on the neawait expect(page.locator('[data-clip-price]')).toHaveAttribute('title', /credits$/)await expect(page.locator('[data-clip-split]')).toContainText('frame 14k + video')- // Under More options: Kling stands greyed out for two people.+ // In the settings: Kling stands greyed out for two people.+ await settings.click()await page.getByRole('button', { name: 'Video model' }).click()const kling = page.getByRole('option', { name: /Kling 3.0 Pro/ })await expect(kling).toBeDisabled()@@ -219,6 +223,8 @@ test('Swap with one click: marks, one total, the check, then the video on the neawait page.keyboard.press('Escape')await expect(kling).toBeHidden()await expect(page.getByRole('button', { name: 'First-frame model' })).toContainText('Auto (Nano Banana Pro)')+ await page.keyboard.press('Escape')+ await expect(page.locator('[data-hub-settings]')).toHaveCount(0)// The switches: Uncensored off, the check off; Uncensored takes the check along.const uncensored = page.getByRole('switch', { name: 'Uncensored' })@@ -236,7 +242,7 @@ test('Swap with one click: marks, one total, the check, then the video on the neawait page.getByRole('checkbox').check()await expect(create).toBeEnabled({ timeout: 15_000 })await expect(create).toContainText(/^Create · \d+k$/)- await shoot(page, 'swap-ready-scail2', '[data-swap-bar]')+ await shoot(page, 'swap-ready-scail2', '[data-prompt-window]')// With the check: one press builds the frame and stops.await check.click()diff --git a/src/components/create/experimental/AdvancedDrawer.tsx b/src/components/create/experimental/AdvancedDrawer.tsxindex bd41bfed..e573e1a7 100644--- a/src/components/create/experimental/AdvancedDrawer.tsx+++ b/src/components/create/experimental/AdvancedDrawer.tsx@@ -12,14 +12,19 @@ import { StudioParams } from './StudioParams'import { ImproveToggle } from './ImproveToggle'import { ImageCount } from './ImageCount'import { ActiveWorkflowParams } from './WorkflowParams'+import { isHubIntent } from '../../../lib/create/character-hub'+import { HubSettings } from './hub/HubSettings'export function AdvancedDrawer({open,onClose,studioModel,+ onOpenWorkflows,}: {open: booleanonClose: () => void+ /** The Character tab offers the user's own workflows from here. */+ onOpenWorkflows?: () => void/** Set only on the cloud Studio track (Portplan Abschnitt 3b): a Studio* model has no sampler, scheduler, VAE or LoRA list from ComfyUI, so it* REPLACES WorkflowFinder + ParamGroups below rather than adding to them.@@ -86,6 +91,9 @@ export function AdvancedDrawer({title="Advanced settings"width={320}>+ {/* The Character tab keeps its model, size and prompt helpers here:+ its prompt window holds only the field, the upload and Create. */}+ {open && isHubIntent(intent) && <HubSettings onOpenWorkflows={onOpenWorkflows} />}<ImproveToggle /><ImageCount />{studioModel ? (diff --git a/src/components/create/experimental/Composer.tsx b/src/components/create/experimental/Composer.tsxindex df34baf3..bb741d19 100644--- a/src/components/create/experimental/Composer.tsx+++ b/src/components/create/experimental/Composer.tsx@@ -1,6 +1,6 @@import { useCallback, useEffect, useRef, useState, useSyncExternalStore } from 'react'import { motion, AnimatePresence } from 'framer-motion'-import { Sparkles, X, SlidersHorizontal, Square, Workflow } from 'lucide-react'+import { Sparkles, X, SlidersHorizontal, Square, Upload, Workflow } from 'lucide-react'import { isMlxImageHost, MAC_UPSCALE_FACTORS, type MacUpscaleFactor } from '../../../api/mlx-image'import { laneImageModel, runsAtOwnSampling } from '../../../lib/image-engines'import { MLX_VIDEO_MIN_FRAMES, mlxFramesOnGrid, mlxVideoLaneEntry, mlxVideoMaxFrames, mlxTalking } from '../../../api/mlx-video'@@ -18,10 +18,10 @@ import { createRunModel, intentRequiredInputs, isStudioModel, studioIntentOf } fimport { STUDIO_MODELS } from '../../../lib/render/studio-contract'import { swapBilledPhotos, swapPricedSeconds, swapShortCredits } from '../../../lib/render/swap'import { swapReady } from '../../../lib/create/swap-run'-import { modelLabel } from '../../../lib/render/preset-models'-import { SwapLength, SwapPrice, useSwapBar } from './hub/SwapBarParts'-import { HubBarTop } from './hub/HubParts'-import { useLocalPick } from './localPick'+import { HubActionRow } from './hub/HubActionRow'+import { useHubRun } from './hub/hubRun'+import { ACTION_LABEL, actionOfIntent } from '../../../lib/create/character-hub'+import { mediaRefFrom } from './mediaRef'import { swapConfirmedFrame } from '../../../lib/create/swap-frame'import { soundApplies, soundInputError } from '../../../lib/render/sound'import { useCharacterHubReleased } from '../../../lib/create/character-hub-release'@@ -59,9 +59,11 @@ import { cn } from '../ui/cn'interface Props {onOpenAdvanced: () => voidonOpenWorkflows: () => void- /** The bar at the foot of the Character area (sketches v2): only the field- * where the action takes a prompt, and one row with the model, the length,- * the price and Create. The inputs stand in the area above. */+ /** The Character tab (David, 16.11.2026). The window is this same one, at+ * the same place and width. Over it stands the row of the tab (Image,+ * Swap, Motion, Talk); in it only the text field, an upload where the+ * action takes a video, the settings and Create. Everything else of the+ * tab is in the settings (AdvancedDrawer) or in the area above. */hub?: boolean}@@ -82,30 +84,7 @@ const NEGATIVE_FIELD_MAX = 'min(120px, calc(9vh / var(--ui-scale, 1)))'/** The prompt field of the Mac's local Edit tab. See the placeholder below. */const MAC_EDIT_PLACEHOLDER = 'Describe what to change in this image. Paint a mask to change only that area…'-/** The window is phone-wide (the Character area's bar takes m310's short form). */-export function useNarrow(): boolean {- const query = '(max-width: 520px)'- const [narrow, setNarrow] = useState(() => typeof window !== 'undefined' && !!window.matchMedia?.(query).matches)- useEffect(() => {- if (typeof window === 'undefined' || !window.matchMedia) return- const m = window.matchMedia(query)- const on = () => setNarrow(m.matches)- on()- m.addEventListener('change', on)- return () => m.removeEventListener('change', on)- }, [])- return narrow-}--/** The name of the local model the tab runs, for the phone's summary. */-function useLocalPickName(): string | null {- const { value } = useLocalPick()- return value ? value.replace(/\.(safetensors|gguf|ckpt)$/i, '') : null-}-export function Composer({ onOpenAdvanced, onOpenWorkflows, hub = false }: Props) {- const narrow = useNarrow()- const [narrowOpen, setNarrowOpen] = useState(false)const intent = useCreateStore((s) => s.intent())const meta = INTENT_MAP[intent]const prompt = useCreateStore((s) => s.prompt)@@ -444,31 +423,44 @@ export function Composer({ onOpenAdvanced, onOpenWorkflows, hub = false }: Propsconst laneCaption = noPromptHint(meta.id, backend, backend === 'local' && isMlxImageHost(), trainKind)// The disabled button says which input it waits for (laneHint.ts).const missingSource = missingSourceHint({ intent, needsSource, hasSource: hasStart })- // The price of a cloud run in the bar of the Character area (Swap has its- // own parts, SwapPrice). Local runs cost nothing and show none.+ // The price of a cloud run of the Character tab, named on the button.+ // Local runs cost nothing and show none.const hubCredits = hub && backend === 'cloud'? ((studioPick ? studioPrice?.credits : (cloudStudioCredits ?? lengthShown)) ?? null) !== null? (studioPick ? studioPrice!.credits : (cloudStudioCredits ?? lengthShown)!) * imageCount + lipsyncExtra: null: null- // The phone's short summary of the bar: model, and the length on Swap.- const localPickName = useLocalPickName()- const hubModelName = backend === 'cloud' ? modelLabel(runModel) : (localPickName ?? 'Local')- const swapBar = useSwapBar(inputSeconds)- // Swap without the account switch has nothing to pick or pay; with it, the- // length and its price stand once there is a video to measure.- const swapSoon = swap && !hubReleased- const swapBarShown = swap && backend === 'cloud' && !swapSoon && !!videoInput- const hubSummary = swapBarShown ? `${hubModelName} · ${swapBar.value} s` : swapSoon ? 'Swap' : hubModelName// Swap Character names its price on the button (the web's CreateButton):// a paid video run, priced by its length. With a new voice the lip sync- // step is in the figure too. On the phone every cloud run of the area- // names it (m310's Create pill).+ // step is in the figure too. In the Character tab every cloud run names it.const createPrice = swap && backend === 'cloud' && priceSeconds !== undefined && studioPrice? swapShortCredits(studioPrice.credits + lipsyncExtra): lipsyncOn && lipsyncExtra > 0 && (studioPrice?.credits ?? cloudStudioCredits ?? lengthShown) != null? swapShortCredits((studioPrice?.credits ?? cloudStudioCredits ?? lengthShown ?? 0) + lipsyncExtra)- : hub && narrow && hubCredits != null ? swapShortCredits(hubCredits) : null+ : hub && hubCredits != null ? swapShortCredits(hubCredits) : null+ // The Character tab: what the area above says about this window (hubRun).+ // The one click swap and the states of the stage in which nothing can be+ // made yet bring their own button; everything else is the run of the tab.+ const hubSwap = useHubRun((st) => st.swap)+ const hubStage = useHubRun((st) => st.stage)+ const hubRun = hub ? (hubSwap ?? hubStage?.run ?? null) : null+ const hubField = hubRun?.field ?? null+ const hubAction = actionOfIntent(intent)+ // The field stands on every action. Where the action takes no text, it+ // says so and takes none.+ const hubNoText = hub && !needPrompt && !hubField+ const hubNote = !hub ? null+ : hubRun ? (!hubRun.ready && !hubRun.running ? hubRun.hint ?? null : null)+ : showNoPromptHint && !needsMask && isInputHint(intent) ? laneCaption : null+ // The video of Swap and Motion can come in through the window as well.+ const hubUpload = hub && (intent === 'motion' || (swap && hubReleased && backend === 'cloud'))+ const setHubWindow = useHubRun((st) => st.setWindow)+ const hubTakesNegative = needPrompt && !optionalPrompt && negSupported+ useEffect(() => { if (hub) setHubWindow(needPrompt && !hubField, hubTakesNegative) }, [hub, needPrompt, hubField, hubTakesNegative, setHubWindow])+ const submit = () => {+ if (hubRun) { if (hubRun.ready && !hubRun.running) hubRun.run(); return }+ if (canGenerate && !isGenerating) guardedGenerate()+ }return (@@ -476,7 +468,7 @@ export function Composer({ onOpenAdvanced, onOpenWorkflows, hub = false }: Props// same vertical space on every tab — utility modes (no LaneControls / no// prompt) don't shrink it. That keeps the viewer + gallery row above it the// exact SAME height across all tabs, not just within one.- <div className={cn('shrink-0 flex flex-col justify-end', hub ? 'px-0 pb-3 pt-2' : 'px-4 pb-4 pt-2 min-h-[192px]')}>+ <div className="shrink-0 flex flex-col justify-end px-4 pb-4 pt-2 min-h-[192px]" data-prompt-window-area>{/* 660, nicht 760: dieselbe Spalte wie im Chat, und dieselbe Rechnung.Die 760 waren hier als KOPIE von --lu-measure eingetippt; seit dieApp eine --ui-scale hat, wird die Zahl mitskaliert, 760 ergaebe also@@ -484,42 +476,45 @@ export function Composer({ onOpenAdvanced, onOpenWorkflows, hub = false }: Propsvor der Umstellung hatte. Siehe --lu-measure in index.css; dass dieZahl hier doppelt steht statt den Token zu lesen, ist ein eigenerBefund und hier nicht behoben. */}- {/* In the Character area the place decides the width: the stage's foot- spans it, the training page is its own 660 column. */}- <div className={cn('mx-auto w-full space-y-2.5', !hub && 'max-w-[660px]')}>+ {/* The same in every tab, the Character tab included (David,+ 16.11.2026): this width, this place, this frame. */}+ <div className="mx-auto w-full max-w-[660px] space-y-2.5">{special && !hub && <SpecialControls intent={intent} />}{intent === '3d' && <ThreeDControls {...threeDControlFacts(backend, studioPick)} studioId={studioPick} pictureFirst={backend === 'local' || isPictureFirstRun(threeDWay, studioPick)} />}{/* Swap Character's options are its own panel above (SpecialControls). */}{!isUtility && !swap && !hub && <LaneControls />}{!hub && <CharacterNote />}- {hub && showNoPromptHint && intent === 'character' && characterTab === 'train' && (- // The training's one line on what to add (photos or pictures of the- // style), as it stood over the prompt window.- <p className="hub-dim hub-fs-125 text-center" data-testid="lane-input-note">{laneCaption}</p>+ {/* The Character tab's row, where the other tabs have theirs. */}+ {hub && <HubActionRow />}+ {hubNote && (+ <p className="t-body text-gray-500 text-center px-3.5" data-testid="lane-input-note">{hubNote}</p>)}{inputNote && !hub && (<p className="t-body text-gray-500 text-center px-3.5" data-testid="lane-input-note">{laneCaption}</p>)}- <div className={hub- ? cn('hub-bar transition-colors', narrow && 'rounded-2xl')- : 'rounded-[var(--radius-panel)] bg-white/[0.03] border border-white/[0.06] focus-within:border-white/15 transition-colors'}>- {hub && <HubBarTop />}- {needPrompt && (+ <div className="rounded-[var(--radius-panel)] bg-white/[0.03] border border-white/[0.06] focus-within:border-white/15 transition-colors" data-prompt-window>+ {(needPrompt || hub) && (// The prompt assistant (B43) sits in the field's corner, not in the// action bar: there every pixel is the model chip's, whose whole// name has to fit at 760 px (FEHLER-Q4 #2). The field keeps its// width and only leaves room for the button inside (pr-7).<div className="relative px-3.5 pt-3">- <div className="absolute top-2 right-2">- <PromptAssistant onUse={setPrompt} align="right" />- </div>+ {!hub && (+ <div className="absolute top-2 right-2">+ <PromptAssistant onUse={setPrompt} align="right" />+ </div>+ )}<PromptField- className="pr-7"- value={prompt}- onChange={setPrompt}+ className={hub ? undefined : 'pr-7'}+ value={hubField ? hubField.value : hubNoText ? '' : prompt}+ onChange={hubField ? hubField.onChange : setPrompt}+ disabled={hubNoText}placeholder={- characterUse+ hubField ? hubField.placeholder+ : hubNoText ? `${hubAction && !(intent === 'character' && characterTab === 'train') ? ACTION_LABEL[hubAction] : 'Training'} needs no text.`+ : hub && characterUse && hubStage?.placeholder ? hubStage.placeholder+ : characterUse? 'Describe the scene for your character…'// R5-66: the shared 'edit' placeholder promises a maskless// restyle that only the local lane actually allows once a@@ -538,7 +533,7 @@ export function Composer({ onOpenAdvanced, onOpenWorkflows, hub = false }: Props? MUSIC_PLACEHOLDER[musicText(runModel).main]: meta.placeholder)}- onSubmit={() => canGenerate && !isGenerating && guardedGenerate()}+ onSubmit={submit}/></div>)}@@ -601,31 +596,8 @@ export function Composer({ onOpenAdvanced, onOpenWorkflows, hub = false }: Props)}{/* Action bar */}- {hub && narrow && narrowOpen && (- // The phone: the choices behind the short summary (m310's- // pattern; the sheet from below is theirs to bring, until then- // they open here, above the row).- <div className={cn('hub-line flex flex-wrap items-center gap-2 px-2.5 py-2', needPrompt && 'border-t')} data-hub-bar-options>- {!swapSoon && <ModelChip />}- {swapBarShown && <SwapLength videoSeconds={inputSeconds} disabled={isGenerating} />}- {swapBarShown && <SwapPrice videoSeconds={inputSeconds} />}- </div>- )}- <div className={hub- ? cn('flex items-center gap-1.5 pl-2.5 pr-1.5', narrow ? 'min-h-[45px] py-1.5' : 'min-h-[45px] py-[5px]', (needPrompt || (narrow && narrowOpen)) && 'hub-line border-t')- : 'flex items-center gap-1.5 px-2.5 py-2 border-t border-white/[0.05]'}>- {hub && narrow && (- <button- type="button"- onClick={() => setNarrowOpen(!narrowOpen)}- aria-expanded={narrowOpen}- className="hub-muted flex min-h-11 min-w-0 flex-1 items-center gap-1.5 text-left hub-fs-13"- data-hub-bar-summary- >- <SlidersHorizontal size={14} className="shrink-0" />- <span className="truncate">{hubSummary}</span>- </button>- )}+ <div className="flex items-center gap-1.5 px-2.5 py-2 border-t border-white/[0.05]">+ {hubUpload && <HubVideoUpload disabled={isGenerating || !!hubRun?.running} />}{/* Ein Schalter, der sagt, dass er einer ist. „Neg" war eineAbkuerzung, deren Aufloesung nur im Hover-`title` stand, undder Knopf meldete seinen Zustand an nichts ausser der@@ -633,7 +605,7 @@ export function Composer({ onOpenAdvanced, onOpenWorkflows, hub = false }: Propsalso fuer einen Screenreader ein gewoehnlicher Knopf ohneZustand. Beides steht jetzt da, und `aria-controls` zeigt aufdas Feld, das er aufklappt. */}- {needPrompt && !optionalPrompt && negSupported && !(hub && narrow) && (+ {needPrompt && !optionalPrompt && negSupported && !hub && (<buttononClick={toggleNegative}aria-pressed={showNegative}@@ -645,16 +617,8 @@ export function Composer({ onOpenAdvanced, onOpenWorkflows, hub = false }: PropsNegative</button>)}- {needPrompt && !(hub && narrow) && <PromptHistory onPick={setPrompt} />}- {hub && !narrow && !isUtility && !swapSoon && <ModelChip />}- {hub && !narrow && swapBarShown && <SwapLength videoSeconds={inputSeconds} disabled={isGenerating} />}- {!(hub && narrow) && <div className="flex-1" />}- {hub && !narrow && swapBarShown && <SwapPrice videoSeconds={inputSeconds} />}- {hub && !narrow && !swap && hubCredits != null && (- <span className="hub-text mr-1 hub-fs-13 font-medium tabular-nums" data-hub-price title={`${hubCredits.toLocaleString('en-US')} credits`}>- {swapShortCredits(hubCredits)}- </span>- )}+ {needPrompt && !hub && <PromptHistory onPick={setPrompt} />}+ <div className="flex-1" />{/* The backend axis moved to the global header switch (2.5.7) —the Composer just reflects it via the CreditsMeter. */}{backend === 'cloud' && !hub && <CreditsMeter />}@@ -703,7 +667,7 @@ export function Composer({ onOpenAdvanced, onOpenWorkflows, hub = false }: PropsDiscord, 15.10.2026: a reporter had a Wan 2.2 Animate workflowrunning in ComfyUI and did not know LU could run it; the bareicon never told him. */}- {backend === 'local' && !isMlxImageHost() && (+ {backend === 'local' && !isMlxImageHost() && !hub && (<Tooltip content="Your own ComfyUI workflows, and the tags that pair them with models."><div className="relative">{OWN_WORKFLOW_INTENTS.has(meta.id) ? (@@ -720,7 +684,13 @@ export function Composer({ onOpenAdvanced, onOpenWorkflows, hub = false }: Props</div></Tooltip>)}- {!isUtility && hub && <ImageCountChip />}+ {hub && (+ // The one settings icon of the window: the model, the size and+ // everything else of the tab (AdvancedDrawer).+ <Tooltip content="Model, size and all other settings.">+ <Button variant="ghost" size="sm" icon={SlidersHorizontal} iconOnly onClick={onOpenAdvanced} title="Advanced settings" />+ </Tooltip>+ )}{!isUtility && !hub && (<><CharacterChip />@@ -731,20 +701,25 @@ export function Composer({ onOpenAdvanced, onOpenWorkflows, hub = false }: Props</Tooltip></>)}- {isGenerating ? (- <Button variant="danger" size="md" icon={X} onClick={guardedCancel} className={hub && narrow ? 'h-10 rounded-[20px]' : undefined}>Cancel</Button>+ {hubRun?.running ? (+ <Button variant="danger" size="md" icon={X} onClick={hubRun.cancel} disabled={hubRun.cancelDisabled}>Cancel</Button>+ ) : isGenerating ? (+ <Button variant="danger" size="md" icon={X} onClick={guardedCancel}>Cancel</Button>+ ) : hubRun ? (+ <span className="inline-flex" title={hubRun.ready ? undefined : hubRun.hint}>+ <Button variant="primary" size="lg" icon={Sparkles} disabled={!hubRun.ready} onClick={hubRun.run}>+ {hubRun.price ? `${hubRun.label} · ${hubRun.price}` : hubRun.label}+ </Button>+ </span>) : (// The span carries the hint: a disabled button takes no pointer,// so a title on the button itself would never show.<span className="inline-flex" title={macSetupFirst ? MAC_SETUP_FIRST : (missingSource ?? (upscaleReady ? undefined : UPSCALE_MODEL_FIRST))}>- <Button variant="primary" size={hub ? 'md' : 'lg'} icon={Sparkles} disabled={!canGenerate} onClick={guardedGenerate}- className={hub && narrow ? 'h-10 rounded-[20px] px-4' : undefined}>+ <Button variant="primary" size="lg" icon={Sparkles} disabled={!canGenerate} onClick={guardedGenerate}>{/* Swap Character names its price on the button (the web'sCreateButton): a paid video run, priced by its length. */}{/* With a new voice the lip sync step is in the figure too. */}- {hub && narrow && createPrice- ? <>Create <span className="hub-fs-125 tabular-nums opacity-70">{createPrice}</span></>- : createPrice ? `Create · ${createPrice}` : 'Create'}+ {createPrice ? `Create · ${createPrice}` : 'Create'}</Button></span>)}@@ -755,6 +730,29 @@ export function Composer({ onOpenAdvanced, onOpenWorkflows, hub = false }: Props)}+/** The upload of the window (Character tab): the video of Swap and Motion,+ * the same file the line in the area above takes. */+function HubVideoUpload({ disabled }: { disabled: boolean }) {+ const setVideoInput = useCreateStore((s) => s.setVideoInput)+ const input = useRef<HTMLInputElement>(null)+ return (+ <>+ <input+ ref={input}+ type="file"+ accept="video/mp4,video/webm,video/quicktime"+ className="hidden"+ aria-label="Upload the video"+ data-hub-upload+ onChange={(e) => { const f = e.target.files?.[0]; if (f) setVideoInput(mediaRefFrom(f)); e.target.value = '' }}+ />+ <Tooltip content="Add the video.">+ <Button variant="ghost" size="sm" icon={Upload} iconOnly disabled={disabled} onClick={() => input.current?.click()} title="Upload the video" />+ </Tooltip>+ </>+ )+}+/*** Die Reglerzeile steht MITTIG ueber der Promptbox.*diff --git a/src/components/create/experimental/CreateExperimental.tsx b/src/components/create/experimental/CreateExperimental.tsxindex f7c637a4..08ecb797 100644--- a/src/components/create/experimental/CreateExperimental.tsx+++ b/src/components/create/experimental/CreateExperimental.tsx@@ -486,7 +486,9 @@ function CreateExperimentalInner() {always the exact same height; the prompt window spans the full widthbeneath them. (Previously the Gallery ran full-height alongside both theviewer AND the composer, so it was taller than the viewer.) */}- <div className="flex-1 min-h-0 flex overflow-hidden">+ {/* The Character tab: its column stands exactly over the prompt window+ (index.css, .lu-hub-row), the rails stay at the right. */}+ <div className={hubOpen ? 'lu-hub-row flex-1 min-h-0 overflow-hidden' : 'flex-1 min-h-0 flex overflow-hidden'}>{hubOpen ? (<CharacterHubstage={{@@ -499,8 +501,6 @@ function CreateExperimentalInner() {onSaveCharacter: setCharacterFrom,comfyStarting,}}- onOpenAdvanced={() => setAdvancedOpen(true)}- onOpenWorkflows={() => { setWorkflowsOpen(true); setManagerNoticeSeen(true) }}onOpenGallery={() => setPanelOpen(true)}/>) : (@@ -517,7 +517,7 @@ function CreateExperimentalInner() {)}{/* On a phone-wide window the Character area takes the whole width(its rails would leave the column 200 px). */}- <div className={hubOpen ? 'contents max-[520px]:hidden' : 'contents'}>+ <div className={hubOpen ? 'lu-hub-rails max-[520px]:hidden' : 'contents'}><CreatePanel open={panelOpen} onOpenChange={setPanelOpen} activeId={shownId} onSelect={openGalleryItem} /><PresetShelfopen={presetsOpen}@@ -528,13 +528,16 @@ function CreateExperimentalInner() {</div></div>- {/* Prompt window — full width, beneath the viewer + gallery. */}- {!hubOpen && <Composer+ {/* Prompt window — full width, beneath the viewer + gallery. The same+ one in every tab, the Character tab included (David, 16.11.2026). */}+ <Composer+ hub={hubOpen}onOpenAdvanced={() => setAdvancedOpen(true)}onOpenWorkflows={() => { setWorkflowsOpen(true); setManagerNoticeSeen(true) }}- />}+ />- <AdvancedDrawer open={advancedOpen} onClose={() => setAdvancedOpen(false)} studioModel={studioPick} />+ <AdvancedDrawer open={advancedOpen} onClose={() => setAdvancedOpen(false)} studioModel={studioPick}+ onOpenWorkflows={() => { setAdvancedOpen(false); setWorkflowsOpen(true); setManagerNoticeSeen(true) }} /><WorkflowsModal open={workflowsOpen} onClose={() => setWorkflowsOpen(false)} /><MaskEditor open={maskOpen} onClose={() => setMaskOpen(false)} />diff --git a/src/components/create/experimental/SpecialIntentControls.tsx b/src/components/create/experimental/SpecialIntentControls.tsxindex 8de3b63d..ff013fa2 100644--- a/src/components/create/experimental/SpecialIntentControls.tsx+++ b/src/components/create/experimental/SpecialIntentControls.tsx@@ -1980,16 +1980,11 @@ export function SwapControls({ oneClick }: {)}-/** What "More options" holds in a panel of the Character area. Nothing that- * was there before falls away: the resolution and the notes of Swap, the- * character's file actions of Image. The model's full schema stays one click- * further, in the settings drawer (CharacterHub links it). */+/** The further settings of an action of the Character tab, shown in the+ * settings of the prompt window (hub/HubSettings): the resolution and the+ * notes of Swap. A character's file actions stand at its head on the stage. */export function SpecialMore({ intent }: { intent: CreateIntent }) {if (intent === 'swap_character') return <SwapMore />- // On the stage the file actions stand at the character on the left. That- // column is gone on a phone-wide window (index.css, .hub-card), so there- // they stay here.- if (intent === 'character') return <div className="min-[701px]:hidden"><CharacterMore /></div>return null}diff --git a/src/components/create/experimental/__tests__/character-prompt-window.test.tsx b/src/components/create/experimental/__tests__/character-prompt-window.test.tsxnew file mode 100644index 00000000..f855faf0--- /dev/null+++ b/src/components/create/experimental/__tests__/character-prompt-window.test.tsx@@ -0,0 +1,124 @@+// @vitest-environment jsdom+/**+ * David, 16.11.2026: the prompt window is the same in every tab of Create,+ * the Character tab included. The same Composer, 660 wide, centred, at the+ * foot, with the same least height. In it only the text field, Create, one+ * settings icon and at most an upload. The tab's own choice (Image, Swap,+ * Motion, Talk) is a row over the window, where the other tabs have theirs.+ */+import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'+import { render, cleanup, screen, fireEvent } from '@testing-library/react'++const generate = vi.fn()+vi.mock('../CreateContext', () => ({+ useCreateExp: () => ({+ generate, cancel: vi.fn(), makeVoice: vi.fn(), quota: null,+ samplerList: [], schedulerList: [], loraList: [], vaeList: [], refreshModelLists: vi.fn(),+ connected: true, modelsLoaded: true, modelLoadError: null, mlxMissing: null,+ installCapability: vi.fn(), installModelBundle: vi.fn(),+ }),+}))+vi.mock('../../../../api/mlx-image', async (orig) => ({+ ...((await orig()) as Record<string, unknown>),+ isMlxImageHost: () => false,+}))++import { Composer } from '../Composer'+import { useCreateStore, type CreateIntent } from '../../../../stores/createStore'+import { useHubRun } from '../hub/hubRun'++const area = () => document.querySelector('[data-prompt-window-area]') as HTMLElement+const column = () => area().firstElementChild as HTMLElement+const win = () => document.querySelector('[data-prompt-window]') as HTMLElement+const shape = () => [area().className, column().className, win().className]+const open = (intent: CreateIntent, hub: boolean) => {+ useCreateStore.getState().setIntent(intent)+ if (intent === 'character') useCreateStore.getState().setCharacterTab('use')+ return render(<Composer hub={hub} onOpenAdvanced={() => {}} onOpenWorkflows={() => {}} />)+}++beforeEach(() => {+ generate.mockClear()+ useHubRun.setState({ stage: null, swap: null })+ useCreateStore.setState({+ backend: 'local', isGenerating: false, batchRun: null, error: null, gallery: [], source: null, prompt: '',+ selectedCharacter: null, videoInput: null, audioInput: null,+ } as never)+})+afterEach(cleanup)++describe('the prompt window of the Character tab', () => {+ it('is built as on Image: the same wrapper, the same 660 column, the same frame', () => {+ open('image', false)+ const image = shape()+ cleanup()+ const seen: string[][] = []+ for (const intent of ['character', 'swap_character', 'motion', 'lipsync'] as CreateIntent[]) {+ open(intent, true)+ seen.push(shape())+ cleanup()+ }+ for (const s of seen) expect(s).toEqual(image)+ expect(image[0]).toContain('min-h-[192px]')+ expect(image[1]).toContain('max-w-[660px]')+ expect(image[1]).toContain('mx-auto')+ })++ it('the text field stands on every action; where the action takes no text it says so', () => {+ open('character', true)+ const field = win().querySelector('textarea')!+ expect(field.disabled).toBe(false)+ cleanup()+ useCreateStore.setState({ backend: 'cloud' } as never)+ open('swap_character', true)+ const swap = win().querySelector('textarea')!+ expect(swap.disabled).toBe(true)+ expect(swap.getAttribute('placeholder')).toBe('Swap needs no text.')+ })++ it('holds only the field, the settings icon and Create, and an upload where the action takes a video', () => {+ open('character', true)+ expect([...win().querySelectorAll('button')].map((b) => b.getAttribute('title') ?? b.textContent)).toEqual(['Advanced settings', 'Create'])+ cleanup()+ open('motion', true)+ expect([...win().querySelectorAll('button')].map((b) => b.getAttribute('title') ?? b.textContent)).toEqual(['Upload the video', 'Advanced settings', 'Create'])+ const file = new File(['v'], 'dance.mp4', { type: 'video/mp4' })+ fireEvent.change(win().querySelector('[data-hub-upload]')!, { target: { files: [file] } })+ expect(useCreateStore.getState().videoInput?.name).toBe('dance.mp4')+ })++ it('the row of the tab stands over the window, in the same column, with Image picked', () => {+ open('character', true)+ const row = screen.getByRole('radiogroup', { name: 'Character action' })+ expect(column().contains(row)).toBe(true)+ expect(row.compareDocumentPosition(win()) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy()+ expect(win().contains(row)).toBe(false)+ expect(row.querySelector('[data-hub-action="image"]')!.getAttribute('aria-checked')).toBe('true')+ cleanup()+ // The other tabs have no such row.+ open('image', false)+ expect(screen.queryByRole('radiogroup', { name: 'Character action' })).toBeNull()+ })++ it('the stage says what the button does where the tab\'s own run cannot start', () => {+ useHubRun.setState({ stage: { run: { label: 'Create', ready: false, hint: 'Create a character first.', run: () => {} } } })+ open('character', true)+ expect((screen.getByRole('button', { name: 'Create' }) as HTMLButtonElement).disabled).toBe(true)+ expect(screen.getByTestId('lane-input-note').textContent).toBe('Create a character first.')+ cleanup()+ const run = vi.fn()+ useHubRun.setState({ stage: { placeholder: 'Describe a new picture of Mira', run: { label: 'Continue in Edit', ready: true, run } } })+ open('character', true)+ expect(win().querySelector('textarea')!.getAttribute('placeholder')).toBe('Describe a new picture of Mira')+ fireEvent.click(screen.getByRole('button', { name: 'Continue in Edit' }))+ expect(run).toHaveBeenCalledTimes(1)+ expect(generate).not.toHaveBeenCalled()+ })++ it('outside the Character tab nothing of the area reaches the window', () => {+ useHubRun.setState({ stage: { run: { label: 'Continue in Edit', ready: true, run: () => {} } } })+ open('image', false)+ expect(screen.queryByRole('button', { name: 'Continue in Edit' })).toBeNull()+ expect(screen.getByRole('button', { name: 'Create' })).toBeTruthy()+ })+})diff --git a/src/components/create/experimental/__tests__/character-stage.test.tsx b/src/components/create/experimental/__tests__/character-stage.test.tsxindex fcf72c66..aabfd859 100644--- a/src/components/create/experimental/__tests__/character-stage.test.tsx+++ b/src/components/create/experimental/__tests__/character-stage.test.tsx@@ -1,13 +1,15 @@// @vitest-environment jsdom/**- * The Character area as David chose it on 16.11.2026 (variant B):- * - no character yet: three steps, one button, four examples, no headline;+ * The Character area as David set it on 16.11.2026:+ * - no character yet: three steps and one button, no headline, no picture;* - "New character" starts with the drop field alone and shows only the* photos the user put there;* - the stage shows only real things: a character without photos gets a* line, never a stand-in picture;* - Rename works on the desktop;- * - nothing of the area moves by itself except the four examples.+ * - the area is one column of the prompt window's width, and it has no+ * bar of its own: the window under it is the Composer of every tab;+ * - nothing of the area moves by itself.*/import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'import { render, cleanup, screen, fireEvent, waitFor } from '@testing-library/react'@@ -27,7 +29,8 @@ vi.mock('../SpecialIntentControls', () => ({ CharacterMore: () => <span data-tesimport { HubEmpty } from '../hub/HubEmpty'import { HubNewCharacter } from '../hub/HubNewCharacter'-import { HubActions, HubCard, HubPhotos, type HubActionState } from '../hub/HubStage'+import { HubCard, HubPhotos } from '../hub/HubStage'+import { HubActionRow } from '../hub/HubActionRow'import { useCreateStore } from '../../../../stores/createStore'import { useCharacterNames } from '../../../../lib/create/character-names'import { __resetSavedCharacters, listSavedCharacters, saveCharacter } from '../../../../lib/saved-characters'@@ -48,26 +51,15 @@ beforeEach(() => {afterEach(() => { cleanup(); vi.unstubAllGlobals() })describe('no character yet', () => {- it('shows the three steps, one button and four examples, and no headline', () => {+ it('shows the three steps and one button: no headline, no picture, no example', () => {const onCreate = vi.fn()- const onTry = vi.fn()- const { container } = hub(<HubEmpty onCreate={onCreate} onTry={onTry} />)+ const { container } = hub(<HubEmpty onCreate={onCreate} />)expect(container.querySelectorAll('ol > li')).toHaveLength(3)- expect(container.querySelectorAll('[data-hub-example]')).toHaveLength(4)expect(container.querySelectorAll('h1, h2, h3')).toHaveLength(0)- expect(screen.getAllByRole('button').filter((b) => b.textContent === 'Create a character')).toHaveLength(1)+ expect(container.querySelectorAll('img, image, svg[viewBox="0 0 120 80"], [data-hub-example]')).toHaveLength(0)+ expect(screen.getAllByRole('button')).toHaveLength(1)fireEvent.click(screen.getByRole('button', { name: 'Create a character' }))expect(onCreate).toHaveBeenCalledTimes(1)- fireEvent.click(container.querySelector('[data-hub-example="swap"]')!)- expect(onTry).toHaveBeenCalledWith('swap')- })-- it('draws the examples with the LU mark, not with a photo', () => {- const { container } = hub(<HubEmpty onCreate={() => {}} onTry={() => {}} />)- expect(container.querySelectorAll('img')).toHaveLength(0)- const marks = [...container.querySelectorAll('image')].map((i) => i.getAttribute('href'))- expect(marks.length).toBeGreaterThanOrEqual(4)- expect(new Set(marks)).toEqual(new Set(['/LU-monogram.svg']))})})@@ -180,63 +172,97 @@ describe('the stage', () => {})})-describe('nothing is lost', () => {- it('a narrow window keeps the character and all it can do: as a head over the photos, never hidden', () => {+const hubCss = () => {+ const css = readFileSync(resolve(__dirname, '../../../../index.css'), 'utf8')+ const from = css.indexOf('/* The area is one column of the prompt window')+ const to = css.indexOf('/* The NEW mark on the Character pill')+ expect(from).toBeGreaterThan(0)+ expect(to).toBeGreaterThan(from)+ return css.slice(from, to)+}++describe('one column, one window', () => {+ it('the area is as wide as the prompt window: 660, centred', () => {+ const block = hubCss()+ expect(block).toMatch(/\.lu-hub-row \{[^}]*grid-template-columns: minmax\(16px, 1fr\) minmax\(0, 660px\) minmax\(max-content, 1fr\)/)+ expect(block).toMatch(/\.lu-hub-row > \.hub-column \{[^}]*grid-column: 2/)+ // The stage is a plain column in it, not a grid across the page.+ expect(block).toMatch(/\.lu-hub \.hub-stage \{[^}]*flex-direction: column/)+ expect(block).not.toMatch(/grid-template-columns: minmax\(0, 210px\)/)+ })++ it('has no bar and no foot of its own', () => {const css = readFileSync(resolve(__dirname, '../../../../index.css'), 'utf8')- const from = css.indexOf('@media (max-width: 700px) {\n .lu-hub .hub-stage')+ expect(css).not.toMatch(/\.hub-bar\b/)+ expect(css).not.toMatch(/\.hub-foot\b/)+ const dir = resolve(__dirname, '../hub')+ for (const f of ['CharacterHub.tsx', 'HubStage.tsx', 'SwapOneClick.tsx', 'HubNewCharacter.tsx', 'HubEmpty.tsx']) {+ const src = readFileSync(resolve(dir, f), 'utf8')+ expect(src, f).not.toMatch(/hub-bar|hub-foot|<Composer/)+ }+ })++ it('the prompt window is not built differently for the Character tab', () => {+ const src = readFileSync(resolve(__dirname, '../Composer.tsx'), 'utf8')+ const from = src.indexOf('data-prompt-window-area')+ const to = src.indexOf('{/* Action bar */}')expect(from).toBeGreaterThan(0)- const narrow = css.slice(from, css.indexOf('\n}', from))- // The card is laid out, not taken away, and nothing in it but the file- // actions (which stand under More options there) is switched off.- expect(narrow).toMatch(/\.lu-hub \.hub-card \{[^}]*overflow: visible/)- expect(narrow).toMatch(/\.hub-portrait \{[^}]*width: 56px/)- const off = [...narrow.matchAll(/([^{}\n]+)\{[^}]*display: none/g)].map((m) => m[1].trim())- expect(off).toEqual(['.lu-hub .hub-card .hub-card-file'])- // Head above the photos, the photos above the bar.- expect(narrow).toMatch(/\.hub-card \{[^}]*grid-row: 2/)- expect(narrow).toMatch(/\.hub-body \{[^}]*grid-row: 3/)- expect(narrow).toMatch(/\.hub-foot \{[^}]*grid-row: 4/)+ const head = src.slice(src.lastIndexOf('<div', from), to)+ // One wrapper, one width, one frame: no branch on `hub` in any of them.+ expect(head).toContain('className="shrink-0 flex flex-col justify-end px-4 pb-4 pt-2 min-h-[192px]"')+ expect(head).toContain('className="mx-auto w-full max-w-[660px] space-y-2.5"')+ expect(head).toMatch(/className="rounded-\[var\(--radius-panel\)\][^"]*" data-prompt-window>/)+ expect(src).not.toMatch(/hub \?\s*(cn\()?'[^']*(px-0|hub-bar)/)+ expect(src).not.toMatch(/!hub && 'max-w/)+ })+})++describe('nothing is lost', () => {+ it('the character stands as a head over its photos with all it can do, at every width', () => {+ const block = hubCss()+ expect(block).toMatch(/\.lu-hub \.hub-card \{[^}]*padding: 10px 0 10px 68px/)+ expect(block).toMatch(/\.hub-card > \.hub-portrait \{[^}]*width: 56px/)+ // Nothing of the area is switched off at any width but the icons of+ // the row on a phone-wide window.+ const off = [...block.matchAll(/([^{}\n]+)\{[^}]*display: none/g)].map((m) => m[1].trim())+ expect(off).toEqual(['.lu-hub .hub-act-item svg'])// Rename, Train a model and Delete are plain children of the card.const c: HubCharacter = { key: 'saved:1', kind: 'saved', name: 'Oma', meta: 'Photos · 2', image: null, photos: [new Blob(['a']), new Blob(['b'])] }const { container } = hub(<HubCard c={c} photo={null} />)const links = container.querySelector('.hub-card [data-hub-card-links]')!for (const sel of ['[data-hub-rename]', '[data-hub-train]', '[data-hub-delete]']) expect(links.querySelector(sel)).not.toBeNull()- expect(links.closest('.hub-card-file')).toBeNull()+ // The file actions of a LoRA character stand at its head as well.+ cleanup()+ const lora: HubCharacter = { key: 'cloud:7', kind: 'cloud', name: 'seven', meta: 'Trained · Flux', image: null, ref: { id: '7', name: 'seven', triggerWord: 'sevenchar', family: 'flux' } }+ const file = hub(<HubCard c={lora} photo={null} />)+ expect(file.container.querySelector('.hub-card [data-testid="file-actions"]')).not.toBeNull()})- it('says once what the price of the picked action means, and only then', () => {- const actions: HubActionState[] = [- { action: 'image', label: 'Character', locked: false, meta: 'Local · free' },- { action: 'swap', label: 'Swap Character', locked: true, meta: 'Runs on LU Cloud' },- ]- const idle = hub(<HubActions actions={actions} active={null} name="Oma" onPick={() => {}} />)- expect(idle.container.querySelector('[data-hub-local-line]')).toBeNull()- cleanup()- const picked = hub(<HubActions actions={actions} active="image" name="Oma" onPick={() => {}} />)- const line = picked.container.querySelectorAll('[data-hub-local-line]')+ it('the row over the window: Image is picked by default, and one line says what Local and Cloud mean', () => {+ useCreateStore.setState({ backend: 'local' } as never)+ useCreateStore.getState().setIntent('character')+ useCreateStore.getState().setCharacterTab('use')+ const { container } = render(<HubActionRow />)+ const row = screen.getByRole('radiogroup', { name: 'Character action' })+ expect(row.querySelector('[data-hub-action="image"]')!.getAttribute('aria-checked')).toBe('true')+ expect([...row.querySelectorAll('[role=radio]')].filter((r) => r.getAttribute('aria-checked') === 'true')).toHaveLength(1)+ const line = container.querySelectorAll('[data-hub-local-line]')expect(line).toHaveLength(1)expect(line[0].textContent).toBe(HUB_LOCAL_LINE)expect(HUB_LOCAL_LINE).toBe('Local runs on your own machine and costs nothing. Cloud prices in credits.')- // The line is not one of those that step aside on a narrow window.expect(line[0].className).not.toMatch(/hidden/)- expect(picked.container.querySelector('[data-hub-action-meta]')!.textContent).toBe('Local · free')+ // A row, not a bar: no frame around it.+ expect(container.querySelector('[data-hub-actions]')!.className).toBe('lu-hub')})})describe('nothing moves by itself', () => {- it('only the four examples of the first page are animated, and they stand still with reduced motion', () => {- const css = readFileSync(resolve(__dirname, '../../../../index.css'), 'utf8')- const from = css.indexOf('/* The stage (variant B')- const to = css.indexOf('/* The NEW mark on the Character pill')- expect(from).toBeGreaterThan(0)- expect(to).toBeGreaterThan(from)- const block = css.slice(from, to)- const animated = [...block.matchAll(/([^{}]+)\{[^{}]*\banimation:(?!\s*none)[^;]+;[^{}]*\}/g)].map((m) => m[1].trim())- expect(animated.length).toBe(4)- for (const sel of animated) expect(sel).toMatch(/^\.lu-hub \.hub-ex-(a|b|tilt|bar)$/)+ it('no rule of the area animates or eases anything', () => {+ const block = hubCss()+ expect(block).not.toMatch(/\banimation\b/)+ expect(block).not.toMatch(/@keyframes/)expect(block).not.toMatch(/\btransition\b/)- const reduced = block.slice(block.indexOf('@media (prefers-reduced-motion: reduce)'))- for (const cls of ['hub-ex-a', 'hub-ex-b', 'hub-ex-tilt', 'hub-ex-bar']) expect(reduced).toContain(`.lu-hub .${cls}`)- expect(reduced).toMatch(/animation: none/)+ const css = readFileSync(resolve(__dirname, '../../../../index.css'), 'utf8')+ expect(css).not.toMatch(/lu-hub-ex|hub-ex-/)})})diff --git a/src/components/create/experimental/__tests__/ein-lokaler-charakter-laesst-sich-loeschen.test.tsx b/src/components/create/experimental/__tests__/ein-lokaler-charakter-laesst-sich-loeschen.test.tsxindex c6004054..bbfc1518 100644--- a/src/components/create/experimental/__tests__/ein-lokaler-charakter-laesst-sich-loeschen.test.tsx+++ b/src/components/create/experimental/__tests__/ein-lokaler-charakter-laesst-sich-loeschen.test.tsx@@ -2,8 +2,8 @@/*** D6 (3.0.7): ein trainierter lokaler Charakter laesst sich loeschen.*- * Seit 3.1.0 Teil B steht der Knopf unter "More options" des Bereichs- * Character, Aktion Image, fuer den in Schritt 1 gewaehlten Charakter.+ * Seit 3.1.0 Teil B steht der Knopf am Kopf des Charakters auf der Buehne+ * des Bereichs Character (CharacterMore, `bare`), bei jeder Aktion.** Create, Character, Use character zeigt die lokalen Charaktere aus* `models/loras` (`char_<name>_zimage.safetensors`). Die Cloud-Liste hatte@@ -37,15 +37,15 @@ vi.mock('../../../../api/comfyui', () => ({}))vi.mock('../../../../api/cloud/loras', () => ({ listLoras: vi.fn(async () => []), deleteLora: vi.fn() }))-import { SpecialMore } from '../SpecialIntentControls'+import { CharacterMore } from '../SpecialIntentControls'import { useCreateStore } from '../../../../stores/createStore'import { listLocalCharacters, characterFromLora } from '../../../../lib/characters'import { hubFromLocal } from '../../../../lib/create/character-hub'-/** The character picked in step 1, and its More options. */+/** The character on the stage, and the file actions at its head. */function showMore(file: string) {useCreateStore.setState({ hubCharacter: hubFromLocal(characterFromLora(file)!) })- return render(<SpecialMore intent="character" />)+ return render(<CharacterMore bare />)}const ANNA = 'char_anna_zimage.safetensors'@@ -76,7 +76,7 @@ describe('ein lokaler Charakter laesst sich loeschen', () => {const labels: (string | null)[] = []for (const ref of refs) {useCreateStore.setState({ hubCharacter: hubFromLocal(ref) })- const view = render(<SpecialMore intent="character" />)+ const view = render(<CharacterMore bare />)labels.push((await screen.findByTestId('local-character-delete')).getAttribute('aria-label'))view.unmount()}diff --git a/src/components/create/experimental/__tests__/eine-kante-und-ein-feld.test.ts b/src/components/create/experimental/__tests__/eine-kante-und-ein-feld.test.tsindex 9db432e2..84bec3c9 100644--- a/src/components/create/experimental/__tests__/eine-kante-und-ein-feld.test.ts+++ b/src/components/create/experimental/__tests__/eine-kante-und-ein-feld.test.ts@@ -70,14 +70,10 @@ describe('D-S32: die Reglerzeile steht mittig ueber der Promptbox', () => {// Promptpanel liegen in DERSELBEN Spalte (`mx-auto w-full max-w-[…]`),// sind damit gleich breit und haben dieselbe Mitte. Faende das hier nicht// mehr statt, waere die Zentrierung eine Zusage ohne Deckung.- // Since the stage of the Character area (3.1.0, variant B) the width of- // that column is the place's in `hub` (the stage's foot spans it), and- // the 660 px stand as the other branch of the same class.- const spalte = code.match(/className=\{cn\('mx-auto w-full space-y-[\d.]+', !hub && 'max-w-\[(\d+)px\]'\)\}/)+ // The Character tab uses this same column (David, 16.11.2026): there is+ // one width, with no branch on `hub`.+ const spalte = code.match(/className="mx-auto w-full max-w-\[(\d+)px\] space-y-[\d.]+"/)expect(spalte, 'die gemeinsame Spalte von Reglerzeile und Promptpanel fehlt').toBeTruthy()- // Since 3.1.0 part B the panel has a second face, the bar of the- // Character area (`hub`): the class stands as the string of the other- // branch, so the quotes may be single.const panel = code.match(/["']rounded-\[var\(--radius-panel\)\][^"']*["']/)expect(panel, 'Promptpanel nicht gefunden').toBeTruthy()expect(panel![0]).toMatch(/\bborder\b/)diff --git a/src/components/create/experimental/__tests__/prompt-assistant-b43.test.tsx b/src/components/create/experimental/__tests__/prompt-assistant-b43.test.tsxindex de882e5e..b84767f9 100644--- a/src/components/create/experimental/__tests__/prompt-assistant-b43.test.tsx+++ b/src/components/create/experimental/__tests__/prompt-assistant-b43.test.tsx@@ -128,7 +128,11 @@ describe('B43: where it sits', () => {const { resolve } = await import('node:path')const src = readFileSync(resolve(__dirname, '../Composer.tsx'), 'utf8')expect(src.match(/<PromptAssistant /g)).toHaveLength(1)- expect(src).toMatch(/<div className="absolute top-2 right-2">\s*<PromptAssistant onUse=\{setPrompt\} align="right" \/>\s*<\/div>\s*<PromptField\s+className="pr-7"/)+ // The Character tab keeps it in the settings of the window instead+ // (hub/HubSettings): its window holds the field, the settings and Create.+ expect(src).toMatch(/\{!hub && \(\s*<div className="absolute top-2 right-2">\s*<PromptAssistant onUse=\{setPrompt\} align="right" \/>\s*<\/div>\s*\)\}\s*<PromptField\s+className=\{hub \? undefined : 'pr-7'\}/)+ const settings = readFileSync(resolve(__dirname, '../hub/HubSettings.tsx'), 'utf8')+ expect(settings.match(/<PromptAssistant /g)).toHaveLength(1)const bar = src.slice(src.indexOf('{/* Action bar */}'))expect(bar).not.toContain('<PromptAssistant')})diff --git a/src/components/create/experimental/__tests__/swap-character-panel.test.tsx b/src/components/create/experimental/__tests__/swap-character-panel.test.tsxindex aacff0e3..a0575731 100644--- a/src/components/create/experimental/__tests__/swap-character-panel.test.tsx+++ b/src/components/create/experimental/__tests__/swap-character-panel.test.tsx@@ -50,7 +50,9 @@ vi.mock('../useStudioPrice', async (orig) => ({import { Composer } from '../Composer'import { SwapStage } from '../SwapStage'-import { SpecialControls, SpecialMore } from '../SpecialIntentControls'+import { SpecialControls } from '../SpecialIntentControls'+import { HubSettings } from '../hub/HubSettings'+import { ModelChip } from '../ModelChip'import { useCharacterHubReleaseStore } from '../../../../lib/create/character-hub-release'import { useCreateStore } from '../../../../stores/createStore'import { useCloudCatalogStore } from '../../../../stores/cloudCatalogStore'@@ -78,14 +80,14 @@ beforeEach(() => {})afterEach(() => cleanup())-/** The panel of the Character area as CharacterHub lays it out: the inputs,- * More options (open here), the bar at the foot. */+/** The panel of the Character area: the inputs, the settings of the prompt+ * window (open here: length, price, resolution, engines), and the window. */function Panel() {const intent = useCreateStore((s) => s.intent())return (<div className="lu-hub"><SpecialControls intent={intent} />- <SpecialMore intent={intent} />+ <HubSettings /><Composer hub onOpenAdvanced={() => {}} onOpenWorkflows={() => {}} /></div>)@@ -104,7 +106,8 @@ describe('the Swap Character panel', () => {it('stands in the order of the sketch: notes and video, people, sound, consent, frame step; no prompt field; SCAIL 2 at 720p', () => {open()expect(panel()).toBeTruthy()- expect(document.querySelector('textarea')).toBeNull()+ // The window's field stands and takes no text here.+ expect((document.querySelector('textarea') as HTMLTextAreaElement).disabled).toBe(true)const order = ['[data-swap-tips]', '[data-swap-figures]', '[data-sound-controls]', '[data-swap-consent]', '[data-swap-built]'].map((sel) => panel().querySelector(sel) as HTMLElement)for (const el of order) expect(el).toBeTruthy()@@ -123,7 +126,7 @@ describe('the Swap Character panel', () => {expect([...res.querySelectorAll('[role=radio]')].map((b) => b.textContent)).toEqual(['480p', '720p'])expect(res.querySelector('[aria-checked=true]')?.textContent).toBe('720p')expect(useCreateStore.getState().cloudStudioOptions.resolution).toBe('720p')- // Length and price sit in the bar once there is a video to measure.+ // Length and price stand in the settings once there is a video to measure.expect(screen.queryByRole('button', { name: 'Length' })).toBeNull()expect(document.querySelector('[data-clip-price]')).toBeNull()expect(swapClipLimits('scail-2').max).toBeGreaterThanOrEqual(15)@@ -275,7 +278,9 @@ describe('two steps in the panel (14.11.2026)', () => {it('the picker shows Kling greyed out with "one person only" for several people, SCAIL 2 recommended', () => {useCreateStore.setState({ videoInput: clip, swapFrame: FRAME, swapFigures: [{ image: null, role: '' }, { image: null, role: '' }] } as never)- open()+ // The chip itself: the Character tab's Swap picks its engines in the+ // settings (SwapPicks); the chip's rules for Swap stay pinned here.+ render(<ModelChip />)const chip = [...document.querySelectorAll('button')].find((b) => /SCAIL 2/.test(b.textContent ?? '') && !b.closest('[role=listbox]'))!fireEvent.click(chip)const kling = screen.getByText('Kling 3.0 Pro \u2022 Motion Control').closest('button') as HTMLButtonElementdiff --git a/src/components/create/experimental/__tests__/swap-one-click-ui.test.tsx b/src/components/create/experimental/__tests__/swap-one-click-ui.test.tsxindex 37499199..93c88c1a 100644--- a/src/components/create/experimental/__tests__/swap-one-click-ui.test.tsx+++ b/src/components/create/experimental/__tests__/swap-one-click-ui.test.tsx@@ -4,8 +4,9 @@* of the web's swap-one-click-ui.test.tsx, 4e121fc0): ONE button with the* total (frame + video), one press runs the chain, a refusal of the frame* step shows the quiet sentence and books no video, the consent is a must,- * and without the switch the area keeps the old panel. Every way to the- * server is a fake, the catalogue a fixture.+ * and without the switch the area keeps the old panel. The button is the one+ * of the prompt window under the area (the Composer), not a bar of its own.+ * Every way to the server is a fake, the catalogue a fixture.*/import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'import { render, cleanup, screen, act, fireEvent, renderHook } from '@testing-library/react'@@ -59,6 +60,7 @@ vi.mock('../../../../api/cloud/jobs', async (orig) => ({}))import { SwapOneClick, useSwapOneClickShown } from '../hub/SwapOneClick'+import { Composer } from '../Composer'import { useCreateStore } from '../../../../stores/createStore'import { useCloudCatalogStore } from '../../../../stores/cloudCatalogStore'import { useCharacterHubReleaseStore } from '../../../../lib/create/character-hub-release'@@ -70,8 +72,14 @@ import { SWAP_CONSENT_TEXT } from '../../../../lib/render/swap'const PIXEL = 'data:image/jpeg;base64,/9j/4AAQ'const flush = () => act(async () => { for (let i = 0; i < 12; i++) await new Promise((r) => setTimeout(r, 0)) })+// The flow and the prompt window under it: the button is the window's.function Panel() {- return <div className="lu-hub flex flex-col"><SwapOneClick onChangeCharacter={() => {}} onOpenAdvanced={() => {}} /></div>+ return (+ <>+ <div className="lu-hub flex flex-col"><SwapOneClick onChangeCharacter={() => {}} /></div>+ <Composer hub onOpenAdvanced={() => {}} onOpenWorkflows={() => {}} />+ </>+ )}const createButton = () => screen.getByRole('button', { name: /^Create/ }) as HTMLButtonElement@@ -209,6 +217,37 @@ describe('one button, one price', () => {})})+describe('one window', () => {+ it('has no bar of its own: Create, Cancel and Continue are the prompt window\'s', async () => {+ render(<Panel />)+ await flush()+ expect(document.querySelector('[data-swap-bar]')).toBeNull()+ expect(document.querySelector('.hub-bar')).toBeNull()+ const win = document.querySelector('[data-prompt-window]')!+ expect(win.contains(createButton())).toBe(true)+ expect(screen.getAllByRole('button', { name: /^Create/ })).toHaveLength(1)+ // The video can come in through the window as well.+ expect(win.querySelector('[data-hub-upload]')).toBeTruthy()+ })++ it('the check of the first frame asks in the window\'s field, Try again stands under the pictures', async () => {+ render(<Panel />)+ await flush()+ fireEvent.click(screen.getByRole('switch', { name: 'Check first frame before video' }))+ fireEvent.click(createButton())+ await flush()+ const win = document.querySelector('[data-prompt-window]')!+ const field = win.querySelector('textarea')!+ expect(field.getAttribute('placeholder')).toBe("What's wrong? (optional)")+ expect(win.contains(screen.getByRole('button', { name: /^Continue · 48k/ }))).toBe(true)+ fireEvent.change(field, { target: { value: 'wrong hair' } })+ fireEvent.click(document.querySelector('[data-swap-retry]')!)+ await flush()+ expect(cloud.submits.map((s) => s.params.swap_step)).toEqual(['frame', 'frame'])+ expect(JSON.stringify(cloud.submits[1])).toContain('wrong hair')+ })+})+describe('the gates', () => {it('without the consent the button stays off and nothing goes up', async () => {useCreateStore.setState({ swapConsent: false })diff --git a/src/components/create/experimental/hub/CharacterHub.tsx b/src/components/create/experimental/hub/CharacterHub.tsxindex 31ceba81..44d38198 100644--- a/src/components/create/experimental/hub/CharacterHub.tsx+++ b/src/components/create/experimental/hub/CharacterHub.tsx@@ -1,60 +1,47 @@-// The Character area of Create (3.1.0 part B). The stage David chose on-// 16.11.2026 (uebergabe-310/character-design, variant B) in place of the one-// narrow column of the first build:+// The Character area of Create (3.1.0 part B), as David set it on 16.11.2026:+// the prompt window is the same Composer as in every tab, 660 wide, at the+// same place under the area (CreateExperimental renders it). The area is one+// column of that width above it://-// no character the three steps and "Create a character", beside them-// what a character can do (HubEmpty)+// no character the three steps and "Create a character" (HubEmpty)// new the page that makes one from photos or a LoRA file// (HubNewCharacter)-// the stage the characters as tabs, the picked one on the left, its-// photos or the panel of an action on the right, and the-// bar across the foot with Image, Swap, Motion and Talk+// the stage the characters as tabs, the picked one as a head line,+// under it the inputs of the action and its photos// training a page of its own, the panel as it was//-// The inner intent ids and the panels of the actions are untouched-// (lib/create/character-hub.ts): an action is still a name for an intent.+// What the action is stands in the row over the window (HubActionRow), and+// what the window's button does in the states the tab's run does not cover+// is said through hubRun. The inner intent ids and the panels of the actions+// are untouched (lib/create/character-hub.ts).-import { useEffect, useState, type ReactNode } from 'react'+import { useEffect, useMemo, useRef, useState, type ReactNode } from 'react'import { ChevronLeft, Film, X } from 'lucide-react'-import { useCreateStore, type CreateIntent } from '../../../../stores/createStore'-import { useUIStore, type CloudTeaserTarget } from '../../../../stores/uiStore'-import { useSettingsStore } from '../../../../stores/settingsStore'-import { useCloudCatalogStore } from '../../../../stores/cloudCatalogStore'-import { useCharacterHubReleased } from '../../../../lib/create/character-hub-release'-import {- HUB_ACTIONS, HUB_SWAP_SOON, actionCloudPrice, actionMeta, actionOfIntent, intentOfAction,- type HubAction, type HubCharacter,-} from '../../../../lib/create/character-hub'-import { isMlxImageHost } from '../../../../api/mlx-image'-import { mlxFollowsMotion, mlxTalking } from '../../../../api/mlx-video'-import { INTENT_MAP } from '../intents'-import { useIntentLanes } from '../IntentBar'+import { useCreateStore } from '../../../../stores/createStore'+import { actionOfIntent, type HubCharacter } from '../../../../lib/create/character-hub'+import { useCreateExp } from '../CreateContext'import { Stage } from '../Stage'-import { Composer, LaneControls } from '../Composer'-import { SpecialControls, SpecialMore } from '../SpecialIntentControls'-import { cn } from '../../ui/cn'-import { HUB_COLUMN, HubBarTopContext, HubCharactersContext, MoreOptions } from './HubParts'+import { SpecialControls } from '../SpecialIntentControls'+import { ModelChip } from '../ModelChip'+import { HubCharactersContext } from './HubParts'import { HubEmpty } from './HubEmpty'import { HubNewCharacter } from './HubNewCharacter'-import { HubActions, HubCard, HubPhotos, HubTabs, type HubActionState } from './HubStage'+import { HubCard, HubPhotos, HubTabs } from './HubStage'import { SwapOneClick, useSwapOneClickShown } from './SwapOneClick'-import { openHubAction, useCharacterPhotos, useHubCharacters } from './hubCharacters'+import { openHubAction, openStageAction, useCharacterPhotos, useHubCharacters } from './hubCharacters'+import { useHubRun, type HubStageSlot } from './hubRun'/** How long the first page waits for the list before it shows itself. */const LIST_GRACE_MS = 1500-type TeaserIntent = Extract<CloudTeaserTarget, { surface: 'intent' }>['intent']-interface Props {/** The props the Stage takes, as CreateExperimental hands them to it. */stage: Omit<React.ComponentProps<typeof Stage>, 'hub'>- onOpenAdvanced: () => void- onOpenWorkflows: () => void/** "Frames from a gallery video": the gallery opens, a clip there saves its frames. */onOpenGallery: () => void}-export function CharacterHub({ stage, onOpenAdvanced, onOpenWorkflows, onOpenGallery }: Props) {+export function CharacterHub({ stage, onOpenGallery }: Props) {const step = useCreateStore((s) => s.hubStep)const intent = useCreateStore((s) => s.intent())const characterTab = useCreateStore((s) => s.characterTab)@@ -63,31 +50,53 @@ export function CharacterHub({ stage, onOpenAdvanced, onOpenWorkflows, onOpenGalconst setHubStep = useCreateStore((s) => s.setHubStep)const setError = useCreateStore((s) => s.setError)const { list, loading } = useHubCharacters()- // Swap with the account switch on the cloud: the one click flow, with its- // own bar (hub/SwapOneClick.tsx). Without it the panel as before.+ // Swap with the account switch on the cloud: the one click flow, run+ // through the same prompt window (hub/SwapOneClick.tsx).const oneClick = useSwapOneClickShown()- const pickAction = usePickAction()// The character as the list has it now (a new name, a new picture), for as// long as it is in the list.const current = (picked && list.find((c) => c.key === picked.key)) || pickedconst training = step === 'panel' && intent === 'character' && characterTab === 'train'- const action = step === 'panel' && !training ? actionOfIntent(intent) : null- const { photos, loading: photosLoading } = useCharacterPhotos(step === 'what' || step === 'panel' ? current : null)+ const onStage = (step === 'what' || step === 'panel') && !training+ const action = onStage ? actionOfIntent(intent) : null+ const { photos, loading: photosLoading } = useCharacterPhotos(onStage ? current : null)++ // The stage: a training set left open is not an action of it.+ const toStage = (to: 'what' | 'who') => {+ const st = useCreateStore.getState()+ if (st.characterTab === 'train') st.setCharacterTab('use')+ setHubStep(to)+ }++ // Outside the training page the tab is not the training: the row over the+ // window shows Image, so the window is Image's (a field, Create).+ useEffect(() => {+ if (step !== 'panel' && intent === 'character' && characterTab === 'train') useCreateStore.getState().setCharacterTab('use')+ }, [step, intent, characterTab])// Nobody picked yet, and there are characters: the first one takes the- // stage, so the area opens on something of the user's own.+ // stage, so the area opens on something of the user's own. Image is the+ // action it opens on; nothing of the character is put into the run before+ // somebody asks for a picture (the window's button does that, below).const first = list[0]useEffect(() => {if (step === 'who' && first) {+ const st = useCreateStore.getState()setHubCharacter(first)- setHubStep('what')+ st.setIntent('character')+ st.setCharacterTab('use')+ // A LoRA file of this machine would join the image chain and bring its+ // model along (the Image tab reads both): that waits for the button.+ // A cloud character is only a name for the run of this tab.+ if (first.kind !== 'local') st.setSelectedCharacter(first.ref ?? null)+ setHubStep('panel')}}, [step, first, setHubCharacter, setHubStep])// Image opened from outside the stage (a training that just finished, a// Reuse from the gallery) runs on a character nobody picked here: that- // character takes the stage, so the left says who the picture will show.+ // character takes the stage, so the head says who the picture will show.const running = useCreateStore((s) => s.selectedCharacter)const runningOnStage = action === 'image' && !picked && running ? list.find((c) => c.ref?.id === running.id) : undefineduseEffect(() => {@@ -106,19 +115,20 @@ export function CharacterHub({ stage, onOpenAdvanced, onOpenWorkflows, onOpenGalconst pick = (c: HubCharacter | null) => {setHubCharacter(c)- if (step === 'panel' && action) {- void openHubAction(action, c, true).then((err) => { if (err) setError(err) })- } else {- setHubStep('what')- }+ void openStageAction(action ?? 'image', c, true).then((err) => { if (err) setError(err) })}+ useStageSlot({ step, training, action, current, oneClick })+ // Image: the notes of the run stand once the character is in it.+ const inRun = !!current?.ref && running?.id === current.ref.id+ const fromPhotos = !!current && !current.ref && (current.photos?.length ?? 0) > 0+let body: ReactNodeif (step === 'new') {body = (<HubNewCharacter- onBack={() => setHubStep(picked ? 'what' : 'who')}- onSaved={(c) => { setHubCharacter(c); setHubStep(c ? 'what' : 'who') }}+ onBack={() => toStage(picked ? 'what' : 'who')}+ onSaved={(c) => { setHubCharacter(c); toStage(c ? 'what' : 'who') }}onOpenGallery={onOpenGallery}/>)@@ -126,118 +136,129 @@ export function CharacterHub({ stage, onOpenAdvanced, onOpenWorkflows, onOpenGalbody = (<div className="hub-page" data-hub-training><div className="hub-line flex h-[35px] shrink-0 items-center gap-2 border-b hub-fs-13">- <button type="button" onClick={() => setHubStep(picked ? 'what' : 'who')} className="hub-muted flex items-center gap-1" data-hub-back>+ <button type="button" onClick={() => toStage(picked ? 'what' : 'who')} className="hub-muted flex items-center gap-1" data-hub-back><ChevronLeft size={13} />Characters</button><span className="hub-dim" aria-hidden>/</span><span className="hub-text font-medium">Train a model</span></div>- <div className="min-h-0 flex-1 overflow-y-auto scrollbar-thin">- <div className={cn(HUB_COLUMN, 'pb-4')}>- <div className="pt-3 empty:hidden"><Stage hub {...stage} /></div>- <HubPanel onOpenAdvanced={onOpenAdvanced} />- </div>- </div>- <div className={cn(HUB_COLUMN, 'shrink-0')}>- <Composer hub onOpenAdvanced={onOpenAdvanced} onOpenWorkflows={onOpenWorkflows} />+ <div className="min-h-0 flex-1 overflow-y-auto scrollbar-thin pb-4">+ <div className="pt-3 empty:hidden"><Stage hub {...stage} /></div>+ <HubPanel />+ {/* What the training runs on, said on its page. */}+ <div className="flex justify-center pt-2.5 empty:hidden" data-hub-train-model><ModelChip /></div></div></div>)} else if (step === 'who') {body = loading && !waited? <p className="hub-dim py-6 hub-fs-13" data-hub-step="who">Loading your characters…</p>- : <HubEmpty onCreate={() => setHubStep('new')} onTry={(a) => { setHubCharacter(null); pickAction(a) }} />+ : <HubEmpty onCreate={() => setHubStep('new')} />} else {body = (- <HubBarTopContext.Provider value={<StageActions active={action} name={current?.name ?? null} family={current?.ref?.family} onPick={pickAction} />}>- <div className="hub-stage" data-hub-stage>- <HubTabs- list={list}- loading={loading}- current={current?.key ?? null}- photoOnly={!current}- onPick={pick}- onPhotoOnly={() => pick(null)}- onNew={() => setHubStep('new')}- />- <HubCard c={current} photo={photos[0] ?? null} />- {step === 'what' && (- <>- <div className="hub-body scrollbar-thin pb-4 pt-4"><HubPhotos c={current} photos={photos} loading={photosLoading} /></div>- <div className="hub-foot"><div className="hub-bar" data-hub-bar="what"><StageActions active={null} name={current?.name ?? null} family={current?.ref?.family} onPick={pickAction} /></div></div>- </>- )}- {step === 'panel' && oneClick && (- <SwapOneClick onChangeCharacter={() => setHubStep('what')} onOpenAdvanced={onOpenAdvanced} />- )}- {step === 'panel' && !oneClick && (- <>- <div className="hub-body scrollbar-thin pb-4">- <div className="pt-3 empty:hidden"><Stage hub {...stage} /></div>- <HubPanel onOpenAdvanced={onOpenAdvanced} />- </div>- <div className="hub-foot"><Composer hub onOpenAdvanced={onOpenAdvanced} onOpenWorkflows={onOpenWorkflows} /></div>- </>- )}- </div>- </HubBarTopContext.Provider>+ <div className="hub-stage" data-hub-stage>+ <HubTabs+ list={list}+ loading={loading}+ current={current?.key ?? null}+ photoOnly={!current}+ onPick={pick}+ onPhotoOnly={() => pick(null)}+ onNew={() => setHubStep('new')}+ />+ <HubCard c={current} photo={photos[0] ?? null} />+ <StageClip />+ {oneClick ? (+ <SwapOneClick onChangeCharacter={() => toStage('what')} />+ ) : (+ <div className="hub-body scrollbar-thin pb-4">+ <div className="pt-3 empty:hidden"><Stage hub {...stage} /></div>+ {(action !== 'image' || inRun || !current) && <HubPanel />}+ {action === 'image' && fromPhotos && (+ <p className="hub-dim pt-3 text-center hub-fs-125" data-hub-from-photos>Pictures of {current.name} are made in Edit, from its photos.</p>+ )}+ {action === 'image' && <div className="pt-4"><HubPhotos c={current} photos={photos} loading={photosLoading} /></div>}+ </div>+ )}+ </div>)}return (<HubCharactersContext.Provider value={list}>- <section className="lu-hub flex min-w-0 flex-1 flex-col overflow-hidden px-6" data-character-hub={step} aria-label="Character">+ {/* The column of the prompt window under it (index.css, .lu-hub-row). */}+ <section className="lu-hub hub-column" data-character-hub={step} aria-label="Character">{body}</section></HubCharactersContext.Provider>)}-/** The switch picks an action. A tab that cannot run here (Swap in local- * mode, a Mac lane without its model) opens the Cloud sheet, as its pill- * did. */-function usePickAction() {- const { intents, lockedOf } = useIntentLanes()- const setCloudTeaser = useUIStore((s) => s.setCloudTeaser)+/** What the stage says about the prompt window (hub/hubRun.ts): the line in+ * its field, and the button in the states the tab's own run does not cover.+ * The one click swap writes its own slot. */+function useStageSlot({ step, training, action, current, oneClick }: {+ step: string; training: boolean; action: ReturnType<typeof actionOfIntent>; current: HubCharacter | null; oneClick: boolean+}) {+ const { generate } = useCreateExp()+ const setStage = useHubRun((s) => s.setStage)+ const prompt = useCreateStore((s) => s.prompt.trim().length > 0)+ const selected = useCreateStore((s) => s.selectedCharacter?.id ?? null)const setError = useCreateStore((s) => s.setError)- return (a: HubAction) => {- const intent = intentOfAction(a)- const meta = intents.find((m) => m.id === intent) ?? INTENT_MAP[intent]- if (lockedOf(meta)) { setCloudTeaser({ surface: 'intent', intent: intent as TeaserIntent }); return }- const { hubCharacter: c, hubStep } = useCreateStore.getState()- // From the stage the character's picture fills the inputs; switching- // the action keeps what the panel already holds.- void openHubAction(a, c, hubStep !== 'panel').then((err) => { if (err) setError(err) })- }+ const name = current?.name ?? null+ const key = current?.key ?? null+ const ref = current?.ref?.id ?? null+ const photoCharacter = !!current && !current.ref && (current.photos?.length ?? 0) > 0+ // The character as it is when the button is pressed (the list hands out a+ // new object on every load; the slot goes by its key).+ const onStage = useRef(current)+ const start = useRef(generate)+ useEffect(() => { onStage.current = current; start.current = generate }, [current, generate])+ const slot = useMemo<HubStageSlot | null>(() => {+ if (training || oneClick) return null+ const wait = (hint: string): HubStageSlot => ({ placeholder: 'Describe a new picture of your character', run: { label: 'Create', ready: false, hint, run: () => {} } })+ if (step === 'new') return wait('Save the character first.')+ if (step === 'who') return wait('Create a character first.')+ if (action !== 'image') return null+ if (!key) return wait('Pick a character for Image. A photo is enough for Swap and Motion.')+ const placeholder = `Describe a new picture of ${name}`+ if (photoCharacter) {+ // No LoRA to run: the picture is made in Edit, from the photos.+ return {+ placeholder,+ run: {+ label: 'Continue in Edit',+ ready: true,+ run: () => { void openHubAction('image', onStage.current) },+ },+ }+ }+ if (ref && selected !== ref) {+ // The character is on the stage and not yet in the run: Create puts+ // it there (its LoRA, its model) and starts.+ return {+ placeholder,+ run: {+ label: 'Create',+ ready: prompt,+ run: () => {+ void openStageAction('image', onStage.current).then((err) => {+ if (err) { setError(err); return }+ void start.current()+ })+ },+ },+ }+ }+ return { placeholder }+ }, [training, oneClick, step, action, key, name, ref, photoCharacter, selected, prompt, setError])+ useEffect(() => { setStage(slot) }, [slot, setStage])+ useEffect(() => () => setStage(null), [setStage])}-/** The switch with what each action costs or where it runs. */-function StageActions({ active, name, family, onPick }: { active: HubAction | null; name: string | null; family: string | undefined; onPick: (a: HubAction) => void }) {- const backend = useCreateStore((s) => s.backend)- const cloudFeatures = useSettingsStore((s) => s.settings.cloudTeasersEnabled)- const released = useCharacterHubReleased()- useCloudCatalogStore((s) => s.fetchedAt)- const { intents, lockedOf } = useIntentLanes()- const showCloud = backend === 'cloud' || cloudFeatures- const actions: HubActionState[] = HUB_ACTIONS.flatMap((a) => {- const intent: CreateIntent = intentOfAction(a)- const meta = intents.find((m) => m.id === intent)- // Left out where the tab is left out (Cloud features off, or a Mac- // without the lane), as in the old pill bar.- if (!meta) return []- const locked = lockedOf(meta)- // Local: the action has a lane on this machine. In cloud mode that is- // asked of the local backend.- const local = !lockedOfLocal(intents, intent, backend, lockedOf)- const soon = a === 'swap' && !locked && !released- const price = actionCloudPrice(a, a === 'image' ? family : undefined)- const line = soon ? HUB_SWAP_SOON : locked ? 'Runs on LU Cloud' : actionMeta({ local, cloudPrice: price, showCloud: backend === 'cloud' || (showCloud && !local) })- return [{ action: a, label: meta.label, locked, meta: line }]- })- return <HubActions actions={actions} active={active} name={name} onPick={onPick} right={active ? <StageClip /> : null} />-}+// ── the panel of an action ──────────────────────────────────────────────────-/** The clip a panel holds, by its name, with the way to take it out. Swap+/** The clip the action holds, by its name, with the way to take it out. Swap* hands it on to Motion and Talk, so it stands where all three see it. */function StageClip() {const intent = useCreateStore((s) => s.intent())@@ -245,57 +266,24 @@ function StageClip() {const setVideoInput = useCreateStore((s) => s.setVideoInput)if (!videoInput || !(intent === 'swap_character' || intent === 'motion' || intent === 'lipsync')) return nullreturn (- <span className="hub-muted flex min-w-0 shrink items-center gap-1.5 hub-fs-12" data-hub-clip>+ <p className="hub-muted hub-line flex min-h-8 shrink-0 items-center gap-1.5 border-b hub-fs-12" data-hub-clip><Film size={13} className="hub-dim shrink-0" />- <span className="max-w-[180px] truncate">{videoInput.name}</span>- <button type="button" onClick={() => setVideoInput(null)} className="hub-dim p-0.5" title="Remove the video" aria-label="Remove the video">+ <span className="min-w-0 truncate">{videoInput.name}</span>+ <button type="button" onClick={() => setVideoInput(null)} className="hub-dim ml-auto p-0.5" title="Remove the video" aria-label="Remove the video"><X size={12} /></button>- </span>+ </p>)}-/** Whether an action is locked on the LOCAL backend of this machine (for- * the word "Local" in cloud mode too). In local mode it is the tab's own- * lock; in cloud mode the intents that have a local lane at all. */-function lockedOfLocal(- intents: ReturnType<typeof useIntentLanes>['intents'],- intent: CreateIntent,- backend: string,- lockedOf: ReturnType<typeof useIntentLanes>['lockedOf'],-): boolean {- const meta = intents.find((m) => m.id === intent) ?? INTENT_MAP[intent]- if (backend !== 'cloud') return lockedOf(meta)- if (isMlxImageHost()) {- // The Mac's own lanes: Character Studio always, Motion and Talk while- // their models are installed (asked on the local rule in the store).- const videos = useCreateStore.getState().videoModelList- return !(intent === 'character' || (intent === 'motion' && mlxFollowsMotion(videos)) || (intent === 'lipsync' && mlxTalking(videos).tab))- }- return !meta.hasLocalLane-}--// ── the panel of an action ──────────────────────────────────────────────────--function HubPanel({ onOpenAdvanced }: { onOpenAdvanced: () => void }) {+/** The inputs of the picked action: the lines of Motion, Talk and Swap, the+ * notes of Image, the training. Its model and its other settings are in the+ * settings of the prompt window (AdvancedDrawer). */+function HubPanel() {const intent = useCreateStore((s) => s.intent())- const backend = useCreateStore((s) => s.backend)- const released = useCharacterHubReleased()- const swapSoon = intent === 'swap_character' && (!released || backend !== 'cloud')return (<div data-hub-step="panel" data-hub-intent={intent}><SpecialControls intent={intent} />- {!swapSoon && (- <>- {intent !== 'swap_character' && <div className="pt-2.5 empty:hidden"><LaneControls /></div>}- <MoreOptions testId="hub-more">- <SpecialMore intent={intent} />- <button type="button" onClick={onOpenAdvanced} className="hub-muted hub-fs-125 underline decoration-[var(--hub-edge)] underline-offset-[3px]">- All settings of the model- </button>- </MoreOptions>- </>- )}</div>)}diff --git a/src/components/create/experimental/hub/HubActionRow.tsx b/src/components/create/experimental/hub/HubActionRow.tsxnew file mode 100644index 00000000..5838ebc3--- /dev/null+++ b/src/components/create/experimental/hub/HubActionRow.tsx@@ -0,0 +1,133 @@+// The row above the prompt window of the Character tab: Image, Swap, Motion+// and Talk (David, 16.11.2026). It stands where every tab of Create has its+// own row of controls (LaneControls, ThreeDControls), centred over the+// window, and it is a row, not a bar: no frame, nothing that moves. Beside+// the picked action its price or where it runs, under it the one line that+// says what Local and Cloud mean.++import type { ReactNode } from 'react'+import { Image as ImageIcon, Mic, PersonStanding, Replace } from 'lucide-react'+import { useCreateStore, type CreateIntent } from '../../../../stores/createStore'+import { useUIStore, type CloudTeaserTarget } from '../../../../stores/uiStore'+import { useSettingsStore } from '../../../../stores/settingsStore'+import { useCloudCatalogStore } from '../../../../stores/cloudCatalogStore'+import { useCharacterHubReleased } from '../../../../lib/create/character-hub-release'+import {+ ACTION_LABEL, ACTION_LINE, HUB_ACTIONS, HUB_LOCAL_LINE, actionCloudPrice, actionMeta, actionOfIntent,+ intentOfAction, type HubAction,+} from '../../../../lib/create/character-hub'+import { isMlxImageHost } from '../../../../api/mlx-image'+import { mlxFollowsMotion, mlxTalking } from '../../../../api/mlx-video'+import { INTENT_MAP } from '../intents'+import { useIntentLanes } from '../IntentBar'+import { cn } from '../../ui/cn'+import { openStageAction } from './hubCharacters'++export const ACTION_ICON: Record<HubAction, ReactNode> = {+ image: <ImageIcon size={14} />,+ swap: <Replace size={14} />,+ motion: <PersonStanding size={14} />,+ talk: <Mic size={14} />,+}++type TeaserIntent = Extract<CloudTeaserTarget, { surface: 'intent' }>['intent']++/** The row picks an action. A tab that cannot run here (Swap in local mode,+ * a Mac lane without its model) opens the Cloud sheet, as its pill did. */+export function usePickAction() {+ const { intents, lockedOf } = useIntentLanes()+ const setCloudTeaser = useUIStore((s) => s.setCloudTeaser)+ const setError = useCreateStore((s) => s.setError)+ return (a: HubAction) => {+ const intent = intentOfAction(a)+ const meta = intents.find((m) => m.id === intent) ?? INTENT_MAP[intent]+ if (lockedOf(meta)) { setCloudTeaser({ surface: 'intent', intent: intent as TeaserIntent }); return }+ const st = useCreateStore.getState()+ // Leaving the training or the page of a new character for an action:+ // the stage comes back.+ const fresh = st.hubStep !== 'panel' || (st.intent() === 'character' && st.characterTab === 'train')+ if (st.hubStep === 'new') st.setHubStep(st.hubCharacter ? 'what' : 'who')+ // From the stage the character's picture fills the inputs; switching+ // the action keeps what the panel already holds.+ void openStageAction(a, st.hubCharacter, fresh).then((err) => { if (err) setError(err) })+ }+}++/** Whether an action is locked on the LOCAL backend of this machine (for+ * the word "Local" in cloud mode too). In local mode it is the tab's own+ * lock; in cloud mode the intents that have a local lane at all. */+function lockedOfLocal(+ intents: ReturnType<typeof useIntentLanes>['intents'],+ intent: CreateIntent,+ backend: string,+ lockedOf: ReturnType<typeof useIntentLanes>['lockedOf'],+): boolean {+ const meta = intents.find((m) => m.id === intent) ?? INTENT_MAP[intent]+ if (backend !== 'cloud') return lockedOf(meta)+ if (isMlxImageHost()) {+ // The Mac's own lanes: Character Studio always, Motion and Talk while+ // their models are installed (asked on the local rule in the store).+ const videos = useCreateStore.getState().videoModelList+ return !(intent === 'character' || (intent === 'motion' && mlxFollowsMotion(videos)) || (intent === 'lipsync' && mlxTalking(videos).tab))+ }+ return !meta.hasLocalLane+}++export function HubActionRow() {+ const backend = useCreateStore((s) => s.backend)+ const intent = useCreateStore((s) => s.intent())+ const training = useCreateStore((s) => s.intent() === 'character' && s.characterTab === 'train' && s.hubStep === 'panel')+ const family = useCreateStore((s) => s.hubCharacter?.ref?.family)+ const cloudFeatures = useSettingsStore((s) => s.settings.cloudTeasersEnabled)+ const released = useCharacterHubReleased()+ useCloudCatalogStore((s) => s.fetchedAt)+ const { intents, lockedOf } = useIntentLanes()+ const onPick = usePickAction()+ const active = training ? null : actionOfIntent(intent)+ const showCloud = backend === 'cloud' || cloudFeatures+ const actions = HUB_ACTIONS.flatMap((a) => {+ const of: CreateIntent = intentOfAction(a)+ const meta = intents.find((m) => m.id === of)+ // Left out where the tab is left out (Cloud features off, or a Mac+ // without the lane), as in the old pill bar.+ if (!meta) return []+ const locked = lockedOf(meta)+ // Local: the action has a lane on this machine. In cloud mode that is+ // asked of the local backend. Swap that is not released yet says so in+ // its panel, once.+ const local = !lockedOfLocal(intents, of, backend, lockedOf)+ const soon = a === 'swap' && !locked && !released+ const price = actionCloudPrice(a, a === 'image' ? family : undefined)+ const line = soon ? '' : locked ? 'Runs on LU Cloud' : actionMeta({ local, cloudPrice: price, showCloud: backend === 'cloud' || (showCloud && !local) })+ return [{ action: a, label: meta.label, locked, meta: line }]+ })+ const on = actions.find((a) => a.action === active) ?? null+ return (+ // The tokens of the area (.lu-hub) come along: the row stands in the+ // Composer, outside the area's own section.+ <div className="lu-hub" data-hub-actions>+ <div className="flex flex-wrap items-center justify-center gap-x-3 gap-y-1">+ <div role="radiogroup" aria-label="Character action" className="hub-act">+ {actions.map((a) => (+ <button+ key={a.action}+ type="button"+ role="radio"+ aria-checked={a.action === active}+ aria-label={a.locked ? `${a.label}, runs on LU Cloud` : a.label}+ title={a.locked ? `${a.label}, runs on LU Cloud` : ACTION_LINE[a.action]}+ onClick={() => onPick(a.action)}+ className={cn('hub-act-item hub-fs-13', a.action === active && 'hub-act-item--on', a.locked && 'opacity-60')}+ data-hub-action={a.action}+ >+ {ACTION_ICON[a.action]}{ACTION_LABEL[a.action]}+ </button>+ ))}+ </div>+ {on?.meta && <span className="hub-dim whitespace-nowrap hub-fs-125 tabular-nums" data-hub-action-meta>{on.meta}</span>}+ </div>+ {/* What the price beside it means. One quiet line, at every width. */}+ {on && <p className="hub-dim pt-1 text-center hub-fs-125" data-hub-local-line>{HUB_LOCAL_LINE}</p>}+ </div>+ )+}diff --git a/src/components/create/experimental/hub/HubEmpty.tsx b/src/components/create/experimental/hub/HubEmpty.tsxindex 6e30862b..6cd29519 100644--- a/src/components/create/experimental/hub/HubEmpty.tsx+++ b/src/components/create/experimental/hub/HubEmpty.tsx@@ -1,13 +1,9 @@-// The Character area with no character yet (3.1.0, David 16.11.2026): the-// three steps and one button on the left, on the right what a character can-// do, as four small drawings with the LU mark as the figure. These four are-// the only moving pictures of the area (index.css, .hub-ex-*); with reduced-// motion they stand still.+// The Character area with no character yet (David, 16.11.2026): the three+// steps and the one button, in the column over the prompt window. No+// pictures and nothing that moves; what a character can do stands in the+// row over the window (Image, Swap, Motion, Talk).-import type { ReactNode } from 'react'-import { Image as ImageIcon, Mic, PersonStanding, Plus, Replace } from 'lucide-react'-import { ACTION_LABEL, type HubAction } from '../../../../lib/create/character-hub'-import { MONOGRAM } from '../../../layout/brand'+import { Plus } from 'lucide-react'import { Button } from '../../ui/Button'const STEPS = [@@ -16,136 +12,23 @@ const STEPS = [{ title: 'Use it', line: 'Image, Swap, Motion and Talk. In Chat too.' },]-/** The LU mark as a figure: the monogram is the head, the shoulders are- * drawn in the same line. */-function LuFigure({ x, y, k = 1, className }: { x: number; y: number; k?: number; className?: string }) {+export function HubEmpty({ onCreate }: { onCreate: () => void }) {return (- <g className={className} transform={`translate(${x} ${y}) scale(${k})`}>- <image href={MONOGRAM} x="-15" y="-34" width="30" height="30" className="hub-ex-mark" />- <path d="M-20 22v-8a12 12 0 0 1 12-12h16a12 12 0 0 1 12 12v8" fill="none" stroke="currentColor" strokeWidth="2.3" strokeLinecap="round" className="hub-text" />- </g>- )-}--/** Anybody: the same build in grey, with an empty head. */-function GreyFigure({ x, y, k = 1, className }: { x: number; y: number; k?: number; className?: string }) {- return (- <g className={className} transform={`translate(${x} ${y}) scale(${k})`}>- <g fill="none" stroke="currentColor" strokeWidth="2.3" strokeLinecap="round" className="hub-dim">- <rect x="-11" y="-31" width="22" height="24" rx="8" />- <path d="M-20 22v-8a12 12 0 0 1 12-12h16a12 12 0 0 1 12 12v8" />- </g>- </g>- )-}--/** Image: the figure stays, the picture around it becomes another one- * (mountains by day, a town by night). */-function ArtImage() {- return (- <>- <defs><clipPath id="hub-ex-picture"><rect x="14" y="8" width="92" height="64" rx="5" /></clipPath></defs>- <g clipPath="url(#hub-ex-picture)">- <g className="hub-ex-a hub-dim" fill="currentColor">- <circle cx="88" cy="22" r="7" opacity=".7" />- <path d="M14 72 44 30l18 24 12-14 32 32z" opacity=".45" />- </g>- <g className="hub-ex-b hub-dim" fill="currentColor">- <path d="M82 14a8 8 0 1 0 8 10 6.4 6.4 0 0 1-8-10z" opacity=".7" />- {[[18, 44, 13], [34, 30, 11], [48, 50, 15], [70, 38, 12], [86, 48, 16]].map(([x, y, w]) => (- <rect key={x} x={x} y={y} width={w} height={72 - y} opacity=".4" />- ))}- </g>- <LuFigure x={60} y={56} k={0.82} />- </g>- <rect x="14" y="8" width="92" height="64" rx="5" fill="none" stroke="currentColor" strokeWidth="1.2" className="hub-dim" />- </>- )-}--/** Swap: one of two people becomes the character. */-function ArtSwap() {- return (- <>- <GreyFigure x={38} y={48} k={0.95} className="hub-ex-a" />- <LuFigure x={38} y={48} k={0.95} className="hub-ex-b" />- <GreyFigure x={84} y={48} k={0.95} />- </>- )-}--/** Motion: somebody moves, the character moves the same way. */-function ArtMotion() {- return (- <>- <g className="hub-ex-tilt" style={{ transformOrigin: '30px 68px' }}><GreyFigure x={30} y={48} k={0.85} /></g>- <path d="M55 42h10m-4-4 4 4-4 4" fill="none" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round" className="hub-dim" />- <g className="hub-ex-tilt" style={{ transformOrigin: '90px 68px' }}><LuFigure x={90} y={48} k={0.95} /></g>- </>- )-}--/** Talk: the character and its voice. */-function ArtTalk() {- return (- <>- <LuFigure x={36} y={48} />- {[12, 24, 16, 30, 20, 10].map((h, i) => (- <rect key={i} className="hub-ex-bar hub-acc" fill="currentColor" x={70 + i * 7} y={40 - h / 2} width="3.4" height={h} rx="1.7"- style={{ animationDelay: `${-i * 0.23}s`, transformOrigin: '0 40px' }} />- ))}- </>- )-}--const EXAMPLES: { action: HubAction; icon: ReactNode; line: string; art: () => ReactNode }[] = [- { action: 'image', icon: <ImageIcon size={14} />, line: 'Your character in any place you describe.', art: ArtImage },- { action: 'swap', icon: <Replace size={14} />, line: 'Your character takes the place of a person in a clip.', art: ArtSwap },- { action: 'motion', icon: <PersonStanding size={14} />, line: 'Your character copies a dance or a move.', art: ArtMotion },- { action: 'talk', icon: <Mic size={14} />, line: 'Your character says your text.', art: ArtTalk },-]--export function HubEmpty({ onCreate, onTry }: { onCreate: () => void; onTry: (action: HubAction) => void }) {- return (- <div className="hub-empty" data-hub-step="who" data-hub-empty>- <div className="min-w-0 flex-1">- <ol className="hub-line border-t">- {STEPS.map((s, i) => (- <li key={s.title} className="hub-line flex gap-4 border-b py-3">- <span className="hub-dim w-3 shrink-0 pt-px hub-fs-13 tabular-nums">{i + 1}</span>- <span className="min-w-0">- <span className="hub-text block hub-fs-14 font-medium">{s.title}</span>- <span className="hub-dim mt-0.5 block hub-fs-13">{s.line}</span>- </span>- </li>- ))}- </ol>- <div className="pt-6">- <span data-hub-create><Button variant="primary" size="lg" icon={Plus} onClick={onCreate}>Create a character</Button></span>- </div>+ <div className="hub-empty scrollbar-thin" data-hub-step="who" data-hub-empty>+ <ol className="hub-line border-t">+ {STEPS.map((s, i) => (+ <li key={s.title} className="hub-line flex gap-4 border-b py-3">+ <span className="hub-dim w-3 shrink-0 pt-px hub-fs-13 tabular-nums">{i + 1}</span>+ <span className="min-w-0">+ <span className="hub-text block hub-fs-14 font-medium">{s.title}</span>+ <span className="hub-dim mt-0.5 block hub-fs-13">{s.line}</span>+ </span>+ </li>+ ))}+ </ol>+ <div className="pt-5">+ <span data-hub-create><Button variant="primary" size="lg" icon={Plus} onClick={onCreate}>Create a character</Button></span></div>- <ul className="hub-line min-w-0 flex-1 border-t" aria-label="What a character can do">- {EXAMPLES.map((e) => {- const Art = e.art- return (- <li key={e.action} className="hub-line border-b">- <button- type="button"- onClick={() => onTry(e.action)}- title={`Try ${ACTION_LABEL[e.action]} with one photo`}- className="hub-hover -mx-2 flex w-[calc(100%+16px)] items-center gap-4 rounded-sm px-2 py-3 text-left"- data-hub-example={e.action}- >- <svg viewBox="0 0 120 80" className="hub-ex shrink-0" aria-hidden><Art /></svg>- <span className="min-w-0">- <span className="hub-text flex items-center gap-1.5 hub-fs-14 font-medium"><span className="hub-muted">{e.icon}</span>{ACTION_LABEL[e.action]}</span>- <span className="hub-dim mt-0.5 block hub-fs-13">{e.line}</span>- </span>- </button>- </li>- )- })}- </ul></div>)}diff --git a/src/components/create/experimental/hub/HubNewCharacter.tsx b/src/components/create/experimental/hub/HubNewCharacter.tsxindex 192e22f6..b00a56c8 100644--- a/src/components/create/experimental/hub/HubNewCharacter.tsx+++ b/src/components/create/experimental/hub/HubNewCharacter.tsx@@ -24,7 +24,7 @@ import { Button } from '../../ui/Button'import { cn } from '../../ui/cn'import { sendPhotosToStudio } from '../characterPhotos'import { refreshLocalShelves } from '../CharacterUseLocally'-import { ACTION_ICON } from './HubStage'+import { ACTION_ICON } from './HubActionRow'import { ACTION_LABEL, HUB_ACTIONS } from '../../../../lib/create/character-hub'type Way = 'keep' | 'train'@@ -335,13 +335,13 @@ export function HubNewCharacter({ onBack, onSaved, onOpenGallery }: Props) {{error ?? `${clean} is in your LoRA folder. ${added?.note}`}</p>)}- <div className="hub-bar flex min-h-[52px] items-center gap-3 py-1.5 pl-3.5 pr-2" data-hub-save-bar>+ {/* A row of the page, not a second prompt window. */}+ <div className="hub-line flex min-h-[44px] items-center gap-3 border-t pt-2" data-hub-save-bar>{urls[0] && !lora && <img src={urls[0]} alt="" className="h-7 w-7 shrink-0 rounded-full object-cover" />}{clean && <span className="hub-text shrink-0 hub-fs-14 font-medium">{clean}</span>}<span className="hub-dim min-w-0 flex-1 truncate hub-fs-125" data-hub-save-summary>{progress !== null ? `Copying… ${Math.round(progress * 100)} %` : summary}</span>- {!lora && way === 'keep' && photos.length > 0 && <span className="hub-dim hub-fs-125 max-[820px]:hidden">You can still train later.</span>}<span className="inline-flex" title={ready || added ? undefined : hint ?? undefined} data-hub-save><Button variant="primary" size="md" disabled={added ? false : !ready} onClick={() => { if (added) onSaved(added.character); else void save() }}>{button}</Button></span>diff --git a/src/components/create/experimental/hub/HubParts.tsx b/src/components/create/experimental/hub/HubParts.tsxindex 19a5841b..0b576fd9 100644--- a/src/components/create/experimental/hub/HubParts.tsx+++ b/src/components/create/experimental/hub/HubParts.tsx@@ -1,10 +1,10 @@// The small parts the Character area is built from (sketches v2): rows on// the surface with a hairline under them, a round picture, a text choice with-// a small arrow, and "More options" as grey text. No box around a field; the-// one framed part is the bar at the foot (Composer, `hub`).+// a small arrow. No box around a field; the one framed part of the tab is+// the prompt window under the area, the same as in every tab.-import { createContext, useContext, useRef, useState, type ReactNode } from 'react'-import { ArrowRight, ChevronDown, ChevronRight, Plus } from 'lucide-react'+import { createContext, useContext, useRef, type ReactNode } from 'react'+import { ArrowRight, Plus } from 'lucide-react'import { hubInitial, type HubCharacter } from '../../../../lib/create/character-hub'import { Select, type SelectOption } from '../../ui/Select'import { cn } from '../../ui/cn'@@ -48,25 +48,6 @@ export function HubLine({ children, className, ...rest }: { children: ReactNode;)}-/** "More options": grey text with a small arrow, the options under it. */-export function MoreOptions({ children, testId }: { children: ReactNode; testId?: string }) {- const [open, setOpen] = useState(false)- return (- <div className="pt-2.5" data-testid={testId}>- <button- type="button"- aria-expanded={open}- onClick={() => setOpen(!open)}- className={cn('flex items-center gap-1.5 hub-fs-125 transition-colors', open ? 'hub-muted' : 'hub-dim hover:opacity-80')}- >- {open ? <ChevronDown size={12} /> : <ChevronRight size={12} />}- More options- </button>- {open && <div className="mt-1.5 space-y-2 pl-[18px]">{children}</div>}- </div>- )-}-const PHOTO = '__photo'/** "→ Bean ▾": the character a person or the portrait becomes. The list is@@ -157,19 +138,6 @@ export function UploadLine({ icon, label, accept, onFile, note }: {)}-/** A page of the area that is one column (the training): 660 px, centred. */-export const HUB_COLUMN = 'mx-auto w-full max-w-[660px] px-4'--/** What stands at the top of the bar at the foot: on the stage the switch- * between Image, Swap, Motion and Talk. Every bar of the area shows it- * (the Composer's, the one click swap's); outside the stage there is none. */-export const HubBarTopContext = createContext<ReactNode>(null)--export function HubBarTop() {- const top = useContext(HubBarTopContext)- return top ? <div className="hub-line border-b" data-hub-bar-top>{top}</div> : null-}-/** A switch as a row (one click swap, sketch c2): the name, a grey line what* it does, the switch at the right. A hairline under it, no box. */export function HubSwitch({ title, line, on, onChange, disabled, testId }: {diff --git a/src/components/create/experimental/hub/HubSettings.tsx b/src/components/create/experimental/hub/HubSettings.tsxnew file mode 100644index 00000000..728fa8f1--- /dev/null+++ b/src/components/create/experimental/hub/HubSettings.tsx@@ -0,0 +1,91 @@+// The settings of the Character tab, behind the one settings icon of the+// prompt window (David, 16.11.2026: in the window only the text field, the+// upload, the settings and Create; everything else of a tab goes here). They+// stand at the head of the settings drawer, above the model's own values:+// the model, the size and quality of the run, the prompt's helpers, and for+// Swap its length and its engines.++import { useEffect, useState, type ReactNode } from 'react'+import { useCreateStore } from '../../../../stores/createStore'+import { isMlxImageHost } from '../../../../api/mlx-image'+import { useCharacterHubReleased } from '../../../../lib/create/character-hub-release'+import { LaneControls } from '../Composer'+import { ModelChip } from '../ModelChip'+import { PromptAssistant } from '../PromptAssistant'+import { PromptHistory } from '../PromptHistory'+import { SpecialMore } from '../SpecialIntentControls'+import { mediaSeconds } from '../useStudioPrice'+import { cn } from '../../ui/cn'+import { SwapLength, SwapPrice } from './SwapBarParts'+import { SwapPicks } from './SwapOneClick'+import { useHubRun } from './hubRun'++function Row({ label, children }: { label: string; children: ReactNode }) {+ return (+ <div className="flex min-h-9 items-center gap-2.5" data-hub-setting={label}>+ <span className="hub-muted w-[80px] shrink-0 hub-fs-125">{label}</span>+ <div className="flex min-w-0 flex-1 flex-wrap items-center gap-1.5">{children}</div>+ </div>+ )+}++export function HubSettings({ onOpenWorkflows }: { onOpenWorkflows?: () => void }) {+ const intent = useCreateStore((s) => s.intent())+ const backend = useCreateStore((s) => s.backend)+ const training = useCreateStore((s) => s.intent() === 'character' && s.characterTab === 'train')+ const setPrompt = useCreateStore((s) => s.setPrompt)+ const showNegative = useCreateStore((s) => s.showNegative)+ const toggleNegative = useCreateStore((s) => s.toggleNegative)+ const videoInput = useCreateStore((s) => s.videoInput)+ const released = useCharacterHubReleased()+ // What the prompt window takes on this action (the Composer says it).+ const takes = useHubRun((s) => s.window)+ const swap = intent === 'swap_character'+ const oneClick = swap && released && backend === 'cloud'++ const [measured, setMeasured] = useState<{ url: string; seconds: number | undefined } | null>(null)+ useEffect(() => {+ let alive = true+ if (!oneClick || !videoInput) return+ void mediaSeconds(videoInput.url, 'video').then((v) => { if (alive) setMeasured({ url: videoInput.url, seconds: v }) })+ return () => { alive = false }+ }, [oneClick, videoInput])+ const videoSeconds = measured && videoInput && measured.url === videoInput.url ? measured.seconds : undefined++ return (+ <div className="lu-hub border-b border-white/10 pb-3 mb-3 space-y-1" data-hub-settings>+ {!swap && !training && <Row label="Model"><ModelChip /></Row>}+ {oneClick && (+ <>+ <SwapPicks />+ {videoInput && <Row label="Length"><SwapLength videoSeconds={videoSeconds} /><SwapPrice videoSeconds={videoSeconds} /></Row>}+ </>+ )}+ {swap && <div className="space-y-2 pt-1"><SpecialMore intent={intent} /></div>}+ {!swap && !training && <div className="pt-1 empty:hidden"><LaneControls /></div>}+ {takes.prompt && (+ <Row label="Prompt">+ {takes.negative && (+ <button+ type="button"+ onClick={toggleNegative}+ aria-pressed={showNegative}+ aria-controls="negative-prompt-field"+ className={cn('t-control px-2 h-[var(--control-h-sm)] rounded-md transition-colors', showNegative ? 'bg-white/10 text-gray-200' : 'text-gray-500 hover:text-gray-300 hover:bg-white/[0.05]')}+ title="Say what the render should avoid"+ >+ Negative+ </button>+ )}+ <PromptHistory onPick={setPrompt} />+ <PromptAssistant onUse={setPrompt} align="left" />+ </Row>+ )}+ {backend === 'local' && !isMlxImageHost() && onOpenWorkflows && (+ <button type="button" onClick={onOpenWorkflows} className="t-control text-gray-400 underline decoration-white/15 underline-offset-[3px] hover:text-gray-200" data-hub-workflows>+ Use your own ComfyUI workflow+ </button>+ )}+ </div>+ )+}diff --git a/src/components/create/experimental/hub/HubStage.tsx b/src/components/create/experimental/hub/HubStage.tsxindex 295b752b..ff009fb1 100644--- a/src/components/create/experimental/hub/HubStage.tsx+++ b/src/components/create/experimental/hub/HubStage.tsx@@ -1,18 +1,14 @@-// The stage of the Character area (3.1.0, variant B, David 16.11.2026): the-// characters as text tabs across the top, the picked one on the left with-// its name and what can be done with it, its photos on the right, and at the-// foot the bar with the switch between Image, Swap, Motion and Talk. Only-// real things stand here: the user's characters and their own pictures. A-// character without a picture shows its initial, one without photos a line-// that says so.--import { useEffect, useRef, useState, type ReactNode } from 'react'-import { Image as ImageIcon, ImagePlus, Mic, PersonStanding, Plus, Replace } from 'lucide-react'+// The stage of the Character area (3.1.0, David 16.11.2026): the characters+// as text tabs across the top, the picked one as a head under them (a small+// picture, its name, what can be done with it), then its photos. All of it+// in the one column over the prompt window. Only real things stand here:+// the user's characters and their own pictures. A character without a+// picture shows its initial, one without photos a line that says so.++import { useEffect, useRef, useState } from 'react'+import { ImagePlus, Plus } from 'lucide-react'import { useCreateStore } from '../../../../stores/createStore'-import {- ACTION_LABEL, ACTION_LINE, HUB_JUST_PHOTO, HUB_JUST_PHOTO_LINE, HUB_LOCAL_LINE, hubInitial,- type HubAction, type HubCharacter,-} from '../../../../lib/create/character-hub'+import { HUB_JUST_PHOTO, HUB_JUST_PHOTO_LINE, hubInitial, type HubCharacter } from '../../../../lib/create/character-hub'import { useCharacterNames, cleanCharacterName, MAX_CHARACTER_LABEL } from '../../../../lib/create/character-names'import { deleteSavedCharacter, renameSavedCharacter } from '../../../../lib/saved-characters'import { errorText } from '../../../../types/json-guards'@@ -21,13 +17,6 @@ import { sendPhotosToStudio } from '../characterPhotos'import { CharacterMore } from '../SpecialIntentControls'import { HubAvatar } from './HubParts'-export const ACTION_ICON: Record<HubAction, ReactNode> = {- image: <ImageIcon size={14} />,- swap: <Replace size={14} />,- motion: <PersonStanding size={14} />,- talk: <Mic size={14} />,-}-// ── the tabs ────────────────────────────────────────────────────────────────export function HubTabs({ list, loading, current, photoOnly, onPick, onPhotoOnly, onNew }: {@@ -84,7 +73,7 @@ export function HubTabs({ list, loading, current, photoOnly, onPick, onPhotoOnly)}-// ── the character on the left ───────────────────────────────────────────────+// ── the character's head ───────────────────────────────────────────────function Portrait({ c, photo }: { c: HubCharacter | null; photo: string | null }) {const image = c?.image ?? photo@@ -93,7 +82,7 @@ function Portrait({ c, photo }: { c: HubCharacter | null; photo: string | null }}return (<span className="hub-portrait hub-portrait--none hub-dim" aria-hidden>- {c ? <span className="hub-initial">{hubInitial(c.name)}</span> : <ImagePlus size={28} />}+ {c ? <span className="hub-initial">{hubInitial(c.name)}</span> : <ImagePlus size={20} />}</span>)}@@ -160,7 +149,7 @@ function Card({ c, photo }: { c: HubCharacter | null; photo: string | null }) {{!saved && <div className="hub-card-file -ml-1 mt-1.5"><CharacterMore bare /></div>}{error && <p role="alert" className="mt-1.5 text-red-500 hub-fs-125 dark:text-red-400">{error}</p>}{c.kind === 'local' && (- <p className="hub-dim hub-line mt-4 border-t pt-3 hub-fs-125">In Chat, name it: “a picture of {c.ref?.name ?? c.name} at the beach”.</p>+ <p className="hub-dim mt-1.5 hub-fs-125">In Chat, name it: “a picture of {c.ref?.name ?? c.name} at the beach”.</p>)}</div>)@@ -204,7 +193,7 @@ function RenameField({ c, onDone }: { c: HubCharacter; onDone: () => void }) {)}-// ── the photos on the right ─────────────────────────────────────────────────+// ── the photos ─────────────────────────────────────────────────/** The character's own photos. "Made with …" (its results) comes with 3.1.1;* until then this is what there is to see of it. */@@ -237,60 +226,3 @@ export function HubPhotos({ c, photos, loading }: { c: HubCharacter | null; phot</div>)}--// ── the switch in the bar ───────────────────────────────────────────────────--export interface HubActionState {- action: HubAction- /** The name of the tab the action stands for ("Swap Character"), read out- * as it was on the old pill. */- label: string- /** Opens the Cloud sheet instead of the action. */- locked: boolean- /** The grey words on the right while this action is picked. */- meta: string-}--/** Image, Swap, Motion, Talk: the top line of the bar at the foot. */-export function HubActions({ actions, active, name, onPick, right }: {- actions: HubActionState[]- active: HubAction | null- name: string | null- onPick: (a: HubAction) => void- /** What stands before the price on the right: the clip of the panel. */- right?: ReactNode-}) {- const on = actions.find((a) => a.action === active) ?? null- const line = on- ? ACTION_LINE[on.action].replace('your character', name ?? 'your character').replace('Your character', name ?? 'Your character')- : name ? `What should ${name} do?` : 'What should your character do?'- return (- <div data-hub-actions>- <div className="flex min-h-[42px] items-center gap-3 py-1 pl-1.5 pr-3">- <div role="radiogroup" aria-label="Character action" className="hub-act">- {actions.map((a) => (- <button- key={a.action}- type="button"- role="radio"- aria-checked={a.action === active}- aria-label={a.locked ? `${a.label}, runs on LU Cloud` : a.label}- title={a.locked ? `${a.label}, runs on LU Cloud` : ACTION_LINE[a.action]}- onClick={() => onPick(a.action)}- className={cn('hub-act-item hub-fs-13', a.action === active && 'hub-act-item--on', a.locked && 'opacity-60')}- data-hub-action={a.action}- >- {ACTION_ICON[a.action]}{ACTION_LABEL[a.action]}- </button>- ))}- </div>- <span className="hub-dim min-w-0 flex-1 truncate hub-fs-125 max-[640px]:hidden" data-hub-action-line>{line}</span>- {right}- {on?.meta && <span className="hub-dim shrink-0 whitespace-nowrap hub-fs-125 tabular-nums max-[520px]:hidden" data-hub-action-meta>{on.meta}</span>}- </div>- {/* What the price beside it means, once an action is picked. One quiet- line, at every width. */}- {on && <p className="hub-dim px-3 pb-1.5 hub-fs-125" data-hub-local-line>{HUB_LOCAL_LINE}</p>}- </div>- )-}diff --git a/src/components/create/experimental/hub/SwapOneClick.tsx b/src/components/create/experimental/hub/SwapOneClick.tsxindex 68419024..10e1f94d 100644--- a/src/components/create/experimental/hub/SwapOneClick.tsx+++ b/src/components/create/experimental/hub/SwapOneClick.tsx@@ -4,22 +4,23 @@// (running), d2 (check, only with "Check first frame"), c5 (refused).// One button "Create · total" runs frame, video and sound one after the other// (lib/create/swap-chain.ts). The inputs are SwapControls as before; the one-// framed part is the bar at the foot, built like the Composer's bar of the-// area. In the desktop style: rows with hairlines, text choices, no boxes.+// button is the one of the prompt window under the area (David, 16.11.2026:+// one window in every tab; this flow says through hub/hubRun.ts what its+// button and its field do). In the desktop style: rows with hairlines, text+// choices, no boxes.-import { useEffect, useMemo, useState, type ReactNode } from 'react'+import { useEffect, useMemo, useRef, useState, type ReactNode } from 'react'import { useStore } from 'zustand'-import { ArrowRight, Check, Loader2, SlidersHorizontal, Sparkles, X } from 'lucide-react'+import { ArrowRight, Check, Loader2, X } from 'lucide-react'import { useCreateStore, type SwapFigure } from '../../../../stores/createStore'import { useCreateExp } from '../CreateContext'-import { useNarrow } from '../Composer'-import { SwapControls, SpecialMore } from '../SpecialIntentControls'+import { SwapControls } from '../SpecialIntentControls'import { mediaSeconds, useStudioPrice } from '../useStudioPrice'-import { Button } from '../../ui/Button'import { Select, type SelectOption } from '../../ui/Select'import { cn } from '../../ui/cn'-import { HubBarTop, HubSwitch, MoreOptions } from './HubParts'-import { SwapLength, useSwapBar } from './SwapBarParts'+import { HubSwitch } from './HubParts'+import { useSwapBar } from './SwapBarParts'+import { useHubRun, type HubRun } from './hubRun'import { adoptInput, cancelJob, pollJob, submitCloudJob, uploadInput, type CloudJob } from '../../../../api/cloud/jobs'import { galleryItemFromJob } from '../../../../lib/render/cloud-jobs'import { studioShownValue } from '../../../../lib/render/create-studio'@@ -80,14 +81,12 @@ export function useSwapOneClickShown(): boolean {return intent === SWAP_INTENT && released && backend === 'cloud'}-export function SwapOneClick({ onChangeCharacter, onOpenAdvanced }: {+export function SwapOneClick({ onChangeCharacter }: {/** "Change character" after a refusal: step 1 opens. */onChangeCharacter: () => void- onOpenAdvanced: () => void}) {const { refreshQuota, quota, generate, cancel } = useCreateExp()const deps = useMemo(() => swapChainDeps(refreshQuota), [refreshQuota])- const narrow = useNarrow()const released = useCharacterHubReleased()const videoInput = useCreateStore((s) => s.videoInput)@@ -199,8 +198,41 @@ export function SwapOneClick({ onChangeCharacter, onOpenAdvanced }: {}}+ // What the prompt window under the area does for this flow (hubRun): its+ // button is Create with the total, Cancel while it runs, Continue on the+ // check of the first frame, whose field takes "What's wrong?".+ const [extra, setExtra] = useState('')+ const showing = !!preparing || running || plainRunning+ const stage = chain?.stage ?? null+ const next = chain ? chain.videoCredits + (chain.lipsync?.credits ?? 0) : 0+ const hint = problem ?? (voiceMissing ? 'Add the new voice first.' : !creditsOk ? 'Not enough credits for this swap.' : undefined)+ const does = useRef({ create: () => {}, cancel: () => {}, approve: () => {} })+ useEffect(() => {+ does.current = {+ create: () => { void create() },+ cancel: () => { if (plainRunning) void cancel(); else void cancelSwapChain(deps) },+ approve: () => { void approveSwapFrame(deps) },+ }+ })+ const setSwap = useHubRun((st) => st.setSwap)+ const cancelOff = !!preparing+ useEffect(() => {+ const now: HubRun = showing+ ? { label: 'Create', ready: false, running: true, cancelDisabled: cancelOff, cancel: () => does.current.cancel(), run: () => {} }+ : stage === 'review'+ ? {+ label: 'Continue', price: swapShortCredits(next), ready: !busy, run: () => does.current.approve(),+ field: { value: extra, onChange: setExtra, placeholder: "What's wrong? (optional)" },+ }+ : stage === 'done'+ ? { label: 'Make another swap', ready: true, run: () => clearSwapChain() }+ : { label: 'Create', price: total != null ? swapShortCredits(total) : null, ready, hint, run: () => does.current.create() }+ setSwap(now)+ }, [showing, cancelOff, stage, next, busy, extra, total, ready, hint, setSwap])+ useEffect(() => () => setSwap(null), [setSwap])+// ── running (c4) ──- if (preparing || running || plainRunning) {+ if (showing) {return (<SwapProgresschain={chain}@@ -209,8 +241,6 @@ export function SwapOneClick({ onChangeCharacter, onOpenAdvanced }: {originalUrl={frame?.url ?? null}names={names}note={note}- onCancel={() => { if (plainRunning) void cancel(); else void cancelSwapChain(deps) }}- cancelDisabled={!!preparing}/>)}@@ -218,7 +248,7 @@ export function SwapOneClick({ onChangeCharacter, onOpenAdvanced }: {// ── check (d2) ──if (chain?.stage === 'review') {const summary = `${prefs.videoOverride ? '' : 'Auto · '}${swapModelName(videoModel)}${resolution ? ` · ${resolution}` : ''}${seconds ? ` · ${seconds} s` : ''}`- return <SwapReview chain={chain} originalUrl={frame?.url ?? null} deps={deps} summary={summary} narrow={narrow} />+ return <SwapReview chain={chain} originalUrl={frame?.url ?? null} summary={summary} onRetry={() => { void retrySwapFrame(deps, { extra }); setExtra('') }} />}// ── done ──@@ -231,9 +261,6 @@ export function SwapOneClick({ onChangeCharacter, onOpenAdvanced }: {)}<p className="hub-dim mt-2 hub-fs-125">Your new video{chain.who ? ` · ${chain.who}` : ''}. It is in your gallery.</p>{chain.error && <p className="hub-text mt-2 hub-fs-13" role="alert">{chain.error}</p>}- <button type="button" onClick={() => clearSwapChain()} className="hub-muted mt-4 hub-fs-13 underline decoration-[var(--hub-edge)] underline-offset-[3px]">- Make another swap- </button></div></Body>)@@ -248,91 +275,79 @@ export function SwapOneClick({ onChangeCharacter, onOpenAdvanced }: {videoCredits != null ? `video ${swapShortCredits(videoCredits)}` : null,lipsyncOn && lipCredits ? `lip sync ${swapShortCredits(lipCredits)}` : null,].filter(Boolean).join(' + ')- const hint = problem ?? (voiceMissing ? 'Add the new voice first.' : !creditsOk ? 'Not enough credits for this swap.' : undefined)return (- <>- <Body>- <div className="pt-3" data-swap-one-click="form" data-swap-marks={marked}>- <SwapControls- oneClick={{- model: videoModel,- switches: isChain && (- <div className="pt-1" data-swap-switches>- <HubSwitch testId="open-models" title="Uncensored" line={swapOpenModelsLine(videoModel)} on={prefs.openModels} onChange={prefs.setOpenModels} />- <HubSwitch testId="check" title="Check first frame before video" line="Pause after the first frame so you can retry it before paying for the video." on={prefs.check} onChange={prefs.setCheck} />- </div>- ),- }}- />- <MoreOptions testId="hub-more">- <SwapPicks videoModel={videoModel} frameModel={frameModel} people={figures.length} isChain={isChain} />- <SpecialMore intent={SWAP_INTENT} />- <button type="button" onClick={onOpenAdvanced} className="hub-muted hub-fs-125 underline decoration-[var(--hub-edge)] underline-offset-[3px]">- All settings of the model- </button>- </MoreOptions>-- {refused && (- <div className="flex items-start gap-2.5 pt-4" role="alert" data-swap-refused>- <X size={14} className="hub-dim mt-[3px] shrink-0" />- <div className="hub-fs-13">- <p className="hub-text">{chain!.error}</p>- <p className="mt-1 flex flex-wrap items-center gap-x-2">- <button type="button" className="hub-acc" onClick={() => {- prefs.setOpenModels(true)- prefs.setFrameOverride('')- // With Uncensored the check is on by default (David, 14.11.).- void retrySwapOpen(deps, useSwapOneClick.getState().check)- }}>- Turn on Uncensored and retry- </button>- <span className="hub-dim" aria-hidden>·</span>- <button type="button" className="hub-acc" onClick={() => { clearSwapChain(); onChangeCharacter() }}>Change character</button>- </p>+ <Body>+ <div className="pt-3" data-swap-one-click="form" data-swap-marks={marked}>+ <SwapControls+ oneClick={{+ model: videoModel,+ switches: isChain && (+ <div className="pt-1" data-swap-switches>+ <HubSwitch testId="open-models" title="Uncensored" line={swapOpenModelsLine(videoModel)} on={prefs.openModels} onChange={prefs.setOpenModels} />+ <HubSwitch testId="check" title="Check first frame before video" line="Pause after the first frame so you can retry it before paying for the video." on={prefs.check} onChange={prefs.setCheck} /></div>- </div>- )}- {(failedText || error) && (- <div className="flex items-start gap-2.5 pt-4" role="alert" data-swap-error>- <X size={14} className="hub-dim mt-[3px] shrink-0" />- <p className="hub-text flex-1 hub-fs-13">{failedText ?? error}</p>- <button type="button" className="hub-dim hub-fs-125" onClick={() => { setError(null); if (chain) clearSwapChain() }}>Dismiss</button>- </div>+ ),+ }}+ />+ {/* What runs and what the total is made of. The models and the+ length are picked in the settings of the prompt window. */}+ <p className="hub-dim flex flex-wrap items-baseline gap-x-2 pt-2.5 hub-fs-125" data-swap-line>+ <span data-swap-summary>{summary}</span>+ {videoInput && seconds ? <span data-swap-seconds>{seconds} s</span> : null}+ {total != null && (+ <span data-clip-price data-swap-total={total} title={`${total.toLocaleString('en-US')} credits`}>+ <b className="hub-text font-medium tabular-nums">{swapShortCredits(total)}</b>+ {parts && <> <span data-clip-split>{parts}</span></>}+ </span>)}- </div>- </Body>+ </p>- <Foot>- <SwapBar- narrow={narrow}- summary={summary}- length={videoInput ? <SwapLength videoSeconds={videoSeconds} /> : null}- seconds={videoInput ? seconds : null}- total={total}- parts={parts}- ready={ready}- hint={hint}- onCreate={() => void create()}- />- </Foot>- </>+ {refused && (+ <div className="flex items-start gap-2.5 pt-4" role="alert" data-swap-refused>+ <X size={14} className="hub-dim mt-[3px] shrink-0" />+ <div className="hub-fs-13">+ <p className="hub-text">{chain!.error}</p>+ <p className="mt-1 flex flex-wrap items-center gap-x-2">+ <button type="button" className="hub-acc" onClick={() => {+ prefs.setOpenModels(true)+ prefs.setFrameOverride('')+ // With Uncensored the check is on by default (David, 14.11.).+ void retrySwapOpen(deps, useSwapOneClick.getState().check)+ }}>+ Turn on Uncensored and retry+ </button>+ <span className="hub-dim" aria-hidden>·</span>+ <button type="button" className="hub-acc" onClick={() => { clearSwapChain(); onChangeCharacter() }}>Change character</button>+ </p>+ </div>+ </div>+ )}+ {(failedText || error) && (+ <div className="flex items-start gap-2.5 pt-4" role="alert" data-swap-error>+ <X size={14} className="hub-dim mt-[3px] shrink-0" />+ <p className="hub-text flex-1 hub-fs-13">{failedText ?? error}</p>+ <button type="button" className="hub-dim hub-fs-125" onClick={() => { setError(null); if (chain) clearSwapChain() }}>Dismiss</button>+ </div>+ )}+ </div>+ </Body>)}-// The two parts the stage places (index.css, .hub-stage): the body beside-// the character, the bar across the foot.+/** The part of the stage under the character's head (index.css, .hub-body). */function Body({ children }: { children: ReactNode }) {return <div className="hub-body scrollbar-thin pb-4">{children}</div>}-function Foot({ children }: { children: ReactNode }) {- return <div className="hub-foot">{children}</div>-}--/** "First frame ▾" and "Video ▾" under More options (c3). */-function SwapPicks({ videoModel, frameModel, people, isChain }: { videoModel: string; frameModel: string; people: number; isChain: boolean }) {+/** "First frame ▾" and "Video ▾": the models of the swap, in the settings of+ * the prompt window (AdvancedDrawer). */+export function SwapPicks() {const prefs = useSwapOneClick()+ const people = useCreateStore((s) => s.swapFigures.length)+ const videoModel = swapVideoModelFor(people, prefs.videoOverride || null)+ const isChain = swapIsChain(videoModel)+ const frameModel = swapFrameModelFor(prefs.openModels, prefs.frameOverride || null)const frameItems: SelectOption[] = swapFrameChoices(prefs.openModels).map((c) => {const tooMany = c.value !== '' && swapFrameMaxPeople(c.value) < Math.max(1, people)return { ...c, disabled: tooMany, sublabel: tooMany ? `up to ${swapFrameMaxPeople(c.value)} ${swapFrameMaxPeople(c.value) === 1 ? 'person' : 'people'}` : undefined }@@ -359,71 +374,11 @@ function SwapPicks({ videoModel, frameModel, people, isChain }: { videoModel: st)}-/** The bar at the foot (c2): summary, length, total with its parts, Create.- * Narrow (phone width): the summary opens the length and the parts above- * the row, Create names the total (the Composer's narrow bar). */-function SwapBar({ narrow, summary, length, seconds, total, parts, ready, hint, onCreate }: {- narrow: boolean; summary: string; length: ReactNode; seconds: number | null; total: number | null; parts: string- ready: boolean; hint: string | undefined; onCreate: () => void-}) {- const [open, setOpen] = useState(false)- const price = total != null ? swapShortCredits(total) : null- const create = (- <span className="inline-flex" title={ready ? undefined : hint}>- <Button variant="primary" size="md" icon={Sparkles} disabled={!ready} onClick={onCreate}- className={narrow ? 'h-10 rounded-[20px] px-4' : undefined}>- {narrow && price- ? <>Create <span className="hub-fs-125 tabular-nums opacity-70">{price}</span></>- : price ? `Create · ${price}` : 'Create'}- </Button>- </span>- )- const priceText = total != null && (- <span className="flex items-baseline gap-1.5 whitespace-nowrap hub-fs-12" data-clip-price data-swap-total={total} title={`${total.toLocaleString('en-US')} credits`}>- <b className="hub-text hub-fs-13 font-medium tabular-nums">{swapShortCredits(total)}</b>- {parts && <span className="hub-dim" data-clip-split>{parts}</span>}- </span>- )- if (narrow) {- return (- <div className="hub-bar rounded-2xl" data-swap-bar="narrow">- <HubBarTop />- {open && (- <div className="hub-line flex flex-wrap items-center gap-2 border-b px-2.5 py-2" data-hub-bar-options>- {length}- {priceText}- </div>- )}- <div className="flex min-h-[45px] items-center gap-1.5 py-1.5 pl-2.5 pr-1.5">- <button type="button" onClick={() => setOpen(!open)} aria-expanded={open}- className="hub-muted flex min-h-11 min-w-0 flex-1 items-center gap-1.5 text-left hub-fs-13" data-hub-bar-summary>- <SlidersHorizontal size={14} className="shrink-0" />- <span className="truncate">{summary}{seconds ? ` · ${seconds} s` : ''}</span>- </button>- {create}- </div>- </div>- )- }- return (- <div className="hub-bar" data-swap-bar="wide">- <HubBarTop />- <div className="flex min-h-[45px] items-center gap-1.5 py-[5px] pl-2.5 pr-1.5">- <span className="hub-muted whitespace-nowrap hub-fs-13" data-swap-summary>{summary}</span>- {length}- <span className="flex-1" />- {priceText}- <span className="w-1" />- {create}- </div>- </div>- )-}--/** c4: "First frame ✓ → Video … → Sound", Cancel, you can leave. */-function SwapProgress({ chain, preparing, plain, originalUrl, names, note, onCancel, cancelDisabled }: {+/** c4: "First frame ✓ → Video … → Sound", you can leave. Cancel is the+ * button of the prompt window. */+function SwapProgress({ chain, preparing, plain, originalUrl, names, note }: {chain: SwapChainState | null; preparing: string | null; plain: string | null; originalUrl: string | null; names: string- note: string | null; onCancel: () => void; cancelDisabled: boolean+ note: string | null}) {const stage = preparing ? 'frame' : plain ? 'video' : chain?.stage ?? 'frame'const frameUrl = chain?.frameUrl ?? null@@ -461,8 +416,6 @@ function SwapProgress({ chain, preparing, plain, originalUrl, names, note, onCan</span>)})}- <span className="flex-1" />- <button type="button" onClick={onCancel} disabled={cancelDisabled} className="hub-muted min-h-11 shrink-0 hub-fs-14 disabled:opacity-40" data-swap-cancel>Cancel</button></div><p className="hub-dim mt-3 hub-fs-13">{note ?? (plain ? 'About 2 to 7 min. Keep LU open until it is done.' : 'About 2 to 7 min. You can leave this page.')}</p>{plain && <p className="hub-dim mt-1 hub-fs-12">{plain}</p>}@@ -471,57 +424,34 @@ function SwapProgress({ chain, preparing, plain, originalUrl, names, note, onCan)}-/** d2: "Does this look right?", below "What's wrong?", Try again and Continue. */-function SwapReview({ chain, originalUrl, deps, summary, narrow }: {- chain: SwapChainState; originalUrl: string | null; deps: SwapChainDeps; summary: string; narrow: boolean+/** d2: "Does this look right?". The prompt window takes "What's wrong?" and+ * goes on with Continue; Try again stands here, under the two pictures. */+function SwapReview({ chain, originalUrl, summary, onRetry }: {+ chain: SwapChainState; originalUrl: string | null; summary: string; onRetry: () => void}) {- const [extra, setExtra] = useState('')const busy = useStore(swapChainStore, (s) => s.busy)- const next = chain.videoCredits + (chain.lipsync?.credits ?? 0)return (- <>- <Body>- <div className="pt-4" data-swap-one-click="review">- <p className="flex flex-wrap items-baseline gap-x-3">- <b className="hub-text hub-fs-14 font-semibold">Does this look right?</b>- <span className="hub-dim hub-fs-125">The first frame of your new video. The rest follows the original motion.</span>- </p>- <div className="mt-3 grid grid-cols-1 gap-3 sm:grid-cols-2">- {[{ src: originalUrl, label: 'Original' }, { src: chain.frameUrl, label: `New first frame${chain.who ? ` · ${chain.who}` : ''}` }].map((p) => (- <figure key={p.label}>- {p.src ? <img src={p.src} alt={p.label} className="max-h-[40vh] w-full rounded-lg bg-black object-cover" /> : <div className="aspect-video rounded-lg bg-[var(--hub-fill)]" />}- <figcaption className="hub-dim mt-1.5 hub-fs-125">{p.label}</figcaption>- </figure>- ))}- </div>- </div>- </Body>- <Foot>- <div className={cn('hub-bar', narrow && 'rounded-2xl')} data-swap-bar="review">- <HubBarTop />- <input- type="text"- value={extra}- maxLength={500}- aria-label="What's wrong?"- placeholder="What's wrong? (optional)"- onChange={(e) => setExtra(e.target.value)}- className="hub-text hub-line h-11 w-full border-b bg-transparent px-3 hub-fs-14 outline-none"- />- <div className="flex min-h-[45px] items-center gap-2.5 py-[5px] pl-2.5 pr-1.5">- {!narrow && <span className="hub-muted whitespace-nowrap hub-fs-13">{summary}</span>}- <span className="flex-1" />- <button type="button" disabled={busy} onClick={() => { void retrySwapFrame(deps, { extra }); setExtra('') }}- className="hub-muted min-h-11 whitespace-nowrap hub-fs-13 disabled:opacity-40" data-swap-retry>- Try again · {swapShortCredits(chain.frameCredits)}- </button>- <Button variant="primary" size="md" icon={Sparkles} disabled={busy} onClick={() => void approveSwapFrame(deps)}- className={narrow ? 'h-10 rounded-[20px] px-4' : undefined}>- {`Continue · ${swapShortCredits(next)}`}- </Button>- </div>+ <Body>+ <div className="pt-4" data-swap-one-click="review">+ <p className="flex flex-wrap items-baseline gap-x-3">+ <b className="hub-text hub-fs-14 font-semibold">Does this look right?</b>+ <span className="hub-dim hub-fs-125">The first frame of your new video. The rest follows the original motion.</span>+ </p>+ <div className="mt-3 grid grid-cols-1 gap-3 sm:grid-cols-2">+ {[{ src: originalUrl, label: 'Original' }, { src: chain.frameUrl, label: `New first frame${chain.who ? ` · ${chain.who}` : ''}` }].map((p) => (+ <figure key={p.label}>+ {p.src ? <img src={p.src} alt={p.label} className="max-h-[40vh] w-full rounded-lg bg-black object-cover" /> : <div className="aspect-video rounded-lg bg-[var(--hub-fill)]" />}+ <figcaption className="hub-dim mt-1.5 hub-fs-125">{p.label}</figcaption>+ </figure>+ ))}</div>- </Foot>- </>+ <p className="mt-3 flex flex-wrap items-center gap-x-3 hub-fs-13">+ <button type="button" disabled={busy} onClick={onRetry} className="hub-acc disabled:opacity-40" data-swap-retry>+ Try again · {swapShortCredits(chain.frameCredits)}+ </button>+ <span className="hub-dim hub-fs-125">{summary}</span>+ </p>+ </div>+ </Body>)}diff --git a/src/components/create/experimental/hub/hubCharacters.ts b/src/components/create/experimental/hub/hubCharacters.tsindex e7ac0491..6726d0cb 100644--- a/src/components/create/experimental/hub/hubCharacters.ts+++ b/src/components/create/experimental/hub/hubCharacters.ts@@ -184,3 +184,21 @@ export async function openHubAction(action: HubAction, c: HubCharacter | null, rreturn err instanceof Error ? err.message : String(err)}}++/** An action picked on the stage. Image with a photo character stays on the+ * stage: it has no LoRA to run, so the prompt window's button goes on to+ * Edit with its photos (CharacterHub, the stage's slot of hubRun). Every+ * other pick is openHubAction. */+export async function openStageAction(action: HubAction, c: HubCharacter | null, replace = false): Promise<string | null> {+ const st = useCreateStore.getState()+ if (action === 'image' && c?.photos?.length && !c.ref) {+ st.setIntent('character')+ st.setCharacterTab('use')+ st.setSelectedCharacter(null)+ st.setHubStep('panel')+ return null+ }+ const err = await openHubAction(action, c, replace)+ useCreateStore.getState().setHubStep('panel')+ return err+}diff --git a/src/components/create/experimental/hub/hubRun.ts b/src/components/create/experimental/hub/hubRun.tsnew file mode 100644index 00000000..eb8f7132--- /dev/null+++ b/src/components/create/experimental/hub/hubRun.ts@@ -0,0 +1,53 @@+// What the Character area tells the prompt window (David, 16.11.2026: the+// window is the same Composer in every tab of Create, 660 wide, at the same+// place; the area above it only says what its text field and its button do).+//+// Two writers, each with its own slot: the stage (the character on it, the+// states in which nothing can be made yet) and the one click swap (its total,+// its steps, the question of the first frame). The Composer reads `swap`+// before `stage`. Pure state: no React, nothing is started here.++import { create } from 'zustand'++export interface HubRun {+ /** The button's word: "Create", "Continue", "Continue in Edit". */+ label: string+ /** A price behind the word: "Create · 62k". */+ price?: string | null+ ready: boolean+ /** Why the button waits, as the note above the window and its title. */+ hint?: string+ run: () => void+ /** A run is going: the button is Cancel. */+ running?: boolean+ cancel?: () => void+ cancelDisabled?: boolean+ /** A text of its own in the field (the first frame: "What's wrong?"). */+ field?: { value: string; onChange: (v: string) => void; placeholder: string }+}++export interface HubStageSlot {+ /** The field's line while the action takes a prompt. */+ placeholder?: string+ run?: HubRun+}++interface HubRunState {+ stage: HubStageSlot | null+ swap: HubRun | null+ /** What the window takes on the picked action, said by the Composer for+ * the settings (HubSettings): a prompt at all, and a negative one. */+ window: { prompt: boolean; negative: boolean }+ setWindow: (prompt: boolean, negative: boolean) => void+ setStage: (stage: HubStageSlot | null) => void+ setSwap: (swap: HubRun | null) => void+}++export const useHubRun = create<HubRunState>((set) => ({+ stage: null,+ swap: null,+ window: { prompt: false, negative: false },+ setWindow: (prompt, negative) => set((s) => (s.window.prompt === prompt && s.window.negative === negative ? s : { window: { prompt, negative } })),+ setStage: (stage) => set({ stage }),+ setSwap: (swap) => set({ swap }),+}))diff --git a/src/components/create/ui/PromptField.tsx b/src/components/create/ui/PromptField.tsxindex 16327e4f..f61a6adf 100644--- a/src/components/create/ui/PromptField.tsx+++ b/src/components/create/ui/PromptField.tsx@@ -11,6 +11,8 @@ interface Props {/** A pixel cap, or any CSS length. Default: PROMPT_FIELD_MAX. */maxHeight?: number | stringautoFocus?: boolean+ /** The field stands, and takes no text (an action without a prompt). */+ disabled?: booleanclassName?: string}@@ -29,7 +31,7 @@ interface Props {const PROMPT_FIELD_MAX = 'min(220px, calc(16vh / var(--ui-scale, 1)))'// Auto-grow textarea — grow logic ported from PromptInput.tsx:46-51.-export function PromptField({ value, onChange, placeholder, onSubmit, maxHeight = PROMPT_FIELD_MAX, autoFocus, className }: Props) {+export function PromptField({ value, onChange, placeholder, onSubmit, maxHeight = PROMPT_FIELD_MAX, autoFocus, disabled, className }: Props) {const ref = useRef<HTMLTextAreaElement>(null)// Measured off-page and written only on a real change (GH #139), so a key@@ -45,6 +47,7 @@ export function PromptField({ value, onChange, placeholder, onSubmit, maxHeightref={ref}value={value}autoFocus={autoFocus}+ disabled={disabled}onChange={(e) => onChange(e.target.value)}onKeyDown={(e) => {if (onSubmit && (e.metaKey || e.ctrlKey) && e.key === 'Enter') { e.preventDefault(); onSubmit() }diff --git a/src/index.css b/src/index.cssindex 982318e0..36c536ce 100644--- a/src/index.css+++ b/src/index.css@@ -3191,8 +3191,6 @@ input[type="range"].neuron-range:disabled { cursor: not-allowed; opacity: 0.5; }.lu-hub .hub-line { border-color: var(--hub-sep); }.lu-hub .hub-hover:hover { background-color: var(--hub-hov); }.lu-hub .hub-soft { background-color: var(--hub-soft); }-/* The bar at the foot: the same build as the chat composer, 1px edge, 8px. */-.lu-hub .hub-bar { border: 1px solid var(--hub-edge); background: var(--hub-fill); border-radius: 8px; }/* The role of a person in Swap reads as text until it is typed over. */.lu-hub .hub-role::placeholder { color: var(--hub-text); }/* The type of the Character area: the sizes of the sketches in rendered@@ -3209,33 +3207,35 @@ input[type="range"].neuron-range:disabled { cursor: not-allowed; opacity: 0.5; }.hub-seg { --text-control: calc(12px / var(--ui-scale, 1.15)); }.hub-fs-20 { font-size: calc(20px / var(--ui-scale, 1.15)); line-height: 1.2; letter-spacing: -0.01em; }-/* The stage (variant B, David 16.11.2026, uebergabe-310/character-design):- the tabs across the top, the character on the left, its photos or the- panel of an action on the right, the bar across the foot. A grid, so the- parts of the one click swap (its body and its bar are siblings) land in- the same places as the Composer's. Nothing here moves by itself. */-.lu-hub .hub-stage {- display: grid;- grid-template-columns: minmax(0, 210px) minmax(0, 1fr);- grid-template-rows: auto minmax(0, 1fr) auto;- column-gap: 28px;- flex: 1 1 0%;- min-height: 0;+/* The area is one column of the prompt window's width (660), centred, over+ that window (David, 16.11.2026: the same container in every tab of+ Create). The row is a grid of three: the space left of the column, the+ column, and the rails of the gallery and the presets at the right. While+ there is room both sides are equal, so the column stands exactly over the+ window; an open gallery takes its room from the left side first. The stage in it: the tabs, the character as a head (a small+ picture, beside it the name and every action it has), then the inputs of+ the action and its photos, which scroll. Nothing here moves by itself. */+.lu-hub-row { display: grid; grid-template-columns: minmax(16px, 1fr) minmax(0, 660px) minmax(max-content, 1fr); grid-template-rows: minmax(0, 1fr); }+.lu-hub-row > .hub-column { grid-column: 2; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }+.lu-hub-rails { grid-column: 3; display: flex; justify-content: flex-end; min-width: 0; min-height: 0; padding-left: 16px; }+@media (max-width: 520px) {+ .lu-hub-row { grid-template-columns: 16px minmax(0, 1fr) 16px; }}-.lu-hub .hub-tabs { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 16px; min-height: 38px; }+.lu-hub .hub-stage { display: flex; flex-direction: column; flex: 1 1 0%; min-height: 0; }+.lu-hub .hub-tabs { flex: none; display: flex; align-items: center; gap: 16px; min-height: 38px; }.lu-hub .hub-tablist { display: flex; align-items: stretch; align-self: stretch; gap: 20px; flex: 1 1 0%; min-width: 0; overflow-x: auto; }.lu-hub .hub-tab { display: inline-flex; align-items: center; gap: 7px; flex: none; white-space: nowrap; margin-bottom: -1px; border-bottom: 1.5px solid transparent; }.lu-hub .hub-tab--on { border-bottom-color: var(--hub-text); }-.lu-hub .hub-card { grid-column: 1; grid-row: 2; min-width: 0; min-height: 0; overflow-y: auto; padding: 16px 0; }-.lu-hub .hub-body { grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; overflow-y: auto; }-.lu-hub .hub-foot { grid-column: 1 / -1; grid-row: 3; min-width: 0; padding: 8px 0 12px; }-.lu-hub .hub-portrait { display: block; aspect-ratio: 4 / 5; margin-bottom: 12px; border-radius: 8px; background-size: cover; background-position: 50% 20%; }+.lu-hub .hub-card { flex: none; position: relative; min-width: 0; min-height: 90px; padding: 10px 0 10px 68px; border-bottom: 1px solid var(--hub-sep); }+.lu-hub .hub-card > .hub-portrait { position: absolute; left: 0; top: 10px; width: 56px; }+.lu-hub .hub-body { flex: 1 1 0%; min-width: 0; min-height: 0; overflow-y: auto; }+.lu-hub .hub-portrait { display: block; aspect-ratio: 4 / 5; border-radius: 8px; background-size: cover; background-position: 50% 20%; }.lu-hub .hub-portrait--none { display: grid; place-items: center; background: var(--hub-fill); }-.lu-hub .hub-initial { font-size: calc(52px / var(--ui-scale, 1.15)); font-weight: 600; line-height: 1; }+.lu-hub .hub-initial { font-size: calc(24px / var(--ui-scale, 1.15)); font-weight: 600; line-height: 1; }.lu-hub .hub-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }.lu-hub .hub-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }-/* The switch between the actions: text with one quiet ground for the one- that is picked, no frame of its own inside the bar. */+/* The row over the prompt window: Image, Swap, Motion, Talk as text, with+ one quiet ground for the one that is picked. */.lu-hub .hub-act { display: inline-flex; gap: 2px; }.lu-hub .hub-act-item { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; color: var(--hub-muted); white-space: nowrap; }.lu-hub .hub-act-item--on { border-color: var(--hub-edge); background: var(--hub-hov); color: var(--hub-text); font-weight: 500; }@@ -3243,24 +3243,10 @@ input[type="range"].neuron-range:disabled { cursor: not-allowed; opacity: 0.5; }.lu-hub .hub-act-item { padding: 0 8px; }.lu-hub .hub-act-item svg { display: none; }}-/* A narrow window has no room for the column on the left. The character- then stands as a head over its photos: the picture small, beside it the- name and every action it has. Nothing is hidden at any width. The file- actions of a LoRA character alone stay where they are on a narrow- window, under More options (SpecialMore), so they stand once. */-@media (max-width: 700px) {- .lu-hub .hub-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; }- .lu-hub .hub-card { grid-column: 1; grid-row: 2; position: relative; overflow: visible; min-height: 90px; padding: 10px 0 10px 68px; }- .lu-hub .hub-card > .hub-portrait { position: absolute; left: 0; top: 10px; width: 56px; margin-bottom: 0; }- .lu-hub .hub-card .hub-initial { font-size: calc(24px / var(--ui-scale, 1.15)); }- .lu-hub .hub-card .hub-card-file { display: none; }- .lu-hub .hub-body { grid-column: 1; grid-row: 3; }- .lu-hub .hub-foot { grid-row: 4; }-}/* The pages of the area: "New character" and the training. */.lu-hub .hub-page { display: flex; flex-direction: column; flex: 1 1 0%; min-height: 0; }-.lu-hub .hub-new { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-content: start; gap: 48px; flex: 1 1 0%; min-height: 0; overflow-y: auto; padding: 20px 0 16px; }+.lu-hub .hub-new { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-content: start; gap: 28px; flex: 1 1 0%; min-height: 0; overflow-y: auto; padding: 16px 0 12px; }@media (max-width: 760px) {.lu-hub .hub-new { grid-template-columns: minmax(0, 1fr); gap: 24px; }}@@ -3274,42 +3260,7 @@ input[type="range"].neuron-range:disabled { cursor: not-allowed; opacity: 0.5; }.lu-hub .hub-radio--on { border-color: var(--hub-acc); }.lu-hub .hub-radio--on::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--hub-acc); }-/* No character yet: the steps beside the four examples, centred on each- other. The four small drawings are the only pictures of the area that- move; with reduced motion they stand still. */-.lu-hub .hub-empty { display: flex; align-items: center; gap: 56px; flex: 1 1 0%; min-height: 0; overflow-y: auto; padding: 16px 8px; }-@media (max-width: 820px) {- .lu-hub .hub-empty { flex-direction: column; align-items: stretch; gap: 28px; }-}-.lu-hub .hub-ex { width: 120px; height: 80px; border-radius: 6px; background: var(--hub-fill); }-.light .lu-hub .hub-ex-mark { filter: invert(1); }-.lu-hub .hub-ex-a { animation: lu-hub-ex-a 6s ease-in-out infinite; }-.lu-hub .hub-ex-b { opacity: 0; animation: lu-hub-ex-b 6s ease-in-out infinite; }-.lu-hub .hub-ex-tilt { animation: lu-hub-ex-tilt 2.4s ease-in-out infinite; }-.lu-hub .hub-ex-bar { animation: lu-hub-ex-bar 1.4s ease-in-out infinite; }-@keyframes lu-hub-ex-a {- 0%, 40%, 100% { opacity: 1; }- 50%, 90% { opacity: 0; }-}-@keyframes lu-hub-ex-b {- 0%, 40%, 100% { opacity: 0; }- 50%, 90% { opacity: 1; }-}-@keyframes lu-hub-ex-tilt {- 0%, 100% { transform: rotate(-9deg); }- 50% { transform: rotate(9deg); }-}-@keyframes lu-hub-ex-bar {- 0%, 100% { transform: scaleY(0.45); }- 50% { transform: scaleY(1); }-}-@media (prefers-reduced-motion: reduce) {- .lu-hub .hub-ex-a,- .lu-hub .hub-ex-b,- .lu-hub .hub-ex-tilt,- .lu-hub .hub-ex-bar { animation: none; }- .lu-hub .hub-ex-a { opacity: 0; }- .lu-hub .hub-ex-b { opacity: 1; }-}+/* No character yet: the three steps and the one button. */+.lu-hub .hub-empty { flex: 1 1 0%; min-height: 0; overflow-y: auto; padding: 16px 0; }/* The NEW mark on the Character pill: accent on a faint accent ground. */.lu-new-mark { font-size: 7px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.4; }