Skip to content

Commit 24e9d2c

Browse files
committed
Remove the dedicated UI warning panel for files that were replaced
1 parent ce642be commit 24e9d2c

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎packages/ui/src/components/editor/Changes/Changes.tsx‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export const Changes: FC<Props> = ({
5353
}
5454

5555
const fallback_count = files.filter((f) => f.is_fallback).length
56-
const replaced_files_count = files.filter((f) => f.is_replaced).length
5756

5857
const sorted_files = useMemo(() => {
5958
const get_sort_score = (
@@ -86,15 +85,6 @@ export const Changes: FC<Props> = ({
8685
the Intelligent Update API tool.
8786
</div>
8887
)}
89-
{replaced_files_count > 0 && (
90-
<div className={styles.info}>
91-
{`${replaced_files_count > 1 ? 'All files have' : 'The file has'}`}{' '}
92-
been replaced. This may cause inaccuracies if the response had
93-
unmarked truncations. Looks off? Click{' '}
94-
<span className="codicon codicon-sparkle" /> action to fix a file with
95-
the Intelligent Update API tool.
96-
</div>
97-
)}
9888
<div className={styles.list}>
9989
{sorted_files.map((file, index) => {
10090
const last_slash_index = file.file_path.lastIndexOf('/')

0 commit comments

Comments
 (0)