From 37bb6cc4ece62a291600a56b93f6d8805872985c Mon Sep 17 00:00:00 2001 From: aiongg Date: Wed, 11 Nov 2026 16:13:55 +0000 Subject: [PATCH] Comments: the story renderer shows StoryBody; drop the gallery manifest's component-sheet notes --- crates/ui-gallery/Cargo.toml | 2 -- crates/ui-gallery/src/chrome/card.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/ui-gallery/Cargo.toml b/crates/ui-gallery/Cargo.toml index e341a609c..7bd68f57c 100644 --- a/crates/ui-gallery/Cargo.toml +++ b/crates/ui-gallery/Cargo.toml @@ -30,7 +30,6 @@ name = "contract-api" path = "src/bin/contract-api.rs" test = false -# The component sheet's renderer: every story to a PNG, offscreen (desktop only). [features] # One feature per domain crate whose stories the viewer links; `apps` is all of them and the default. A build # that needs one crate's stories only (the story renderer) turns the default off and names the crate. @@ -101,7 +100,6 @@ craft-timeline = { workspace = true, features = ["screen-testing"], optional = t craft-dialogs = { workspace = true, features = ["screen-testing"], optional = true } craft-font-manager = { workspace = true, features = ["screen-testing"], optional = true } craft-update = { workspace = true, features = ["screen-testing"], optional = true } -# The component sheet crops and writes its images. [target.'cfg(target_arch = "wasm32")'.dependencies] wasm-bindgen-futures = "0.4" diff --git a/crates/ui-gallery/src/chrome/card.rs b/crates/ui-gallery/src/chrome/card.rs index d2fe236cd..4de35a168 100644 --- a/crates/ui-gallery/src/chrome/card.rs +++ b/crates/ui-gallery/src/chrome/card.rs @@ -1,7 +1,7 @@ //! One card: stories live on their surface under a header with the component's name and, while a story differs from //! its start, Reset; the Open command of an Overview card opens the component's tab. A card of several stories lays //! them out as the component's catalog entry says, each under its caption. Each story runs in an embedded shell, so -//! its dialogs open inside the card. [`StoryBody`] is the story part alone, which the component sheet renders too. +//! its dialogs open inside the card. [`StoryBody`] is the story part alone, which the story renderer (`story-render`) shows too. use crate::viewer::{CardState, Cells, DialogState}; use craft_behavior::{ColumnWidth, IconId};