From befb7509defeadae8f1950364b3399fbd80622d8 Mon Sep 17 00:00:00 2001 From: Jay V Date: Mon, 11 Aug 2025 14:19:22 -0400 Subject: [PATCH] docs: share --- packages/web/src/components/Share.tsx | 3 ++- packages/web/src/components/share/part.tsx | 10 ++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/web/src/components/Share.tsx b/packages/web/src/components/Share.tsx index ad1172731..0f60c8f3a 100644 --- a/packages/web/src/components/Share.tsx +++ b/packages/web/src/components/Share.tsx @@ -356,7 +356,8 @@ export default function Share(props: { {(part, partIndex) => { const last = createMemo( - () => messages().length === msgIndex() + 1 && filteredParts().length === partIndex() + 1, + () => + data().messages.length === msgIndex() + 1 && filteredParts().length === partIndex() + 1, ) onMount(() => { diff --git a/packages/web/src/components/share/part.tsx b/packages/web/src/components/share/part.tsx index 2b87c6bcd..7c7220c37 100644 --- a/packages/web/src/components/share/part.tsx +++ b/packages/web/src/components/share/part.tsx @@ -147,13 +147,16 @@ export function Part(props: PartProps) { DateTime.DATETIME_FULL_WITH_SECONDS, )} > - {DateTime.fromMillis(props.message.time.completed || props.message.time.created).toLocaleString( + {DateTime.fromMillis(props.message.time.completed).toLocaleString(DateTime.DATETIME_MED)} + {/* + DateTime.fromMillis(props.message.time.completed || props.message.time.created).toLocaleString( DateTime.DATETIME_MED, )} {` | ${props.message.modelID}`} {props.message.mode && ( {` | ${props.message.mode}`} - )} + ) + */} )} @@ -184,6 +187,8 @@ export function Part(props: PartProps) { props.part.type === "step-start" && props.message.role === "assistant" && (
{props.message.providerID}
+
{props.message.modelID}
+ { /*
{DateTime.fromMillis(props.message.time.completed || props.message.time.created).toLocaleString( DateTime.DATETIME_MED, @@ -193,6 +198,7 @@ export function Part(props: PartProps) { {` | ${props.message.mode}`} )}
+ */ }
) }