Skip to content

Commit ff931ec

Browse files
Merge pull request #7367 from continuedev/dallin/diff-UI
feat: diff UI for find and replace tools
2 parents c3ad86f + 56b7195 commit ff931ec

File tree

14 files changed

+762
-35
lines changed

14 files changed

+762
-35
lines changed

gui/package-lock.json

Lines changed: 19 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gui/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@
3636
"@tiptap/react": "^2.1.13",
3737
"@tiptap/starter-kit": "^2.1.13",
3838
"@tiptap/suggestion": "^2.1.13",
39+
"@types/diff": "^7.0.2",
3940
"@types/uuid": "^10.0.0",
4041
"anser": "^2.3.2",
4142
"clsx": "^2.1.1",
4243
"core": "file:../core",
44+
"diff": "^8.0.2",
4345
"dompurify": "^3.0.6",
4446
"downshift": "^7.6.0",
4547
"escape-carriage": "^1.3.1",

gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/ApplyActions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface ApplyActionsProps {
1111
applyState?: ApplyState;
1212
onClickAccept: () => void;
1313
onClickReject: () => void;
14-
onClickApply: () => void;
14+
onClickApply?: () => void;
1515
}
1616

1717
export function ApplyActions(props: ApplyActionsProps) {

gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/FileInfo.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { getLastNPathParts } from "core/util/uri";
2+
import { MouseEventHandler } from "react";
23
import FileIcon from "../../FileIcon";
34
import { ToolTip } from "../../gui/Tooltip";
45

56
export interface FileInfoProps {
67
filepath: string;
7-
onClick?: () => void;
8+
onClick?: MouseEventHandler<HTMLDivElement>;
89
range?: string;
910
}
1011

gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function StepContainerPreToolbar({
9696
toolCallState?.status === "errored" ||
9797
toolCallState?.status === "done") ? (
9898
<div
99-
className={`mr-1 h-4 w-4 ${toolCallState.output ? "cursor-pointer" : ""}`}
99+
className={`mr-1 h-4 w-4 flex-shrink-0 ${toolCallState.output ? "cursor-pointer" : ""}`}
100100
onClick={() => {
101101
if (toolCallState.output) {
102102
ideMessenger.post("showVirtualFile", {

0 commit comments

Comments
 (0)