From acac58f41d1c6279fce997932f34efdfb4d8d9dc Mon Sep 17 00:00:00 2001 From: pouyarezvani Date: Sun, 22 Nov 2026 15:36:50 -0800 Subject: [PATCH 1/2] feat(web): review changes one file at a time, with the file list on either side Two opt-in client settings make the right panel's file list work like a source control view without changing the default layout. - File tree side puts the file tree on the left or right of the Files, Changes and pull request Code panels; the resize handle and its arrow keys follow the side. - Changes view: one file at a time shows only the file picked in the changes list, with previous/next buttons in list order. The pick is remembered per thread and comparison, and a file requested from chat replaces it. An unfinished inline comment on a hidden file is kept, with a notice to show it. - The changes list can be viewed as a flat list: file name first, folder dimmed after it. Co-Authored-By: Claude Opus 5.5 --- apps/web/src/components/DiffPanel.tsx | 210 +++++++++++++++--- .../AnnotatableCodeView.browser.test.tsx | 76 +++++-- .../components/diffs/AnnotatableCodeView.tsx | 32 +++ .../web/src/components/diffs/DiffFileTree.tsx | 136 ++++++++++-- .../diffs/diffFileTree.logic.test.ts | 33 ++- .../components/diffs/diffFileTree.logic.ts | 48 ++++ .../files/FileExplorerPane.browser.test.tsx | 34 +++ .../src/components/files/FileExplorerPane.tsx | 19 +- .../src/components/files/FilePreviewPanel.tsx | 75 ++++--- .../preview/RightPanelResizeHandle.tsx | 22 +- .../pullRequest/PullRequestCodeTab.tsx | 88 ++++---- .../components/settings/SettingsPanels.tsx | 96 ++++++++ .../src/components/settings/settingsSearch.ts | 12 + apps/web/src/diffPanelStore.test.ts | 16 ++ apps/web/src/diffPanelStore.ts | 38 +++- apps/web/src/i18n/translations/de.json | 30 ++- apps/web/src/i18n/translations/en.json | 30 ++- apps/web/src/i18n/translations/es.json | 30 ++- apps/web/src/i18n/translations/fr.json | 30 ++- apps/web/src/i18n/translations/ja.json | 30 ++- apps/web/src/i18n/translations/ko.json | 30 ++- apps/web/src/i18n/translations/pt-BR.json | 30 ++- apps/web/src/i18n/translations/ru.json | 30 ++- apps/web/src/i18n/translations/sv.json | 30 ++- apps/web/src/i18n/translations/zh.json | 30 ++- packages/client-runtime/src/diffFileOrder.ts | 8 +- packages/contracts/src/settings.ts | 16 ++ 27 files changed, 1048 insertions(+), 211 deletions(-) diff --git a/apps/web/src/components/DiffPanel.tsx b/apps/web/src/components/DiffPanel.tsx index 561bcd2b3e040..a87299c641547 100644 --- a/apps/web/src/components/DiffPanel.tsx +++ b/apps/web/src/components/DiffPanel.tsx @@ -14,11 +14,14 @@ import { type RunId, } from "@t3tools/contracts"; import { + ArrowDownIcon, ArrowRightIcon, + ArrowUpIcon, CheckIcon, ChevronDownIcon, Columns2Icon, FlaskConicalOffIcon, + FileDiffIcon, FolderTreeIcon, PilcrowIcon, Rows3Icon, @@ -45,11 +48,13 @@ import { resolveToolCallDiffTarget, selectThreadBranchBaseRef, selectThreadDiffPanelSelection, + selectThreadFocusedDiffFile, useDiffPanelSessionStore, useDiffPanelStore, } from "../diffPanelStore"; import { useLocalStorage } from "../hooks/useLocalStorage"; import { isTestChangedFile } from "@t3tools/shared/changedFileKind"; +import { orderDiffFilesLikeTree } from "@t3tools/client-runtime/diff-file-order"; import { useHideTestFiles } from "./diffs/useHideTestFiles"; import { useRenderedAppearance } from "../hooks/useTheme"; import { useStableCallback } from "../hooks/useStableCallback"; @@ -197,6 +202,17 @@ function DiffFileCollapseToggle({ ); } +function PendingDiffFileLoader({ load }: { load: () => void }) { + return ( + { + if (node) load(); + }} + /> + ); +} + function DiffFileHeaderSuffix({ filePath, workspaceRoot, @@ -244,10 +260,13 @@ export default function DiffPanel({ diffFilesCollapsed: settings.diffFilesCollapsed, diffIgnoreWhitespace: settings.diffIgnoreWhitespace, diffLayout: settings.diffLayout, + diffFileView: settings.diffFileView, + fileTreeSide: settings.fileTreeSide, timestampFormat: settings.timestampFormat, wordWrap: settings.wordWrap, })); const diffLayout = settings.diffLayout; + const singleFileView = settings.diffFileView === "single"; const [wordWrapOverride, setWordWrapOverride] = useState(null); const wordWrap = wordWrapOverride ?? settings.wordWrap; const diffIgnoreWhitespace = @@ -420,6 +439,9 @@ export default function DiffPanel({ ? `${routeThreadRef.environmentId}:${routeThreadRef.threadId}:${reviewSectionId}` : null; const codeViewMountKey = collapseScopeKey ?? reviewSectionId; + const storedFocusedFile = useDiffPanelStore((state) => + selectThreadFocusedDiffFile(state, routeThreadRef), + ); const selectedCheckpointRange = typeof selectedCheckpointTurnCount === "number" ? { @@ -764,6 +786,50 @@ export default function DiffPanel({ }; const shownFileEntries = renderableFileEntries.filter(({ fileDiff }) => isFileShown(fileDiff)); const shownFileKeys = shownFileEntries.map((file) => file.fileKey); + // Previous and next follow the file list, which orders files as its tree does. + const shownFilePathsInListOrder = singleFileView + ? orderDiffFilesLikeTree( + [...new Set(shownFileEntries.map(({ fileDiff }) => resolveFileDiffPath(fileDiff)))], + (path) => path, + ) + : []; + // A file picked in one comparison means nothing in another, even of the same scope. + const focusScope = JSON.stringify([ + reviewSectionId, + selectedBaseRef, + gitCwd ?? null, + repositoryFilter, + ]); + const focusedFilePath = + storedFocusedFile !== null && storedFocusedFile.scope === focusScope + ? storedFocusedFile.path + : selectedFilePath; + const findShownFileEntry = (path: string | null | undefined) => + shownFileEntries.find(({ fileDiff }) => resolveFileDiffPath(fileDiff) === path); + const focusedFileEntry = singleFileView + ? (findShownFileEntry(focusedFilePath) ?? findShownFileEntry(shownFilePathsInListOrder[0])) + : undefined; + const treeSelectedPath = focusedFileEntry + ? resolveFileDiffPath(focusedFileEntry.fileDiff) + : selectedFilePath; + const focusedFileIndex = + treeSelectedPath === null ? -1 : shownFilePathsInListOrder.indexOf(treeSelectedPath); + const previousFilePath = + focusedFileEntry && focusedFileIndex > 0 + ? shownFilePathsInListOrder[focusedFileIndex - 1] + : undefined; + const nextFilePath = + focusedFileEntry && focusedFileIndex >= 0 + ? shownFilePathsInListOrder[focusedFileIndex + 1] + : undefined; + // A type change, such as a file replaced by a link, is two patches for one path. + const viewedFileEntries = singleFileView + ? shownFileEntries.filter(({ fileDiff }) => resolveFileDiffPath(fileDiff) === treeSelectedPath) + : shownFileEntries; + const viewScopeKey = + focusedFileEntry && collapseScopeKey !== null + ? `${collapseScopeKey}:file:${focusedFileEntry.fileKey}` + : collapseScopeKey; const defaultCollapsedDiffFileKeys = settings.diffFilesCollapsed ? new Set(diffFileKeys) : EMPTY_COLLAPSED_DIFF_FILE_KEYS; @@ -783,14 +849,16 @@ export default function DiffPanel({ remainingFileCount > 0 ? ( ) : null; - const codeViewFiles = shownFileEntries.map(({ fileDiff, fileKey, fileVersion }) => ({ + const codeViewFiles = viewedFileEntries.map(({ fileDiff, fileKey, fileVersion }) => ({ fileDiff, filePath: resolveFileDiffPath(fileDiff), fileKey, fileVersion, collapsed: - collapsedDiffFileKeys.has(fileKey) || fileDiff.cacheKey?.endsWith(":pending") === true, + (!singleFileView && collapsedDiffFileKeys.has(fileKey)) || + fileDiff.cacheKey?.endsWith(":pending") === true, })); + // Every pending file, shown or not: a draft on one survives its patch reloading. const pendingFiles = renderableFiles.filter( (file) => file.cacheKey?.endsWith(":pending") && isFileShown(file), ); @@ -800,9 +868,9 @@ export default function DiffPanel({ const codeViewReveal = useCodeViewFileReveal(); // Lazy files that sat above the saved position load again only when asked for. const codeViewScroll = useCodeViewScrollRestore( - collapseScopeKey, - !isRefreshingDiff && remainingFileCount === 0, - remainingFileCount > 0 ? loadNextFiles : null, + viewScopeKey, + !isRefreshingDiff && (singleFileView || remainingFileCount === 0), + !singleFileView && remainingFileCount > 0 ? loadNextFiles : null, ); const attachCodeView = useStableCallback((handle: AnnotatableCodeViewHandle | null) => { codeViewScroll.attach(handle); @@ -828,6 +896,12 @@ export default function DiffPanel({ codeViewReveal.request(file.fileKey); return true; }; + const selectTreeFile = (filePath: string) => { + if (!singleFileView) revealDiffFile(filePath); + else if (lazySource) requestFile(filePath); + if (!routeThreadRef) return; + useDiffPanelStore.getState().focusFile(routeThreadRef, { scope: focusScope, path: filePath }); + }; // A file another view asked to reveal (a chat diff link): retried as the diff loads until it // holds the file, then not again until a new request, so it does not undo what the user did since. @@ -976,8 +1050,9 @@ export default function DiffPanel({ }; // Two pickers leave no room for these in a phone-width panel, where a split view cannot fit anyway. + // The one-file view's previous and next buttons need the same room. const narrowHeaderHidden = - repositorySections.length > 0 ? "@max-[30rem]/diff-header:hidden" : undefined; + repositorySections.length > 0 || singleFileView ? "@max-[30rem]/diff-header:hidden" : undefined; const headerRow = ( <>
@@ -1432,7 +1507,49 @@ export default function DiffPanel({ )} - {diffFileKeys.length > 0 && ( + {singleFileView && shownFilePathsInListOrder.length > 1 ? ( + <> + + { + if (previousFilePath !== undefined) selectTreeFile(previousFilePath); + }} + /> + } + > + + + {gt("Previous file")} + + + { + if (nextFilePath !== undefined) selectTreeFile(nextFilePath); + }} + /> + } + > + + + {gt("Next file")} + + + ) : null} + {diffFileKeys.length > 0 && !singleFileView && ( ); + const fileTreePane = fileTreeOpen ? ( + + + { + updateClientSettings({ diffFileView: pressed ? "single" : "all" }); + }} + /> + } + > + + + + {singleFileView ? gt("Show all files") : gt("Show one file at a time")} + + + } + /> + + ) : null; + return ( {!activeThread ? ( @@ -1678,12 +1835,15 @@ export default function DiffPanel({ ) ) : lazySource || renderablePatch?.kind === "files" ? (
+ {settings.fileTreeSide === "left" ? fileTreePane : null}
{ const action = getDiffHeaderClickAction(event.nativeEvent); if (action?.type === "open") openDiffFile(action.filePath); - else if (action?.type === "toggle") toggleDiffFileCollapsed(action.fileKey); + else if (action?.type === "toggle" && !singleFileView) { + toggleDiffFileCollapsed(action.fileKey); + } }} onContextMenuCapture={(event) => { const composedPath = event.nativeEvent.composedPath?.() ?? []; @@ -1718,11 +1878,17 @@ export default function DiffPanel({ projectId={activeThread?.projectId} viewerRef={attachCodeView} onScroll={codeViewScroll.onScroll} - codeViewKey={codeViewMountKey} + codeViewKey={viewScopeKey ?? codeViewMountKey} className="h-full min-h-0 overflow-auto" files={codeViewFiles} pendingFiles={pendingFiles} - renderCodeViewFooter={renderLoadingBoundary} + {...(singleFileView + ? { + hiddenFileKeys: new Set(shownFileKeys), + onShowHiddenDraft: selectTreeFile, + } + : {})} + {...(singleFileView ? {} : { renderCodeViewFooter: renderLoadingBoundary })} sectionId={reviewSectionId} sectionTitle={reviewSectionTitle} composerDraftTarget={composerDraftTarget} @@ -1757,6 +1923,13 @@ export default function DiffPanel({ : {})} onFileCollapsedChange={setDiffFileCollapsed} renderHeaderPrefix={(fileDiff, fileKey, collapsed) => { + if (singleFileView) { + return fileDiff.cacheKey?.endsWith(":pending") ? ( + requestFile(resolveFileDiffPath(fileDiff))} + /> + ) : null; + } return (
- {fileTreeOpen ? ( - - - - ) : null} + {settings.fileTreeSide === "right" ? fileTreePane : null}
) : (
diff --git a/apps/web/src/components/diffs/AnnotatableCodeView.browser.test.tsx b/apps/web/src/components/diffs/AnnotatableCodeView.browser.test.tsx index 3f8335150e6c2..acfbb4f4d2878 100644 --- a/apps/web/src/components/diffs/AnnotatableCodeView.browser.test.tsx +++ b/apps/web/src/components/diffs/AnnotatableCodeView.browser.test.tsx @@ -21,30 +21,34 @@ type ViewerProps = Omit>, "opt // Replace only the virtualized viewer; comment editing and submission use the real components. vi.mock("./StyledDiffCodeView", () => ({ - StyledDiffCodeView: (props: ViewerProps) => - props.items - ?.filter((item) => item.type === "diff") - .map((item) => ( -
- - {props.selectedLines?.id === item.id ? ( - Line {props.selectedLines.range.start} - ) : null} - {item.annotations?.map((annotation) => ( -
- {props.renderAnnotation?.(annotation, item.fileDiff, item)} -
- ))} -
- )), + StyledDiffCodeView: (props: ViewerProps) => ( + <> + {props.renderCodeViewHeader?.()} + {props.items + ?.filter((item) => item.type === "diff") + .map((item) => ( +
+ + {props.selectedLines?.id === item.id ? ( + Line {props.selectedLines.range.start} + ) : null} + {item.annotations?.map((annotation) => ( +
+ {props.renderAnnotation?.(annotation, item.fileDiff, item)} +
+ ))} +
+ ))} + + ), })); import { AnnotatableCodeView } from "./AnnotatableCodeView"; @@ -79,6 +83,8 @@ function view( files: ReturnType[], codeViewKey = "initial", pendingFiles: FileDiffMetadata[] = [], + hiddenFileKeys?: ReadonlySet, + onShowHiddenDraft?: (filePath: string) => void, ) { return ( @@ -86,6 +92,8 @@ function view( codeViewKey={codeViewKey} files={files} pendingFiles={pendingFiles} + {...(hiddenFileKeys ? { hiddenFileKeys } : {})} + {...(onShowHiddenDraft ? { onShowHiddenDraft } : {})} sectionId="unstaged" sectionTitle="Uncommitted" composerDraftTarget={target} @@ -160,4 +168,24 @@ describe("diff comment drafts", () => { ]); expect(container.querySelector("p")?.textContent).toBe("Keep this draft"); }); + + it("keeps a draft on a file the one-file view hides until it shows the file again", async () => { + using _drafts = setup(); + const first = file("first.ts"); + const second = file("second.ts"); + const hidden = new Set([first.fileKey, second.fileKey]); + const shown: string[] = []; + const show = (filePath: string) => shown.push(filePath); + await using screen = await render(view([first], "first", [], hidden, show), { container }); + await click("Comment on first.ts"); + await typeComment("Unfinished thought"); + await screen.rerender(view([second], "second", [], hidden, show)); + expect(container.querySelector("textarea")).toBeNull(); + expect(container.textContent).toContain("Unfinished comment on first.ts"); + await click("Show"); + expect(shown).toEqual(["first.ts"]); + await screen.rerender(view([first], "first", [], hidden, show)); + expect(container.textContent).not.toContain("Unfinished comment on"); + expect(editor().value).toBe("Unfinished thought"); + }); }); diff --git a/apps/web/src/components/diffs/AnnotatableCodeView.tsx b/apps/web/src/components/diffs/AnnotatableCodeView.tsx index 1fb8b99f7c4ca..524de7048d806 100644 --- a/apps/web/src/components/diffs/AnnotatableCodeView.tsx +++ b/apps/web/src/components/diffs/AnnotatableCodeView.tsx @@ -8,10 +8,12 @@ import type { } from "@pierre/diffs"; import type { CodeViewHandle, CodeViewProps } from "@pierre/diffs/react"; import type { EnvironmentId, ProjectId, ScopedThreadRef } from "@t3tools/contracts"; +import { useGT } from "gt-react"; import { useState, type ReactNode, type Ref } from "react"; import { type DraftId, useComposerDraftStore } from "~/composerDraftStore"; import { fnv1a32, resolveFileDiffPath, resolveFileDiffPreviousPath } from "~/lib/diffRendering"; +import { basenameOfPath } from "~/pierre-icons"; import { buildDiffReviewComment, restoreDiffReviewCommentRange, @@ -19,6 +21,7 @@ import { } from "~/reviewCommentContext"; import { nextFileCommentId } from "../files/fileCommentAnnotations"; +import { Button } from "../ui/button"; import { DiffCommentAnnotation } from "./DiffCommentAnnotation"; import { StyledDiffCodeView, type StyledDiffCodeViewOptions } from "./StyledDiffCodeView"; @@ -83,6 +86,10 @@ interface AnnotatableCodeViewProps { collapsed: boolean; }>; pendingFiles: ReadonlyArray; + /** Files in the diff but not shown now; an unfinished comment on one stays for its return. */ + hiddenFileKeys?: ReadonlySet; + /** Shows the file an unfinished comment is on, when that file is hidden. */ + onShowHiddenDraft?: (filePath: string) => void; sectionId: string; sectionTitle: string; composerDraftTarget: ScopedThreadRef | DraftId; @@ -112,6 +119,8 @@ export function AnnotatableCodeView({ codeViewKey, files, pendingFiles, + hiddenFileKeys, + onShowHiddenDraft, sectionId, sectionTitle, composerDraftTarget, @@ -142,11 +151,13 @@ export function AnnotatableCodeView({ annotation: DiffCommentLineAnnotation; } | null>(null); const [draftText, setDraftText] = useState(""); + const gt = useGT(); const filesByKey = new Map(files.map((file) => [file.fileKey, file])); if ( draft !== null && !filesByKey.has(draft.fileKey) && + hiddenFileKeys?.has(draft.fileKey) !== true && // Lazy placeholders have provisional change types, so match both paths instead. !pendingFiles.some( (file) => @@ -158,6 +169,7 @@ export function AnnotatableCodeView({ setDraftText(""); setSelectedLines(null); } + const hiddenDraftPath = draft !== null && !filesByKey.has(draft.fileKey) ? draft.filePath : null; const items: CodeViewDiffItem[] = files.map( ({ fileDiff, filePath, fileKey, fileVersion, collapsed }) => { const persisted = reviewComments @@ -272,6 +284,26 @@ export function AnnotatableCodeView({ } : {})} {...(renderCodeViewFooter ? { renderCodeViewFooter } : {})} + {...(hiddenDraftPath !== null && onShowHiddenDraft + ? { + renderCodeViewHeader: () => ( +
+ + {gt("Unfinished comment on {file}", { file: basenameOfPath(hiddenDraftPath) })} + + +
+ ), + } + : {})} items={items} selectedLines={selectedLines} onSelectedLinesChange={setSelectedLines} diff --git a/apps/web/src/components/diffs/DiffFileTree.tsx b/apps/web/src/components/diffs/DiffFileTree.tsx index 57bc23b33130c..456050e43c682 100644 --- a/apps/web/src/components/diffs/DiffFileTree.tsx +++ b/apps/web/src/components/diffs/DiffFileTree.tsx @@ -1,9 +1,18 @@ -import type { GitStatusEntry } from "@pierre/trees"; +import type { FileTreeRowDecorationContext, GitStatusEntry } from "@pierre/trees"; import { FileTree, useFileTree } from "@pierre/trees/react"; import { T, useGT } from "gt-react"; -import { ChevronsDownUpIcon, ChevronsUpDownIcon } from "lucide-react"; -import { useEffect, useRef, useState, useSyncExternalStore, type ReactNode } from "react"; +import { ChevronsDownUpIcon, ChevronsUpDownIcon, ListIcon, ListTreeIcon } from "lucide-react"; +import * as Schema from "effect/Schema"; +import { + type PointerEvent, + useEffect, + useRef, + useState, + useSyncExternalStore, + type ReactNode, +} from "react"; +import { useLocalStorage } from "~/hooks/useLocalStorage"; import { useStableCallback } from "~/hooks/useStableCallback"; import { useTheme } from "~/hooks/useTheme"; import { cn } from "~/lib/utils"; @@ -24,10 +33,14 @@ import { buildDiffFileTreeUpdates, compareDiffFileTreeEntries, collectDirectoryPaths, + diffFileListModel, diffFileTreeModel, type DiffFileTreeEntry, } from "./diffFileTree.logic"; -import { diffFileTreePositions } from "@t3tools/client-runtime/diff-file-order"; +import { + diffFileTreePositions, + orderDiffFilesLikeTree, +} from "@t3tools/client-runtime/diff-file-order"; export type { DiffFileTreeEntry } from "./diffFileTree.logic"; @@ -42,6 +55,15 @@ interface DiffFileTreeProps { readonly className?: string; } +const DIFF_FILE_LIST_VIEW_STORAGE_KEY = "t3code.diffFileListView"; + +// List rows read as the file's name followed by its dimmed folder; tree rows have no decoration. +const DIFF_FILE_TREE_UNSAFE_CSS = `${PIERRE_TREE_UNSAFE_CSS} + [data-item-section='decoration'], + [data-item-section='decoration'] > span { justify-content: flex-start; text-align: start; } + [data-item-section='decoration'] > span { padding-inline-start: 0.5em; } +`; + export function DiffFileTree({ entries, onSelectFile, @@ -52,14 +74,26 @@ export function DiffFileTree({ footer, className, }: DiffFileTreeProps) { + const [listView, setListView] = useLocalStorage( + DIFF_FILE_LIST_VIEW_STORAGE_KEY, + false, + Schema.Boolean, + ); const gt = useGT(); const { resolvedTheme } = useTheme(); const paths = entries.map((entry) => entry.path); - const presented = diffFileTreeModel(paths); + const presented = listView ? diffFileListModel(paths) : diffFileTreeModel(paths); const modelPaths = presented.paths; const icons = presented.icons; const directoryPaths = collectDirectoryPaths(modelPaths); - const positions = diffFileTreePositions(modelPaths); + const positions = listView + ? new Map( + orderDiffFilesLikeTree(paths, (path) => path).map((path, index) => [ + presented.modelPath(path) ?? path, + index, + ]), + ) + : diffFileTreePositions(modelPaths); const [ordering] = useState(() => { let currentPositions: ReadonlyMap = new Map(); return { @@ -70,7 +104,7 @@ export function DiffFileTree({ }; }); const gitStatus: ReadonlyArray = entries.map((entry) => ({ - path: presented.modelPath(entry.path), + path: presented.modelPath(entry.path) ?? entry.path, status: entry.status, })); const syncingSelectionRef = useRef(false); @@ -78,7 +112,9 @@ export function DiffFileTree({ path: string; revealRequestId: number; } | null>(null); - const mountedPresentationRef = useRef | null>(null); + const mountedPresentationRef = useRef(null); + // A list has no folders, so the tree's collapsed folders wait here for the tree to return. + const collapsedTreeDirectoriesRef = useRef>(new Set()); // The tree model keeps the first selection handler it was given. const handleSelectionChange = useStableCallback((selectedPaths: ReadonlyArray) => { @@ -89,6 +125,27 @@ export function DiffFileTree({ } }); + // A list row may clip its name or folder, so hovering it shows the file's full path. + const titleListRow = useStableCallback((event: PointerEvent) => { + const row = event.nativeEvent + .composedPath() + .find( + (node): node is HTMLElement => + node instanceof HTMLElement && node.matches("button[data-type='item']"), + ); + const modelPath = row?.getAttribute("data-item-path"); + if (!row || !modelPath) return; + const path = presented.selectionPath(modelPath); + if (row.title !== path) row.title = path; + }); + + const renderListRowDecoration = useStableCallback(({ item }: FileTreeRowDecorationContext) => { + if (!listView) return null; + const path = presented.selectionPath(item.path); + const folderEnd = path.lastIndexOf("/"); + return folderEnd > 0 ? { text: path.slice(0, folderEnd), title: path } : null; + }); + const { model } = useFileTree({ density: "compact", flattenEmptyDirectories: true, @@ -98,7 +155,8 @@ export function DiffFileTree({ paths: [], search: false, sort: ordering.sort, - unsafeCSS: PIERRE_TREE_UNSAFE_CSS, + renderRowDecoration: renderListRowDecoration, + unsafeCSS: DIFF_FILE_TREE_UNSAFE_CSS, }); const allDirectoriesExpanded = useSyncExternalStore( (listener) => subscribeOncePerTask(model, listener), @@ -118,7 +176,14 @@ export function DiffFileTree({ mountedPresentationRef.current = presented; if (mounted === null) { model.resetPaths(modelPaths); - } else if (mounted.paths.every((path, index) => modelPaths[index] === path)) { + } else if ( + mounted.paths.every( + (path, index) => + modelPaths[index] === path && + // A list alias can move to another file when a same-named file is added before it. + presented.selectionPath(path) === mounted.selectionPath(path), + ) + ) { const updates = buildDiffFileTreeUpdates(mounted.paths, modelPaths); if (updates.length > 0) model.batch(updates); } else { @@ -126,15 +191,25 @@ export function DiffFileTree({ // through real paths so paging keeps the same file without revealing it again. const focusedPath = model.getFocusedPath(); const nextFocusedPath = - focusedPath === null ? null : presented.modelPath(mounted.selectionPath(focusedPath)); + focusedPath === null + ? null + : (presented.modelPath(mounted.selectionPath(focusedPath)) ?? null); const selectedPaths = model .getSelectedPaths() - .map((path) => presented.modelPath(mounted.selectionPath(path))) + .flatMap((path) => presented.modelPath(mounted.selectionPath(path)) ?? []) .filter((path) => path.endsWith("/") || modelPaths.includes(path)); - const collapsedDirectories = directoryPaths.filter((path) => { - const directory = model.getItem(path); - return directory !== null && "isExpanded" in directory && !directory.isExpanded(); - }); + const mountedDirectories = collectDirectoryPaths(mounted.paths); + if (mountedDirectories.length > 0) { + collapsedTreeDirectoriesRef.current = new Set( + mountedDirectories.filter((path) => { + const directory = model.getItem(path); + return directory !== null && "isExpanded" in directory && !directory.isExpanded(); + }), + ); + } + const collapsedDirectories = directoryPaths.filter((path) => + collapsedTreeDirectoriesRef.current.has(path), + ); syncingSelectionRef.current = true; model.resetPaths(modelPaths); for (const path of model.getSelectedPaths()) model.getItem(path)?.deselect(); @@ -163,8 +238,8 @@ export function DiffFileTree({ return; } const modelPath = presented.modelPath(selectedPath); - const item = model.getItem(modelPath); - if (item === null || item.isDirectory()) { + const item = modelPath === undefined ? null : model.getItem(modelPath); + if (modelPath === undefined || item === null || item.isDirectory()) { handledRevealRef.current = null; return; } @@ -191,16 +266,32 @@ export function DiffFileTree({ }, [model, presented, revealRequestId, selectedPath]); return ( -
+
- + Files {entries.length} {headerAccessory} + + setListView(!listView)} + /> + } + > + {listView ? : } + + {listView ? gt("View as tree") : gt("View as list")} + {directoryPaths.length > 0 ? ( {footer}
diff --git a/apps/web/src/components/diffs/diffFileTree.logic.test.ts b/apps/web/src/components/diffs/diffFileTree.logic.test.ts index 757ab3f83de42..571af4c2bba90 100644 --- a/apps/web/src/components/diffs/diffFileTree.logic.test.ts +++ b/apps/web/src/components/diffs/diffFileTree.logic.test.ts @@ -1,7 +1,11 @@ import type { FileDiffMetadata } from "@pierre/diffs"; import { describe, expect, it } from "vite-plus/test"; -import { buildDiffFileTreeUpdates, diffFileTreeEntries } from "./diffFileTree.logic"; +import { + buildDiffFileTreeUpdates, + diffFileListModel, + diffFileTreeEntries, +} from "./diffFileTree.logic"; function file(type: FileDiffMetadata["type"], name: string, prevName = name): FileDiffMetadata { return { type, name, prevName } as FileDiffMetadata; @@ -40,3 +44,30 @@ describe("buildDiffFileTreeUpdates", () => { ]); }); }); + +describe("diffFileListModel", () => { + it("names each file by its basename and keeps repeated names apart", () => { + const list = diffFileListModel(["src/index.ts", "docs/README.md", "test/Index.ts"]); + expect(list.paths.map((path) => path.replace(/[\u200b\u200c\u2060]/g, ""))).toEqual([ + "index.ts", + "README.md", + "Index.ts", + ]); + expect(new Set(list.paths.map((path) => path.toLowerCase())).size).toBe(3); + expect(list.paths.map(list.selectionPath)).toEqual([ + "src/index.ts", + "docs/README.md", + "test/Index.ts", + ]); + expect(list.modelPath("test/Index.ts")).toBe(list.paths[2]); + // A missing root file must not resolve to the row of a same-named file in a folder. + expect(diffFileListModel(["dir/index.ts"]).modelPath("index.ts")).toBeUndefined(); + }); + + it("keeps a repeated name's id short", () => { + const paths = Array.from({ length: 1000 }, (_, index) => `dir${index}/index.ts`); + const list = diffFileListModel(paths); + expect(new Set(list.paths).size).toBe(1000); + expect(Math.max(...list.paths.map((path) => path.length))).toBeLessThan(24); + }); +}); diff --git a/apps/web/src/components/diffs/diffFileTree.logic.ts b/apps/web/src/components/diffs/diffFileTree.logic.ts index b819133d75da9..0343e3917d720 100644 --- a/apps/web/src/components/diffs/diffFileTree.logic.ts +++ b/apps/web/src/components/diffs/diffFileTree.logic.ts @@ -72,6 +72,54 @@ export function diffFileTreeModel(paths: ReadonlyArray) { }; } +const INVISIBLE_DIGITS = ["\u200b", "\u200c"] as const; + +function invisibleNumber(value: number): string { + let digits = ""; + let rest = value; + do { + digits = INVISIBLE_DIGITS[rest % 2] + digits; + rest = Math.floor(rest / 2); + } while (rest > 0); + return digits; +} + +// A list row shows only a file's name, so a repeated name takes an invisible numbered suffix. +export function diffFileListModel(paths: ReadonlyArray) { + const realNames = new Set(paths.map((path) => basenameOfPath(path).toLowerCase())); + const usedNames = new Set(); + const repeats = new Map(); + const selectionByModelPath = new Map(); + const modelBySelectionPath = new Map(); + const byFileName: FileTreeIconConfig["byFileName"] = { ...T3_PIERRE_ICONS.byFileName }; + const modelPaths = paths.map((path) => { + const name = basenameOfPath(path); + const key = name.toLowerCase(); + let modelPath = name; + if (usedNames.has(key)) { + let repeat = repeats.get(key) ?? 0; + do { + repeat += 1; + modelPath = `${name}\u2060${invisibleNumber(repeat)}`; + } while (realNames.has(modelPath.toLowerCase()) || usedNames.has(modelPath.toLowerCase())); + repeats.set(key, repeat); + const icon = resolvePierreIconForEntry(path, "file"); + if (icon !== null) byFileName[modelPath] = icon; + } + usedNames.add(modelPath.toLowerCase()); + selectionByModelPath.set(modelPath, path); + modelBySelectionPath.set(path, modelPath); + return modelPath; + }); + return { + paths: modelPaths, + selectionPath: (modelPath: string) => selectionByModelPath.get(modelPath) ?? modelPath, + // A file missing from the list has no row; its bare name may be another file's row. + modelPath: (path: string): string | undefined => modelBySelectionPath.get(path), + icons: { ...T3_PIERRE_ICONS, byFileName }, + }; +} + export function collectDirectoryPaths(paths: ReadonlyArray): ReadonlyArray { const directories = new Set(); for (const path of paths) { diff --git a/apps/web/src/components/files/FileExplorerPane.browser.test.tsx b/apps/web/src/components/files/FileExplorerPane.browser.test.tsx index 58f1064beed78..5f78ee2957d97 100644 --- a/apps/web/src/components/files/FileExplorerPane.browser.test.tsx +++ b/apps/web/src/components/files/FileExplorerPane.browser.test.tsx @@ -1,4 +1,5 @@ import { describe, expect, it } from "vite-plus/test"; +import { userEvent } from "vite-plus/test/browser"; import { render } from "../../../test/render"; import { FileExplorerPane } from "./FileExplorerPane"; @@ -42,4 +43,37 @@ describe("FileExplorerPane", () => { } }, ); + + it.each([ + { side: "right" as const, grow: "ArrowLeft", shrink: "ArrowRight" }, + { side: "left" as const, grow: "ArrowRight", shrink: "ArrowLeft" }, + ])( + "widens a $side file tree with the arrow key pointing into the content", + async ({ side, grow, shrink }) => { + const previous = localStorage.getItem(STORAGE_KEY); + localStorage.removeItem(STORAGE_KEY); + try { + // This layout has no navigation or links. + await using screen = await render( +
+ + File tree + +
, + { router: false }, + ); + const separator = screen.getByRole("separator"); + await expect.element(separator).toHaveAttribute("aria-valuenow", "256"); + + separator.element().focus(); + await userEvent.keyboard(`{${grow}}`); + await expect.element(separator).toHaveAttribute("aria-valuenow", "272"); + await userEvent.keyboard(`{${shrink}}{${shrink}}`); + await expect.element(separator).toHaveAttribute("aria-valuenow", "240"); + } finally { + if (previous === null) localStorage.removeItem(STORAGE_KEY); + else localStorage.setItem(STORAGE_KEY, previous); + } + }, + ); }); diff --git a/apps/web/src/components/files/FileExplorerPane.tsx b/apps/web/src/components/files/FileExplorerPane.tsx index e06dd0f952172..0219b889211bf 100644 --- a/apps/web/src/components/files/FileExplorerPane.tsx +++ b/apps/web/src/components/files/FileExplorerPane.tsx @@ -1,4 +1,5 @@ import { useGT } from "gt-react"; +import type { FileTreeSide } from "@t3tools/contracts"; import { type CSSProperties, type ReactNode, useState } from "react"; import { RightPanelResizeHandle } from "~/components/preview/RightPanelResizeHandle"; @@ -13,9 +14,11 @@ const FILE_CONTENT_MIN_WIDTH = 256; /** A persisted, resizable file-tree column; fills the row when resizing is disabled. * Callers can retain a responsive initial width via defaultWidthFraction (a fraction of the row), * and use a separate saved width, minimum and resize label. A chosen width overrides the default. + * `side` is where the column sits in its row; the caller renders it first or last to match. */ export function FileExplorerPane({ resizable, + side = "right", children, storageKey = "t3code.fileExplorerWidth", defaultWidth = 256, @@ -24,6 +27,7 @@ export function FileExplorerPane({ resizeLabel, }: { resizable: boolean; + side?: FileTreeSide; children: ReactNode; storageKey?: string; defaultWidth?: number; @@ -39,8 +43,10 @@ export function FileExplorerPane({ defaultWidth: responsiveDefaultWidth, minWidth, maxWidth, - edge: "left", + edge: side === "right" ? "left" : "right", }); + const growKey = side === "right" ? "ArrowLeft" : "ArrowRight"; + const shrinkKey = side === "right" ? "ArrowRight" : "ArrowLeft"; return (
); diff --git a/apps/web/src/components/preview/RightPanelResizeHandle.tsx b/apps/web/src/components/preview/RightPanelResizeHandle.tsx index affd8ee729388..c4d3b82921137 100644 --- a/apps/web/src/components/preview/RightPanelResizeHandle.tsx +++ b/apps/web/src/components/preview/RightPanelResizeHandle.tsx @@ -9,9 +9,17 @@ interface Props extends Pick< handlers: ResizableWidthHandlers; className?: string; label?: string; + /** The panel edge the handle sits on. */ + edge?: "left" | "right"; } -export function RightPanelResizeHandle({ handlers, className, label, ...separatorProps }: Props) { +export function RightPanelResizeHandle({ + handlers, + className, + label, + edge = "left", + ...separatorProps +}: Props) { return (
); diff --git a/apps/web/src/components/pullRequest/PullRequestCodeTab.tsx b/apps/web/src/components/pullRequest/PullRequestCodeTab.tsx index d06cb1efeaacd..ce25e3d4230ea 100644 --- a/apps/web/src/components/pullRequest/PullRequestCodeTab.tsx +++ b/apps/web/src/components/pullRequest/PullRequestCodeTab.tsx @@ -458,6 +458,7 @@ function PullRequestCodeTab({ diffFilesCollapsed: settings.diffFilesCollapsed, diffIgnoreWhitespace: settings.diffIgnoreWhitespace, diffLayout: settings.diffLayout, + fileTreeSide: settings.fileTreeSide, wordWrap: settings.wordWrap, })); const [folds, setFolds] = useState(EMPTY_PULL_REQUEST_DIFF_FOLDS); @@ -1893,6 +1894,49 @@ function PullRequestCodeTab({ else orphanFiles.set(thread.path, [thread]); } + const fileTreePane = fileTreeOpen ? ( + + + +
+ ) + } + /> + + ) : null; return (
{toolbar} @@ -1954,6 +1998,7 @@ function PullRequestCodeTab({
) : null}
+ {settings.fileTreeSide === "left" ? fileTreePane : null}
- {fileTreeOpen ? ( - - - -
- ) - } - /> - - ) : null} + {settings.fileTreeSide === "right" ? fileTreePane : null}
{unstructured}
diff --git a/apps/web/src/components/settings/SettingsPanels.tsx b/apps/web/src/components/settings/SettingsPanels.tsx index 493d8a1e79565..3c7a277669cdb 100644 --- a/apps/web/src/components/settings/SettingsPanels.tsx +++ b/apps/web/src/components/settings/SettingsPanels.tsx @@ -18,7 +18,9 @@ import { } from "@t3tools/contracts"; import { DEFAULT_UNIFIED_SETTINGS, + type DiffFileView, type DiffLayout, + type FileTreeSide, MAX_SIDEBAR_AUTO_SETTLE_AFTER_DAYS, MIN_SIDEBAR_AUTO_SETTLE_AFTER_DAYS, type ResponseStreamingMode, @@ -160,6 +162,16 @@ const DIFF_LAYOUT_LABELS: Record = { split: msg("Split", { $context: "diff layout" }), }; +const DIFF_FILE_VIEW_LABELS: Record = { + all: msg("All files", { $context: "changes view" }), + single: msg("One file", { $context: "changes view" }), +}; + +const FILE_TREE_SIDE_LABELS: Record = { + left: msg("Left", { $context: "file tree side" }), + right: msg("Right", { $context: "file tree side" }), +}; + const QUIT_CONFIRMATION_MODE_LABELS: Record = { direct: msg("Direct"), hold: msg("Hold"), @@ -564,6 +576,12 @@ export function useSettingsRestore(onRestored?: () => void) { ? [gt("Diff whitespace changes")] : []), ...(settings.diffLayout !== DEFAULT_UNIFIED_SETTINGS.diffLayout ? [gt("Diff layout")] : []), + ...(settings.diffFileView !== DEFAULT_UNIFIED_SETTINGS.diffFileView + ? [gt("Changes view")] + : []), + ...(settings.fileTreeSide !== DEFAULT_UNIFIED_SETTINGS.fileTreeSide + ? [gt("File tree side")] + : []), ...(settings.proactivePanelsEnabled !== DEFAULT_UNIFIED_SETTINGS.proactivePanelsEnabled ? [gt("Open pull requests and changes panels proactively")] : []), @@ -708,6 +726,8 @@ export function useSettingsRestore(onRestored?: () => void) { diffFilesCollapsed: DEFAULT_UNIFIED_SETTINGS.diffFilesCollapsed, diffIgnoreWhitespace: DEFAULT_UNIFIED_SETTINGS.diffIgnoreWhitespace, diffLayout: DEFAULT_UNIFIED_SETTINGS.diffLayout, + diffFileView: DEFAULT_UNIFIED_SETTINGS.diffFileView, + fileTreeSide: DEFAULT_UNIFIED_SETTINGS.fileTreeSide, proactivePanelsEnabled: DEFAULT_UNIFIED_SETTINGS.proactivePanelsEnabled, showSkillsInSlashMenu: DEFAULT_UNIFIED_SETTINGS.showSkillsInSlashMenu, composerRichTextEnabled: DEFAULT_UNIFIED_SETTINGS.composerRichTextEnabled, @@ -1727,6 +1747,82 @@ export function DiffsSettingsPanel() { } /> + + updateSettings({ diffFileView: DEFAULT_UNIFIED_SETTINGS.diffFileView }) + } + /> + ) : null + } + control={ + + } + /> + + updateSettings({ fileTreeSide: DEFAULT_UNIFIED_SETTINGS.fileTreeSide }) + } + /> + ) : null + } + control={ + + } + /> { useDiffPanelStore.setState({ byThreadKey: {}, branchBaseRefByThreadKey: {}, + focusedFileByThreadKey: {}, }); useDiffPanelSessionStore.setState({ collapsedFileKeysByScopeKey: {} }); }); @@ -85,6 +87,20 @@ describe("diffPanelStore", () => { expect(resolveToolCallDiffTarget(target, [])).toBe(target); }); + it("drops a thread's one-file pick for a requested file and with the thread", () => { + const ref = { environmentId: EnvironmentId.make("env"), threadId: ThreadId.make("thread") }; + const focus = { scope: "turn:run-1", path: "src/b.ts" }; + const store = useDiffPanelStore.getState(); + store.focusFile(ref, focus); + store.selectTurn(ref, RunId.make("run-1")); + expect(selectThreadFocusedDiffFile(useDiffPanelStore.getState(), ref)).toEqual(focus); + store.selectTurn(ref, RunId.make("run-1"), "src/a.ts"); + expect(selectThreadFocusedDiffFile(useDiffPanelStore.getState(), ref)).toBeNull(); + store.focusFile(ref, focus); + store.removeThread(ref); + expect(selectThreadFocusedDiffFile(useDiffPanelStore.getState(), ref)).toBeNull(); + }); + it("retains fold choices when a panel consumer returns with fresh defaults", () => { const scopeKey = "environment-1:thread-1:branch"; const defaults = new Set(["src/app.ts", "src/index.ts"]); diff --git a/apps/web/src/diffPanelStore.ts b/apps/web/src/diffPanelStore.ts index 207756445e91f..19f2e511ebf8f 100644 --- a/apps/web/src/diffPanelStore.ts +++ b/apps/web/src/diffPanelStore.ts @@ -30,9 +30,17 @@ export type DiffPanelSelection = const DEFAULT_SELECTION: DiffPanelSelection = { kind: "branch", baseRef: null }; +/** The file the one-file view shows; it holds only for the diff it was picked in. */ +export interface FocusedDiffFile { + readonly scope: string; + readonly path: string; +} + interface DiffPanelStoreState { byThreadKey: Record; branchBaseRefByThreadKey: Record; + focusedFileByThreadKey: Record; + focusFile: (ref: ScopedThreadRef, file: FocusedDiffFile) => void; selectGitScope: (ref: ScopedThreadRef, scope: "branch" | "unstaged") => void; selectBranchBaseRef: (ref: ScopedThreadRef, baseRef: string | null) => void; selectToolCall: (ref: ScopedThreadRef, target: ToolCallDiffTarget) => void; @@ -63,6 +71,14 @@ export const useDiffPanelStore = create()( (set) => ({ byThreadKey: {}, branchBaseRefByThreadKey: {}, + focusedFileByThreadKey: {}, + focusFile: (ref, file) => + set((state) => ({ + focusedFileByThreadKey: { + ...state.focusedFileByThreadKey, + [scopedThreadKey(ref)]: file, + }, + })), selectGitScope: (ref, scope) => set((state) => { const threadKey = scopedThreadKey(ref); @@ -110,7 +126,11 @@ export const useDiffPanelStore = create()( const previous = state.byThreadKey[threadKey]; // Git reports paths with their edge whitespace; only a blank one means no file. const requestedPath = filePath !== undefined && filePath.trim() !== "" ? filePath : null; + // A requested file replaces the one picked in the file list. + const { [threadKey]: _replacedFocus, ...focusedFileByThreadKey } = + state.focusedFileByThreadKey; return { + ...(requestedPath === null ? {} : { focusedFileByThreadKey }), byThreadKey: { ...state.byThreadKey, [threadKey]: { @@ -179,13 +199,19 @@ export const useDiffPanelStore = create()( removeThread: (ref) => set((state) => { const threadKey = scopedThreadKey(ref); - if (!(threadKey in state.byThreadKey) && !(threadKey in state.branchBaseRefByThreadKey)) { + if ( + !(threadKey in state.byThreadKey) && + !(threadKey in state.branchBaseRefByThreadKey) && + !(threadKey in state.focusedFileByThreadKey) + ) { return state; } const { [threadKey]: _removed, ...byThreadKey } = state.byThreadKey; const { [threadKey]: _removedBaseRef, ...branchBaseRefByThreadKey } = state.branchBaseRefByThreadKey; - return { byThreadKey, branchBaseRefByThreadKey }; + const { [threadKey]: _removedFocus, ...focusedFileByThreadKey } = + state.focusedFileByThreadKey; + return { byThreadKey, branchBaseRefByThreadKey, focusedFileByThreadKey }; }), }), { @@ -197,6 +223,7 @@ export const useDiffPanelStore = create()( partialize: (state) => ({ byThreadKey: state.byThreadKey, branchBaseRefByThreadKey: state.branchBaseRefByThreadKey, + focusedFileByThreadKey: state.focusedFileByThreadKey, }), }, ), @@ -239,6 +266,13 @@ export function selectThreadDiffPanelSelection( return byThreadKey[scopedThreadKey(ref)] ?? DEFAULT_SELECTION; } +export function selectThreadFocusedDiffFile( + state: Pick, + ref: ScopedThreadRef | null | undefined, +): FocusedDiffFile | null { + return ref ? (state.focusedFileByThreadKey[scopedThreadKey(ref)] ?? null) : null; +} + export function selectThreadBranchBaseRef( state: Pick, ref: ScopedThreadRef | null | undefined, diff --git a/apps/web/src/i18n/translations/de.json b/apps/web/src/i18n/translations/de.json index 8d5cb7d817bb1..a999138ea6de4 100644 --- a/apps/web/src/i18n/translations/de.json +++ b/apps/web/src/i18n/translations/de.json @@ -2014,6 +2014,8 @@ "c5819117f6d66158": "Diff wird aktualisiert", "faa2ce347b9e9897": "Diff aktualisieren", "fc187ad65dae19cf": "Diff wird aktualisiert…", + "3b4a072ce5d8c0fe": "Vorherige Datei", + "c512a46e75757c05": "Nächste Datei", "8bd9944680206ada": "Alle Dateien ausklappen", "936fda372754abea": "Alle Dateien einklappen", "e7397b76febc73d4": "Diff-Layout", @@ -2029,6 +2031,10 @@ "1d07a6da72e591c6": "{count, plural, one {{count} ausgeblendete Testdatei anzeigen} other {{count} ausgeblendete Testdateien anzeigen}}", "8b851e02f1a7ebb6": "Dateibaum ausblenden", "d5ee250c64fee5a7": "Dateibaum anzeigen", + "e797245c587e7e29": "Größe der Änderungsdateien anpassen", + "99c76aa12c632a36": "Dateien: {section}", + "e2545556a6fd305d": "Eine Datei nach der anderen anzeigen", + "849059a11e9baf7a": "Alle Dateien anzeigen", "c85318d45246b67e": "Verfolgte Änderungen werden angezeigt. Nicht verfolgte Änderungen konnten nicht geladen werden. Aktualisiere, um es erneut zu versuchen.", "cb50cba6ce7b1812": "Verfolgte Änderungen werden angezeigt. Nicht verfolgte Dateien werden geprüft...", "d700830cfece6839": "Diese Vorschau überschreitet das Größenlimit. Die angezeigten Änderungen sind unvollständig. Die Summen enthalten alle Änderungen.", @@ -2042,8 +2048,6 @@ "b2c35cd235de63e0": "Änderungen werden geladen...", "bcbd16c97c6c1215": "Keine Nettoänderungen in dieser Auswahl.", "7e9cb3ca9f5470ae": "Für diese Auswahl ist kein Patch verfügbar.", - "e797245c587e7e29": "Größe der Änderungsdateien anpassen", - "99c76aa12c632a36": "Dateien: {section}", "3e9ddb26c2c59bcc": "Änderungen", "d293587abc871e7c": "Lokal", "8f3906e1adcda127": "Letzte Runde", @@ -5471,6 +5475,8 @@ "48d7d2bee4c40a5a": "Screenshot fehlgeschlagen. Versuche es erneut.", "d48deeb7c5f630c2": "Unerwartete Antwort auf den Android-Faltbefehl.", "f32c20d2aab69630": "Faltbefehl fehlgeschlagen ({status}).", + "d6f8e06c722755d0": "Unvollständiger Kommentar zu {file}", + "350313e3fc4f7730": "Anzeigen", "c05ae9b20227f416": "Kommentar löschen", "e8c281b1a85ac547": "Kommentar hinzufügen…", "f2160b630793c7b4": "Zeilen {rangeLabel} kommentieren", @@ -5480,6 +5486,8 @@ "1601d7e39a52c48f": "Laden des Diffs wiederholen", "b7b137472adb6989": "Teilweise Diff-Vorschau", "f0d79aa56f06663f": "Diese Datei ist zu groß für die vollständige Anzeige. Die Zahlen umfassen alle Änderungen.", + "0bd9d9fd01b95d69": "Als Baum anzeigen", + "5b5e8f0b5ffde672": "Als Liste anzeigen", "7fdde2b893ba1b9d": "Entfernt", "e58ce271d835b447": "Hinzugefügt", "07b9970b662ab70d": "Mermaid-Quelltext anzeigen", @@ -6650,12 +6658,12 @@ "48be78e4550011d3": "{term, select, mr {Diff des Merge Requests wird geladen...} cr {Diff der Änderungsanfrage wird geladen...} other {Diff des Pull Requests wird geladen...}}", "e76a1455903eef18": "{term, select, mr {Dieser Merge Request hat keine Dateiänderungen.} cr {Diese Änderungsanfrage hat keine Dateiänderungen.} other {Dieser Pull Request hat keine Dateiänderungen.}}", "50abbcbc41691cb5": "Dieser Commit hat keine Dateiänderungen.", - "89b5010ac2665a5b": "Unterhaltungen, die nicht im aktuellen Diff liegen", - "26dee15a55a75ed7": "Unterhaltungen, die nicht im bisher geladenen Diff liegen", - "aa28b0b2139430a6": "{count, plural, one {{count} Unterhaltung} other {{count} Unterhaltungen}}", "362ec9a3df7ab055": "Größe der PR-Code-Dateien ändern", "969ef4a528a76825": "{term, select, mr {Dateien von Merge Request #{number}} cr {Dateien von Änderungsanfrage #{number}} other {Dateien von Pull Request #{number}}}", "3c94e75488454433": "Weitere Dateien laden", + "89b5010ac2665a5b": "Unterhaltungen, die nicht im aktuellen Diff liegen", + "26dee15a55a75ed7": "Unterhaltungen, die nicht im bisher geladenen Diff liegen", + "aa28b0b2139430a6": "{count, plural, one {{count} Unterhaltung} other {{count} Unterhaltungen}}", "02bea791e714b231": "Dieser Diff konnte nicht geladen werden.", "a2a7c71f984c4eef": "Kein Text-Diff für diese Datei.", "1239149344bb4b2b": "Der Diff ist zu groß zum Anzeigen.", @@ -10023,6 +10031,10 @@ "2f42917064c97f09": "24-Stunden-Format", "dcc08eacff8bd0bc": "Untereinander", "62d8f823deedf316": "Nebeneinander", + "a7539359624acb25": "Alle Dateien", + "a8bf151005714f12": "Eine Datei", + "0b1d90396febb1e3": "Links", + "52e95c2c03ebba44": "Rechts", "7e8c995646a967d3": "Direkt", "51497bd401292062": "Gedrückt halten", "9d6cc6ac23312071": "Doppelt drücken", @@ -10071,6 +10083,8 @@ "8dc3e3036cfebeaa": "Kontext im Eingabefeld", "95be9d8739887c7f": "Standardzustand von Diff-Dateien", "04fb467bba7698e2": "Leerzeichenänderungen im Diff", + "8e69528599a76d56": "Änderungsansicht", + "fcc4af143857deb8": "Seite des Dateibaums", "71d047b3f6ea9497": "Pull-Request- und Änderungs-Panels proaktiv öffnen", "4b46043fd3700c17": "Skills im Slash-Menü anzeigen", "2407d5d61e7f7206": "Rich-Text-Eingabefeld", @@ -10154,6 +10168,10 @@ "8063eba66d3eac2f": "Diffs", "d366b1f8e02f6b65": "Diffs untereinander oder nebeneinander anzeigen. Der Schalter in der Diff-Werkzeugleiste ändert das ebenfalls.", "538942e48d647860": "Diff-Layout auf Standard zurücksetzen", + "0935a9c6ec33752b": "Alle geänderten Dateien untereinander anzeigen oder jeweils eine Datei, die in der Dateiliste gewählt wird. Der Schalter in der Dateiliste von Änderungen ändert das ebenfalls.", + "abbe72ce3d9db58b": "Änderungsansicht auf Standard zurücksetzen", + "4b5de70ee1a60f63": "Den Dateibaum links oder rechts in den Bereichen Dateien, Änderungen und Code von Pull Requests anzeigen.", + "37a8553d69a16e8b": "Seite des Dateibaums auf Standard zurücksetzen", "ccf8b1be97e2ad94": "Festlegen, ob das Diff-Panel reine Leerzeichenänderungen standardmäßig ignoriert.", "7fa43ec1cf9714f1": "Leerzeichenänderungen im Diff auf Standard zurücksetzen", "6272d601c80c5082": "Leerzeichenänderungen standardmäßig ausblenden", @@ -11851,6 +11869,8 @@ "28595b22d495356e": "diff leerzeichen ignorieren bearbeitungen standard", "b46730711c2d6089": "eingeklappt ausgeklappt einklappen ausklappen dateien pull request pr code tab", "6a6b1c244a1a0476": "untereinander nebeneinander geteilt vereinheitlicht inline ansicht", + "f2b5355db554ef5d": "diff eine datei einzelne datei alle dateien untereinander liste fokus review", + "9fab4e8aae7a9e13": "dateibaum explorer links rechts seite tauschen wechseln position andocken änderungen dateien", "7d0ab4cf50686d31": "proaktiv automatisch öffnen diff pull request pr rechter bereich agent abschluss", "5256dd2ed3a24332": "befehlsmenü dollar $ slash /", "ade91c8927c48175": "eingabefeld rich text tiptap fett kursiv markdown formatiert wysiwyg", diff --git a/apps/web/src/i18n/translations/en.json b/apps/web/src/i18n/translations/en.json index 6c5ef49b77f43..515ece2b0a9b0 100644 --- a/apps/web/src/i18n/translations/en.json +++ b/apps/web/src/i18n/translations/en.json @@ -2015,6 +2015,8 @@ "c5819117f6d66158": "Refreshing diff", "faa2ce347b9e9897": "Refresh diff", "fc187ad65dae19cf": "Refreshing diff…", + "3b4a072ce5d8c0fe": "Previous file", + "c512a46e75757c05": "Next file", "8bd9944680206ada": "Expand all files", "936fda372754abea": "Collapse all files", "e7397b76febc73d4": "Diff layout", @@ -2030,6 +2032,10 @@ "1d07a6da72e591c6": "{count, plural, one {Show {count} hidden test file} other {Show {count} hidden test files}}", "8b851e02f1a7ebb6": "Hide file tree", "d5ee250c64fee5a7": "Show file tree", + "e797245c587e7e29": "Resize Changes files", + "99c76aa12c632a36": "{section} files", + "e2545556a6fd305d": "Show one file at a time", + "849059a11e9baf7a": "Show all files", "c85318d45246b67e": "Showing tracked changes. Untracked changes could not be loaded. Refresh to retry.", "cb50cba6ce7b1812": "Showing tracked changes. Checking untracked files...", "d700830cfece6839": "This preview exceeds the size limit. Changes shown are incomplete. Totals include all changes.", @@ -2043,8 +2049,6 @@ "b2c35cd235de63e0": "Loading changes...", "bcbd16c97c6c1215": "No net changes in this selection.", "7e9cb3ca9f5470ae": "No patch available for this selection.", - "e797245c587e7e29": "Resize Changes files", - "99c76aa12c632a36": "{section} files", "3e9ddb26c2c59bcc": "Changes", "d293587abc871e7c": "Uncommitted", "8f3906e1adcda127": "Latest turn", @@ -5472,6 +5476,8 @@ "48d7d2bee4c40a5a": "Screenshot capture failed. Try again.", "d48deeb7c5f630c2": "Unexpected Android fold response.", "f32c20d2aab69630": "Fold command failed ({status}).", + "d6f8e06c722755d0": "Unfinished comment on {file}", + "350313e3fc4f7730": "Show", "c05ae9b20227f416": "Delete comment", "e8c281b1a85ac547": "Add a comment…", "f2160b630793c7b4": "Comment on lines {rangeLabel}", @@ -5481,6 +5487,8 @@ "1601d7e39a52c48f": "Retry loading diff", "b7b137472adb6989": "Partial diff preview", "f0d79aa56f06663f": "This file is too large to show in full. Counts include all changes.", + "0bd9d9fd01b95d69": "View as tree", + "5b5e8f0b5ffde672": "View as list", "7fdde2b893ba1b9d": "Removed", "e58ce271d835b447": "Added", "07b9970b662ab70d": "Show Mermaid source", @@ -6657,12 +6665,12 @@ "48be78e4550011d3": "Loading {term, select, mr {merge request} cr {change request} other {pull request}} diff...", "e76a1455903eef18": "This {term, select, mr {merge request} cr {change request} other {pull request}} has no file changes.", "50abbcbc41691cb5": "This commit has no file changes.", - "89b5010ac2665a5b": "Conversations not on the current diff", - "26dee15a55a75ed7": "Conversations not on the diff loaded so far", - "aa28b0b2139430a6": "{count, plural, one {{count} conversation} other {{count} conversations}}", "362ec9a3df7ab055": "Resize PR Code files", "969ef4a528a76825": "{term, select, mr {Merge request} cr {Change request} other {Pull request}} #{number} files", "3c94e75488454433": "Load more files", + "89b5010ac2665a5b": "Conversations not on the current diff", + "26dee15a55a75ed7": "Conversations not on the diff loaded so far", + "aa28b0b2139430a6": "{count, plural, one {{count} conversation} other {{count} conversations}}", "02bea791e714b231": "Couldn't load this diff.", "a2a7c71f984c4eef": "No text diff for this file.", "1239149344bb4b2b": "Diff too large to display.", @@ -10032,6 +10040,10 @@ "2f42917064c97f09": "24-hour", "dcc08eacff8bd0bc": "Stacked", "62d8f823deedf316": "Split", + "a7539359624acb25": "All files", + "a8bf151005714f12": "One file", + "0b1d90396febb1e3": "Left", + "52e95c2c03ebba44": "Right", "7e8c995646a967d3": "Direct", "51497bd401292062": "Hold", "9d6cc6ac23312071": "Double press", @@ -10080,6 +10092,8 @@ "8dc3e3036cfebeaa": "Composer context", "95be9d8739887c7f": "Default diff file state", "04fb467bba7698e2": "Diff whitespace changes", + "8e69528599a76d56": "Changes view", + "fcc4af143857deb8": "File tree side", "71d047b3f6ea9497": "Open pull requests and changes panels proactively", "4b46043fd3700c17": "Show skills in slash menu", "2407d5d61e7f7206": "Rich text composer", @@ -10163,6 +10177,10 @@ "8063eba66d3eac2f": "Diffs", "d366b1f8e02f6b65": "Show diffs stacked or side by side. The toggle in the diff toolbar changes this too.", "538942e48d647860": "Reset diff layout to default", + "0935a9c6ec33752b": "Show every changed file stacked, or one file at a time picked from the file list. The toggle in the Changes file list changes this too.", + "abbe72ce3d9db58b": "Reset changes view to default", + "4b5de70ee1a60f63": "Place the file tree on the left or right of the Files, Changes and pull request Code panels.", + "37a8553d69a16e8b": "Reset file tree side to default", "ccf8b1be97e2ad94": "Set whether the diff panel ignores whitespace-only edits by default.", "7fa43ec1cf9714f1": "Reset diff whitespace changes to default", "6272d601c80c5082": "Hide whitespace changes by default", @@ -11859,6 +11877,8 @@ "28595b22d495356e": "diff ignore spaces edits default", "b46730711c2d6089": "collapsed expanded collapse expand files pull request pr code tab", "6a6b1c244a1a0476": "stacked split side by side unified inline view", + "f2b5355db554ef5d": "diff one file single file all files stacked list focus review", + "9fab4e8aae7a9e13": "file tree explorer left right side flip swap position dock changes files", "7d0ab4cf50686d31": "proactive automatically open diff pull request pr right panel agent completion", "5256dd2ed3a24332": "command menu dollar $ slash /", "ade91c8927c48175": "composer rich text tiptap bold italic markdown styled wysiwyg", diff --git a/apps/web/src/i18n/translations/es.json b/apps/web/src/i18n/translations/es.json index 1f4ed2cf548ee..136fafec62931 100644 --- a/apps/web/src/i18n/translations/es.json +++ b/apps/web/src/i18n/translations/es.json @@ -2015,6 +2015,8 @@ "c5819117f6d66158": "Actualizando el diff", "faa2ce347b9e9897": "Actualizar diff", "fc187ad65dae19cf": "Actualizando el diff…", + "3b4a072ce5d8c0fe": "Archivo anterior", + "c512a46e75757c05": "Archivo siguiente", "8bd9944680206ada": "Expandir todos los archivos", "936fda372754abea": "Contraer todos los archivos", "e7397b76febc73d4": "Diseño del diff", @@ -2030,6 +2032,10 @@ "1d07a6da72e591c6": "{count, plural, one {Mostrar {count} archivo de prueba oculto} other {Mostrar {count} archivos de prueba ocultos}}", "8b851e02f1a7ebb6": "Ocultar árbol de archivos", "d5ee250c64fee5a7": "Mostrar árbol de archivos", + "e797245c587e7e29": "Cambiar el tamaño de los archivos de Cambios", + "99c76aa12c632a36": "Archivos de {section}", + "e2545556a6fd305d": "Mostrar un archivo a la vez", + "849059a11e9baf7a": "Mostrar todos los archivos", "c85318d45246b67e": "Se muestran los cambios con seguimiento. No se pudieron cargar los cambios sin seguimiento. Actualiza para reintentarlo.", "cb50cba6ce7b1812": "Se muestran los cambios con seguimiento. Comprobando archivos sin seguimiento...", "d700830cfece6839": "Esta vista previa supera el límite de tamaño. Los cambios mostrados están incompletos. Los totales incluyen todos los cambios.", @@ -2043,8 +2049,6 @@ "b2c35cd235de63e0": "Cargando cambios...", "bcbd16c97c6c1215": "No hay cambios netos en esta selección.", "7e9cb3ca9f5470ae": "No hay ningún parche disponible para esta selección.", - "e797245c587e7e29": "Cambiar el tamaño de los archivos de Cambios", - "99c76aa12c632a36": "Archivos de {section}", "3e9ddb26c2c59bcc": "Cambios", "d293587abc871e7c": "Sin commit", "8f3906e1adcda127": "Último turno", @@ -5470,6 +5474,8 @@ "48d7d2bee4c40a5a": "Falló la captura de pantalla. Vuelve a intentarlo.", "d48deeb7c5f630c2": "Respuesta de plegado de Android inesperada.", "f32c20d2aab69630": "Falló el comando de plegado ({status}).", + "d6f8e06c722755d0": "Comentario sin terminar en {file}", + "350313e3fc4f7730": "Mostrar", "c05ae9b20227f416": "Eliminar comentario", "e8c281b1a85ac547": "Añade un comentario…", "f2160b630793c7b4": "Comentar las líneas {rangeLabel}", @@ -5479,6 +5485,8 @@ "1601d7e39a52c48f": "Reintentar la carga del diff", "b7b137472adb6989": "Vista previa parcial del diff", "f0d79aa56f06663f": "Este archivo es demasiado grande para mostrarlo completo. Los recuentos incluyen todos los cambios.", + "0bd9d9fd01b95d69": "Ver como árbol", + "5b5e8f0b5ffde672": "Ver como lista", "7fdde2b893ba1b9d": "Eliminado", "e58ce271d835b447": "Añadido", "07b9970b662ab70d": "Mostrar el código fuente de Mermaid", @@ -6650,12 +6658,12 @@ "48be78e4550011d3": "Cargando el diff de la {term, select, mr {merge request} cr {solicitud de cambios} other {pull request}}...", "e76a1455903eef18": "Esta {term, select, mr {merge request} cr {solicitud de cambios} other {pull request}} no tiene cambios en archivos.", "50abbcbc41691cb5": "Este commit no tiene cambios en archivos.", - "89b5010ac2665a5b": "Conversaciones que no están en el diff actual", - "26dee15a55a75ed7": "Conversaciones que no están en el diff cargado hasta ahora", - "aa28b0b2139430a6": "{count, plural, one {{count} conversación} other {{count} conversaciones}}", "362ec9a3df7ab055": "Cambiar el tamaño de los archivos de código de la PR", "969ef4a528a76825": "Archivos de la {term, select, mr {MR} cr {solicitud de cambios} other {PR}} #{number}", "3c94e75488454433": "Cargar más archivos", + "89b5010ac2665a5b": "Conversaciones que no están en el diff actual", + "26dee15a55a75ed7": "Conversaciones que no están en el diff cargado hasta ahora", + "aa28b0b2139430a6": "{count, plural, one {{count} conversación} other {{count} conversaciones}}", "02bea791e714b231": "No se pudo cargar este diff.", "a2a7c71f984c4eef": "No hay diff de texto para este archivo.", "1239149344bb4b2b": "El diff es demasiado grande para mostrarlo.", @@ -10020,6 +10028,10 @@ "2f42917064c97f09": "24 horas", "dcc08eacff8bd0bc": "Apilado", "62d8f823deedf316": "Dividido", + "a7539359624acb25": "Todos los archivos", + "a8bf151005714f12": "Un archivo", + "0b1d90396febb1e3": "Izquierda", + "52e95c2c03ebba44": "Derecha", "7e8c995646a967d3": "Directo", "51497bd401292062": "Mantener pulsado", "9d6cc6ac23312071": "Doble pulsación", @@ -10068,6 +10080,8 @@ "8dc3e3036cfebeaa": "Contexto del cuadro de mensaje", "95be9d8739887c7f": "Estado predeterminado de los archivos del diff", "04fb467bba7698e2": "Cambios de espacios en blanco en el diff", + "8e69528599a76d56": "Vista de cambios", + "fcc4af143857deb8": "Lado del árbol de archivos", "71d047b3f6ea9497": "Abrir los paneles de pull requests y cambios de forma proactiva", "4b46043fd3700c17": "Mostrar skills en el menú de barra", "2407d5d61e7f7206": "Cuadro de mensaje con texto enriquecido", @@ -10151,6 +10165,10 @@ "8063eba66d3eac2f": "Diffs", "d366b1f8e02f6b65": "Muestra los diffs apilados o en paralelo. El interruptor de la barra del diff también lo cambia.", "538942e48d647860": "Restablecer el diseño del diff al valor predeterminado", + "0935a9c6ec33752b": "Muestra todos los archivos modificados apilados, o uno a la vez elegido en la lista de archivos. El interruptor de la lista de archivos de Cambios también lo cambia.", + "abbe72ce3d9db58b": "Restablecer la vista de cambios al valor predeterminado", + "4b5de70ee1a60f63": "Coloca el árbol de archivos a la izquierda o a la derecha de los paneles Archivos, Cambios y Código de las pull requests.", + "37a8553d69a16e8b": "Restablecer el lado del árbol de archivos al valor predeterminado", "ccf8b1be97e2ad94": "Define si el panel de diff ignora por defecto las ediciones que solo cambian espacios en blanco.", "7fa43ec1cf9714f1": "Restablecer los cambios de espacios en blanco del diff al valor predeterminado", "6272d601c80c5082": "Ocultar los cambios de espacios en blanco por defecto", @@ -11844,6 +11862,8 @@ "28595b22d495356e": "diff ignorar espacios ediciones predeterminado", "b46730711c2d6089": "contraído expandido contraer expandir archivos pull request pr código pestaña", "6a6b1c244a1a0476": "apilado dividido en paralelo unificado en línea vista", + "f2b5355db554ef5d": "diff un archivo archivo único todos los archivos apilado lista enfoque revisión", + "9fab4e8aae7a9e13": "árbol de archivos explorador izquierda derecha lado invertir intercambiar posición acoplar cambios archivos", "7d0ab4cf50686d31": "proactivo abrir automáticamente diff pull request pr panel derecho agente finalización", "5256dd2ed3a24332": "menú de comandos dólar $ barra /", "ade91c8927c48175": "cuadro mensaje compositor texto enriquecido tiptap negrita cursiva markdown con estilo wysiwyg", diff --git a/apps/web/src/i18n/translations/fr.json b/apps/web/src/i18n/translations/fr.json index 72da8bf8e23b2..20ca37a0edb96 100644 --- a/apps/web/src/i18n/translations/fr.json +++ b/apps/web/src/i18n/translations/fr.json @@ -2015,6 +2015,8 @@ "c5819117f6d66158": "Actualisation du diff", "faa2ce347b9e9897": "Actualiser le diff", "fc187ad65dae19cf": "Actualisation du diff…", + "3b4a072ce5d8c0fe": "Fichier précédent", + "c512a46e75757c05": "Fichier suivant", "8bd9944680206ada": "Développer tous les fichiers", "936fda372754abea": "Réduire tous les fichiers", "e7397b76febc73d4": "Disposition du diff", @@ -2030,6 +2032,10 @@ "1d07a6da72e591c6": "{count, plural, one {Afficher {count} fichier de test masqué} other {Afficher {count} fichiers de test masqués}}", "8b851e02f1a7ebb6": "Masquer l’arborescence", "d5ee250c64fee5a7": "Afficher l’arborescence", + "e797245c587e7e29": "Redimensionner les fichiers modifiés", + "99c76aa12c632a36": "Fichiers : {section}", + "e2545556a6fd305d": "Afficher un fichier à la fois", + "849059a11e9baf7a": "Afficher tous les fichiers", "c85318d45246b67e": "Affichage des modifications suivies. Impossible de charger les modifications non suivies. Actualisez pour réessayer.", "cb50cba6ce7b1812": "Affichage des modifications suivies. Vérification des fichiers non suivis...", "d700830cfece6839": "Cet aperçu dépasse la taille limite. Les modifications affichées sont incomplètes. Les totaux incluent toutes les modifications.", @@ -2043,8 +2049,6 @@ "b2c35cd235de63e0": "Chargement des modifications...", "bcbd16c97c6c1215": "Aucune modification nette dans cette sélection.", "7e9cb3ca9f5470ae": "Aucun patch disponible pour cette sélection.", - "e797245c587e7e29": "Redimensionner les fichiers modifiés", - "99c76aa12c632a36": "Fichiers : {section}", "3e9ddb26c2c59bcc": "Modifications", "d293587abc871e7c": "Locales", "8f3906e1adcda127": "Dernier tour", @@ -5471,6 +5475,8 @@ "48d7d2bee4c40a5a": "Échec de la capture d’écran. Réessayez.", "d48deeb7c5f630c2": "Réponse de pliage Android inattendue.", "f32c20d2aab69630": "Échec de la commande de pliage ({status}).", + "d6f8e06c722755d0": "Commentaire inachevé sur {file}", + "350313e3fc4f7730": "Afficher", "c05ae9b20227f416": "Supprimer le commentaire", "e8c281b1a85ac547": "Ajouter un commentaire…", "f2160b630793c7b4": "Commenter les lignes {rangeLabel}", @@ -5480,6 +5486,8 @@ "1601d7e39a52c48f": "Réessayer de charger le diff", "b7b137472adb6989": "Aperçu partiel du diff", "f0d79aa56f06663f": "Ce fichier est trop volumineux pour être affiché en entier. Les totaux incluent toutes les modifications.", + "0bd9d9fd01b95d69": "Afficher en arborescence", + "5b5e8f0b5ffde672": "Afficher en liste", "7fdde2b893ba1b9d": "Supprimé", "e58ce271d835b447": "Ajouté", "07b9970b662ab70d": "Afficher la source Mermaid", @@ -6651,12 +6659,12 @@ "48be78e4550011d3": "Chargement du diff de la {term, select, mr {merge request} cr {demande de modification} other {pull request}}...", "e76a1455903eef18": "Cette {term, select, mr {merge request} cr {demande de modification} other {pull request}} ne modifie aucun fichier.", "50abbcbc41691cb5": "Ce commit ne modifie aucun fichier.", - "89b5010ac2665a5b": "Conversations absentes du diff actuel", - "26dee15a55a75ed7": "Conversations absentes du diff chargé jusqu’ici", - "aa28b0b2139430a6": "{count, plural, one {{count} conversation} other {{count} conversations}}", "362ec9a3df7ab055": "Redimensionner les fichiers du code de la PR", "969ef4a528a76825": "Fichiers de la {term, select, mr {merge request} cr {demande de modification} other {pull request}} #{number}", "3c94e75488454433": "Charger plus de fichiers", + "89b5010ac2665a5b": "Conversations absentes du diff actuel", + "26dee15a55a75ed7": "Conversations absentes du diff chargé jusqu’ici", + "aa28b0b2139430a6": "{count, plural, one {{count} conversation} other {{count} conversations}}", "02bea791e714b231": "Impossible de charger ce diff.", "a2a7c71f984c4eef": "Aucun diff texte pour ce fichier.", "1239149344bb4b2b": "Diff trop volumineux pour être affiché.", @@ -10022,6 +10030,10 @@ "2f42917064c97f09": "24 heures", "dcc08eacff8bd0bc": "Empilé", "62d8f823deedf316": "Côte à côte", + "a7539359624acb25": "Tous les fichiers", + "a8bf151005714f12": "Un fichier", + "0b1d90396febb1e3": "Gauche", + "52e95c2c03ebba44": "Droite", "7e8c995646a967d3": "Immédiat", "51497bd401292062": "Appui long", "9d6cc6ac23312071": "Double appui", @@ -10070,6 +10082,8 @@ "8dc3e3036cfebeaa": "Contexte de la zone de saisie", "95be9d8739887c7f": "État par défaut des fichiers du diff", "04fb467bba7698e2": "Modifications d’espaces dans le diff", + "8e69528599a76d56": "Vue des modifications", + "fcc4af143857deb8": "Côté de l’arborescence", "71d047b3f6ea9497": "Ouvrir proactivement les panneaux des pull requests et des modifications", "4b46043fd3700c17": "Afficher les skills dans le menu slash", "2407d5d61e7f7206": "Zone de saisie en texte enrichi", @@ -10153,6 +10167,10 @@ "8063eba66d3eac2f": "Diffs", "d366b1f8e02f6b65": "Affiche les diffs empilés ou côte à côte. Le bouton de la barre d’outils du diff modifie aussi ce paramètre.", "538942e48d647860": "Réinitialiser la disposition du diff à la valeur par défaut", + "0935a9c6ec33752b": "Affiche tous les fichiers modifiés empilés, ou un seul à la fois choisi dans la liste des fichiers. Le bouton de la liste des fichiers de Modifications modifie aussi ce paramètre.", + "abbe72ce3d9db58b": "Réinitialiser la vue des modifications à la valeur par défaut", + "4b5de70ee1a60f63": "Place l’arborescence à gauche ou à droite des panneaux Fichiers, Modifications et Code des pull requests.", + "37a8553d69a16e8b": "Réinitialiser le côté de l’arborescence à la valeur par défaut", "ccf8b1be97e2ad94": "Définit si le panneau de diff ignore par défaut les modifications qui ne concernent que les espaces.", "7fa43ec1cf9714f1": "Réinitialiser les modifications d’espaces du diff à la valeur par défaut", "6272d601c80c5082": "Masquer les modifications d’espaces par défaut", @@ -11849,6 +11867,8 @@ "28595b22d495356e": "diff ignorer espaces modifications par défaut", "b46730711c2d6089": "réduit développé réduire développer fichiers pull request pr onglet code", "6a6b1c244a1a0476": "empilé scindé côte à côte unifié vue en ligne", + "f2b5355db554ef5d": "diff un fichier fichier unique tous les fichiers empilé liste focus revue", + "9fab4e8aae7a9e13": "arborescence explorateur gauche droite côté inverser échanger position ancrer modifications fichiers", "7d0ab4cf50686d31": "proactif ouvrir automatiquement diff pull request pr panneau de droite agent fin", "5256dd2ed3a24332": "commande menu dollar $ slash /", "ade91c8927c48175": "zone de saisie texte enrichi tiptap gras italique markdown stylé wysiwyg", diff --git a/apps/web/src/i18n/translations/ja.json b/apps/web/src/i18n/translations/ja.json index 28945ae29dca3..12ff6fa94358b 100644 --- a/apps/web/src/i18n/translations/ja.json +++ b/apps/web/src/i18n/translations/ja.json @@ -2013,6 +2013,8 @@ "c5819117f6d66158": "差分を更新中", "faa2ce347b9e9897": "差分を更新", "fc187ad65dae19cf": "差分を更新しています…", + "3b4a072ce5d8c0fe": "前のファイル", + "c512a46e75757c05": "次のファイル", "8bd9944680206ada": "すべてのファイルを展開", "936fda372754abea": "すべてのファイルを折りたたむ", "e7397b76febc73d4": "差分のレイアウト", @@ -2028,6 +2030,10 @@ "1d07a6da72e591c6": "{count, plural, other {非表示のテストファイル {count} 個を表示}}", "8b851e02f1a7ebb6": "ファイルツリーを非表示", "d5ee250c64fee5a7": "ファイルツリーを表示", + "e797245c587e7e29": "変更ファイル一覧のサイズを変更", + "99c76aa12c632a36": "{section} のファイル", + "e2545556a6fd305d": "ファイルを1つずつ表示", + "849059a11e9baf7a": "すべてのファイルを表示", "c85318d45246b67e": "追跡中の変更を表示しています。未追跡の変更を読み込めませんでした。更新して再試行してください。", "cb50cba6ce7b1812": "追跡中の変更を表示しています。未追跡のファイルを確認しています...", "d700830cfece6839": "このプレビューはサイズ上限を超えています。表示されている変更は不完全です。合計にはすべての変更が含まれます。", @@ -2041,8 +2047,6 @@ "b2c35cd235de63e0": "変更を読み込んでいます...", "bcbd16c97c6c1215": "この選択には正味の変更がありません。", "7e9cb3ca9f5470ae": "この選択に使用できるパッチがありません。", - "e797245c587e7e29": "変更ファイル一覧のサイズを変更", - "99c76aa12c632a36": "{section} のファイル", "3e9ddb26c2c59bcc": "変更", "d293587abc871e7c": "未コミット", "8f3906e1adcda127": "最新のターン", @@ -5454,6 +5458,8 @@ "48d7d2bee4c40a5a": "スクリーンショットの撮影に失敗しました。もう一度お試しください。", "d48deeb7c5f630c2": "予期しない Android の折りたたみの応答です。", "f32c20d2aab69630": "折りたたみコマンドに失敗しました ({status})。", + "d6f8e06c722755d0": "{file} に書きかけのコメントがあります", + "350313e3fc4f7730": "表示", "c05ae9b20227f416": "コメントを削除", "e8c281b1a85ac547": "コメントを追加…", "f2160b630793c7b4": "{rangeLabel} 行にコメント", @@ -5463,6 +5469,8 @@ "1601d7e39a52c48f": "差分の読み込みを再試行", "b7b137472adb6989": "差分の部分プレビュー", "f0d79aa56f06663f": "このファイルは大きすぎて全体を表示できません。件数にはすべての変更が含まれます。", + "0bd9d9fd01b95d69": "ツリーで表示", + "5b5e8f0b5ffde672": "リストで表示", "7fdde2b893ba1b9d": "削除", "e58ce271d835b447": "追加", "07b9970b662ab70d": "Mermaid のソースを表示", @@ -6620,12 +6628,12 @@ "48be78e4550011d3": "{term, select, mr {マージリクエストの差分を読み込んでいます...} cr {変更リクエストの差分を読み込んでいます...} other {プルリクエストの差分を読み込んでいます...}}", "e76a1455903eef18": "{term, select, mr {このマージリクエストにはファイルの変更がありません。} cr {この変更リクエストにはファイルの変更がありません。} other {このプルリクエストにはファイルの変更がありません。}}", "50abbcbc41691cb5": "このコミットにはファイルの変更がありません。", - "89b5010ac2665a5b": "現在の差分にない会話", - "26dee15a55a75ed7": "これまでに読み込んだ差分にない会話", - "aa28b0b2139430a6": "{count, plural, other {{count} 件の会話}}", "362ec9a3df7ab055": "PR のコードファイル一覧のサイズを変更", "969ef4a528a76825": "{term, select, mr {マージリクエスト #{number} のファイル} cr {変更リクエスト #{number} のファイル} other {プルリクエスト #{number} のファイル}}", "3c94e75488454433": "さらにファイルを読み込む", + "89b5010ac2665a5b": "現在の差分にない会話", + "26dee15a55a75ed7": "これまでに読み込んだ差分にない会話", + "aa28b0b2139430a6": "{count, plural, other {{count} 件の会話}}", "02bea791e714b231": "この差分を読み込めませんでした。", "a2a7c71f984c4eef": "このファイルにはテキストの差分がありません。", "1239149344bb4b2b": "差分が大きすぎて表示できません。", @@ -9975,6 +9983,10 @@ "2f42917064c97f09": "24 時間制", "dcc08eacff8bd0bc": "縦に並べる", "62d8f823deedf316": "左右に並べる", + "a7539359624acb25": "すべてのファイル", + "a8bf151005714f12": "1ファイル", + "0b1d90396febb1e3": "左", + "52e95c2c03ebba44": "右", "7e8c995646a967d3": "即時", "51497bd401292062": "長押し", "9d6cc6ac23312071": "2 回押し", @@ -10023,6 +10035,8 @@ "8dc3e3036cfebeaa": "入力欄のコンテキスト", "95be9d8739887c7f": "差分ファイルのデフォルト表示", "04fb467bba7698e2": "差分の空白の変更", + "8e69528599a76d56": "変更の表示", + "fcc4af143857deb8": "ファイルツリーの位置", "71d047b3f6ea9497": "プルリクエストと変更のパネルを自動的に開く", "4b46043fd3700c17": "スラッシュメニューにスキルを表示", "2407d5d61e7f7206": "リッチテキスト入力欄", @@ -10106,6 +10120,10 @@ "8063eba66d3eac2f": "差分", "d366b1f8e02f6b65": "差分を縦に並べるか左右に並べるかを選びます。差分ツールバーの切り替えボタンでも変更できます。", "538942e48d647860": "差分のレイアウトをデフォルトにリセット", + "0935a9c6ec33752b": "変更されたすべてのファイルを縦に並べて表示するか、ファイル一覧で選んだファイルを1つずつ表示します。変更のファイル一覧にある切り替えボタンでも変更できます。", + "abbe72ce3d9db58b": "変更の表示をデフォルトにリセット", + "4b5de70ee1a60f63": "ファイル、変更、プルリクエストのコードの各パネルで、ファイルツリーを左右どちらに置くかを選びます。", + "37a8553d69a16e8b": "ファイルツリーの位置をデフォルトにリセット", "ccf8b1be97e2ad94": "差分パネルで空白のみの変更をデフォルトで無視するかどうかを設定します。", "7fa43ec1cf9714f1": "差分の空白の変更をデフォルトにリセット", "6272d601c80c5082": "デフォルトで空白の変更を非表示", @@ -11800,6 +11818,8 @@ "28595b22d495356e": "差分 空白を無視 スペース 編集 デフォルト diff whitespace", "b46730711c2d6089": "折りたたみ 展開 ファイル プルリクエスト PR コード タブ collapsed expanded", "6a6b1c244a1a0476": "縦並び 分割 左右 統合 インライン 表示 stacked split unified", + "f2b5355db554ef5d": "差分 1ファイル 単一ファイル すべてのファイル 縦 一覧 フォーカス レビュー", + "9fab4e8aae7a9e13": "ファイルツリー エクスプローラー 左 右 位置 反転 入れ替え ドック 変更 ファイル", "7d0ab4cf50686d31": "自動 開く 差分 プルリクエスト PR 右パネル エージェント 完了 proactive", "5256dd2ed3a24332": "コマンドメニュー ドル $ スラッシュ / command menu", "ade91c8927c48175": "入力欄 リッチテキスト Tiptap 太字 斜体 Markdown スタイル WYSIWYG rich text", diff --git a/apps/web/src/i18n/translations/ko.json b/apps/web/src/i18n/translations/ko.json index 35f6cc3549436..67aa1c25ca0b3 100644 --- a/apps/web/src/i18n/translations/ko.json +++ b/apps/web/src/i18n/translations/ko.json @@ -2015,6 +2015,8 @@ "c5819117f6d66158": "변경 사항 새로 고치는 중", "faa2ce347b9e9897": "변경 사항 새로 고침", "fc187ad65dae19cf": "변경 사항 새로 고치는 중…", + "3b4a072ce5d8c0fe": "이전 파일", + "c512a46e75757c05": "다음 파일", "8bd9944680206ada": "모든 파일 펼치기", "936fda372754abea": "모든 파일 접기", "e7397b76febc73d4": "변경 사항 레이아웃", @@ -2030,6 +2032,10 @@ "1d07a6da72e591c6": "{count, plural, other {숨겨진 테스트 파일 {count}개 표시}}", "8b851e02f1a7ebb6": "파일 트리 숨기기", "d5ee250c64fee5a7": "파일 트리 표시", + "e797245c587e7e29": "변경 사항 파일 크기 조정", + "99c76aa12c632a36": "{section} 파일", + "e2545556a6fd305d": "한 번에 파일 하나씩 표시", + "849059a11e9baf7a": "모든 파일 표시", "c85318d45246b67e": "추적된 변경 사항을 표시합니다. 추적되지 않은 변경 사항을 불러올 수 없습니다. 새로 고쳐 다시 시도하세요.", "cb50cba6ce7b1812": "추적된 변경 사항을 표시합니다. 추적되지 않은 파일을 확인하는 중...", "d700830cfece6839": "이 미리 보기는 크기 한도를 초과합니다. 표시된 변경 사항은 일부입니다. 합계에는 모든 변경 사항이 포함됩니다.", @@ -2043,8 +2049,6 @@ "b2c35cd235de63e0": "변경 사항을 불러오는 중...", "bcbd16c97c6c1215": "이 선택 항목에는 실제 변경 사항이 없습니다.", "7e9cb3ca9f5470ae": "이 선택 항목에 사용할 수 있는 패치가 없습니다.", - "e797245c587e7e29": "변경 사항 파일 크기 조정", - "99c76aa12c632a36": "{section} 파일", "3e9ddb26c2c59bcc": "변경 사항", "d293587abc871e7c": "커밋되지 않음", "8f3906e1adcda127": "최근 턴", @@ -5451,6 +5455,8 @@ "48d7d2bee4c40a5a": "스크린샷을 캡처하지 못했습니다. 다시 시도하세요.", "d48deeb7c5f630c2": "예기치 않은 Android 접기 응답입니다.", "f32c20d2aab69630": "접기 명령에 실패했습니다({status}).", + "d6f8e06c722755d0": "{file}에 작성 중인 댓글이 있습니다", + "350313e3fc4f7730": "표시", "c05ae9b20227f416": "댓글 삭제", "e8c281b1a85ac547": "댓글 추가…", "f2160b630793c7b4": "{rangeLabel}행에 댓글 달기", @@ -5460,6 +5466,8 @@ "1601d7e39a52c48f": "변경 사항 다시 불러오기", "b7b137472adb6989": "변경 사항 일부 미리 보기", "f0d79aa56f06663f": "이 파일은 너무 커서 전체를 표시할 수 없습니다. 개수에는 모든 변경 사항이 포함됩니다.", + "0bd9d9fd01b95d69": "트리로 보기", + "5b5e8f0b5ffde672": "목록으로 보기", "7fdde2b893ba1b9d": "삭제됨", "e58ce271d835b447": "추가됨", "07b9970b662ab70d": "Mermaid 소스 표시", @@ -6622,12 +6630,12 @@ "48be78e4550011d3": "{term, select, mr {병합 요청} cr {변경 요청} other {풀 리퀘스트}} 변경 사항을 불러오는 중...", "e76a1455903eef18": "이 {term, select, mr {병합 요청에} cr {변경 요청에} other {풀 리퀘스트에}}는 파일 변경 사항이 없습니다.", "50abbcbc41691cb5": "이 커밋에는 파일 변경 사항이 없습니다.", - "89b5010ac2665a5b": "현재 변경 사항에 없는 대화", - "26dee15a55a75ed7": "지금까지 불러온 변경 사항에 없는 대화", - "aa28b0b2139430a6": "{count, plural, other {대화 {count}개}}", "362ec9a3df7ab055": "PR 코드 파일 크기 조정", "969ef4a528a76825": "{term, select, mr {병합 요청} cr {변경 요청} other {풀 리퀘스트}} #{number} 파일", "3c94e75488454433": "파일 더 불러오기", + "89b5010ac2665a5b": "현재 변경 사항에 없는 대화", + "26dee15a55a75ed7": "지금까지 불러온 변경 사항에 없는 대화", + "aa28b0b2139430a6": "{count, plural, other {대화 {count}개}}", "02bea791e714b231": "이 변경 사항을 불러올 수 없습니다.", "a2a7c71f984c4eef": "이 파일에는 텍스트 변경 사항이 없습니다.", "1239149344bb4b2b": "변경 사항이 너무 커서 표시할 수 없습니다.", @@ -9977,6 +9985,10 @@ "2f42917064c97f09": "24시간제", "dcc08eacff8bd0bc": "위아래", "62d8f823deedf316": "좌우 분할", + "a7539359624acb25": "모든 파일", + "a8bf151005714f12": "파일 하나", + "0b1d90396febb1e3": "왼쪽", + "52e95c2c03ebba44": "오른쪽", "7e8c995646a967d3": "바로 종료", "51497bd401292062": "길게 누르기", "9d6cc6ac23312071": "두 번 누르기", @@ -10025,6 +10037,8 @@ "8dc3e3036cfebeaa": "입력창 컨텍스트", "95be9d8739887c7f": "기본 변경 파일 상태", "04fb467bba7698e2": "공백 변경 사항", + "8e69528599a76d56": "변경 사항 보기", + "fcc4af143857deb8": "파일 트리 위치", "71d047b3f6ea9497": "풀 리퀘스트 및 변경 사항 패널 미리 열기", "4b46043fd3700c17": "슬래시 메뉴에 스킬 표시", "2407d5d61e7f7206": "서식 있는 텍스트 입력창", @@ -10108,6 +10122,10 @@ "8063eba66d3eac2f": "변경 사항", "d366b1f8e02f6b65": "변경 사항을 위아래로 또는 나란히 표시합니다. 변경 사항 도구 모음의 토글로도 바꿀 수 있습니다.", "538942e48d647860": "변경 사항 레이아웃 기본값으로 재설정", + "0935a9c6ec33752b": "변경된 모든 파일을 위아래로 표시하거나, 파일 목록에서 고른 파일을 하나씩 표시합니다. 변경 사항 파일 목록의 토글로도 바꿀 수 있습니다.", + "abbe72ce3d9db58b": "변경 사항 보기 기본값으로 재설정", + "4b5de70ee1a60f63": "파일, 변경 사항, 풀 리퀘스트 코드 패널에서 파일 트리를 왼쪽 또는 오른쪽에 둡니다.", + "37a8553d69a16e8b": "파일 트리 위치 기본값으로 재설정", "ccf8b1be97e2ad94": "변경 사항 패널이 기본적으로 공백만 바뀐 편집을 무시할지 설정합니다.", "7fa43ec1cf9714f1": "변경 사항의 공백 변경 기본값으로 재설정", "6272d601c80c5082": "기본적으로 공백 변경 사항 숨기기", @@ -11796,6 +11814,8 @@ "28595b22d495356e": "변경 사항 공백 무시 편집 기본값", "b46730711c2d6089": "접힘 펼침 접기 펼치기 파일 풀 리퀘스트 PR 코드 탭", "6a6b1c244a1a0476": "세로 분할 나란히 통합 인라인 보기", + "f2b5355db554ef5d": "변경 사항 파일 하나 단일 파일 모든 파일 위아래 목록 집중 리뷰", + "9fab4e8aae7a9e13": "파일 트리 탐색기 왼쪽 오른쪽 위치 뒤집기 바꾸기 도킹 변경 사항 파일", "7d0ab4cf50686d31": "자동 열기 변경 사항 풀 리퀘스트 PR 오른쪽 패널 에이전트 완료", "5256dd2ed3a24332": "명령 메뉴 달러 $ 슬래시 /", "ade91c8927c48175": "입력창 서식 있는 텍스트 tiptap 굵게 기울임 마크다운 스타일 wysiwyg", diff --git a/apps/web/src/i18n/translations/pt-BR.json b/apps/web/src/i18n/translations/pt-BR.json index 85fefb672d30c..e27cbc1961fd2 100644 --- a/apps/web/src/i18n/translations/pt-BR.json +++ b/apps/web/src/i18n/translations/pt-BR.json @@ -2015,6 +2015,8 @@ "c5819117f6d66158": "Atualizando o diff", "faa2ce347b9e9897": "Atualizar diff", "fc187ad65dae19cf": "Atualizando o diff…", + "3b4a072ce5d8c0fe": "Arquivo anterior", + "c512a46e75757c05": "Próximo arquivo", "8bd9944680206ada": "Expandir todos os arquivos", "936fda372754abea": "Recolher todos os arquivos", "e7397b76febc73d4": "Layout do diff", @@ -2030,6 +2032,10 @@ "1d07a6da72e591c6": "{count, plural, one {Mostrar {count} arquivo de teste oculto} other {Mostrar {count} arquivos de teste ocultos}}", "8b851e02f1a7ebb6": "Ocultar árvore de arquivos", "d5ee250c64fee5a7": "Mostrar árvore de arquivos", + "e797245c587e7e29": "Redimensionar arquivos de Alterações", + "99c76aa12c632a36": "Arquivos de {section}", + "e2545556a6fd305d": "Mostrar um arquivo por vez", + "849059a11e9baf7a": "Mostrar todos os arquivos", "c85318d45246b67e": "Mostrando alterações rastreadas. Não foi possível carregar as alterações não rastreadas. Atualize para tentar novamente.", "cb50cba6ce7b1812": "Mostrando alterações rastreadas. Verificando arquivos não rastreados...", "d700830cfece6839": "Esta pré-visualização excede o limite de tamanho. As alterações mostradas estão incompletas. Os totais incluem todas as alterações.", @@ -2043,8 +2049,6 @@ "b2c35cd235de63e0": "Carregando alterações...", "bcbd16c97c6c1215": "Nenhuma alteração líquida nesta seleção.", "7e9cb3ca9f5470ae": "Nenhum patch disponível para esta seleção.", - "e797245c587e7e29": "Redimensionar arquivos de Alterações", - "99c76aa12c632a36": "Arquivos de {section}", "3e9ddb26c2c59bcc": "Alterações", "d293587abc871e7c": "Sem commit", "8f3906e1adcda127": "Último turno", @@ -5470,6 +5474,8 @@ "48d7d2bee4c40a5a": "Falha na captura de tela. Tente novamente.", "d48deeb7c5f630c2": "Resposta inesperada da dobra do Android.", "f32c20d2aab69630": "Falha no comando de dobrar ({status}).", + "d6f8e06c722755d0": "Comentário inacabado em {file}", + "350313e3fc4f7730": "Mostrar", "c05ae9b20227f416": "Excluir comentário", "e8c281b1a85ac547": "Adicione um comentário…", "f2160b630793c7b4": "Comentar as linhas {rangeLabel}", @@ -5479,6 +5485,8 @@ "1601d7e39a52c48f": "Tentar carregar o diff novamente", "b7b137472adb6989": "Pré-visualização parcial do diff", "f0d79aa56f06663f": "Este arquivo é grande demais para ser mostrado por inteiro. As contagens incluem todas as alterações.", + "0bd9d9fd01b95d69": "Ver como árvore", + "5b5e8f0b5ffde672": "Ver como lista", "7fdde2b893ba1b9d": "Removido", "e58ce271d835b447": "Adicionado", "07b9970b662ab70d": "Mostrar o código Mermaid", @@ -6650,12 +6658,12 @@ "48be78e4550011d3": "Carregando o diff {term, select, mr {do merge request} cr {da solicitação de alteração} other {do pull request}}...", "e76a1455903eef18": "{term, select, mr {Este merge request} cr {Esta solicitação de alteração} other {Este pull request}} não tem alterações em arquivos.", "50abbcbc41691cb5": "Este commit não tem alterações de arquivos.", - "89b5010ac2665a5b": "Discussões fora do diff atual", - "26dee15a55a75ed7": "Discussões fora do diff carregado até agora", - "aa28b0b2139430a6": "{count, plural, one {{count} discussão} other {{count} discussões}}", "362ec9a3df7ab055": "Redimensionar arquivos de Código do PR", "969ef4a528a76825": "Arquivos {term, select, mr {do merge request} cr {da solicitação de alteração} other {do pull request}} #{number}", "3c94e75488454433": "Carregar mais arquivos", + "89b5010ac2665a5b": "Discussões fora do diff atual", + "26dee15a55a75ed7": "Discussões fora do diff carregado até agora", + "aa28b0b2139430a6": "{count, plural, one {{count} discussão} other {{count} discussões}}", "02bea791e714b231": "Não foi possível carregar este diff.", "a2a7c71f984c4eef": "Sem diff de texto para este arquivo.", "1239149344bb4b2b": "O diff é grande demais para exibir.", @@ -10022,6 +10030,10 @@ "2f42917064c97f09": "24 horas", "dcc08eacff8bd0bc": "Empilhado", "62d8f823deedf316": "Lado a lado", + "a7539359624acb25": "Todos os arquivos", + "a8bf151005714f12": "Um arquivo", + "0b1d90396febb1e3": "Esquerda", + "52e95c2c03ebba44": "Direita", "7e8c995646a967d3": "Imediato", "51497bd401292062": "Manter pressionado", "9d6cc6ac23312071": "Pressionar duas vezes", @@ -10070,6 +10082,8 @@ "8dc3e3036cfebeaa": "Contexto do editor de mensagens", "95be9d8739887c7f": "Estado padrão dos arquivos no diff", "04fb467bba7698e2": "Alterações de espaço em branco no diff", + "8e69528599a76d56": "Visualização de alterações", + "fcc4af143857deb8": "Lado da árvore de arquivos", "71d047b3f6ea9497": "Abrir os painéis de pull requests e alterações proativamente", "4b46043fd3700c17": "Mostrar skills no menu de barra", "2407d5d61e7f7206": "Editor de texto formatado", @@ -10153,6 +10167,10 @@ "8063eba66d3eac2f": "Diffs", "d366b1f8e02f6b65": "Mostra os diffs empilhados ou lado a lado. O botão na barra de ferramentas do diff também muda isso.", "538942e48d647860": "Redefinir o layout do diff para o padrão", + "0935a9c6ec33752b": "Mostra todos os arquivos alterados empilhados, ou um por vez escolhido na lista de arquivos. O botão na lista de arquivos de Alterações também muda isso.", + "abbe72ce3d9db58b": "Redefinir a visualização de alterações para o padrão", + "4b5de70ee1a60f63": "Coloca a árvore de arquivos à esquerda ou à direita dos painéis Arquivos, Alterações e Código de pull requests.", + "37a8553d69a16e8b": "Redefinir o lado da árvore de arquivos para o padrão", "ccf8b1be97e2ad94": "Define se o painel de diff ignora por padrão as edições só de espaço em branco.", "7fa43ec1cf9714f1": "Redefinir as alterações de espaços em branco no diff para o padrão", "6272d601c80c5082": "Ocultar alterações de espaço em branco por padrão", @@ -11849,6 +11867,8 @@ "28595b22d495356e": "diff ignorar espaços edições padrão", "b46730711c2d6089": "recolhido expandido recolher expandir arquivos pull request pr aba código", "6a6b1c244a1a0476": "empilhado dividido lado a lado unificado inline visualização", + "f2b5355db554ef5d": "diff um arquivo arquivo único todos os arquivos empilhado lista foco revisão", + "9fab4e8aae7a9e13": "árvore de arquivos explorador esquerda direita lado inverter trocar posição encaixar alterações arquivos", "7d0ab4cf50686d31": "proativo abrir automaticamente diff pull request pr painel direito agente conclusão", "5256dd2ed3a24332": "menu de comandos cifrão $ barra /", "ade91c8927c48175": "editor de mensagens rich text tiptap negrito itálico markdown estilizado wysiwyg", diff --git a/apps/web/src/i18n/translations/ru.json b/apps/web/src/i18n/translations/ru.json index f4d45a79d0b52..49c714e6bc624 100644 --- a/apps/web/src/i18n/translations/ru.json +++ b/apps/web/src/i18n/translations/ru.json @@ -2015,6 +2015,8 @@ "c5819117f6d66158": "Обновление диффа", "faa2ce347b9e9897": "Обновить дифф", "fc187ad65dae19cf": "Обновление диффа…", + "3b4a072ce5d8c0fe": "Предыдущий файл", + "c512a46e75757c05": "Следующий файл", "8bd9944680206ada": "Развернуть все файлы", "936fda372754abea": "Свернуть все файлы", "e7397b76febc73d4": "Вид диффа", @@ -2030,6 +2032,10 @@ "1d07a6da72e591c6": "{count, plural, one {Показать {count} скрытый тестовый файл} few {Показать {count} скрытых тестовых файла} many {Показать {count} скрытых тестовых файлов} other {Показать {count} скрытого тестового файла}}", "8b851e02f1a7ebb6": "Скрыть дерево файлов", "d5ee250c64fee5a7": "Показать дерево файлов", + "e797245c587e7e29": "Изменить размер списка файлов изменений", + "99c76aa12c632a36": "Файлы: {section}", + "e2545556a6fd305d": "Показывать по одному файлу", + "849059a11e9baf7a": "Показать все файлы", "c85318d45246b67e": "Показаны отслеживаемые изменения. Неотслеживаемые изменения загрузить не удалось. Обновите, чтобы повторить.", "cb50cba6ce7b1812": "Показаны отслеживаемые изменения. Проверка неотслеживаемых файлов...", "d700830cfece6839": "Предпросмотр превышает лимит размера. Изменения показаны не полностью. Итоги учитывают все изменения.", @@ -2043,8 +2049,6 @@ "b2c35cd235de63e0": "Загрузка изменений...", "bcbd16c97c6c1215": "В этом выборе нет итоговых изменений.", "7e9cb3ca9f5470ae": "Для этого выбора нет патча.", - "e797245c587e7e29": "Изменить размер списка файлов изменений", - "99c76aa12c632a36": "Файлы: {section}", "3e9ddb26c2c59bcc": "Изменения", "d293587abc871e7c": "Без коммита", "8f3906e1adcda127": "Последний ход", @@ -5470,6 +5474,8 @@ "48d7d2bee4c40a5a": "Не удалось сделать скриншот. Повторите попытку.", "d48deeb7c5f630c2": "Неожиданный ответ складывания Android.", "f32c20d2aab69630": "Ошибка команды складывания ({status}).", + "d6f8e06c722755d0": "Незаконченный комментарий к {file}", + "350313e3fc4f7730": "Показать", "c05ae9b20227f416": "Удалить комментарий", "e8c281b1a85ac547": "Добавьте комментарий…", "f2160b630793c7b4": "Комментарий к строкам {rangeLabel}", @@ -5479,6 +5485,8 @@ "1601d7e39a52c48f": "Повторить загрузку диффа", "b7b137472adb6989": "Частичный предпросмотр диффа", "f0d79aa56f06663f": "Файл слишком большой, чтобы показать его полностью. Счётчики учитывают все изменения.", + "0bd9d9fd01b95d69": "Показать деревом", + "5b5e8f0b5ffde672": "Показать списком", "7fdde2b893ba1b9d": "Удалено", "e58ce271d835b447": "Добавлено", "07b9970b662ab70d": "Показать исходник Mermaid", @@ -6650,12 +6658,12 @@ "48be78e4550011d3": "{term, select, mr {Загрузка диффа мерж-реквеста...} cr {Загрузка диффа запроса на изменение...} other {Загрузка диффа пул-реквеста...}}", "e76a1455903eef18": "{term, select, mr {В этом мерж-реквесте нет изменений файлов.} cr {В этом запросе на изменение нет изменений файлов.} other {В этом пул-реквесте нет изменений файлов.}}", "50abbcbc41691cb5": "В этом коммите нет изменений файлов.", - "89b5010ac2665a5b": "Обсуждения вне текущего диффа", - "26dee15a55a75ed7": "Обсуждения вне загруженной части диффа", - "aa28b0b2139430a6": "{count, plural, one {{count} обсуждение} few {{count} обсуждения} many {{count} обсуждений} other {{count} обсуждения}}", "362ec9a3df7ab055": "Изменить размер списка файлов PR", "969ef4a528a76825": "{term, select, mr {Файлы мерж-реквеста} cr {Файлы запроса на изменение} other {Файлы пул-реквеста}} #{number}", "3c94e75488454433": "Загрузить ещё файлы", + "89b5010ac2665a5b": "Обсуждения вне текущего диффа", + "26dee15a55a75ed7": "Обсуждения вне загруженной части диффа", + "aa28b0b2139430a6": "{count, plural, one {{count} обсуждение} few {{count} обсуждения} many {{count} обсуждений} other {{count} обсуждения}}", "02bea791e714b231": "Не удалось загрузить этот дифф.", "a2a7c71f984c4eef": "Нет текстового диффа для этого файла.", "1239149344bb4b2b": "Дифф слишком большой для отображения.", @@ -10025,6 +10033,10 @@ "2f42917064c97f09": "24-часовой", "dcc08eacff8bd0bc": "Друг под другом", "62d8f823deedf316": "Бок о бок", + "a7539359624acb25": "Все файлы", + "a8bf151005714f12": "Один файл", + "0b1d90396febb1e3": "Слева", + "52e95c2c03ebba44": "Справа", "7e8c995646a967d3": "Одно нажатие", "51497bd401292062": "Удержание", "9d6cc6ac23312071": "Двойное нажатие", @@ -10073,6 +10085,8 @@ "8dc3e3036cfebeaa": "Контекст поля ввода", "95be9d8739887c7f": "Состояние файлов диффа по умолчанию", "04fb467bba7698e2": "Изменения пробелов в диффе", + "8e69528599a76d56": "Вид изменений", + "fcc4af143857deb8": "Сторона дерева файлов", "71d047b3f6ea9497": "Заранее открывать панели пул-реквестов и изменений", "4b46043fd3700c17": "Показывать навыки в меню /", "2407d5d61e7f7206": "Поле ввода с форматированием", @@ -10156,6 +10170,10 @@ "8063eba66d3eac2f": "Диффы", "d366b1f8e02f6b65": "Показывать диффы друг под другом или бок о бок. Переключатель на панели диффа тоже это меняет.", "538942e48d647860": "Сбросить раскладку диффа к значению по умолчанию", + "0935a9c6ec33752b": "Показывать все изменённые файлы друг под другом или по одному, выбирая файл в списке. Переключатель в списке файлов «Изменений» тоже это меняет.", + "abbe72ce3d9db58b": "Сбросить вид изменений к значению по умолчанию", + "4b5de70ee1a60f63": "Размещать дерево файлов слева или справа на панелях «Файлы», «Изменения» и «Код» пул-реквеста.", + "37a8553d69a16e8b": "Сбросить сторону дерева файлов к значению по умолчанию", "ccf8b1be97e2ad94": "Игнорирует ли панель диффа по умолчанию правки, затрагивающие только пробелы.", "7fa43ec1cf9714f1": "Сбросить изменения пробелов в диффе к значению по умолчанию", "6272d601c80c5082": "Скрывать изменения пробелов по умолчанию", @@ -11850,6 +11868,8 @@ "28595b22d495356e": "дифф игнорировать пробелы правки по умолчанию", "b46730711c2d6089": "свёрнуто развёрнуто свернуть развернуть файлы пул-реквест pr код вкладка", "6a6b1c244a1a0476": "стопкой раздельно рядом единый встроенный вид", + "f2b5355db554ef5d": "дифф один файл отдельный файл все файлы друг под другом список фокус ревью", + "9fab4e8aae7a9e13": "дерево файлов проводник слева справа сторона поменять местами позиция закрепить изменения файлы", "7d0ab4cf50686d31": "заблаговременно автоматически открывать дифф пул-реквест pr правая панель агент завершение", "5256dd2ed3a24332": "меню команд доллар $ слеш /", "ade91c8927c48175": "поле ввода форматирование tiptap жирный курсив markdown стили wysiwyg", diff --git a/apps/web/src/i18n/translations/sv.json b/apps/web/src/i18n/translations/sv.json index 99818c1f2ed37..4d2a3453e5aeb 100644 --- a/apps/web/src/i18n/translations/sv.json +++ b/apps/web/src/i18n/translations/sv.json @@ -2015,6 +2015,8 @@ "c5819117f6d66158": "Uppdaterar diff", "faa2ce347b9e9897": "Uppdatera diff", "fc187ad65dae19cf": "Uppdaterar diff…", + "3b4a072ce5d8c0fe": "Föregående fil", + "c512a46e75757c05": "Nästa fil", "8bd9944680206ada": "Fäll ut alla filer", "936fda372754abea": "Fäll ihop alla filer", "e7397b76febc73d4": "Diff-layout", @@ -2030,6 +2032,10 @@ "1d07a6da72e591c6": "{count, plural, one {Visa {count} dold testfil} other {Visa {count} dolda testfiler}}", "8b851e02f1a7ebb6": "Dölj filträd", "d5ee250c64fee5a7": "Visa filträd", + "e797245c587e7e29": "Ändra storlek på ändrade filer", + "99c76aa12c632a36": "{section}-filer", + "e2545556a6fd305d": "Visa en fil i taget", + "849059a11e9baf7a": "Visa alla filer", "c85318d45246b67e": "Visar spårade ändringar. Ospårade ändringar kunde inte läsas in. Uppdatera för att försöka igen.", "cb50cba6ce7b1812": "Visar spårade ändringar. Kontrollerar ospårade filer...", "d700830cfece6839": "Den här förhandsvisningen överskrider storleksgränsen. Ändringarna som visas är ofullständiga. Summorna inkluderar alla ändringar.", @@ -2043,8 +2049,6 @@ "b2c35cd235de63e0": "Läser in ändringar...", "bcbd16c97c6c1215": "Inga nettoändringar i den här markeringen.", "7e9cb3ca9f5470ae": "Ingen patch tillgänglig för den här markeringen.", - "e797245c587e7e29": "Ändra storlek på ändrade filer", - "99c76aa12c632a36": "{section}-filer", "3e9ddb26c2c59bcc": "Ändringar", "d293587abc871e7c": "Ej committat", "8f3906e1adcda127": "Senaste omgången", @@ -5471,6 +5475,8 @@ "48d7d2bee4c40a5a": "Det gick inte att ta en skärmbild. Försök igen.", "d48deeb7c5f630c2": "Oväntat vikningssvar från Android.", "f32c20d2aab69630": "Vikkommandot misslyckades ({status}).", + "d6f8e06c722755d0": "Oavslutad kommentar på {file}", + "350313e3fc4f7730": "Visa", "c05ae9b20227f416": "Ta bort kommentar", "e8c281b1a85ac547": "Lägg till en kommentar…", "f2160b630793c7b4": "Kommentera raderna {rangeLabel}", @@ -5480,6 +5486,8 @@ "1601d7e39a52c48f": "Försök läsa in diffen igen", "b7b137472adb6989": "Partiell diffförhandsvisning", "f0d79aa56f06663f": "Den här filen är för stor för att visas i sin helhet. Antalen inkluderar alla ändringar.", + "0bd9d9fd01b95d69": "Visa som träd", + "5b5e8f0b5ffde672": "Visa som lista", "7fdde2b893ba1b9d": "Borttagen", "e58ce271d835b447": "Tillagd", "07b9970b662ab70d": "Visa Mermaid-källa", @@ -6656,12 +6664,12 @@ "48be78e4550011d3": "Läser in diff för {term, select, mr {merge request} cr {ändringsbegäran} other {pull request}}...", "e76a1455903eef18": "Den här {term, select, mr {merge requesten} cr {ändringsbegäran} other {pull requesten}} har inga filändringar.", "50abbcbc41691cb5": "Den här commiten har inga filändringar.", - "89b5010ac2665a5b": "Konversationer som inte finns i den aktuella diffen", - "26dee15a55a75ed7": "Konversationer som inte finns i den diff som lästs in hittills", - "aa28b0b2139430a6": "{count, plural, one {{count} konversation} other {{count} konversationer}}", "362ec9a3df7ab055": "Ändra storlek på PR-kodfiler", "969ef4a528a76825": "Filer i {term, select, mr {merge request} cr {ändringsbegäran} other {pull request}} #{number}", "3c94e75488454433": "Läs in fler filer", + "89b5010ac2665a5b": "Konversationer som inte finns i den aktuella diffen", + "26dee15a55a75ed7": "Konversationer som inte finns i den diff som lästs in hittills", + "aa28b0b2139430a6": "{count, plural, one {{count} konversation} other {{count} konversationer}}", "02bea791e714b231": "Kunde inte läsa in den här diffen.", "a2a7c71f984c4eef": "Ingen textdiff för den här filen.", "1239149344bb4b2b": "Diffen är för stor för att visas.", @@ -10030,6 +10038,10 @@ "2f42917064c97f09": "24 timmar", "dcc08eacff8bd0bc": "Staplad", "62d8f823deedf316": "Delad", + "a7539359624acb25": "Alla filer", + "a8bf151005714f12": "En fil", + "0b1d90396febb1e3": "Vänster", + "52e95c2c03ebba44": "Höger", "7e8c995646a967d3": "Direkt", "51497bd401292062": "Håll ned", "9d6cc6ac23312071": "Dubbeltryck", @@ -10078,6 +10090,8 @@ "8dc3e3036cfebeaa": "Kontext i inmatningsfältet", "95be9d8739887c7f": "Standardläge för filer i diffar", "04fb467bba7698e2": "Blankstegsändringar i diffar", + "8e69528599a76d56": "Ändringsvy", + "fcc4af143857deb8": "Filträdets sida", "71d047b3f6ea9497": "Öppna panelerna för pull requests och ändringar proaktivt", "4b46043fd3700c17": "Visa färdigheter i snedstrecksmenyn", "2407d5d61e7f7206": "Inmatningsfält med formaterad text", @@ -10161,6 +10175,10 @@ "8063eba66d3eac2f": "Diffar", "d366b1f8e02f6b65": "Visa diffar staplade eller sida vid sida. Växlingsknappen i diff-verktygsfältet ändrar också detta.", "538942e48d647860": "Återställ diff-layout till standard", + "0935a9c6ec33752b": "Visa alla ändrade filer staplade, eller en fil i taget som väljs i fillistan. Växlingsknappen i fillistan för Ändringar ändrar också detta.", + "abbe72ce3d9db58b": "Återställ ändringsvy till standard", + "4b5de70ee1a60f63": "Placera filträdet till vänster eller höger i panelerna Filer, Ändringar och Kod för pull requests.", + "37a8553d69a16e8b": "Återställ filträdets sida till standard", "ccf8b1be97e2ad94": "Ange om diff-panelen ignorerar ändringar som bara rör blanksteg som standard.", "7fa43ec1cf9714f1": "Återställ blankstegsändringar i diff till standard", "6272d601c80c5082": "Dölj blankstegsändringar som standard", @@ -11857,6 +11875,8 @@ "28595b22d495356e": "diff ignorera blanksteg ändringar standard", "b46730711c2d6089": "ihopfälld expanderad fäll ihop expandera filer pull request pr kodflik", "6a6b1c244a1a0476": "staplad delad sida vid sida enhetlig inline vy", + "f2b5355db554ef5d": "diff en fil enskild fil alla filer staplad lista fokus granskning", + "9fab4e8aae7a9e13": "filträd utforskare vänster höger sida vänd byt position docka ändringar filer", "7d0ab4cf50686d31": "proaktiv öppna automatiskt diff pull request pr högerpanel agent slutförd", "5256dd2ed3a24332": "kommandomeny dollar $ snedstreck /", "ade91c8927c48175": "inmatningsfält formaterad text tiptap fet kursiv markdown formaterad wysiwyg", diff --git a/apps/web/src/i18n/translations/zh.json b/apps/web/src/i18n/translations/zh.json index 09d04201cd2f8..2a06662d2fde6 100644 --- a/apps/web/src/i18n/translations/zh.json +++ b/apps/web/src/i18n/translations/zh.json @@ -2017,6 +2017,8 @@ "c5819117f6d66158": "正在刷新差异", "faa2ce347b9e9897": "刷新差异", "fc187ad65dae19cf": "正在刷新差异…", + "3b4a072ce5d8c0fe": "上一个文件", + "c512a46e75757c05": "下一个文件", "8bd9944680206ada": "展开所有文件", "936fda372754abea": "折叠所有文件", "e7397b76febc73d4": "差异布局", @@ -2032,6 +2034,10 @@ "1d07a6da72e591c6": "{count, plural, other {显示 {count} 个隐藏的测试文件}}", "8b851e02f1a7ebb6": "隐藏文件树", "d5ee250c64fee5a7": "显示文件树", + "e797245c587e7e29": "调整“改动”文件区的宽度", + "99c76aa12c632a36": "{section} 文件", + "e2545556a6fd305d": "一次显示一个文件", + "849059a11e9baf7a": "显示所有文件", "c85318d45246b67e": "正在显示已跟踪的改动。无法加载未跟踪的改动。刷新以重试。", "cb50cba6ce7b1812": "正在显示已跟踪的改动。正在检查未跟踪的文件…", "d700830cfece6839": "此预览超出大小限制。显示的更改不完整。总计包含所有更改。", @@ -2045,8 +2051,6 @@ "b2c35cd235de63e0": "正在加载改动…", "bcbd16c97c6c1215": "此选择没有净改动。", "7e9cb3ca9f5470ae": "此选择没有可用的补丁。", - "e797245c587e7e29": "调整“改动”文件区的宽度", - "99c76aa12c632a36": "{section} 文件", "3e9ddb26c2c59bcc": "改动", "d293587abc871e7c": "未提交的更改", "8f3906e1adcda127": "最近一轮", @@ -5477,6 +5481,8 @@ "48d7d2bee4c40a5a": "截屏失败,请重试。", "d48deeb7c5f630c2": "意外的 Android 折叠响应。", "f32c20d2aab69630": "折叠命令失败({status})。", + "d6f8e06c722755d0": "{file} 上有未完成的评论", + "350313e3fc4f7730": "显示", "c05ae9b20227f416": "删除评论", "e8c281b1a85ac547": "添加评论…", "f2160b630793c7b4": "评论第 {rangeLabel} 行", @@ -5486,6 +5492,8 @@ "1601d7e39a52c48f": "重试加载差异", "b7b137472adb6989": "部分差异预览", "f0d79aa56f06663f": "此文件过大,无法完整显示。统计包含全部改动。", + "0bd9d9fd01b95d69": "以树状显示", + "5b5e8f0b5ffde672": "以列表显示", "7fdde2b893ba1b9d": "已删除", "e58ce271d835b447": "已添加", "07b9970b662ab70d": "显示 Mermaid 源码", @@ -6662,12 +6670,12 @@ "48be78e4550011d3": "正在加载 {term, select, mr {merge request} cr {change request} other {pull request}} 差异...", "e76a1455903eef18": "此 {term, select, mr {merge request} cr {change request} other {pull request}} 没有文件更改。", "50abbcbc41691cb5": "此提交没有文件改动。", - "89b5010ac2665a5b": "不在当前差异中的对话", - "26dee15a55a75ed7": "不在已加载差异中的对话", - "aa28b0b2139430a6": "{count, plural, other {{count} 个对话}}", "362ec9a3df7ab055": "调整 PR 代码文件区大小", "969ef4a528a76825": "{term, select, mr {MR} cr {change request} other {PR}} #{number} 的文件", "3c94e75488454433": "加载更多文件", + "89b5010ac2665a5b": "不在当前差异中的对话", + "26dee15a55a75ed7": "不在已加载差异中的对话", + "aa28b0b2139430a6": "{count, plural, other {{count} 个对话}}", "02bea791e714b231": "无法加载此差异。", "a2a7c71f984c4eef": "此文件没有文本差异。", "1239149344bb4b2b": "差异过大,无法显示。", @@ -10038,6 +10046,10 @@ "2f42917064c97f09": "24 小时制", "dcc08eacff8bd0bc": "堆叠", "62d8f823deedf316": "并排", + "a7539359624acb25": "所有文件", + "a8bf151005714f12": "单个文件", + "0b1d90396febb1e3": "左侧", + "52e95c2c03ebba44": "右侧", "7e8c995646a967d3": "直接退出", "51497bd401292062": "长按", "9d6cc6ac23312071": "连按两次", @@ -10086,6 +10098,8 @@ "8dc3e3036cfebeaa": "输入框上下文", "95be9d8739887c7f": "差异文件默认状态", "04fb467bba7698e2": "差异空白字符改动", + "8e69528599a76d56": "改动视图", + "fcc4af143857deb8": "文件树位置", "71d047b3f6ea9497": "自动打开 PR 与改动面板", "4b46043fd3700c17": "在斜杠菜单中显示技能", "2407d5d61e7f7206": "富文本输入框", @@ -10169,6 +10183,10 @@ "8063eba66d3eac2f": "差异", "d366b1f8e02f6b65": "以上下堆叠或左右并排方式显示差异。差异工具栏中的切换按钮也会修改此设置。", "538942e48d647860": "重置差异布局为默认值", + "0935a9c6ec33752b": "以堆叠方式显示所有改动的文件,或一次只显示在文件列表中选中的一个文件。改动文件列表中的切换按钮也会修改此设置。", + "abbe72ce3d9db58b": "重置改动视图为默认值", + "4b5de70ee1a60f63": "将文件树放在文件、改动和拉取请求代码面板的左侧或右侧。", + "37a8553d69a16e8b": "重置文件树位置为默认值", "ccf8b1be97e2ad94": "设置差异面板是否默认忽略仅涉及空白字符的改动。", "7fa43ec1cf9714f1": "重置差异空白更改为默认值", "6272d601c80c5082": "默认隐藏空白字符改动", @@ -11874,6 +11892,8 @@ "28595b22d495356e": "差异 忽略 空格 编辑 默认", "b46730711c2d6089": "折叠 展开 收起 文件 PR pr 代码 标签页", "6a6b1c244a1a0476": "堆叠 拆分 并排 统一 内联 视图", + "f2b5355db554ef5d": "差异 单个文件 一个文件 所有文件 堆叠 列表 聚焦 审查", + "9fab4e8aae7a9e13": "文件树 资源管理器 左 右 位置 翻转 交换 停靠 改动 文件", "7d0ab4cf50686d31": "主动 自动打开 差异 PR pr 右侧面板 智能体 完成", "5256dd2ed3a24332": "命令 菜单 美元 $ 斜杠 /", "ade91c8927c48175": "输入框 富文本 tiptap 粗体 斜体 markdown 样式 所见即所得", diff --git a/packages/client-runtime/src/diffFileOrder.ts b/packages/client-runtime/src/diffFileOrder.ts index 0fbe3c057eaff..b3159f0babfe0 100644 --- a/packages/client-runtime/src/diffFileOrder.ts +++ b/packages/client-runtime/src/diffFileOrder.ts @@ -211,7 +211,11 @@ export function diffFileTreePositions(paths: ReadonlyArray): ReadonlyMap return positions; } -function orderLikeTree(files: ReadonlyArray, pathOf: (file: F) => string): ReadonlyArray { +/** Files in the order a tree built from `diffFileTreePositions` lists them. */ +export function orderDiffFilesLikeTree( + files: ReadonlyArray, + pathOf: (file: F) => string, +): ReadonlyArray { const paths = files.map(pathOf); const positions = diffFileTreePositions(paths); const keys = paths.map((path) => { @@ -246,5 +250,5 @@ export function orderDiffFilesForReview( files: ReadonlyArray, pathOf: (file: F) => string, ): ReadonlyArray { - return orderLikeTree(orderByImportsAndTier(files, pathOf), pathOf); + return orderDiffFilesLikeTree(orderByImportsAndTier(files, pathOf), pathOf); } diff --git a/packages/contracts/src/settings.ts b/packages/contracts/src/settings.ts index 4538065ee5c50..5b7a520c7f515 100644 --- a/packages/contracts/src/settings.ts +++ b/packages/contracts/src/settings.ts @@ -72,6 +72,14 @@ export const DiffLayout = Schema.Literals(["stacked", "split"]); export type DiffLayout = typeof DiffLayout.Type; const DEFAULT_DIFF_LAYOUT: DiffLayout = "stacked"; +export const DiffFileView = Schema.Literals(["all", "single"]); +export type DiffFileView = typeof DiffFileView.Type; +const DEFAULT_DIFF_FILE_VIEW: DiffFileView = "all"; + +export const FileTreeSide = Schema.Literals(["left", "right"]); +export type FileTreeSide = typeof FileTreeSide.Type; +const DEFAULT_FILE_TREE_SIDE: FileTreeSide = "right"; + export const SidebarProjectSortOrder = Schema.Literals(["updated_at", "created_at", "manual"]); export type SidebarProjectSortOrder = typeof SidebarProjectSortOrder.Type; export const DEFAULT_SIDEBAR_PROJECT_SORT_ORDER: SidebarProjectSortOrder = "updated_at"; @@ -482,6 +490,12 @@ export const ClientSettingsSchema = Schema.Struct({ diffFilesCollapsed: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(true))), diffIgnoreWhitespace: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(true))), diffLayout: DiffLayout.pipe(Schema.withDecodingDefault(Effect.succeed(DEFAULT_DIFF_LAYOUT))), + diffFileView: DiffFileView.pipe( + Schema.withDecodingDefault(Effect.succeed(DEFAULT_DIFF_FILE_VIEW)), + ), + fileTreeSide: FileTreeSide.pipe( + Schema.withDecodingDefault(Effect.succeed(DEFAULT_FILE_TREE_SIDE)), + ), environmentIdentificationMode: EnvironmentIdentificationMode.pipe( Schema.withDecodingDefault(Effect.succeed(DEFAULT_ENVIRONMENT_IDENTIFICATION_MODE)), ), @@ -2097,6 +2111,8 @@ export const ClientSettingsPatch = Schema.Struct({ diffFilesCollapsed: Schema.optionalKey(Schema.Boolean), diffIgnoreWhitespace: Schema.optionalKey(Schema.Boolean), diffLayout: Schema.optionalKey(DiffLayout), + diffFileView: Schema.optionalKey(DiffFileView), + fileTreeSide: Schema.optionalKey(FileTreeSide), environmentIdentificationMode: Schema.optionalKey(EnvironmentIdentificationMode), glassOpacity: Schema.optionalKey(GlassOpacity), onboardingCompletedAt: Schema.optionalKey(Schema.NullOr(Schema.String)), From f15adb0477d338adf6cfdae08b13b4849fee9da2 Mon Sep 17 00:00:00 2001 From: pouyarezvani Date: Sun, 22 Nov 2026 21:18:18 -0800 Subject: [PATCH 2/2] refactor(web): follow the web UI conventions in the file list changes Layout classes move to wrappers around the settings selects and the hidden-draft Show button, the file-pick handler passed to children is stable, and the hidden-draft test asserts through expect.element. Co-Authored-By: Claude Opus 5.5 --- apps/web/src/components/DiffPanel.tsx | 5 +- .../AnnotatableCodeView.browser.test.tsx | 8 +- .../components/diffs/AnnotatableCodeView.tsx | 19 ++-- .../components/settings/SettingsPanels.tsx | 88 ++++++++++--------- 4 files changed, 65 insertions(+), 55 deletions(-) diff --git a/apps/web/src/components/DiffPanel.tsx b/apps/web/src/components/DiffPanel.tsx index a87299c641547..25954384012a1 100644 --- a/apps/web/src/components/DiffPanel.tsx +++ b/apps/web/src/components/DiffPanel.tsx @@ -902,6 +902,7 @@ export default function DiffPanel({ if (!routeThreadRef) return; useDiffPanelStore.getState().focusFile(routeThreadRef, { scope: focusScope, path: filePath }); }; + const onSelectTreeFile = useStableCallback(selectTreeFile); // A file another view asked to reveal (a chat diff link): retried as the diff loads until it // holds the file, then not again until a new request, so it does not undo what the user did since. @@ -1704,7 +1705,7 @@ export default function DiffPanel({ entries={fileTreeEntries} selectedPath={treeSelectedPath} revealRequestId={selectedFileRevealRequestId} - onSelectFile={selectTreeFile} + onSelectFile={onSelectTreeFile} headerAccessory={ { await click("Comment on first.ts"); await typeComment("Unfinished thought"); await screen.rerender(view([second], "second", [], hidden, show)); - expect(container.querySelector("textarea")).toBeNull(); - expect(container.textContent).toContain("Unfinished comment on first.ts"); + await expect.element(screen.getByRole("textbox")).not.toBeInTheDocument(); + await expect.element(screen.getByText("Unfinished comment on first.ts")).toBeVisible(); await click("Show"); expect(shown).toEqual(["first.ts"]); await screen.rerender(view([first], "first", [], hidden, show)); - expect(container.textContent).not.toContain("Unfinished comment on"); - expect(editor().value).toBe("Unfinished thought"); + await expect.element(screen.getByText(/Unfinished comment on/)).not.toBeInTheDocument(); + await expect.element(screen.getByRole("textbox")).toHaveValue("Unfinished thought"); }); }); diff --git a/apps/web/src/components/diffs/AnnotatableCodeView.tsx b/apps/web/src/components/diffs/AnnotatableCodeView.tsx index 524de7048d806..ceaeaf8cc6dbe 100644 --- a/apps/web/src/components/diffs/AnnotatableCodeView.tsx +++ b/apps/web/src/components/diffs/AnnotatableCodeView.tsx @@ -291,15 +291,16 @@ export function AnnotatableCodeView({ {gt("Unfinished comment on {file}", { file: basenameOfPath(hiddenDraftPath) })} - +
+ +
), } diff --git a/apps/web/src/components/settings/SettingsPanels.tsx b/apps/web/src/components/settings/SettingsPanels.tsx index 3c7a277669cdb..6021176179348 100644 --- a/apps/web/src/components/settings/SettingsPanels.tsx +++ b/apps/web/src/components/settings/SettingsPanels.tsx @@ -1763,26 +1763,30 @@ export function DiffsSettingsPanel() { ) : null } control={ - +
+ +
} /> { - if (value === "left" || value === "right") { - updateSettings({ fileTreeSide: value }); - } - }} - > - - {messages(FILE_TREE_SIDE_LABELS[settings.fileTreeSide])} - - - - {messages(FILE_TREE_SIDE_LABELS.left)} - - - {messages(FILE_TREE_SIDE_LABELS.right)} - - - +
+ +
} />