Skip to content
1 change: 1 addition & 0 deletions apps/mobile/src/features/threads/ThreadFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2084,6 +2084,7 @@ function renderFeedEntry(
toolSurface={entry.toolSurface}
toolIcon={entry.toolIcon}
summaryToolIcon={entry.summaryToolIcon}
notificationIcon={entry.notificationIcon}
hasFailure={entry.hasFailure}
shimmer={entry.shimmer}
thought={entry.thought}
Expand Down
41 changes: 28 additions & 13 deletions apps/mobile/src/features/threads/thread-work-log.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1343,6 +1343,7 @@ export function ThreadWorkGroupToggle(props: {
readonly summary: string;
readonly summaryKind: ToolGroupSummaryKind;
readonly summaryToolIcon?: "browser" | "device" | "t3-code" | "pull-request" | "brain";
readonly notificationIcon?: ThreadFeedActivity["icon"] | undefined;
readonly themeAppearance: "light" | "dark";
readonly toolSurface?: import("@t3tools/contracts").ToolActivitySurface;
readonly toolIcon?: ToolActivityIcon;
Expand All @@ -1354,14 +1355,18 @@ export function ThreadWorkGroupToggle(props: {
}) {
const gt = useGT();
const statusLabel = props.hasFailure
? gt("{preview}, tool call failed", { preview: props.summary })
? props.notificationIcon
? gt("{preview}, notification failed", { preview: props.summary })
: gt("{preview}, tool call failed", { preview: props.summary })
: props.summary;
const accessibilityLabel = props.thought ? `${props.thought} ${statusLabel}` : statusLabel;
const icon =
props.summaryToolIcon ??
(props.toolSurface
? workRowSymbolName(props.toolSurface)
: toolGroupSummarySymbolName(props.summaryKind));
(props.notificationIcon
? workRowSymbolName(props.notificationIcon)
: props.toolSurface
? workRowSymbolName(props.toolSurface)
: toolGroupSummarySymbolName(props.summaryKind));

return (
<WorkLogBlock layout="group-header">
Expand Down Expand Up @@ -1391,15 +1396,25 @@ export function ThreadWorkGroupToggle(props: {
accessibilityState={{ expanded: props.expanded }}
accessibilityLabel={accessibilityLabel}
accessibilityHint={
props.expanded
? gt(
"{count, plural, one {Double tap to hide {count} tool call.} other {Double tap to hide {count} tool calls.}}",
{ count: props.hiddenCount },
)
: gt(
"{count, plural, one {Double tap to show {count} tool call.} other {Double tap to show {count} tool calls.}}",
{ count: props.hiddenCount },
)
props.notificationIcon
? props.expanded
? gt(
"{count, plural, one {Double tap to hide {count} notification.} other {Double tap to hide {count} notifications.}}",
{ count: props.hiddenCount },
)
: gt(
"{count, plural, one {Double tap to show {count} notification.} other {Double tap to show {count} notifications.}}",
{ count: props.hiddenCount },
)
: props.expanded
? gt(
"{count, plural, one {Double tap to hide {count} tool call.} other {Double tap to hide {count} tool calls.}}",
{ count: props.hiddenCount },
)
: gt(
"{count, plural, one {Double tap to show {count} tool call.} other {Double tap to show {count} tool calls.}}",
{ count: props.hiddenCount },
)
}
onPress={() => {
void Haptics.selectionAsync();
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/src/i18n/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -4651,6 +4651,9 @@
"fd0d04d5a6627f70": "Öffnet den Thread dieses Agenten. Lange drücken zum Kopieren.",
"7ba47e54094ba298": "Doppeltippen, um alle Details auszublenden. Lange drücken zum Kopieren.",
"1862ffb47bf6736c": "Doppeltippen, um alle Details anzuzeigen. Lange drücken zum Kopieren.",
"16179c449afdc170": "{preview}, Benachrichtigung fehlgeschlagen",
"ed1e51a988f1b585": "{count, plural, one {Doppeltippen, um {count} Benachrichtigung auszublenden.} other {Doppeltippen, um {count} Benachrichtigungen auszublenden.}}",
"ec5ac7184ecd7ab9": "{count, plural, one {Doppeltippen, um {count} Benachrichtigung anzuzeigen.} other {Doppeltippen, um {count} Benachrichtigungen anzuzeigen.}}",
"b2bb42d5ad881fd8": "{count, plural, one {Doppeltippen, um {count} Tool-Aufruf auszublenden.} other {Doppeltippen, um {count} Tool-Aufrufe auszublenden.}}",
"f2338bdac15becc2": "{count, plural, one {Doppeltippen, um {count} Tool-Aufruf anzuzeigen.} other {Doppeltippen, um {count} Tool-Aufrufe anzuzeigen.}}",
"e7588632064e0364": "Kopiert",
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/src/i18n/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4652,6 +4652,9 @@
"fd0d04d5a6627f70": "Opens this agent's thread. Long press to copy.",
"7ba47e54094ba298": "Double tap to hide full details. Long press to copy.",
"1862ffb47bf6736c": "Double tap to show full details. Long press to copy.",
"16179c449afdc170": "{preview}, notification failed",
"ed1e51a988f1b585": "{count, plural, one {Double tap to hide {count} notification.} other {Double tap to hide {count} notifications.}}",
"ec5ac7184ecd7ab9": "{count, plural, one {Double tap to show {count} notification.} other {Double tap to show {count} notifications.}}",
"b2bb42d5ad881fd8": "{count, plural, one {Double tap to hide {count} tool call.} other {Double tap to hide {count} tool calls.}}",
"f2338bdac15becc2": "{count, plural, one {Double tap to show {count} tool call.} other {Double tap to show {count} tool calls.}}",
"e7588632064e0364": "Copied",
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/src/i18n/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -4644,6 +4644,9 @@
"fd0d04d5a6627f70": "Abre el hilo de este agente. Mantén pulsado para copiar.",
"7ba47e54094ba298": "Toca dos veces para ocultar los detalles completos. Mantén pulsado para copiar.",
"1862ffb47bf6736c": "Toca dos veces para mostrar los detalles completos. Mantén pulsado para copiar.",
"16179c449afdc170": "{preview}, notificación fallida",
"ed1e51a988f1b585": "{count, plural, one {Toca dos veces para ocultar {count} notificación.} other {Toca dos veces para ocultar {count} notificaciones.}}",
"ec5ac7184ecd7ab9": "{count, plural, one {Toca dos veces para mostrar {count} notificación.} other {Toca dos veces para mostrar {count} notificaciones.}}",
"b2bb42d5ad881fd8": "{count, plural, one {Toca dos veces para ocultar {count} llamada a herramienta.} other {Toca dos veces para ocultar {count} llamadas a herramientas.}}",
"f2338bdac15becc2": "{count, plural, one {Toca dos veces para mostrar {count} llamada a herramienta.} other {Toca dos veces para mostrar {count} llamadas a herramientas.}}",
"e7588632064e0364": "Copiado",
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/src/i18n/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -4645,6 +4645,9 @@
"fd0d04d5a6627f70": "Ouvre le fil de cet agent. Appuyez longuement pour copier.",
"7ba47e54094ba298": "Touchez deux fois pour masquer tous les détails. Appuyez longuement pour copier.",
"1862ffb47bf6736c": "Touchez deux fois pour afficher tous les détails. Appuyez longuement pour copier.",
"16179c449afdc170": "{preview}, échec de la notification",
"ed1e51a988f1b585": "{count, plural, one {Touchez deux fois pour masquer {count} notification.} other {Touchez deux fois pour masquer {count} notifications.}}",
"ec5ac7184ecd7ab9": "{count, plural, one {Touchez deux fois pour afficher {count} notification.} other {Touchez deux fois pour afficher {count} notifications.}}",
"b2bb42d5ad881fd8": "{count, plural, one {Touchez deux fois pour masquer {count} appel d’outil.} other {Touchez deux fois pour masquer {count} appels d’outils.}}",
"f2338bdac15becc2": "{count, plural, one {Touchez deux fois pour afficher {count} appel d’outil.} other {Touchez deux fois pour afficher {count} appels d’outils.}}",
"e7588632064e0364": "Copié",
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/src/i18n/translations/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -4626,6 +4626,9 @@
"fd0d04d5a6627f70": "このエージェントのスレッドを開きます。長押しでコピーします。",
"7ba47e54094ba298": "ダブルタップで詳細を非表示にします。長押しでコピーします。",
"1862ffb47bf6736c": "ダブルタップで詳細を表示します。長押しでコピーします。",
"16179c449afdc170": "{preview}、通知が失敗しました",
"ed1e51a988f1b585": "{count, plural, other {ダブルタップで {count} 件の通知を非表示にします。}}",
"ec5ac7184ecd7ab9": "{count, plural, other {ダブルタップで {count} 件の通知を表示します。}}",
"b2bb42d5ad881fd8": "{count, plural, other {ダブルタップで {count} 件のツール呼び出しを非表示にします。}}",
"f2338bdac15becc2": "{count, plural, other {ダブルタップで {count} 件のツール呼び出しを表示します。}}",
"e7588632064e0364": "コピーしました",
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/src/i18n/translations/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -4631,6 +4631,9 @@
"fd0d04d5a6627f70": "이 에이전트의 스레드를 엽니다. 길게 눌러 복사합니다.",
"7ba47e54094ba298": "두 번 탭하여 전체 세부 정보를 숨깁니다. 길게 눌러 복사합니다.",
"1862ffb47bf6736c": "두 번 탭하여 전체 세부 정보를 표시합니다. 길게 눌러 복사합니다.",
"16179c449afdc170": "{preview}, 알림 실패",
"ed1e51a988f1b585": "{count, plural, other {두 번 탭하여 알림 {count}개를 숨깁니다.}}",
"ec5ac7184ecd7ab9": "{count, plural, other {두 번 탭하여 알림 {count}개를 표시합니다.}}",
"b2bb42d5ad881fd8": "{count, plural, other {두 번 탭하여 도구 호출 {count}개를 숨깁니다.}}",
"f2338bdac15becc2": "{count, plural, other {두 번 탭하여 도구 호출 {count}개를 표시합니다.}}",
"e7588632064e0364": "복사됨",
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/src/i18n/translations/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -4645,6 +4645,9 @@
"fd0d04d5a6627f70": "Abre a thread deste agente. Mantenha pressionado para copiar.",
"7ba47e54094ba298": "Toque duas vezes para ocultar os detalhes completos. Mantenha pressionado para copiar.",
"1862ffb47bf6736c": "Toque duas vezes para mostrar os detalhes completos. Mantenha pressionado para copiar.",
"16179c449afdc170": "{preview}, notificação falhou",
"ed1e51a988f1b585": "{count, plural, one {Toque duas vezes para ocultar {count} notificação.} other {Toque duas vezes para ocultar {count} notificações.}}",
"ec5ac7184ecd7ab9": "{count, plural, one {Toque duas vezes para mostrar {count} notificação.} other {Toque duas vezes para mostrar {count} notificações.}}",
"b2bb42d5ad881fd8": "{count, plural, one {Toque duas vezes para ocultar {count} chamada de ferramenta.} other {Toque duas vezes para ocultar {count} chamadas de ferramentas.}}",
"f2338bdac15becc2": "{count, plural, one {Toque duas vezes para mostrar {count} chamada de ferramenta.} other {Toque duas vezes para mostrar {count} chamadas de ferramentas.}}",
"e7588632064e0364": "Copiado",
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/src/i18n/translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -4723,6 +4723,9 @@
"fd0d04d5a6627f70": "Открывает тред этого агента. Нажмите и удерживайте, чтобы скопировать.",
"7ba47e54094ba298": "Дважды нажмите, чтобы скрыть подробности. Нажмите и удерживайте, чтобы скопировать.",
"1862ffb47bf6736c": "Дважды нажмите, чтобы показать подробности. Нажмите и удерживайте, чтобы скопировать.",
"16179c449afdc170": "{preview}, ошибка уведомления",
"ed1e51a988f1b585": "{count, plural, one {Дважды нажмите, чтобы скрыть {count} уведомление.} few {Дважды нажмите, чтобы скрыть {count} уведомления.} many {Дважды нажмите, чтобы скрыть {count} уведомлений.} other {Дважды нажмите, чтобы скрыть {count} уведомления.}}",
"ec5ac7184ecd7ab9": "{count, plural, one {Дважды нажмите, чтобы показать {count} уведомление.} few {Дважды нажмите, чтобы показать {count} уведомления.} many {Дважды нажмите, чтобы показать {count} уведомлений.} other {Дважды нажмите, чтобы показать {count} уведомления.}}",
"b2bb42d5ad881fd8": "{count, plural, one {Дважды нажмите, чтобы скрыть {count} вызов инструмента.} few {Дважды нажмите, чтобы скрыть {count} вызова инструментов.} many {Дважды нажмите, чтобы скрыть {count} вызовов инструментов.} other {Дважды нажмите, чтобы скрыть {count} вызова инструментов.}}",
"f2338bdac15becc2": "{count, plural, one {Дважды нажмите, чтобы показать {count} вызов инструмента.} few {Дважды нажмите, чтобы показать {count} вызова инструментов.} many {Дважды нажмите, чтобы показать {count} вызовов инструментов.} other {Дважды нажмите, чтобы показать {count} вызова инструментов.}}",
"e7588632064e0364": "Скопировано",
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/src/i18n/translations/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -4651,6 +4651,9 @@
"fd0d04d5a6627f70": "Öppnar agentens tråd. Tryck länge för att kopiera.",
"7ba47e54094ba298": "Dubbeltryck för att dölja alla detaljer. Tryck länge för att kopiera.",
"1862ffb47bf6736c": "Dubbeltryck för att visa alla detaljer. Tryck länge för att kopiera.",
"16179c449afdc170": "{preview}, aviseringen misslyckades",
"ed1e51a988f1b585": "{count, plural, one {Dubbeltryck för att dölja {count} avisering.} other {Dubbeltryck för att dölja {count} aviseringar.}}",
"ec5ac7184ecd7ab9": "{count, plural, one {Dubbeltryck för att visa {count} avisering.} other {Dubbeltryck för att visa {count} aviseringar.}}",
"b2bb42d5ad881fd8": "{count, plural, one {Dubbeltryck för att dölja {count} verktygsanrop.} other {Dubbeltryck för att dölja {count} verktygsanrop.}}",
"f2338bdac15becc2": "{count, plural, one {Dubbeltryck för att visa {count} verktygsanrop.} other {Dubbeltryck för att visa {count} verktygsanrop.}}",
"e7588632064e0364": "Kopierat",
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/src/i18n/translations/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -4634,6 +4634,9 @@
"fd0d04d5a6627f70": "打开此智能体的会话。长按以复制。",
"7ba47e54094ba298": "轻点两下以隐藏完整详情。长按以复制。",
"1862ffb47bf6736c": "轻点两下以显示完整详情。长按以复制。",
"16179c449afdc170": "{preview},通知失败",
"ed1e51a988f1b585": "{count, plural, other {轻点两下以隐藏 {count} 条通知。}}",
"ec5ac7184ecd7ab9": "{count, plural, other {轻点两下以显示 {count} 条通知。}}",
"b2bb42d5ad881fd8": "{count, plural, other {轻点两下以隐藏 {count} 个工具调用。}}",
"f2338bdac15becc2": "{count, plural, other {轻点两下以显示 {count} 个工具调用。}}",
"e7588632064e0364": "已复制",
Expand Down
Loading
Loading