Skip to content

Commit

Permalink
[Freestyler] Fix "help" icon's title to be "help"
Browse files Browse the repository at this point in the history
Fixed: 367767786
Change-Id: I7aad216e14eda216970525b3c6ea43019c2ce632
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5872495
Auto-Submit: Ergün Erdoğmuş <[email protected]>
Commit-Queue: Ergün Erdoğmuş <[email protected]>
Commit-Queue: Nikolay Vitkov <[email protected]>
Reviewed-by: Nikolay Vitkov <[email protected]>
  • Loading branch information
ergunsh authored and Devtools-frontend LUCI CQ committed Sep 19, 2024
1 parent 4e00098 commit c59526e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions front_end/panels/freestyler/FreestylerPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ const UIStringsTemp = {
*/
clearMessages: 'Clear messages',
/**
*@description AI assistant UI text for sending feedback.
*@description AI assistant UI tooltip text for the help button.
*/
sendFeedback: 'Send feedback',
help: 'Help',
};

// TODO(nvitkov): b/346933425
Expand All @@ -66,8 +66,7 @@ function createToolbar(target: HTMLElement, {onClearClick}: {onClearClick: () =>
leftToolbar.appendToolbarItem(clearButton);

rightToolbar.appendSeparator();
const helpButton =
new UI.Toolbar.ToolbarButton(i18nString(UIStringsTemp.sendFeedback), 'help', undefined, 'freestyler.feedback');
const helpButton = new UI.Toolbar.ToolbarButton(i18nString(UIStringsTemp.help), 'help', undefined, 'freestyler.help');
helpButton.addEventListener(UI.Toolbar.ToolbarButton.Events.CLICK, () => {
Host.InspectorFrontendHost.InspectorFrontendHostInstance.openInNewTab(DOGFOOD_INFO);
});
Expand Down
2 changes: 1 addition & 1 deletion front_end/ui/visual_logging/KnownContextValues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ export const knownContextValues = new Set([
'freestyler.clear',
'freestyler.dogfood-info',
'freestyler.element-panel-context',
'freestyler.feedback',
'freestyler.help',
'freestyler.new-chat',
'freestyler.style-tab-context',
'full-accessibility',
Expand Down

0 comments on commit c59526e

Please sign in to comment.