e.stopPropagation()}
>
@@ -30,19 +30,19 @@ export function FileSearchBar(props: {
props.onInput(e.currentTarget.value)}
onKeyDown={(e) => props.onKeyDown(e as KeyboardEvent)}
/>
- {props.count() ? `${props.index() + 1}/${props.count()}` : "0/0"}
+ {props.count ? `${props.index + 1}/${props.count}` : "0/0"}
- {loaded()} • {session().title || session().id} • {state.messages.length} message
+ {loaded()} • {session.title || session.id} • {state.messages.length} message
{state.messages.length === 1 ? "" : "s"}
@@ -2048,7 +2050,7 @@ function Playground() {
{(msg) => (
- {reducedMotion() && (
+
- )}
+
{/* Matches context-tool-group-trigger layout from message-part.tsx */}
{
return (
- {samples.map((item) => (
-
- ))}
+ {(item) => }
)
},
diff --git a/packages/ui/src/components/app-icon.stories.tsx b/packages/ui/src/components/app-icon.stories.tsx
index 24460b6da22..66e516e4226 100644
--- a/packages/ui/src/components/app-icon.stories.tsx
+++ b/packages/ui/src/components/app-icon.stories.tsx
@@ -1,4 +1,5 @@
// @ts-nocheck
+import { For } from "solid-js"
import { iconNames } from "./app-icons/types"
import * as mod from "./app-icon"
import { create } from "../storybook/scaffold"
@@ -58,12 +59,14 @@ export const AllIcons = {
"grid-template-columns": "repeat(auto-fill, minmax(72px, 1fr))",
}}
>
- {iconNames.map((id) => (
-
- ))}
+
+ {(id) => (
+
+ )}
+
),
}
diff --git a/packages/ui/src/components/card.tsx b/packages/ui/src/components/card.tsx
index 917644348f8..da82d4f4575 100644
--- a/packages/ui/src/components/card.tsx
+++ b/packages/ui/src/components/card.tsx
@@ -1,4 +1,4 @@
-import { type ComponentProps, splitProps } from "solid-js"
+import { type ComponentProps, Show, splitProps } from "solid-js"
import { Icon, type IconProps } from "./icon"
type Variant = "normal" | "error" | "warning" | "success" | "info"
@@ -80,11 +80,11 @@ export function CardTitle(props: CardTitleProps) {
[split.class ?? ""]: !!split.class,
}}
>
- {show() ? (
+
- ) : null}
+
{split.children}
)
diff --git a/packages/ui/src/components/file-icon.stories.tsx b/packages/ui/src/components/file-icon.stories.tsx
index 937328502f7..e49a43be111 100644
--- a/packages/ui/src/components/file-icon.stories.tsx
+++ b/packages/ui/src/components/file-icon.stories.tsx
@@ -1,4 +1,5 @@
// @ts-nocheck
+import { For } from "solid-js"
import * as mod from "./file-icon"
import { create } from "../storybook/scaffold"
@@ -82,12 +83,14 @@ export const Samples = {
"grid-template-columns": "repeat(auto-fill, minmax(120px, 1fr))",
}}
>
- {items.map((node) => (
-