Repository navigation
Conversation
Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
- Take over the whole screen for the director stage instead of a centered card, so the editor shell matches the target console layout from the first slice onward. - Move the tool actions (undo, redo, stage JSON import and export, still download, MP4 render) from the modal footer into a toolbar row under the header; the footer keeps cancel and apply. - Guard closing with unsaved stage changes through the shared stage equality: keep editing, discard and close, or save and close. - npm run build, npm test (679 passing), npm run check:i18n (2892 keys, 0 problems). - node tests/browser/director_stage_entry.mjs in en-US and zh-CN against the isolated creation_server.py fixture on this tree. Refs: ThinkFlowLab#241 (cherry picked from commit 58e1ce20d9cfe3da0ad76f0de8fbf88f0f55901f)
- Rebuild the editor body as a console layout: a left scene panel, a center viewport that fills the available frame, a right inspector, and a bottom timeline strip holding playback, duration, the playhead, keyframe chips, and storyboard editing. - Let the preview renderer fill its panel instead of a letterboxed aspect box; the stage aspect now governs the captured still and the MP4, not the free-form preview frame. - npm run build, npm test (679 passing), npm run check:i18n. - node tests/browser/director_stage_entry.mjs in en-US and zh-CN against the isolated creation_server.py fixture; viewport measured at 1144x643 inside the 1700x1000 frame, with a comparison screenshot saved beside the reference captures. Refs: ThinkFlowLab#241 (cherry picked from commit 985fac622c29c8b7d67eec940f8a3567be7f4129)
- Rebuild the editor root: the 3D frame is now the base layer covering the whole console (measured 1700x956 in a 1700x1000 frame), replacing the grid cell that left dead bands above and below the viewport. - Float every panel over the frame the way the reference console does: a top bar carrying identity, tool actions, cancel, apply, and close; translucent left scene and right inspector panels; a bottom timeline strip; render status and errors as floating overlays. - Drop the shared modal chrome for the stage and own the dialog semantics directly: focus trap, Escape, backdrop close, body scroll lock, and the unsaved guard all live in the console. - npm run build, npm test (679 passing), npm run check:i18n. - node tests/browser/director_stage_entry.mjs in en-US and zh-CN against the isolated creation_server.py fixture; comparison screenshot refreshed beside the reference captures. Refs: ThinkFlowLab#241 (cherry picked from commit ea7b9ec15a6fd7e83e8d5e38197ee13b68fcd49c)
…ave chip - Pin the preview canvas to its CSS box so a HiDPI display keeps a sharp 1:1 frame instead of the zoomed, blurry crop the unstyled canvas produced. - Split the left panel into Characters, Objects, Cameras, and Background tabs: imports preset their role from the active tab, camera rigs list and add inline, and scene settings move to their own page. - Draw a camera-preview picture-in-picture with a scissored second render pass framed exactly as the still and the MP4 capture, plus a toggleable aspect mask that letterboxes the shot frame over the free-form preview. - Show a saved/unsaved chip in the top bar next to the toggles. - npm run build, npm test (679 passing), npm run check:i18n (2902 keys, 0 problems). - node tests/browser/director_stage_entry.mjs in en-US and zh-CN on the isolated fixture; tabs, chip, camera add, preview frame, and mask verified in a live probe with zero page errors; comparison screenshot refreshed beside the reference captures. Refs: ThinkFlowLab#241 (cherry picked from commit 6e690e6fcf1a9536c360c1bcf770515f35e50c59)
The fullscreen console layout rebuild moved the editor away from the dialog-era markup; this lands the batch-2 drawer as a floating layer over the 3D scene, between the aspect overlays and the console panels. The top-bar capture, materials and export entries, the drawer draft state and the unsaved-close guard (which now also tracks still edits) ride along from the merged main. Refs: ThinkFlowLab#241 (cherry picked from commit 4103029e2dea141d5120eff7c85dd06bf4341e31)
- The shot-materials drawer floats above the console panels and sits left of the right inspector instead of hiding underneath it. - The unsaved-close guard compares against the committed baselines that mid-session prepares advance, so an exported stage with committed stills no longer shows a false Unsaved chip or nags on Escape. Refs: ThinkFlowLab#241 (cherry picked from commit a3864a27d335a2af41f34435d3eca039dc741a5b)
The top bar gains a shortcuts entry and the first object added in this browser opens the same panel once (localStorage marker): mouse bindings for orbit/pan/zoom plus the Escape and Tab behaviour of the console. The panel grows as placement and gizmo shortcuts land. Refs: ThinkFlowLab#241 (cherry picked from commit 5e18458f4e1c3a97bbf0340b9675bf8b813dc904)
- Each camera row gains a live-preview entry that splits the scene: the orbit working view keeps the left share, the chosen rig (or the storyboard sample once shots exist) fills the right pane. A draggable divider adjusts the ratio with keyboard equivalents, camera tabs switch the pane source, and Exit returns to the single view. - Every axis in the position, rotation and scale groups pairs a bounded slider with the exact number input, so common adjustments come from a drag with immediate viewport feedback while out-of-band values stay typable. Refs: ThinkFlowLab#241 (cherry picked from commit d4e1116237ed417d5d9a960171b6f2b8a7665a94)
The workspace root handles keydown in the capture phase and its Escape branch closes the open editor; the dialog-era stage was exempt through the .cw-domain-dialog wrapper class, but the fullscreen console dropped that wrapper without joining the exemption list, so every Escape inside the console force-closed the editor and bypassed the unsaved-close guard. The console joins the exemption list, the help panel focuses its close button so Escape dismisses it first, and a browser check covers the cheat-sheet, the split live preview (tabs, keyboard ratio nudges, exit) and transform sliders. Comparison shots land as od-batch4-*.png. Refs: ThinkFlowLab#241 (cherry picked from commit f2c66df72430cd80d9a55e51e0ef7e89f3d51237)
Context-creation failures lose their multisample retry (some drivers refuse antialiasing buffers under pressure; a plain context keeps the editor usable), both renderer cleanups force-context-loss before disposing so browsers free the slot immediately instead of waiting for garbage collection, and the failure message now carries recovery steps (hardware acceleration, chrome://gpu, close competing WebGL tabs). A 20-cycle open/close probe survives on a fresh context, so the immediate failure is environmental; these changes make the app degrade gracefully and diagnosable either way. Refs: ThinkFlowLab#241 (cherry picked from commit 3a5b372d8b0a6b71c83d7ae3b3790d44b2a1fc13)
Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com> (cherry picked from commit 14e6c7807fcc5cd786f3e25d76e5904e39236eb7)
## summary - Extend Director Stage object contracts with primitive geometry kinds. - Persist and validate camera roll across the frontend, backend, schema, generated types, and fixtures. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
## summary - Add the asset rail preview modes and object cards used by the Director Stage. - Render thumbnails from zero-transform objects, crop them from the centered view, and persist them as image asset references. - Validate projected thumbnails across the frontend, backend, schema, and tests. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
## summary - Remove renderer-only visibility fields from transient thumbnail objects. - Keep thumbnail generation within the existing StageObject transform contract. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
## summary - Persist the editable stage document, environment, camera channels, and timeline contracts. - Add preview-card placement, mutually exclusive Gizmo modes, viewport state, object tree, and inspector editing. - Cover the core interactions with browser scenarios and unit/contract validation. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
## summary - Persist prepared output slots and stable upload handles before media publication begins. - Resume unfinished output imports after reload without duplicating completed assets. - Require rendered video duration to match the frozen camera plan and localize the pending-preparation error. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
## summary - Capture missing object thumbnails after model loading and report failures without hiding the imported object. - Preserve the stage poster only when a usable preview URL exists. - Treat thumbnail assets as registered stage dependencies and cover the validation path in TypeScript tests. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
## summary - Persist prepared output slots and stable upload handles before media publication begins. - Resume unfinished output imports after reload without duplicating completed assets. - Require rendered video duration to match the frozen camera plan and localize the pending-preparation error. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
## summary - Capture missing object thumbnails after model loading and report failures without hiding the imported object. - Preserve the stage poster only when a usable preview URL exists. - Treat thumbnail assets as registered stage dependencies and cover the validation path in TypeScript tests. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
## summary - Keep focus inside help, export, preview, and close-confirm dialogs. - Restore the previously focused control after each nested dialog closes. - Keep Escape scoped to the active dialog instead of the stage editor. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
…ment Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
This was referenced Nov 22, 2026
## summary - Add pointer and keyboard resizing for the left and right panels and dynamic timeline. - Keep layout dimensions in ephemeral view state with bounded values and bilingual separator labels. - Limit panel highlight lines to the timeline top while dynamic preview is visible. ## validation - npm test - npm run build - npm run check:i18n - npm run check:browser-manifest - CREATION_API_URL=http://127.0.0.1:37901 CREATION_WEB_URL=http://127.0.0.1:4173 node tests/browser/director_stage_layout.mjs
## summary - Add a mutually exclusive Select tool and a disabled-aware Drop to ground action to the Director Stage toolbar. - Reuse the existing pose editor for keyboard and button ground placement, including locked-object protection. - Keep the preview WebGL buffer aligned with its full panel so transform picking follows the visible viewport. - Extend bilingual browser coverage for the new toolbar actions and preserve the existing gizmo journey. ## validation - npm test - npm run build - npm run check:i18n - npm run check:browser-manifest - CREATION_API_URL=http://127.0.0.1:37901 CREATION_WEB_URL=http://127.0.0.1:4173 node tests/browser/director_stage_gizmo.mjs - DIRECTOR_STAGE_LOCALE=zh-CN CREATION_API_URL=http://127.0.0.1:37901 CREATION_WEB_URL=http://127.0.0.1:4173 node tests/browser/director_stage_gizmo.mjs
## summary - group dynamic timeline tracks by shots, cameras, and current scene objects - render source group rows while preserving property track and keyframe editing - cover grouping, object removal, and bilingual browser acceptance ## validation - npm test - npm run build - npm run check:i18n - npm run check:browser-manifest - director_stage_entry.mjs in en-US and zh-CN
## summary - add expandable source group rows to the dynamic Director Stage timeline - preserve property track editing while hiding collapsed child rows - add bilingual accessible labels and browser coverage ## validation - node --test tests/stageTimeline.test.ts - npm run build - npm run check:i18n - director_stage_entry.mjs in en-US and zh-CN
…ge-core ## summary - Add the continuous Storyboard track on top of the compact workbench layout. Where the two branches disagreed on layout, this branch's layout and control style is kept. - Timeline rows keep the compact 22px and 20px heights; the Storyboard row keeps the 40px it needs for a thumbnail. - Undo, redo and import stay in the top bar toolbar and take the Storyboard guards that disable them while an append, an edit or a preview is in flight. - The picture-in-picture rectangle is read from the draggable preview frame instead of the former fixed offsets. - The preview source row is always shown above the camera section. It is a view choice, and placing it inside the camera section would hide it whenever no camera is selected. - The stylesheet keeps both sides' appended rules whole, with this branch's compact chrome rules last. - The Storyboard journey follows the preview toggle's aria-expanded state and the preview that is expanded by default; the view-state test compares the preview flag with its initial value. ## validation - tsc --noEmit, vite build and npm test (966 unit tests) pass at this state. - npm run check:i18n, check:browser-locale and check:browser-manifest pass at this state. - Python is unchanged from codex/director-stage-storyboard; pytest is not rerun for this merge. - Not run at this state: the Director Stage browser scripts. The entry and console scripts still carry two expectations of the pre-compact layout; the next commit fixes them and records the browser runs. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
## summary - The exact numeric input of a drag row took the shared 30px minimum height of text inputs, so it stood 4px taller than the compact 26px row that owns it. It now follows the row's height. - The entry browser check expects the keyframe interval offset of the compact 20px track row (8px) instead of the former 22px row (9px). ## validation - tsc --noEmit, vite build and npm test (966 unit tests) pass at this state. - Isolated creation server plus Vite: the Storyboard journey in both languages, entry, gizmo, pointer alignment, console, interaction, layout, visual and Storyboard MP4 checks pass at this state. The visual check passed on a second run after a first page-load timeout. - The production-lane Storyboard acceptance passes in both languages against the built preview at this state. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
## summary - Remove the one trailing space that ships in the upstream OFL text, as public/fonts/LICENSE.txt already does, so the trailing-whitespace hook passes on the added file. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
## summary - Carrying a Storyboard block to another place now shows it. Past a 5px threshold the block alone follows the pointer sideways, kept inside the track, lifted over the other blocks with a shadow at 90% opacity. The other blocks, the playhead and the viewport stay as they are until the block is let go. - A release that changes the order shows the new order in the frame of the release and sends the one `director.storyboard.reorder` command, as before. A release that keeps the order, Escape, a cancelled pointer and a lost focus put the block back and write nothing. The playhead keeps its time after a reorder in this change. - The track holds the carried block in its own state and answers a pointer move in one frame without rendering its parent. The parent is told in the frame after the first one in which the block moves: its render is large enough to hold that first frame back. - While a block is carried, undo, redo, `+`, the main duration and camera deletion wait, as they do for a command in flight, and no block shows its delete button. `+` names the existing editing reason. - Cursors: `grab` over an editable block and `grabbing` from the press on, in the block and in the surface that owns the pointer; a boundary being resized keeps `ew-resize` from the surface as well. A read-only block keeps the pointer. - The block thumbnail is no longer draggable. Left to the browser, an image drag began on the press and cancelled the pointer gesture. - The Storyboard journey follows the drag with real pointer gestures, and reads the track frame by frame across a release whose reply is held back. `firstDragFeedbackMs` now measures, in the page, the time from the first pointer move to the first frame in which the carried block has moved. ## validation - npm run build (tsc --noEmit and vite build), npm test (966 unit tests), npm run check:i18n, check:browser-locale and check:browser-manifest pass at this state. - Isolated creation server plus Vite, headless Chromium with software WebGL: the Storyboard journey in en-US, run as it is, passed end to end (exit 0, 367 s). firstDragFeedbackMs was 102.8 ms there, where a frame of this page is about 47 ms. The thumbnail-timing line that fails on this machine's baseline passed with exactly four tasks. - The same journey in zh-CN passed end to end (exit 0, 369 s) on this source, before two message strings and a test-local variable of the journey were renamed. - Not run at this state: the other Director Stage browser scripts, the production and perf lanes, and pytest (Python is unchanged).
…he pointer ## summary - A carried block follows the pointer alone, with grab and grabbing cursors; the other blocks, the playhead and the viewport stay still. - Undo, redo, `+`, the main duration and camera deletion wait while a block is carried, as they do for a command in flight. - The block thumbnail is no longer draggable, so the browser no longer starts an image drag that cancels the pointer gesture. - The Storyboard journey follows the drag with real pointer gestures and measures the time to the first frame in which the block moves.
## summary - While a Storyboard block is carried to another place, one line says where it would start from once let go. It is shown only where a release would change the order, at the time the block would have in the order that release would save, laid out by the rule the blocks themselves are laid out by. - The line jumps from place to place as the carried block's centre passes the centre of one neighbour after another. Carried left, it stands on a boundary two blocks make already. Carried right, it stands inside the block it passed, at its new start and not at that block's end. - The line is 3px thick, in `--stage-accent`, and runs through the whole track, above and below the blocks. A small chevron at either end points to the line's centre. It is drawn above every block, the carried one included, and inside the Storyboard row, so the playhead stays over it. It takes no pointer and is hidden from assistive technology. - The line is the track's own view state, set in the same update as the carried block's offset, so a pointer move renders no parent and no extra frame. It leaves with the carried block: carried back into its own place, released, Escape, a cancelled pointer or a lost focus. A resize has no line. Nothing is written or moved on its account. - The Storyboard journey reads the line with real pointer gestures, computed styles, a painted pixel and bounding boxes, in both drag directions. The pixel reader it already had further down is moved up beside the other screenshot helpers. ## validation - npm run build (tsc --noEmit and vite build), npm test (966 unit tests), npm run check:i18n, check:browser-locale and check:browser-manifest pass at this state. - Isolated creation server plus Vite, headless Chromium with software WebGL: the Storyboard journey in en-US, run as it is, passed end to end at this state (exit 0, 374 s) with exactly four thumbnail tasks on the timing line and firstDragFeedbackMs 104. - The same journey in zh-CN passed end to end (exit 0, 389 s) with its screenshots on, on this content before one blank line of the journey moved. The line was looked at in the screenshots of both languages. - Temporary mutations of the line, each restored afterwards and none committed, failed the journey where intended: a line while the order would hold; one at the block's unmoved start; one at the end of the block it passed; the same only where that block is the wider one, which only the rightward drag catches; one that never leaves its first place; and one at the unmoved start on leftward drags. - Not run at this state: the other Director Stage browser scripts, the production and perf lanes, and pytest (Python is unchanged).
## summary - While a carried block would change the order if let go, a 3px accent-coloured line with a chevron at each end stands at the time the block would start from. - The line shows only where a release would change the order and takes no pointer. - The journey checks the line's position, style and stacking.
## summary - Letting go of a Storyboard block where the order changes now takes the playhead with it, once and in the frame of the release, to where the dragged block starts in the new order. The outline, and with it what the viewport samples, is on that block there. The time is view state only: it reaches no command and no receipt, and it is not snapped, because what it would snap to is the stored boundaries that this very order moves. - A save the server refuses puts the playhead back with the order, to where it stood before the drag ended, and names the reason as before. A release that keeps the order, Escape, a cancelled pointer and a lost focus move no playhead, and undo and redo still restore the document alone. - The blocks of an order are laid out from zero in one function, `packStageStoryboard`: the track reads it for the line and the order it shows, the parent for where the playhead goes, so none can stand for a start the others do not. - The journey records the playhead beside the track in every frame across a release whose reply is held back, and follows a refused save: the editor holding an older version, a drag released, the order and the playhead shown at once and then back together, one write attempted. The checks after the first reorder read the playhead where that reorder left it. - Documents: a lesson on a picture inside a dragged element taking the pointer gesture away, and the drag feedback in the journey's coverage in the validation guide and the browser manifest. ## validation - npm test (968 unit tests), npm run build (tsc --noEmit and vite build), npm run check:i18n, check:browser-locale and check:browser-manifest pass at this state. - Isolated creation server plus Vite, headless Chromium with software WebGL: the Storyboard journey in en-US, run as it is, twice passed every assertion up to the thumbnail-timing line and failed there with three tasks (exit 1, 274 s and 276 s), the line that fails the same way on this machine's baseline. A diagnostic run with only that line relaxed to one task, restored afterwards and not committed, passed end to end (exit 0, 384 s). The journey has not passed as it is at this state. - Before the playhead followed the drag, and again before a refused save put it back, the journey failed at the new assertions: the playhead still at 1 after the release, and still at the block's new start after the refusal. - Not run at this state: the journey in zh-CN, the other Director Stage browser scripts, the production and perf lanes, and pytest (Python is unchanged).
## summary - The journey's closing list of what it checked names the two things the drag feedback gained: a release that changes the order takes the playhead to the dragged block's new start, and a save the server refuses puts the order and the playhead back together. The list is what the journey prints; no assertion changes with it. ## validation - node --check on the journey, npm run check:browser-manifest and npm run check:browser-locale pass at this state. - Isolated creation server plus Vite, headless Chromium with software WebGL, at this content: the Storyboard journey in en-US, run as it is, passed end to end (exit 0, 386 s) with exactly four thumbnail tasks on the timing line; the same in zh-CN passed end to end (exit 0, 392 s). - One run before each of those failed in a way this change does not account for. In en-US (exit 1, 311 s) a picture was not the one made while a request was held: the wait before that snapshot was met by the blocks' earlier pictures, and the snapshot caught them cleared. That phase runs after two page reloads and calls none of the code these two commits touch. In zh-CN (exit 1, 62 s) the saved label did not show within 20 s after a reload, in a part of the journey these commits do not change. - Not run at this state: the other Director Stage browser scripts, the production and perf lanes, and pytest (Python is unchanged).
## summary - A release that reorders blocks moves the playhead once, to the dragged block's new start, and a refused save puts the order and the playhead back together. - One shared function lays blocks out in an order for the track, the line and the playhead. - A development lesson, the validation guide and the manifest note describe the drag feedback.
## summary - Add `reorders` to tests/fixtures/director-storyboard.json: the stored track, the carried order and where every block then starts, down to lengths below a millisecond, one on a half millisecond, and float noise where two boundaries meet. Expected values follow from the written rule and were not recorded from either implementation. - tests/canvasStage.test.ts lays each case out with `packStageStoryboard` and reads the end of the last block through the read model. - tests/test_creation_director.py lays the same cases out with `pack_storyboard`, then stores each through the shared reorder command from a track written as an older service left it. - No implementation changes. Both sides already agree; the cases keep them so, for the start the canvas predicts and the one the receipt stores. ## validation - `node --test tests/canvasStage.test.ts`: 58 pass. - `.venv/bin/python -m pytest tests/test_creation_director.py -q`: 99 pass, 97 before. - Against mutated copies, none committed, the new tests fail on both sides: a running sum that is not normalized, and half-up rounding replaced by rounding down in TypeScript or by Python's `round` in Python.
## summary - In DirectorStage.tsx, write `storyboardEditPending || storyboardPreview !== null || storyboardDragging` once: as `storyboardBusy` for the render, and as `storyboardBusyNow()` for the code that runs between renders. - Read it wherever that whole group stood: the reason `+` gives, undo and redo, deleting the camera, the main duration, `+` itself, and the guards of undo and redo and of the add. - No change in behaviour. Each guard keeps its other conditions, and every operand is a plain read, so regrouping them gives the same result. The guards that hold only part of the group are left as they were. ## validation - `npx tsc --noEmit -p .` on a tree holding this file as staged: no error. - The Storyboard browser journey passed with this refactor together with the rest of the branch; it was not run on this commit's tree alone.
## summary - In tests/browser/director_stage_storyboard.mjs, add `holdReplies(type)`: it routes the command endpoint, holds the reply to every command of that type, says when one has arrived, lets it go, and says when it has gone. - Use it for the three places that each wrote the same route by hand: the held append, the held reply to a reorder, and the held refusal. - No change in what the journey asserts. ## validation - `node --check tests/browser/director_stage_storyboard.mjs` on the journey as staged. - The journey passed with this refactor together with the rest of the branch, through all three held replies; it was not run on this commit's tree alone.
## summary - StageStoryboardTrack.tsx no longer releases the pointer capture when a drag is cancelled by Escape, a `pointercancel` or the window losing focus. The surface keeps the pointer until the release, which the browser then gives up on its own. - Released at the cancel, the release that followed landed on whatever lay under the pointer. Over an empty stretch of the lane that was a click on the lane, and the playhead jumped to where the mouse was let go, although the drag had been cancelled and nothing was written. The lane has to be longer than the Storyboard for it to show. - Held, that release reaches the surface alone, and its click stops there. A release that keeps the order and one that changes it are not touched. - The journey now reaches a moment where the main timeline is longer than the Storyboard. After each of the three cancellations it lets go on the empty lane and on the ruler: the playhead, the block under it, the selection and the stored document stay as they were. ## validation - tests/browser/director_stage_storyboard.mjs on the integration tip with this step and without the fix: for each of the three cancellations the step fails on the empty lane, the playhead moving from 1 s to where the mouse was let go. - The same journey with the fix passed end to end (exit code 0), before the later commits of this branch were added on top, and again with them. This commit's tree alone was not run.
## summary - A block carried to another place no longer shows the ring and the fill that keyboard focus gives it. In director-stage.css the three rules that give a block a focus fill or a focus shadow do not apply under a shell being dragged, and a carried block loses the outline every stage button has. - The white ring of the block under the playhead and the fill of the selected block stay. The `:where()` keeps each rule's weight, so a block that is not carried is painted exactly as before. - Escape is a key press. Chromium keeps the block that was pressed in keyboard focus from then on, and the next drag of that block carried it with the ring and the lighter fill. - The journey now carries the same block again after an Escape and reads its computed style against the drag before it: no ring, the same paint. Once the drag is over the ring is back. ## validation - tests/browser/director_stage_storyboard.mjs with the new assertions and without the stylesheet change: fails at "a carried block shows no ring of keyboard focus". - With the stylesheet change the journey passed end to end (exit code 0), together with the rest of the branch. Screenshots of the carried block before and after an Escape were looked at.
## summary - In DirectorStage.tsx, when the reply to a reorder arrives and the dragged block is stored at another start than the one the playhead was put on, the playhead moves to the stored start, unless the user has moved it in the meantime. - When that reply is not merged into the draft, because the draft's Storyboard was changed elsewhere while the command was in flight, the playhead goes back to where it stood before the drag ended: the new order is then not the one the draft holds. - The stored start equals the predicted one for every input today. The canvas and the service lay the blocks out by the same rule, which the shared fixture pins, with sub-millisecond lengths. The second path cannot be reached from the editor, which refuses every change to the Storyboard while one of its commands is in flight. ## validation - `npx tsc --noEmit -p .`, `npm test` (969 pass) and `npm run build` on the tree holding this change. - The Storyboard browser journey passed end to end on that tree (exit code 0). Its reorders take the path where the stored start equals the predicted one; neither new branch has a test of its own.
## summary - Add "Arrange a Director Stage Storyboard" to the user guide, in English and in Chinese: adding a block with `+`, what a drag shows, where the playhead goes once the block is let go, how `Esc` cancels, and that dragging an edge changes the length. It describes behaviour that exists. - In validation.md, say "标出块将插入位置的粗线" for the line that says where a block would start from, in place of "分页线", and list the two checks the journey gained. The manifest note lists them too. - Record the lesson of a cancelled pointer gesture that released its capture: the same shape is in four other gestures, none of them checked. ## validation - `npm run check:i18n`, `npm run check:browser-locale` and `npm run check:browser-manifest` on the tree holding these changes: all pass.
## summary - A cancelled drag keeps the pointer until it is released, so letting go on the empty lane no longer moves the playhead. - The playhead takes the dragged block's stored start from the receipt, unless the user has moved it meanwhile. - A carried block no longer shows the ring and fill that keyboard focus gives it. - One shared fixture pins reorder packing on both sides, the start the canvas predicts and the one the receipt stores. - The user guide describes arranging blocks in English and in Chinese, and a lesson covers a cancelled pointer gesture.
…r-stage-core ## summary - Dragging a Storyboard block shows it: grab and grabbing cursors, the carried block alone following the pointer inside the track, and a line at the time the block would start from once let go. Everything else stays still and nothing is written while a block is dragged. - A release that reorders arranges the blocks at once and moves the playhead to the dragged block's new start, which the server's receipt confirms; a refused save puts the order and the playhead back together. Escape, a cancelled pointer or a lost focus puts the block back, and the surface keeps the pointer until it is released, so that the release is not read as a click on the lane. - A block thumbnail no longer starts the browser's own image drag, and a carried block shows no ring of keyboard focus. - One shared fixture pins reorder packing on both sides of the API. - The Storyboard journey covers the drag feedback; the user guide and the validation guide describe it in both languages, and the lessons record two risks found on the way. ## validation - Run on the integration tip 8e8b6ad, whose tree this merge keeps unchanged: the Storyboard journey in en-US (412 s) and in zh-CN (416 s), director_stage_entry, director_stage_gizmo and director_stage_pointer_alignment, npm test (969 unit tests), npm run build, npm run check:i18n, npm run check:browser-locale, npm run check:browser-manifest and pytest tests/test_creation_director.py (99 passed). - Screenshots of each drag state were inspected in both languages, and the viewport before and during a drag differed in no pixel. - Not run: the production, perf and manual browser lanes, the full pytest suite, and any check on a real GPU.
## summary - A carried block flat against the right edge of the track is now let in last, and flat against the left edge first. The track ends at the window's edge, so a block pressed to the right of its centre could not always get its centre past the last block's, and a block wider than the last one could not be moved to the end. - The line that says where a carried block would be let in now stands in that gap: before the block that would then follow it, at the end of the last block when it would be last, and at the start of the track when it would be first. It stood at the block's new start, which for a block carried right is one place short of the gap, and never at the end of the Storyboard. At the very end of the track the line is kept just inside it. - The Storyboard journey reads the line in each gap and at either end, and that a block flat against an edge is let in last or first although its centre is short of its neighbour's. The user guide, the validation guide and the manifest note say where the line stands. ## validation - Isolated creation server plus Vite, headless Chromium: the Storyboard journey passed end to end in en-US (432 s) and in zh-CN (439 s). One earlier en-US run stopped at the thumbnail-timing line that sits on its threshold (3 tasks against 4), as it does on the baseline; it passed on the rerun. - Eight drags made with the pointer kept inside the window, on the code before and after: every block dragged to the window's right edge is now let in last, and the line stands at the end of the last block in each of them. - npm test (969 unit tests), npm run build, npm run check:i18n, npm run check:browser-locale and npm run check:browser-manifest pass. - Not run: the other browser lanes and pytest (Python is unchanged).
…-core ## summary - A Storyboard block carried flat against either edge of the track is let in last or first, so a block can always be moved to the end. - The line that says where a carried block would be let in stands in that gap, at the end of the last block when it would be last. ## validation - The merge keeps the tree of 51e13ee unchanged. On that tree the Storyboard journey passed end to end in en-US (432 s) and zh-CN (439 s), and npm test, npm run build, npm run check:i18n, npm run check:browser-locale and npm run check:browser-manifest passed; see that commit for the runs before them.
## summary - Show the selected Director Stage subject's height above the business ground: a line from its lowest rendered point down to the ground, a ring where it would land, and the value in a gap in the line. It follows gizmo drags and field edits, and measures what drop-to-ground moves, so it disappears once the subject stands on the ground. - Draw the readout in DOM and SVG over the orbit view, as the object names are, so no still, export or camera preview can hold it. It leaves with the viewfinder and while an export renders, stops at the split view's working pane, and takes no pointer. - Add the readout's strings for zh-CN and en-US. ## validation - Isolated creation server plus Vite, at this state: director_stage_entry, director_stage_gizmo and director_stage_storyboard in en-US and zh-CN, director_stage_pointer_alignment, director_stage_interaction and director_stage_visual_v1 pass. The gizmo and pointer-alignment scripts gained readout assertions; each was confirmed to fail against a deliberately broken readout. - director_stage_storyboard.mjs in zh-CN failed in one of four runs, at "and each is the same picture that was made while the request was held". The same assertion failed on another worktree before this change; the other three runs passed. - director_stage_visual_v1 screenshots are byte-identical to the same script run on the parent commit. - npm test (984 unit tests), tsc --noEmit, npm run check:i18n, npm run check:browser-manifest and npm run check:browser-locale pass. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
## summary - NodeFrame derived its React Flow handles from `nodePorts`, the reference policy. A timeline therefore lost its source anchor and a stack lost both, so the `timeline-pending:` and `publication:` edges of a direct timeline output and the edges `projectCanvasStacks` redraws to a folded stack were no longer drawn. - NodeFrame now renders both anchors for every kind outside `UNANCHORED_KINDS`, a new constant in connectionPolicy that holds only `group` and the Director Stage node (`external`). - `nodePorts` is unchanged: which references a kind accepts is still decided there, and the Director Stage node still anchors no edge. - Pin the anchor rule in the canvas capability unit test. ## validation Run on the working tree, which also held uncommitted Director Stage units changes that are not part of this commit; the three files above were staged in full. - `node --test tests/*.test.ts`: 987 passed. - `tsc --noEmit`: clean. - Isolated-server browser journeys passed: `timeline_node_output.mjs` (twice), `node_connections.mjs` and `edge_selection.mjs`. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
## summary - The Director Stage console opens in static mode, and the timeline transport that holds the stage duration renders in dynamic mode only. The journey now switches to Dynamic before it edits the stage duration. - "Render preview MP4" opens the export dialog, and the render starts on Export. The journey now confirms the dialog with its defaults before it waits for the rendered preview. - No assertion or timeout changes. ## validation Run on the working tree, which also held uncommitted Director Stage units changes that are not part of this commit; the file above was staged in full. - On an isolated server, `tests/browser/structured_editors.mjs` with `--publish`: passed twice. - `npm run check:browser-manifest` and `npm run check:browser-locale`: clean. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
## summary - The storyboard journey required all four pictures to become ready inside the 3.6-second playback window. How many fit there is the machine's speed: in one run on a loaded machine the first picture took about half of it, and the journey stopped at "3 tasks". - The window now asks only that pictures were made while the playhead ran. The count of pictures per task goes on past the window, and the journey asserts at least four tasks of one picture each once every picture is ready, whatever the machine's speed. - The viewport, click and timing assertions and the evidence output are unchanged. ## validation Run on the working tree, which also held uncommitted Director Stage changes (two label lines in this file among them) that are not part of this commit; the hunks above were staged in full. - `tests/browser/director_stage_storyboard.mjs` on an isolated server in en-US (455 s) and zh-CN (479 s): passed end to end. - `npm run check:browser-manifest` and `npm run check:browser-locale`: clean. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
## summary - The test rewrote an asset in place at the same size and expected the verification cache to see a new file signature. On a kernel with a coarse clock tick (10 ms on WSL2) the rewrite can keep its mtime, so the signature does not change and the changed bytes are returned without an error. - The test now sets the rewritten file's mtime one second past the original, so the case no longer depends on the clock's resolution. ## validation - The test alone, 40 fresh runs: passed. - `tests/test_creation_assets.py`: 37 passed. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
## summary - In the Director Stage Storyboard journey, the second background image's "request held" signal now waits for the import notice before it asks the pictures to settle, as the first image's signal does. - The signal is any held asset content request. The Background tab's own preview of the newly registered asset makes one, and the library's card can commit before the stage names the image as its background. The blocks then still hold the pictures made for the orange texture, ready, so the wait for settled pictures returned on those; the read that followed saw the stage's edit committed with no picture yet, and the pictures made after the refusal no longer matched. - The notice is written in the same commit as the stage's edit, so the pictures read after it are made for the background the request belongs to. The assertion and every timeout are unchanged. ## validation - `tests/browser/director_stage_storyboard.mjs` on the isolated pair, not throttled: en-US (450 s) and zh-CN (465 s) passed end to end. A first zh-CN attempt stopped at the journey's opening wait for the saved label (line 432, 20 s timeout) and was not investigated. - A throwaway probe copy of the script, not committed, with the page's CPU throttled 8x and the server's answer to the second `asset.import` held back 600 ms after it was applied: without this change the assertion fails twice with `expected [ null, null ]` (2 of 2); with this change it passes (1 of 1). - `npm run check:browser-manifest` and `npm run check:browser-locale`: clean. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
## summary - tests/browser/director_stage_output.mjs imports the same minimal single-subject stage as the gizmo journey right after the stage is created, the way 5b626fb seeded the other stage journeys. - New stages start empty since 5b626fb, so the reopened stage had no selected subject and the Position X fill timed out. - Assertions, step order and timeouts are unchanged. ## validation - node tests/browser/director_stage_output.mjs (en-US) against the isolated creation server and the Vite dev server, run from a working tree whose only change is this file: passed end to end twice. Before the change the same command stopped at line 211 with locator.fill: Timeout 20000ms exceeded. - node --check tests/browser/director_stage_output.mjs. Signed-off-by: MrDongsls <87852321+MrDongsls@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR consolidates the Director Stage shell, asset library, object placement, editing state, and mutually exclusive transform Gizmos into one reviewable editor capability. It is the user-facing core on top of the output-asset foundation.
Merge order
feat/stage-output-assets) intomain.GitHub base note
The upstream repository grants this account read-only access, so GitHub cannot use the fork-only Output branch as the formal base of an upstream PR. This draft targets upstream
main; review it after the output PR using the intended deltafeat/stage-output-assets..feat/director-stage-core, then merge it after that prerequisite.Scope
This PR does not add the independent camera-rig/monitor feature or Agent publishing entry points.
Historical references
Evidence
After: fullscreen editing, asset preview/import, placement, Gizmo interaction, and save/reopen form one coherent user workflow with focused tests.
npm run buildpasses.npm test— 890 passed, 0 failed.npm run check:i18n— 3210 keys, 0 problems.Merge Danger
Door: two-way
Blast Radius: Editor