Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): linked and guest thread timelines follow the Time format setting #48226

Openonly21mil(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/48226/headopened View on GitHub

Showing 2 changed files with 48 additions and 2 deletions.

x
0 of 2 viewed, 2 left
3 additions and 1 deletionapps/web/src/components/chat/ReadOnlyThreadTimeline.tsxModified
View file
@@ -13,6 +13,7 @@
import { useRef, useState, type ReactNode } from "react";
​
import { useIncrementalTimelineEntries } from "~/hooks/useIncrementalTimelineEntries";
+import { useClientSettings } from "~/hooks/useSettings";
import { SideThreadsOpenContext } from "~/hooks/useSideThreadTrigger";
import { useTheme } from "~/hooks/useTheme";
import { deriveActiveWorkStartedAt, derivePhase } from "~/session-logic";
@@ -58,6 +59,7 @@
const { threadKey, projection } = props;
const listRef = useRef<LegendListRef | null>(null);
const { resolvedTheme } = useTheme();
+ const timestampFormat = useClientSettings((settings) => settings.timestampFormat);
// The rest is what ChatView derives from the same projection.
const [projectQuestionHistory] = useState(() => createQuestionHistoryProjector());
const items = projectQuestionHistory(projection);
@@ -118,7 +120,7 @@
activeThreadEnvironmentId={NO_ENVIRONMENT_ID}
markdownCwd={undefined}
resolvedTheme={resolvedTheme}
- timestampFormat="locale"
+ timestampFormat={timestampFormat}
workspaceRoot={undefined}
anchorMessageId={null}
onAnchorReady={ignore}
45 additions and 1 deletionapps/web/src/components/guest/GuestPage.browser.test.tsxModified
View file