Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): show assistant quotes as text in the queue sheet #19007

MergedGLDRoger(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/19007/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 30 additions and 1 deletion.

x
0 of 2 viewed, 2 left
27 additions and 0 deletionsapps/mobile/src/features/threads/threadQueueControlPresentation.test.tsModified
View file
@@ -1,3 +1,4 @@
+import { formatAssistantCitationHref } from "@t3tools/shared/assistantCitations";
import { describe, expect, it } from "vite-plus/test";
​
import {
@@ -10,6 +11,32 @@
import { threadDragGapOffset } from "./threadDragGap";
​
describe("threadQueueControlPresentation", () => {
+ it("shows an assistant quote as its quoted text", () => {
+ const href = formatAssistantCitationHref({
+ version: 1,
+ environmentId: "environment:test" as never,
+ threadId: "thread:test" as never,
+ messageId: "message:assistant" as never,
+ text: "Retry the sync after the lock clears.",
+ start: 0,
+ end: 37,
+ prefix: "",
+ suffix: "",
+ });
+ const controls = resolveThreadQueueRowControls({
+ busy: false,
+ canPromoteToSteer: true,
+ canReorder: true,
+ index: 0,
+ queuedCount: 1,
+ text: `[Assistant quote](${href}) Can we add a backoff here?`,
+ });
+​