Skip to content

Commit

Permalink
feat(chat): add possibility to duplicate own chats and prompts (Issue e…
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Kezik authored Mar 29, 2024
1 parent d7fbdf4 commit 4063487
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/chat-e2e/src/testData/expectedConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export enum MenuOptions {
rename = 'Rename',
edit = 'Edit',
compare = 'Compare',
duplicate = 'Duplicate',
replay = 'Replay',
playback = 'Playback',
export = 'Export',
Expand Down
2 changes: 2 additions & 0 deletions apps/chat-e2e/src/tests/chatBarConversation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ dialTest(
.toEqual([
MenuOptions.rename,
MenuOptions.compare,
MenuOptions.duplicate,
MenuOptions.moveTo,
MenuOptions.delete,
]);
Expand Down Expand Up @@ -331,6 +332,7 @@ dialTest(
.toEqual([
MenuOptions.rename,
MenuOptions.compare,
MenuOptions.duplicate,
MenuOptions.replay,
MenuOptions.playback,
MenuOptions.export,
Expand Down
1 change: 1 addition & 0 deletions apps/chat-e2e/src/tests/prompts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ dialTest(
.soft(menuOptions, ExpectedMessages.contextMenuOptionsValid)
.toEqual([
MenuOptions.edit,
MenuOptions.duplicate,
MenuOptions.export,
MenuOptions.moveTo,
MenuOptions.share,
Expand Down
2 changes: 1 addition & 1 deletion apps/chat/src/components/Common/ItemContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default function ItemContextMenu({
},
{
name: t('Duplicate'),
display: !!onDuplicate && isExternal,
display: !!onDuplicate,
dataQa: 'duplicate',
Icon: IconCopy,
onClick: onDuplicate,
Expand Down

0 comments on commit 4063487

Please sign in to comment.