Render results: retained renders, Live and render compare, render all shots (#6281) (#7375)

* Render results: keep up to eight completed renders and select or discard them

* Render results: Live and render compare with a divider, and render all shots

* fix: use comparison theme tint and reveal reset test targets

* fix: restore Unicode expectations in render workspace tests
This commit is contained in:
Nathan Dane
2026-11-01 18:30:11 +00:00
committed by GitHub
parent 862807ffc9
commit bdce595fb3
26 changed files with 2110 additions and 97 deletions
+33 -2
View File
@@ -14,6 +14,35 @@ The current integrated GPU renderer shows a separate product scene. Return to De
restores its camera, projection preference and existing viewport drawing policy.
The live product preview remains independent of the selected image method.
## Retained comparisons and all-shot rendering
The result viewer retains up to eight completed images per document tab, outside
the design and undo history. `render.compare {left, right}` accepts `"live"` or a
zero-based retained-result index (oldest first); the sides must differ. It resolves
indices to job identities so later index shifts cannot retarget an open comparison.
`render.compare {off:true}` leaves comparison. The shared segments toggle the two
sources, Swap exchanges them, and the shared divider stays within 5–95%. Both sides
share image pan/zoom; the live product uses the captured camera and current design.
Dragging the divider cannot navigate either camera. Copy, export and regrade use
the compared result on the right (or the left when the right is Live). That selection
remains stable while new results arrive; evicting a source ends its comparison.
The Output footer's **All shots (n)** runs `render.batch`. The command snapshots up
to 32 saved shot cameras and names and uses one common image setup. The UI supplies
the current draft as `request` (the existing `render.start` parameters); a headless
`render.batch {}` uses the first saved setup in name order. Each queued shot keeps its
own captured camera while all other options remain the same. Each admission runs
through `render.start`, one job at a time. No shots, an active render/queue or stale
geometry refuses without editing the design or history.
`render.status {}` advances an explicitly started queue and returns
`{queue:{running,waiting,job,shot,error}}`; a status call with a job also includes
that queue metadata. The UI ticks advance queues in active and background tabs.
`render.cancel {}` cancels the active batch job and drops all waiting shots; an
explicit job ID retains the single-job cancellation API. Opening a stage, editor
or queue readout never starts a batch. The Shots strip reports running and waiting
counts, and completed shots enter the same retained-result list.
## Stage bar and floating docks
Render has no ribbon. A shared 88 pt two-row stage bar sits 8 pt to the right of
@@ -544,8 +573,10 @@ The stage bar's Check chip and Output's note count open Check. Check now runs th
read-only `render.preflight` without admitting a job. Notes offer links to their
owning editor. Copy report and diagnostic JSON use `render.preflight.copy` and the
platform clipboard queue; headless calls only validate and echo bounded text.
Named quality presets, EXR export and rendering all shots remain faded with their
existing reasons. Destination selection uses the completed-image export picker.
Named quality presets and EXR export remain faded with their existing reasons.
Destination selection uses the completed-image export picker. The pinned Render
Image / All shots footer starts the active setup or queues all saved shots through
`render.batch`; opening the editor never starts a job.
Render and Cancel stay in the stage bar. Active jobs also show a single-row progress
pill with Cancel. The result viewer retains Copy, export, close, Fit/100% and shared
+1
View File
@@ -199,6 +199,7 @@ table. Panel/Window/Confirm compositions also have dedicated geometry and intera
| Module / element | Use and options | Main tokens |
| --- | --- | --- |
| compare: `comparison_divider`, `comparison_divider_chrome`, `comparison_badge` | Clamped vertical image wipe handle and bounded corner labels. The caller owns commands, shared framing and navigation suppression while the handle captures input; the paint-only chrome can be raised above source callbacks. | `control_height/radius/border`, `space_2/6/8/16/24`, `font_label`, `form_ink`, `panel`, active `TabAccent` |
| assistant: `assistant_header`, `assistant_controls`, `assistant_badge`, `assistant_bubble`, `assistant_prose`, `assistant_tool_frame/row/detail/status`, `AssistantToolState`, `assistant_approval/actions`, `assistant_composer/footer`, `assistant_input`, `assistant_send`, `assistant_empty`, `assistant_banner`/`banner`, `AssistantTone` | Shared Assistant presentation: 40 pt header, 22 pt state pill, right-aligned user messages limited to 86% width, unboxed assistant prose, bordered tool groups and command detail, tinted approval heading, rounded focused composer with one unframed growing editor and pinned footer, centred setup copy and semantic notices. Closures preserve existing permission choices, protocol routing, queue actions and scenario handles. | `form_header_height/close_size`, `font_label/small/body`, `dialog_body/footer/rule`, `control_fill/border/radius`, `form_ink/dim/primary/success/error`, `accent_soft/selected_ink`, `warning`, radii and spacing |
| history: `StripHeading`, `HistoryChip`, `HistoryStyle`, `history_drop_bar`, `history_marker`, `HistorySeam`, `history_seam` | Shared strip headings use semibold `font_heading`, `text`, a centred baseline and `space_12` trailing gap. One painter family for bottom chips, 38 pt vertical icon chips and single-line 26 pt name rows (the browser's shared `TREE_ROW_HEIGHT`). Selected items use the active tab tint/ink/border; all variants retain multi-tone feature artwork using one shared kind-to-accent rule (Sketch green, Surface orange, Mesh yellow, Form purple, solids base blue); rolled-back items have 42% opacity; a reference row (a sketch listed under another feature, #6489) has its name in secondary text. Error/warning badges, suppression strikes, horizontal/vertical drop bars and rollback line/hollow circle are shared. No connector lines. | `control_height`, `space_2/3/4/6/8/10/12/14/16/24`, radii, typography, `TabAccent`, `timeline_item`, `control_border`, `text/dim`, `form_error/fill` |
| tree: `tree_row`, `Row`, `TreeAction` | Shared Browser rows with disclosure, visibility (an eye column at the row's end, clear of a floating scroll bar, with a gap between the disclosure and the activation radio; or beside the disclosure with `eye_left`), activation, selection, appearance swatches, optional subtitle and trailing actions. Compact scene rows are 28 pt, with inline right-aligned summaries, circular swatches, trailing eyes and full-width selection tint. Actions use quiet icons and can appear on hover. Disabled actions retain their reasons and cannot select or fold the row. Browser automation records the same row geometry. | `TREE_ROW_HEIGHT`, `font_label/small`, spacing, control radius/border, `text/dim`, workspace selection tint |