Skip to content

Commit d6ccf58

Browse files
authored
feat(types): extended chatMessage to support enhanced ux (#699)
## Problem Render modified files per prompt separately into a new component with undo button per file and undoall buttons. ## Solution Since, the chatMessage already sends modified files and buttons etc. extending the same chatMessage so the new mynah-ui component can also get the chatMessage when these new fields are set. <!--- REMINDER: - Read CONTRIBUTING.md first. - Add test coverage for your changes. - Link to related issues/commits. - Testing: how did you test your changes? - Screenshots if applicable --> ## License By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 1e6bcab commit d6ccf58

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

types/chat.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ export interface ChatMessage {
203203
selected?: boolean | undefined
204204
}[]
205205
}
206+
modifiedFilesTracker?: {
207+
title?: string
208+
removeFile?: boolean
209+
}
206210
}
207211

208212
/**

0 commit comments

Comments
 (0)