Skip to content

Commit 61a8b2d

Browse files
bmeurerDevtools-frontend LUCI CQ
authored andcommitted
[cleanup] Consistently use 'Open in Foo panel'.
Instead of the longer 'Reveal in Foo panel', just use 'Open in Foo panel', which also aligns well with the wording that is otherwise used (e.g. 'Open in new tab'). Bug: 372873222 Change-Id: Icbd93f5c6bbe8ea011179cbcedb8c306536ed781 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5979752 Auto-Submit: Benedikt Meurer <[email protected]> Reviewed-by: Peter Müller <[email protected]> Commit-Queue: Benedikt Meurer <[email protected]>
1 parent 22ff0d8 commit 61a8b2d

File tree

13 files changed

+33
-32
lines changed

13 files changed

+33
-32
lines changed

extensions/cxx_debugging/e2e/standalone/MemoryInspector_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('LinearMemoryInspector', () => {
4545
assert.equal(stoppedText, 'Paused on breakpoint');
4646

4747
const localVariable = await waitFor('[data-object-property-name-for-test="d"]');
48-
const memIcon = await waitFor('[title="Reveal in Memory inspector panel"]', localVariable);
48+
const memIcon = await waitFor('[title="Open in Memory inspector panel"]', localVariable);
4949
await clickElement(memIcon);
5050

5151
const byteHighlights = await waitForMany('.byte-cell.highlight-area', 8);

front_end/panels/application/OpenedWindowDetailsView.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const UIStrings = {
2323
/**
2424
*@description Title for a link to the Elements panel
2525
*/
26-
clickToRevealInElementsPanel: 'Click to reveal in Elements panel',
26+
clickToOpenInElementsPanel: 'Click to open in Elements panel',
2727
/**
2828
*@description Name of a network resource type
2929
*/
@@ -120,8 +120,7 @@ async function maybeCreateLinkToElementsPanel(opener: Protocol.Page.FrameId|SDK.
120120
return null;
121121
}
122122
const linkElement = linkifyIcon(
123-
'code-circle', i18nString(UIStrings.clickToRevealInElementsPanel),
124-
() => Common.Revealer.reveal(linkTargetDOMNode));
123+
'code-circle', i18nString(UIStrings.clickToOpenInElementsPanel), () => Common.Revealer.reveal(linkTargetDOMNode));
125124
const label = document.createElement('span');
126125
label.textContent = `<${linkTargetDOMNode.nodeName().toLocaleLowerCase()}>`;
127126
linkElement.insertBefore(label, linkElement.firstChild);

front_end/panels/application/components/FrameDetailsView.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,19 @@ const UIStrings = {
6161
/**
6262
*@description Title for a link to the Sources panel
6363
*/
64-
clickToRevealInSourcesPanel: 'Click to reveal in Sources panel',
64+
clickToOpenInSourcesPanel: 'Click to open in Sources panel',
6565
/**
6666
*@description Title for a link to the Network panel
6767
*/
68-
clickToRevealInNetworkPanel: 'Click to reveal in Network panel',
68+
clickToOpenInNetworkPanel: 'Click to open in Network panel',
6969
/**
7070
*@description Title for unreachable URL field
7171
*/
7272
unreachableUrl: 'Unreachable URL',
7373
/**
7474
*@description Title for a link that applies a filter to the network panel
7575
*/
76-
clickToRevealInNetworkPanelMight: 'Click to reveal in Network panel (might require page reload)',
76+
clickToOpenInNetworkPanelMight: 'Click to open in Network panel (might require page reload)',
7777
/**
7878
*@description The origin of a URL (https://web.dev/same-site-same-origin/#origin)
7979
*(for a lot of languages this does not need to be translated, please translate only where necessary)
@@ -87,7 +87,7 @@ const UIStrings = {
8787
/**
8888
*@description Title for a link to the Elements panel
8989
*/
90-
clickToRevealInElementsPanel: 'Click to reveal in Elements panel',
90+
clickToOpenInElementsPanel: 'Click to open in Elements panel',
9191
/**
9292
*@description Title for ad frame type field
9393
*/
@@ -391,7 +391,7 @@ export class FrameDetailsReportView extends LegacyWrapper.LegacyWrapper.Wrappabl
391391
const sourceCode = this.#uiSourceCodeForFrame(this.#frame);
392392
return renderIconLink(
393393
'breakpoint-circle',
394-
i18nString(UIStrings.clickToRevealInSourcesPanel),
394+
i18nString(UIStrings.clickToOpenInSourcesPanel),
395395
() => Common.Revealer.reveal(sourceCode),
396396
'reveal-in-sources',
397397
);
@@ -402,7 +402,7 @@ export class FrameDetailsReportView extends LegacyWrapper.LegacyWrapper.Wrappabl
402402
const resource = this.#frame.resourceForURL(this.#frame.url);
403403
if (resource && resource.request) {
404404
const request = resource.request;
405-
return renderIconLink('arrow-up-down-circle', i18nString(UIStrings.clickToRevealInNetworkPanel), () => {
405+
return renderIconLink('arrow-up-down-circle', i18nString(UIStrings.clickToOpenInNetworkPanel), () => {
406406
const requestLocation = NetworkForward.UIRequestLocation.UIRequestLocation.tab(
407407
request, NetworkForward.UIRequestLocation.UIRequestTabs.HEADERS_COMPONENT);
408408
return Common.Revealer.reveal(requestLocation);
@@ -446,7 +446,7 @@ export class FrameDetailsReportView extends LegacyWrapper.LegacyWrapper.Wrappabl
446446
if (unreachableUrl) {
447447
return renderIconLink(
448448
'arrow-up-down-circle',
449-
i18nString(UIStrings.clickToRevealInNetworkPanelMight),
449+
i18nString(UIStrings.clickToOpenInNetworkPanelMight),
450450
():
451451
void => {
452452
void Common.Revealer.reveal(NetworkForward.UIFilter.UIRequestFilter.filters([
@@ -489,7 +489,7 @@ export class FrameDetailsReportView extends LegacyWrapper.LegacyWrapper.Wrappabl
489489
<devtools-report-key>${i18nString(UIStrings.ownerElement)}</devtools-report-key>
490490
<devtools-report-value class="without-min-width">
491491
<div class="inline-items">
492-
<button class="link text-link" role="link" tabindex=0 title=${i18nString(UIStrings.clickToRevealInElementsPanel)}
492+
<button class="link text-link" role="link" tabindex=0 title=${i18nString(UIStrings.clickToOpenInElementsPanel)}
493493
@mouseenter=${() => this.#frame?.highlight()}
494494
@mouseleave=${() => SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight()}
495495
@click=${() => Common.Revealer.reveal(linkTargetDOMNode)}

front_end/panels/application/preloading/components/RuleSetGrid.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ const UIStrings = {
3636
/**
3737
*@description button: Title of button to reveal the corresponding request of rule set in Elements panel
3838
*/
39-
buttonClickToRevealInElementsPanel: 'Click to reveal in Elements panel',
39+
clickToOpenInElementsPanel: 'Click to open in Elements panel',
4040
/**
4141
*@description button: Title of button to reveal the corresponding request of rule set in Network panel
4242
*/
43-
buttonClickToRevealInNetworkPanel: 'Click to reveal in Network panel',
43+
clickToOpenInNetworkPanel: 'Click to open in Network panel',
4444
/**
4545
*@description Value of status, specifying rule set contains how many errors.
4646
*/
@@ -170,7 +170,7 @@ function ruleSetRenderer(
170170
return html`
171171
<button class="link" role="link"
172172
@click=${revealSpeculationRulesInElements}
173-
title=${i18nString(UIStrings.buttonClickToRevealInElementsPanel)}
173+
title=${i18nString(UIStrings.clickToOpenInElementsPanel)}
174174
style=${LitHtml.Directives.styleMap({
175175
border: 'none',
176176
background: 'none',
@@ -197,7 +197,7 @@ function ruleSetRenderer(
197197
${location}
198198
</button>
199199
`;
200-
// clang-format on
200+
// clang-format on
201201
}
202202

203203
function ruleSetRendererOutOfDocument(ruleSet: Protocol.Preload.RuleSet, location: string): LitHtml.TemplateResult {
@@ -225,7 +225,7 @@ function ruleSetRenderer(
225225
return html`
226226
<button class="link" role="link"
227227
@click=${revealSpeculationRulesInNetwork}
228-
title=${i18nString(UIStrings.buttonClickToRevealInNetworkPanel)}
228+
title=${i18nString(UIStrings.clickToOpenInNetworkPanel)}
229229
style=${LitHtml.Directives.styleMap({
230230
border: 'none',
231231
background: 'none',
@@ -251,7 +251,7 @@ function ruleSetRenderer(
251251
${location}
252252
</button>
253253
`;
254-
// clang-format on
254+
// clang-format on
255255
}
256256

257257
const location = PreloadingString.ruleSetLocationShort(ruleSet, pageURL);

front_end/panels/elements/ElementsPanel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const UIStrings = {
110110
/**
111111
* @description A context menu item to reveal a node in the DOM tree of the Elements Panel
112112
*/
113-
revealInElementsPanel: 'Reveal in Elements panel',
113+
openInElementsPanel: 'Open in Elements panel',
114114
/**
115115
* @description Warning/error text displayed when a node cannot be found in the current page.
116116
*/
@@ -1293,7 +1293,7 @@ export class ContextMenuProvider implements
12931293
return;
12941294
}
12951295
contextMenu.revealSection().appendItem(
1296-
i18nString(UIStrings.revealInElementsPanel), () => Common.Revealer.reveal(object),
1296+
i18nString(UIStrings.openInElementsPanel), () => Common.Revealer.reveal(object),
12971297
{jslogContext: 'elements.reveal-node'});
12981298
}
12991299
}

front_end/panels/elements/StylePropertyTreeElement.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const UIStrings = {
9696
/**
9797
*@description Context menu item for style property in edit mode
9898
*/
99-
revealInSourcesPanel: 'Reveal in Sources panel',
99+
openInSourcesPanel: 'Open in Sources panel',
100100
/**
101101
*@description A context menu item in Styles panel to copy CSS declaration
102102
*/
@@ -1961,7 +1961,7 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
19611961
}
19621962
const revealCallback = this.navigateToSource.bind(this) as () => void;
19631963
contextMenu.defaultSection().appendItem(
1964-
i18nString(UIStrings.revealInSourcesPanel), revealCallback, {jslogContext: 'reveal-in-sources-panel'});
1964+
i18nString(UIStrings.openInSourcesPanel), revealCallback, {jslogContext: 'reveal-in-sources-panel'});
19651965
void contextMenu.show();
19661966
}
19671967

front_end/panels/event_listeners/EventListenersView.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const UIStrings = {
3737
/**
3838
*@description A context menu item to reveal a node in the DOM tree of the Elements Panel
3939
*/
40-
revealInElementsPanel: 'Reveal in Elements panel',
40+
openInElementsPanel: 'Open in Elements panel',
4141
/**
4242
*@description Text in Event Listeners Widget of the Elements panel
4343
*/
@@ -340,7 +340,7 @@ export class ObjectEventListenerBar extends UI.TreeOutline.TreeElement {
340340
}
341341
if (object.subtype === 'node') {
342342
menu.defaultSection().appendItem(
343-
i18nString(UIStrings.revealInElementsPanel), () => Common.Revealer.reveal(object),
343+
i18nString(UIStrings.openInElementsPanel), () => Common.Revealer.reveal(object),
344344
{jslogContext: 'reveal-in-elements'});
345345
}
346346
menu.defaultSection().appendItem(

front_end/panels/linear_memory_inspector/LinearMemoryInspectorController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const UIStrings = {
2020
/**
2121
*@description A context menu item in the Scope View of the Sources Panel
2222
*/
23-
revealInMemoryInspectorPanel: 'Reveal in Memory inspector panel',
23+
openInMemoryInspectorPanel: 'Open in Memory inspector panel',
2424
};
2525
const str_ =
2626
i18n.i18n.registerUIStrings('panels/linear_memory_inspector/LinearMemoryInspectorController.ts', UIStrings);
@@ -329,7 +329,7 @@ export class LinearMemoryInspectorController extends SDK.TargetManager.SDKModelO
329329
const expression = target.path();
330330
const object = target.property.value;
331331
contextMenu.debugSection().appendItem(
332-
i18nString(UIStrings.revealInMemoryInspectorPanel),
332+
i18nString(UIStrings.openInMemoryInspectorPanel),
333333
this.reveal.bind(this, new SDK.RemoteObject.LinearMemoryInspectable(object, expression)),
334334
{jslogContext: 'reveal-in-memory-inspector'});
335335
}

front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ const UIStrings = {
127127
* which are based on bytes and can be shown in a hexadecimal viewer.
128128
* Clicking on the button will display that object in the Memory inspector panel.
129129
*/
130-
revealInMemoryInpector: 'Reveal in Memory inspector panel',
130+
openInMemoryInpector: 'Open in Memory inspector panel',
131131
};
132132
const str_ = i18n.i18n.registerUIStrings('ui/legacy/components/object_ui/ObjectPropertiesSection.ts', UIStrings);
133133
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -391,7 +391,7 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
391391
});
392392
memoryIcon.setAttribute('jslog', `${VisualLogging.action('open-memory-inspector').track({click: true})}`);
393393

394-
const revealText = i18nString(UIStrings.revealInMemoryInpector);
394+
const revealText = i18nString(UIStrings.openInMemoryInpector);
395395
UI.Tooltip.Tooltip.install(memoryIcon, revealText);
396396
UI.ARIAUtils.setLabel(memoryIcon, revealText);
397397

test/e2e/console/console-log_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ describe('The Console Tab', () => {
439439
});
440440

441441
describe('for memory objects', () => {
442-
const MEMORY_ICON_SELECTOR = '[aria-label="Reveal in Memory inspector panel"]';
442+
const MEMORY_ICON_SELECTOR = '[aria-label="Open in Memory inspector panel"]';
443443

444444
it('shows one memory icon to open memory inspector for ArrayBuffers (description)', async () => {
445445
const {frontend} = getBrowserAndPages();

0 commit comments

Comments
 (0)