Skip to content

Commit 6f4b08b

Browse files
committed
fix: finalize icon review scenes
1 parent 425de63 commit 6f4b08b

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

packages/web/src/ui-preview/catalog.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ describe("UI preview catalog", () => {
181181
expect(await screen.findByText("packages")).toBeInTheDocument();
182182
expect(document.querySelector(".file-tree-shell")).toBeTruthy();
183183
expect(document.querySelector(".git-panel, .git-row")).toBeTruthy();
184+
expect(document.querySelector(".bottom-terminal-empty")).toBeTruthy();
184185
});
185186

186187
it("renders the toast icon review scene with four status tones", async () => {

packages/web/src/ui-preview/scene-metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export const UI_PREVIEW_SCENE_METADATA: UiPreviewSceneMetadata[] = [
244244
devices: ["desktop", "mobile"],
245245
themes: allThemeIds(),
246246
locales: ["zh", "en"],
247-
capture: { selector: ".supervisor-dialog, .mobile-sheet__content" },
247+
capture: { selector: ".supervisor-dialog, .mobile-supervisor-sheet" },
248248
},
249249
{
250250
id: "mobile-workspace-drawer",

packages/web/src/ui-preview/scenes/showcase-scenes.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
FileText,
1010
Folder,
1111
Image as ImageIcon,
12+
Terminal,
1213
} from "lucide-react";
1314
import { ConfirmDialog, EmptyState, Notice, Sheet } from "../../components/ui";
1415
import { CommandPalette } from "../../features/command-palette";
@@ -220,6 +221,16 @@ export function createShowcaseScenes(): UiPreviewSceneDefinition[] {
220221
<span>README.md</span>
221222
</div>
222223
</div>
224+
<EmptyState
225+
className="bottom-terminal-empty"
226+
description={
227+
<p className="bottom-terminal-empty-hint">
228+
Review the terminal empty-state icon and surface treatment.
229+
</p>
230+
}
231+
icon={<Terminal size={32} className="bottom-terminal-empty-icon" />}
232+
title={<p className="bottom-terminal-empty-text">No terminal session</p>}
233+
/>
223234
<MobileDock activeItem="files" onSelectItem={() => {}} />
224235
</div>
225236
</div>
@@ -289,6 +300,16 @@ export function createShowcaseScenes(): UiPreviewSceneDefinition[] {
289300
<span>untracked.ts</span>
290301
</div>
291302
</div>
303+
<EmptyState
304+
className="bottom-terminal-empty"
305+
description={
306+
<p className="bottom-terminal-empty-hint">
307+
Review the terminal empty-state icon and surface treatment.
308+
</p>
309+
}
310+
icon={<Terminal size={32} className="bottom-terminal-empty-icon" />}
311+
title={<p className="bottom-terminal-empty-text">No terminal session</p>}
312+
/>
292313
</div>
293314
),
294315
}),

0 commit comments

Comments
 (0)