Render stage panels: Surfaces and references, Studios and environments, and the review dialogs (#6281) (#7999)
* Render stage panels: Surfaces and references, Studios and environments, and the review dialogs * fix: complete stage panel translations and gallery tile fields * fix: exercise stage catalog sizing in the floating layout * fix: retain the Appearance library selection query
This commit is contained in:
@@ -47,14 +47,37 @@ sphere grid or list. Resources used in the design or matching a selected look's
|
||||
finish family or category appear first. Clicking a look applies through
|
||||
`appearance.assign` to selected bodies, faces or components; with no target it
|
||||
only inspects. Favorites and recent history live in user preferences. Explicit
|
||||
catalog navigation from the Inspector retains the read-only resource browser.
|
||||
catalog navigation opens the corresponding stage library.
|
||||
|
||||
Light hosts the existing native studios and HDR environments in the same tile grid.
|
||||
A click runs `render.preset.apply` or `render.library.environment.apply`, preserving
|
||||
those commands' validation and undo behavior. Studios require an explicitly selected
|
||||
GPU path setup; environments require CPU or GPU ray tracing. Frame shows a faded
|
||||
Frame presets placeholder with its Shot editor reason. Output hosts the Size presets
|
||||
card described below. Stage navigation itself never applies a resource.
|
||||
Look also offers **Surfaces and references**. Surfaces/References segments and search
|
||||
lead to authored surface rows with availability badges. Selecting a surface loads
|
||||
its bounded source-map preview; Target, Plane and Repeat precede Use uniform,
|
||||
Use GPU maps and Save maps. GPU actions remain faded with a reason on other methods.
|
||||
Physical profiles retain their properties and sources; Prepare creation plan opens
|
||||
a read-only review with acknowledgement and Copy plan. It creates no material.
|
||||
|
||||
Light hosts **Studios and environments**: a Scope dropdown, search and three-column
|
||||
tiles for Studios, Rigs, Environments and read-only Specifications. Mine remains
|
||||
visible with the reason that personal studio saving is unavailable. Clicking selects;
|
||||
Apply prepares a review without changing the method or saved settings.
|
||||
|
||||
The shared `ui_kit::ReviewAndApply` dialog presents a resource card, Replaces/Kept,
|
||||
variant controls and explicit acknowledgement before applying. Studio, rig fit,
|
||||
environment, ground/stage, physical plan, fixed quality budget and uniform/spatial
|
||||
maps use this composition. A captured review expires when the document, revision,
|
||||
shot, method or settings change. Rig fitting offers centre, extent, captured bounds
|
||||
and emitters-only projection. Quality review reports projected dimensions, samples,
|
||||
depth and omissions; `render.quality.prepare` remains reachable through command
|
||||
activation. S5 can call `render_workspace::review_resource(app,
|
||||
"render.quality.prepare", id)` for its selected specification.
|
||||
Programmatic commands continue to execute without opening dialogs.
|
||||
|
||||
Remove shot uses the existing shared `Confirm`; remove stage and saved optics now
|
||||
also use it. Resource removal confirmations expire after a document revision change.
|
||||
|
||||
Confirmed reviews run `render.preset.apply`, `render.library.studio.apply` or
|
||||
`render.library.environment.apply`, preserving validation and undo. Studios require an explicitly selected
|
||||
GPU path setup; environments require CPU or GPU ray tracing. Frame shows a faded Frame presets placeholder with its Shot editor reason. Output hosts the Size presets card described below. Stage navigation itself never applies a resource.
|
||||
|
||||
The 110 pt compass uses the free canvas beside the Inspector; the navigation bar
|
||||
keeps its shared handler. The Shots strip's independent `view.shots_strip`
|
||||
|
||||
+17
-1
@@ -28,6 +28,13 @@ rules. Its compass is 110 pt; the 48 pt Shots strip clears the docks by 8 pt.
|
||||
|
||||
## Composition and rules
|
||||
|
||||
| Component | Contract |
|
||||
| --- | --- |
|
||||
| `ReviewAndApply` | Shared resource card, wrapping Replaces/Kept rows, variant content, acknowledgement, Cancel and a gated apply action. Physical plans offer Copy plan. Composes `Confirm`. Gallery: `review_and_apply`. |
|
||||
| `SphereTile::badge` | Optional availability text on a three-column library tile, alongside the user-count badge. Uses theme tokens. |
|
||||
| `catalog_footer`, `catalog_footer_with_tip`, `catalog_footer_height` | One-line information note with ellipsis and full guidance on hover; optional separate tooltip text. |
|
||||
| `CatalogLayout` | Fills the remaining panel height with a scroll body above a measured bottom footer. Optional minimum search-row count keeps lists usable while a long detail card scrolls independently. |
|
||||
|
||||
- Every outer host uses `ui_kit::Container` with a semantic `Surface`. The shell
|
||||
publishes the layout once per frame; `Container::floating()` and `frame()` own
|
||||
adaptive placement policy and chrome. `Panel`, `Window`, `Confirm` and `Menu`
|
||||
@@ -160,7 +167,7 @@ table. Panel/Window/Confirm compositions also have dedicated geometry and intera
|
||||
| `list_picker` | Selectable row with caller identity and native checked state | `control_height`, form selection tokens |
|
||||
| `thumbnail_choice`, `ThumbnailChoice`, `add_choice` | Shared selection-chip variant with 52 × 30 preview, selected tab accent, modified dot, progress ring and dashed add action for bottom strips; `Panel::strip_contents` reserves right actions and scrolls choices | `control_height`, spacing, radii, `TabAccent`, control/semantic tokens |
|
||||
| `popup_list`, `PopupOption` | Focus-neutral suggestions; owner retains keyboard routing | `space_2`, `form_label_width`, `control_height`, form tokens |
|
||||
| sphere: `sphere_thumbnail`, `SphereTile`, `sphere_grid`, `sphere_preview` | Deterministic lit material samples; matte/satin/gloss/metal/glass finishes. Catalog tiles centre a 48 pt sphere in a 56 pt rounded cell with a two-line name, active-tab selection ring, user-count badge and shared Container tooltip. The grid owns three columns and token gaps. The Inspector preview composes a sphere, name, informational chips and replacement action in the shared list card. | `control_height`, `radius_xl`, `space_2/3/4/8/16`, `font_small/badge`, `control_fill`, `dialog_rule`, active-tab accent, `on_accent` |
|
||||
| sphere: `sphere_thumbnail`, `SphereTile`, `sphere_grid`, `sphere_preview`, `sphere_preview_with_source` | Deterministic lit material samples; matte/satin/gloss/metal/glass finishes. Catalog tiles centre a token-sized sphere above two full lines of text with an optional source badge, active-tab selection ring, user-count badge and shared Container tooltip. The grid owns three columns and token gaps. The Inspector preview composes a sphere, name, informational chips and replacement action in the shared list card; the source variant supports an interactive inheritance menu. | `control_height`, `radius_xl`, `space_2/3/4/6/8/16`, `font_small/badge`, `control_fill`, `dialog_rule`, active-tab accent, `on_accent` |
|
||||
| `color_swatch`, `swatch_grid`, `color_thumbnail` | 30 pt draggable samples, 6 pt grid step gap, selected outer ring and checker pattern under transparent colours; caller payloads retained; local-library thumbnails use 16 pt | `control_height/radius`, `border`, `form_primary`, `control_fill`, `space_2/6/8` |
|
||||
| `assistant_entry`, `AssistantEntryState` | Application-bar chat icon with quiet, ready, busy, auth, stopped and approval count marks; caller owns state and target | `app_bar`, `agent_ok/busy`, `warning/error`, `font_badge` |
|
||||
| actions: `button`, `Button` | Secondary action: `Normal`, `Small`, or `Enabled(bool)` | native sizing, form font/control tokens |
|
||||
@@ -721,6 +728,15 @@ For CPU-rendered review images, run
|
||||
|
||||
`catalog_scope` supplies compact catalog metrics to the shared search field, segments,
|
||||
icon segments and category chips. `catalog_footer` draws the quiet information hint.
|
||||
`CatalogLayout::new(ui, id, min_rows)` reserves the measured footer height and gives
|
||||
`body` all remaining space without shrinking to its items. Call `footer` after
|
||||
`body`; changes to the footer's natural height request another layout pass.
|
||||
Use `min_rows = 3` for a search list with selected-item details below it; the
|
||||
detail card scrolls when necessary. The kit publishes `{id}:content`, `:body`
|
||||
and `:footer` rectangles for layout checks.
|
||||
`SphereTile` reserves two full font rows below the sphere. Names wrap at word
|
||||
boundaries with an ellipsis after the second line; `{id}:label` and `:galley`
|
||||
expose the caption allocation and laid-out text bounds.
|
||||
Catalog title marks use the active workspace accent; tile captions, usage badges and
|
||||
selection outlines share the sphere widgets. Feature code supplies data and commands,
|
||||
while the kit owns every dimension, colour and inset.
|
||||
|
||||
Reference in New Issue
Block a user