GeezerVison is showing github.com — feat(web,mobile): remove the changed-files card under assistant turns… · patroza/t3code@1c6d41a
File treeExpand file treeCollapse file tree Open diff view settings packages/client-runtime/src/state
Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/features/threads/ThreadFeed.tsx +1-95Lines changed: 1 addition & 95 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -65,9 +65,6 @@ import { | 65 | 65 | resolveUserMessagePresentation, | 66 | 66 | } from "@t3tools/client-runtime/user-message"; | 67 | 67 | import { canForkProjectedAssistantItem } from "@t3tools/client-runtime/state/thread-workflows"; | 68 | | -import type { ThreadCheckpointSummary } from "@t3tools/client-runtime/state/thread-checkpoints"; | 69 | | -import { turnChanges } from "@t3tools/client-runtime/state/thread-repositories"; | 70 | | -import { formatDiffCount } from "@t3tools/client-runtime/diff-count"; | 71 | 68 | import type { WorkflowOpening } from "@t3tools/client-runtime/state/subagentRuntime"; | 72 | 69 | import { | 73 | 70 | AuthFilesystemReadScope, | @@ -211,8 +208,6 @@ import { | 211 | 208 | type MediaVideoPreviewSource, | 212 | 209 | } from "../../lib/videoPreviewSource"; | 213 | 210 | import { CopyTextButton } from "./CopyTextButton"; | 214 | | -import { getReviewSectionIdForCheckpoint } from "../review/reviewModel"; | 215 | | -import { setReviewSelectedSectionId } from "../review/reviewState"; | 216 | 211 | import { Menu } from "../../components/ui/Menu"; | 217 | 212 | import { useAndroidControlSizing } from "../../components/ui/useAndroidControlSizing"; | 218 | 213 | import { useBarInset, useContentTopInset } from "../../components/ui/useBarInset"; | @@ -1984,7 +1979,6 @@ function renderFeedEntry( | 1984 | 1979 | readonly onToggleWorkRow: (rowId: string, anchorKey?: string, groupId?: string) => void; | 1985 | 1980 | readonly onToggleUserMessage: (rowId: string, anchorKey: string) => void; | 1986 | 1981 | readonly onToggleTurnFold: (runId: RunId) => void; | 1987 | | - readonly onOpenTurnDiff: (checkpoint: ThreadCheckpointSummary) => void; | 1988 | 1982 | readonly onPressPreview: (source: FilePreviewSource) => void; | 1989 | 1983 | readonly onPlaybackStart: () => void; | 1990 | 1984 | readonly markdownLinkHandlers: MarkdownLinkHandlers; | @@ -2079,12 +2073,6 @@ function renderFeedEntry( | 2079 | 2073 | onOpenDetails={props.onOpenSetupDetails} | 2080 | 2074 | /> | 2081 | 2075 | ) : null} | 2082 | | - {entry.checkpointSummary ? ( | 2083 | | - <TurnDiffStat | 2084 | | - checkpoint={entry.checkpointSummary} | 2085 | | - onOpenTurnDiff={props.onOpenTurnDiff} | 2086 | | - /> | 2087 | | - ) : null} | 2088 | 2076 | </View> | 2089 | 2077 | ); | 2090 | 2078 | } | @@ -2176,14 +2164,6 @@ function renderFeedEntry( | 2176 | 2164 | hasFailure={entry.hasFailure} | 2177 | 2165 | shimmer={entry.shimmer} | 2178 | 2166 | thought={entry.thought} | 2179 | | - trailing={ | 2180 | | - entry.checkpointSummary ? ( | 2181 | | - <TurnDiffStat | 2182 | | - checkpoint={entry.checkpointSummary} | 2183 | | - onOpenTurnDiff={props.onOpenTurnDiff} | 2184 | | - /> | 2185 | | - ) : null | 2186 | | - } | 2187 | 2167 | onToggle={() => props.onToggleWorkGroup(entry.groupId, entry.id)} | 2188 | 2168 | /> | 2189 | 2169 | ); | @@ -2695,12 +2675,6 @@ function renderFeedEntry( | 2695 | 2675 | onPressPreview={props.onPressPreview} | 2696 | 2676 | onPlaybackStart={props.onPlaybackStart} | 2697 | 2677 | /> | 2698 | | - {showAssistantMeta && message.checkpointSummary ? ( | 2699 | | - <TurnDiffStat | 2700 | | - checkpoint={message.checkpointSummary} | 2701 | | - onOpenTurnDiff={props.onOpenTurnDiff} | 2702 | | - /> | 2703 | | - ) : null} | 2704 | 2678 | {showAssistantMeta ? ( | 2705 | 2679 | <View className="mt-1 flex-row items-center gap-1"> | 2706 | 2680 | <CopyTextButton | @@ -2752,60 +2726,6 @@ function renderFeedEntry( | 2752 | 2726 | ); | 2753 | 2727 | } | 2754 | 2728 |
| 2755 | | -function TurnDiffStat(props: { | 2756 | | - readonly checkpoint: ThreadCheckpointSummary; | 2757 | | - readonly onOpenTurnDiff: (checkpoint: ThreadCheckpointSummary) => void; | 2758 | | -}) { | 2759 | | - const gt = useGT(); | 2760 | | - const { repositories, rootFiles, totals } = turnChanges(props.checkpoint); | 2761 | | - const { additions, deletions } = totals; | 2762 | | - const folderCount = repositories.length + (rootFiles.length > 0 ? 1 : 0); | 2763 | | - const repositoriesLabel = | 2764 | | - repositories.length === 0 | 2765 | | - ? null | 2766 | | - : folderCount === 1 | 2767 | | - ? repositories[0]!.name | 2768 | | - : gt("{count} repos", { count: folderCount }); | 2769 | | - const changedIn = | 2770 | | - repositories.length === 0 | 2771 | | - ? null | 2772 | | - : [ | 2773 | | - ...(rootFiles.length > 0 ? [gt("this folder")] : []), | 2774 | | - ...repositories.map((repository) => repository.name), | 2775 | | - ].join(", "); | 2776 | | - return ( | 2777 | | - <Pressable | 2778 | | - accessibilityRole="button" | 2779 | | - accessibilityLabel={ | 2780 | | - changedIn === null | 2781 | | - ? gt( | 2782 | | - "{files, plural, one {Review {files} file changed, {additions} additions, {deletions} deletions} other {Review {files} files changed, {additions} additions, {deletions} deletions}}", | 2783 | | - { files: totals.count, additions, deletions }, | 2784 | | - ) | 2785 | | - : gt( | 2786 | | - "{files, plural, one {Review {files} file changed in {folders}, {additions} additions, {deletions} deletions} other {Review {files} files changed in {folders}, {additions} additions, {deletions} deletions}}", | 2787 | | - { files: totals.count, folders: changedIn, additions, deletions }, | 2788 | | - ) | 2789 | | - } | 2790 | | - onPress={() => props.onOpenTurnDiff(props.checkpoint)} | 2791 | | - className="min-h-11 shrink-0 flex-row items-center gap-2 px-2 active:bg-subtle" | 2792 | | - > | 2793 | | - {repositoriesLabel ? ( | 2794 | | - <Text className="max-w-28 text-xs text-foreground-muted" numberOfLines={1}> | 2795 | | - {repositoriesLabel} | 2796 | | - </Text> | 2797 | | - ) : null} | 2798 | | - <Text className="font-t3-medium text-xs tabular-nums text-adaptive-emerald-700-300"> | 2799 | | - +{formatDiffCount(additions)} | 2800 | | - </Text> | 2801 | | - <Text className="font-t3-medium text-xs tabular-nums text-adaptive-rose-700-300"> | 2802 | | - −{formatDiffCount(deletions)} | 2803 | | - </Text> | 2804 | | - <SymbolView name="chevron.right" size={12} tintColorClassName="accent-foreground-muted" /> | 2805 | | - </Pressable> | 2806 | | - ); | 2807 | | -} | 2808 | | - | 2809 | 2729 | type UserMessageContentProps = { | 2810 | 2730 | readonly text: string; | 2811 | 2731 | readonly environmentId: EnvironmentId; | @@ -3169,19 +3089,6 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) { | 3169 | 3089 | const [retainedMediaRowId, setRetainedMediaRowId] = useState<string | null>(null); | 3170 | 3090 | const focused = useIsFocused(); | 3171 | 3091 | if (!focused && retainedMediaRowId !== null) setRetainedMediaRowId(null); | 3172 | | - const onOpenTurnDiff = useCallback( | 3173 | | - (checkpoint: ThreadCheckpointSummary) => { | 3174 | | - setReviewSelectedSectionId( | 3175 | | - scopedThreadKey(props.environmentId, props.threadId), | 3176 | | - getReviewSectionIdForCheckpoint(checkpoint), | 3177 | | - ); | 3178 | | - navigation.navigate("ThreadReview", { | 3179 | | - environmentId: props.environmentId, | 3180 | | - threadId: props.threadId, | 3181 | | - }); | 3182 | | - }, | 3183 | | - [navigation, props.environmentId, props.threadId], | 3184 | | - ); | 3185 | 3092 | const { themeAppearance } = useAppearancePreferences(); | 3186 | 3093 | const copyFeedbackTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null); | 3187 | 3094 | const headerMaterialVisibleRef = useRef(false); | @@ -4199,7 +4106,7 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) { | 4199 | 4106 | if (entry.type === "html-render") { | 4200 | 4107 | return htmlRenderRowHeight(htmlRenderFrameHeight(entry.render, contentWidth)); | 4201 | 4108 | } | 4202 | | - if (workRowSizing.fixedRowHeight === undefined || entry.checkpointSummary) { | | 4109 | + if (workRowSizing.fixedRowHeight === undefined) { | 4203 | 4110 | return undefined; | 4204 | 4111 | } | 4205 | 4112 | switch (entry.type) { | @@ -4309,7 +4216,6 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) { | 4309 | 4216 | onToggleWorkRow, | 4310 | 4217 | onToggleUserMessage, | 4311 | 4218 | onToggleTurnFold, | 4312 | | - onOpenTurnDiff, | 4313 | 4219 | onPressPreview, | 4314 | 4220 | onPlaybackStart: onInlinePlaybackStart, | 4315 | 4221 | markdownLinkHandlers, | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/features/threads/thread-work-log.tsx -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1420,7 +1420,6 @@ export function ThreadWorkGroupToggle(props: { | 1420 | 1420 | readonly hasFailure: boolean; | 1421 | 1421 | readonly shimmer: boolean; | 1422 | 1422 | readonly thought?: string | undefined; | 1423 | | - readonly trailing?: ReactNode; | 1424 | 1423 | readonly onToggle: () => void; | 1425 | 1424 | }) { | 1426 | 1425 | const gt = useGT(); | @@ -1510,7 +1509,6 @@ export function ThreadWorkGroupToggle(props: { | 1510 | 1509 | /> | 1511 | 1510 | </WorkLogPressable> | 1512 | 1511 | </View> | 1513 | | - {props.trailing} | 1514 | 1512 | </View> | 1515 | 1513 | </WorkLogBlock> | 1516 | 1514 | ); | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/i18n/translations/de.json -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4651 | 4651 | "ccde552cdff4a9e5": "Doppeltippen, um den Prompt anzuzeigen.", | 4652 | 4652 | "630df4f8b78ab8d3": "Arbeitet seit {duration}", | 4653 | 4653 | "01deb1ae9f51d3e0": "Arbeit konnte nicht geladen werden. Tippe, um es erneut zu versuchen.", | 4654 | | - "868ed4fea1a3273c": "{count} Repos", | 4655 | | - "c887abfd190d8b40": "diesem Ordner", | 4656 | | - "275b5fe6040f2c1c": "{files, plural, one {{files} geänderte Datei prüfen, {additions} Hinzufügungen, {deletions} Löschungen} other {{files} geänderte Dateien prüfen, {additions} Hinzufügungen, {deletions} Löschungen}}", | 4657 | | - "c4a35456c7bdc3a1": "{files, plural, one {{files} geänderte Datei in {folders} prüfen, {additions} Hinzufügungen, {deletions} Löschungen} other {{files} geänderte Dateien in {folders} prüfen, {additions} Hinzufügungen, {deletions} Löschungen}}", | 4658 | 4654 | "7a13ae3b70a050fb": "{label} (nicht verfügbar)", | 4659 | 4655 | "8f033834a0194c33": "Kontext nicht verfügbar", | 4660 | 4656 | "4031ea1541b3ec2b": "Kontext öffnen", | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/i18n/translations/en.json -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4653 | 4653 | "ccde552cdff4a9e5": "Double tap to show the prompt.", | 4654 | 4654 | "630df4f8b78ab8d3": "Working for {duration}", | 4655 | 4655 | "01deb1ae9f51d3e0": "Couldn't load work. Tap to retry.", | 4656 | | - "868ed4fea1a3273c": "{count} repos", | 4657 | | - "c887abfd190d8b40": "this folder", | 4658 | | - "275b5fe6040f2c1c": "{files, plural, one {Review {files} file changed, {additions} additions, {deletions} deletions} other {Review {files} files changed, {additions} additions, {deletions} deletions}}", | 4659 | | - "c4a35456c7bdc3a1": "{files, plural, one {Review {files} file changed in {folders}, {additions} additions, {deletions} deletions} other {Review {files} files changed in {folders}, {additions} additions, {deletions} deletions}}", | 4660 | 4656 | "7a13ae3b70a050fb": "{label} (unavailable)", | 4661 | 4657 | "8f033834a0194c33": "Context unavailable", | 4662 | 4658 | "4031ea1541b3ec2b": "Open context", | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/i18n/translations/es.json -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4644 | 4644 | "ccde552cdff4a9e5": "Toca dos veces para mostrar el prompt.", | 4645 | 4645 | "630df4f8b78ab8d3": "Trabajando durante {duration}", | 4646 | 4646 | "01deb1ae9f51d3e0": "No se pudo cargar el trabajo. Toca para reintentar.", | 4647 | | - "868ed4fea1a3273c": "{count} repos", | 4648 | | - "c887abfd190d8b40": "esta carpeta", | 4649 | | - "275b5fe6040f2c1c": "{files, plural, one {Revisar {files} archivo modificado, {additions} adiciones, {deletions} eliminaciones} other {Revisar {files} archivos modificados, {additions} adiciones, {deletions} eliminaciones}}", | 4650 | | - "c4a35456c7bdc3a1": "{files, plural, one {Revisar {files} archivo modificado en {folders}, {additions} adiciones, {deletions} eliminaciones} other {Revisar {files} archivos modificados en {folders}, {additions} adiciones, {deletions} eliminaciones}}", | 4651 | 4647 | "7a13ae3b70a050fb": "{label} (no disponible)", | 4652 | 4648 | "8f033834a0194c33": "Contexto no disponible", | 4653 | 4649 | "4031ea1541b3ec2b": "Abrir contexto", | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/i18n/translations/fr.json -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4645 | 4645 | "ccde552cdff4a9e5": "Touchez deux fois pour afficher le prompt.", | 4646 | 4646 | "630df4f8b78ab8d3": "Au travail depuis {duration}", | 4647 | 4647 | "01deb1ae9f51d3e0": "Impossible de charger le travail. Touchez pour réessayer.", | 4648 | | - "868ed4fea1a3273c": "{count} dépôts", | 4649 | | - "c887abfd190d8b40": "ce dossier", | 4650 | | - "275b5fe6040f2c1c": "{files, plural, one {Relire {files} fichier modifié, {additions} ajouts, {deletions} suppressions} other {Relire {files} fichiers modifiés, {additions} ajouts, {deletions} suppressions}}", | 4651 | | - "c4a35456c7bdc3a1": "{files, plural, one {Relire {files} fichier modifié dans {folders}, {additions} ajouts, {deletions} suppressions} other {Relire {files} fichiers modifiés dans {folders}, {additions} ajouts, {deletions} suppressions}}", | 4652 | 4648 | "7a13ae3b70a050fb": "{label} (indisponible)", | 4653 | 4649 | "8f033834a0194c33": "Contexte indisponible", | 4654 | 4650 | "4031ea1541b3ec2b": "Ouvrir le contexte", | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/i18n/translations/ja.json -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4625 | 4625 | "ccde552cdff4a9e5": "ダブルタップでプロンプトを表示します。", | 4626 | 4626 | "630df4f8b78ab8d3": "{duration} 作業中", | 4627 | 4627 | "01deb1ae9f51d3e0": "作業を読み込めませんでした。タップして再試行してください。", | 4628 | | - "868ed4fea1a3273c": "{count} 件のリポジトリ", | 4629 | | - "c887abfd190d8b40": "このフォルダー", | 4630 | | - "275b5fe6040f2c1c": "{files, plural, other {{files} 個の変更ファイルをレビュー、{additions} 行追加、{deletions} 行削除}}", | 4631 | | - "c4a35456c7bdc3a1": "{files, plural, other {{folders} の {files} 個の変更ファイルをレビュー、{additions} 行追加、{deletions} 行削除}}", | 4632 | 4628 | "7a13ae3b70a050fb": "{label} (利用不可)", | 4633 | 4629 | "8f033834a0194c33": "コンテキストを利用できません", | 4634 | 4630 | "4031ea1541b3ec2b": "コンテキストを開く", | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/i18n/translations/ko.json -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4630 | 4630 | "ccde552cdff4a9e5": "두 번 탭하여 프롬프트를 표시합니다.", | 4631 | 4631 | "630df4f8b78ab8d3": "{duration} 동안 작업 중", | 4632 | 4632 | "01deb1ae9f51d3e0": "작업을 불러올 수 없습니다. 탭하여 다시 시도하세요.", | 4633 | | - "868ed4fea1a3273c": "저장소 {count}개", | 4634 | | - "c887abfd190d8b40": "이 폴더", | 4635 | | - "275b5fe6040f2c1c": "{files, plural, other {변경된 파일 {files}개 검토, 추가 {additions}줄, 삭제 {deletions}줄}}", | 4636 | | - "c4a35456c7bdc3a1": "{files, plural, other {{folders}에서 변경된 파일 {files}개 검토, 추가 {additions}줄, 삭제 {deletions}줄}}", | 4637 | 4633 | "7a13ae3b70a050fb": "{label}(사용할 수 없음)", | 4638 | 4634 | "8f033834a0194c33": "컨텍스트를 사용할 수 없음", | 4639 | 4635 | "4031ea1541b3ec2b": "컨텍스트 열기", | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/i18n/translations/pt-BR.json -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4645 | 4645 | "ccde552cdff4a9e5": "Toque duas vezes para mostrar o prompt.", | 4646 | 4646 | "630df4f8b78ab8d3": "Trabalhando há {duration}", | 4647 | 4647 | "01deb1ae9f51d3e0": "Não foi possível carregar o trabalho. Toque para tentar novamente.", | 4648 | | - "868ed4fea1a3273c": "{count} repos", | 4649 | | - "c887abfd190d8b40": "esta pasta", | 4650 | | - "275b5fe6040f2c1c": "{files, plural, one {Revisar {files} arquivo alterado, {additions} adições, {deletions} exclusões} other {Revisar {files} arquivos alterados, {additions} adições, {deletions} exclusões}}", | 4651 | | - "c4a35456c7bdc3a1": "{files, plural, one {Revisar {files} arquivo alterado em {folders}, {additions} adições, {deletions} exclusões} other {Revisar {files} arquivos alterados em {folders}, {additions} adições, {deletions} exclusões}}", | 4652 | 4648 | "7a13ae3b70a050fb": "{label} (indisponível)", | 4653 | 4649 | "8f033834a0194c33": "Contexto indisponível", | 4654 | 4650 | "4031ea1541b3ec2b": "Abrir contexto", | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/i18n/translations/ru.json -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4723 | 4723 | "ccde552cdff4a9e5": "Дважды нажмите, чтобы показать промпт.", | 4724 | 4724 | "630df4f8b78ab8d3": "Работает {duration}", | 4725 | 4725 | "01deb1ae9f51d3e0": "Не удалось загрузить работу. Нажмите, чтобы повторить.", | 4726 | | - "868ed4fea1a3273c": "Репозиториев: {count}", | 4727 | | - "c887abfd190d8b40": "эта папка", | 4728 | | - "275b5fe6040f2c1c": "{files, plural, one {Ревью: изменён {files} файл, добавлений: {additions}, удалений: {deletions}} few {Ревью: изменено {files} файла, добавлений: {additions}, удалений: {deletions}} many {Ревью: изменено {files} файлов, добавлений: {additions}, удалений: {deletions}} other {Ревью: изменено {files} файла, добавлений: {additions}, удалений: {deletions}}}", | 4729 | | - "c4a35456c7bdc3a1": "{files, plural, one {Ревью: изменён {files} файл в: {folders}, добавлений: {additions}, удалений: {deletions}} few {Ревью: изменено {files} файла в: {folders}, добавлений: {additions}, удалений: {deletions}} many {Ревью: изменено {files} файлов в: {folders}, добавлений: {additions}, удалений: {deletions}} other {Ревью: изменено {files} файла в: {folders}, добавлений: {additions}, удалений: {deletions}}}", | 4730 | 4726 | "7a13ae3b70a050fb": "{label} (недоступно)", | 4731 | 4727 | "8f033834a0194c33": "Контекст недоступен", | 4732 | 4728 | "4031ea1541b3ec2b": "Открыть контекст", | |
|