docs: comment out thinking blocks for share page

This commit is contained in:
Jay V 2025-08-11 13:21:59 -04:00
parent 5e777fd2a2
commit 0386898476
3 changed files with 47 additions and 39 deletions

View file

@ -75,7 +75,7 @@ export function IconRobot(props: JSX.SvgSVGAttributes<SVGSVGElement>) {
} }
// https://icones.js.org/collection/ri?s=brain&icon=ri:brain-2-line // https://icones.js.org/collection/ri?s=brain&icon=ri:brain-2-line
export function IconBrain(props: JSX.SvgSVGAttributes<SVGSVGElement>) { /* export function IconBrain(props: JSX.SvgSVGAttributes<SVGSVGElement>) {
return ( return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <svg {...props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path <path
@ -84,4 +84,4 @@ export function IconBrain(props: JSX.SvgSVGAttributes<SVGSVGElement>) {
/> />
</svg> </svg>
) )
} } */

View file

@ -128,7 +128,7 @@
max-width: var(--md-tool-width); max-width: var(--md-tool-width);
} }
[data-component="assistant-reasoning"] { /* [data-component="assistant-reasoning"] {
min-width: 0; min-width: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -150,7 +150,7 @@
right: calc(0.5rem - 1px); right: calc(0.5rem - 1px);
} }
} }
} } */
[data-component="assistant-text"] { [data-component="assistant-text"] {
min-width: 0; min-width: 0;

View file

@ -19,7 +19,7 @@ import {
IconMagnifyingGlass, IconMagnifyingGlass,
IconDocumentMagnifyingGlass, IconDocumentMagnifyingGlass,
} from "../icons" } from "../icons"
import { IconMeta, IconRobot, IconOpenAI, IconGemini, IconAnthropic, IconBrain } from "../icons/custom" import { IconMeta, IconRobot, IconOpenAI, IconGemini, IconAnthropic /*, IconBrain */ } from "../icons/custom"
import { ContentCode } from "./content-code" import { ContentCode } from "./content-code"
import { ContentDiff } from "./content-diff" import { ContentDiff } from "./content-diff"
import { ContentText } from "./content-text" import { ContentText } from "./content-text"
@ -83,9 +83,9 @@ export function Part(props: PartProps) {
> >
{(model) => <ProviderIcon model={model()} size={18} />} {(model) => <ProviderIcon model={model()} size={18} />}
</Match> </Match>
<Match when={props.part.type === "reasoning" && props.message.role === "assistant"}> {/* <Match when={props.part.type === "reasoning" && props.message.role === "assistant"}>
<IconBrain width={18} height={18} /> <IconBrain width={18} height={18} />
</Match> </Match> */}
<Match when={props.part.type === "tool" && props.part.tool === "todowrite"}> <Match when={props.part.type === "tool" && props.part.tool === "todowrite"}>
<IconQueueList width={18} height={18} /> <IconQueueList width={18} height={18} />
</Match> </Match>
@ -158,7 +158,7 @@ export function Part(props: PartProps) {
)} )}
</div> </div>
)} )}
{props.message.role === "assistant" && props.part.type === "reasoning" && ( {/* {props.message.role === "assistant" && props.part.type === "reasoning" && (
<div data-component="tool"> <div data-component="tool">
<div data-component="tool-title"> <div data-component="tool-title">
<span data-slot="name">Thinking</span> <span data-slot="name">Thinking</span>
@ -171,14 +171,17 @@ export function Part(props: PartProps) {
</ResultsButton> </ResultsButton>
</div> </div>
</div> </div>
)} )} */}
{props.message.role === "user" && props.part.type === "file" && ( {
props.message.role === "user" && props.part.type === "file" && (
<div data-component="attachment"> <div data-component="attachment">
<div data-slot="copy">Attachment</div> <div data-slot="copy">Attachment</div>
<div data-slot="filename">{props.part.filename}</div> <div data-slot="filename">{props.part.filename}</div>
</div> </div>
)} )
{props.part.type === "step-start" && props.message.role === "assistant" && ( }
{
props.part.type === "step-start" && props.message.role === "assistant" && (
<div data-component="step-start"> <div data-component="step-start">
<div data-slot="provider">{props.message.providerID}</div> <div data-slot="provider">{props.message.providerID}</div>
<div data-slot="model"> <div data-slot="model">
@ -191,14 +194,18 @@ export function Part(props: PartProps) {
)} )}
</div> </div>
</div> </div>
)} )
{props.part.type === "tool" && props.part.state.status === "error" && ( }
{
props.part.type === "tool" && props.part.state.status === "error" && (
<div data-component="tool" data-tool="error"> <div data-component="tool" data-tool="error">
<ContentError>{formatErrorString(props.part.state.error)}</ContentError> <ContentError>{formatErrorString(props.part.state.error)}</ContentError>
<Spacer /> <Spacer />
</div> </div>
)} )
{props.part.type === "tool" && }
{
props.part.type === "tool" &&
props.part.state.status === "completed" && props.part.state.status === "completed" &&
props.message.role === "assistant" && ( props.message.role === "assistant" && (
<> <>
@ -300,7 +307,8 @@ export function Part(props: PartProps) {
.toMillis()} .toMillis()}
/> />
</> </>
)} )
}
</div > </div >
</div > </div >
) )