Skip to content

Commit 374d104

Browse files
Lightning00BladeDevtools-frontend LUCI CQ
authored andcommitted
[AI Assistance] Update label to reflect local deletion
Bug: none Change-Id: Ied7e5e932fe128d9bf2b1545f9834dc6c6b1db7c Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6049223 Reviewed-by: Ergün Erdoğmuş <[email protected]> Commit-Queue: Nikolay Vitkov <[email protected]>
1 parent ce3a991 commit 374d104

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

front_end/panels/freestyler/FreestylerPanel.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ describeWithEnvironment('FreestylerPanel', () => {
784784
},
785785
]);
786786
const toolbar = panel.contentElement.querySelector('.freestyler-left-toolbar');
787-
const button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'Delete chat\']');
787+
const button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'Delete local chat\']');
788788
assert.instanceOf(button, HTMLElement);
789789
dispatchClickEvent(button);
790790
assert.deepEqual(mockView.lastCall.args[0].messages, []);
@@ -822,7 +822,7 @@ describeWithEnvironment('FreestylerPanel', () => {
822822
},
823823
]);
824824
const toolbar = panel.contentElement.querySelector('.freestyler-left-toolbar');
825-
const button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'Delete chat\']');
825+
const button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'Delete local chat\']');
826826
assert.instanceOf(button, HTMLElement);
827827
dispatchClickEvent(button);
828828
assert.deepEqual(mockView.lastCall.args[0].messages, []);
@@ -876,7 +876,7 @@ describeWithEnvironment('FreestylerPanel', () => {
876876
let contextMenu = getMenu(() => {
877877
dispatchClickEvent(button!);
878878
});
879-
const clearAll = findMenuItemWithLabel(contextMenu.footerSection(), 'Clear chat history')!;
879+
const clearAll = findMenuItemWithLabel(contextMenu.footerSection(), 'Clear local chats')!;
880880
assert.isDefined(clearAll);
881881
contextMenu.invokeHandler(clearAll.id());
882882
await drainMicroTasks();

front_end/panels/freestyler/FreestylerPanel.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ const UIStrings = {
8484
*/
8585
history: 'History',
8686
/**
87-
*@description AI assistance UI text deleting the current chat session.
87+
*@description AI assistance UI text deleting the current chat session from local history.
8888
*/
89-
deleteChat: 'Delete chat',
89+
deleteChat: 'Delete local chat',
9090
/**
91-
*@description AI assistance UI text that deletes all history entries.
91+
*@description AI assistance UI text that deletes all local history entries.
9292
*/
93-
clearChatHistory: 'Clear chat history',
93+
clearChatHistory: 'Clear local chats',
9494
/**
9595
*@description AI assistance UI text explains that he user had no pas conversations.
9696
*/

0 commit comments

Comments
 (0)