Update lint rule for imperative icon creation [devtools/devtools-frontend : main]

0 views
Skip to first unread message

Danil Somsikov (Gerrit)

unread,
Nov 28, 2025, 9:26:24 AMĀ (3 days ago)Ā Nov 28
to AyeAye, Kim-Anh Tran, devtools-rev...@chromium.org
Attention needed from Kim-Anh Tran

Danil Somsikov voted

Auto-Submit+1
Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Kim-Anh Tran
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: I6e42c200af4c19b630ab9482b4efee387cffe2fa
Gerrit-Change-Number: 7205974
Gerrit-PatchSet: 1
Gerrit-Owner: Danil Somsikov <d...@chromium.org>
Gerrit-Reviewer: Danil Somsikov <d...@chromium.org>
Gerrit-Reviewer: Kim-Anh Tran <kim...@chromium.org>
Gerrit-Attention: Kim-Anh Tran <kim...@chromium.org>
Gerrit-Comment-Date: Fri, 28 Nov 2025 14:26:19 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Kim-Anh Tran (Gerrit)

unread,
12:36 AMĀ (10 hours ago)Ā 12:36 AM
to Danil Somsikov, Devtools-frontend LUCI CQ, AyeAye, devtools-rev...@chromium.org
Attention needed from Danil Somsikov

Kim-Anh Tran voted and added 1 comment

Votes added by Kim-Anh Tran

Code-Review+1
Commit-Queue+2

1 comment

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Kim-Anh Tran . resolved

LGTM, thanks a lot, Danil!

Open in Gerrit

Related details

Attention is currently required from:
  • Danil Somsikov
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: I6e42c200af4c19b630ab9482b4efee387cffe2fa
Gerrit-Change-Number: 7205974
Gerrit-PatchSet: 4
Gerrit-Owner: Danil Somsikov <d...@chromium.org>
Gerrit-Reviewer: Danil Somsikov <d...@chromium.org>
Gerrit-Reviewer: Kim-Anh Tran <kim...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Danil Somsikov <d...@chromium.org>
Gerrit-Comment-Date: Mon, 01 Dec 2025 05:36:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Danil Somsikov (Gerrit)

unread,
1:43 AMĀ (9 hours ago)Ā 1:43 AM
to Kim-Anh Tran, Devtools-frontend LUCI CQ, AyeAye, devtools-rev...@chromium.org
Attention needed from Kim-Anh Tran

Danil Somsikov voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention is currently required from:
  • Kim-Anh Tran
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: I6e42c200af4c19b630ab9482b4efee387cffe2fa
Gerrit-Change-Number: 7205974
Gerrit-PatchSet: 4
Gerrit-Owner: Danil Somsikov <d...@chromium.org>
Gerrit-Reviewer: Danil Somsikov <d...@chromium.org>
Gerrit-Reviewer: Kim-Anh Tran <kim...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Kim-Anh Tran <kim...@chromium.org>
Gerrit-Comment-Date: Mon, 01 Dec 2025 06:42:59 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Kim-Anh Tran (Gerrit)

unread,
2:46 AMĀ (8 hours ago)Ā 2:46 AM
to Danil Somsikov, Devtools-frontend LUCI CQ, AyeAye, devtools-rev...@chromium.org
Attention needed from Danil Somsikov

Kim-Anh Tran voted

Code-Review+1
Commit-Queue+2
Open in Gerrit

Related details

Attention is currently required from:
  • Danil Somsikov
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: I6e42c200af4c19b630ab9482b4efee387cffe2fa
Gerrit-Change-Number: 7205974
Gerrit-PatchSet: 5
Gerrit-Owner: Danil Somsikov <d...@chromium.org>
Gerrit-Reviewer: Danil Somsikov <d...@chromium.org>
Gerrit-Reviewer: Kim-Anh Tran <kim...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Danil Somsikov <d...@chromium.org>
Gerrit-Comment-Date: Mon, 01 Dec 2025 07:46:35 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Danil Somsikov (Gerrit)

unread,
2:56 AMĀ (8 hours ago)Ā 2:56 AM
to Kim-Anh Tran, Devtools-frontend LUCI CQ, AyeAye, devtools-rev...@chromium.org
Attention needed from Kim-Anh Tran

Danil Somsikov voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention is currently required from:
  • Kim-Anh Tran
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: I6e42c200af4c19b630ab9482b4efee387cffe2fa
Gerrit-Change-Number: 7205974
Gerrit-PatchSet: 6
Gerrit-Owner: Danil Somsikov <d...@chromium.org>
Gerrit-Reviewer: Danil Somsikov <d...@chromium.org>
Gerrit-Reviewer: Kim-Anh Tran <kim...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Kim-Anh Tran <kim...@chromium.org>
Gerrit-Comment-Date: Mon, 01 Dec 2025 07:55:57 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Devtools-frontend LUCI CQ (Gerrit)

unread,
3:44 AMĀ (7 hours ago)Ā 3:44 AM
to Danil Somsikov, Kim-Anh Tran, AyeAye, devtools-rev...@chromium.org

Devtools-frontend LUCI CQ submitted the change with unreviewed changes

Unreviewed changes

5 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:

```
The name of the file: front_end/panels/sources/TabbedEditorContainer.ts
Insertions: 8, Deletions: 6.

@@ -527,9 +527,10 @@
}

private addLoadErrorIcon(tabId: string): void {
- const icon = html`
- <devtools-icon class="small" name="cross-circle-filled"
- title=${i18nString(UIStrings.unableToLoadThisContent)}></devtools-icon>`;
+ const icon = new Icon();
+ icon.name = 'cross-circle-filled';
+ icon.classList.add('small');
+ UI.Tooltip.Tooltip.install(icon, i18nString(UIStrings.unableToLoadThisContent));
if (this.tabbedPane.tabView(tabId)) {
this.tabbedPane.setTrailingTabIcon(tabId, icon);
}
@@ -605,9 +606,10 @@
const tooltip = this.tooltipForFile(uiSourceCode);
this.tabbedPane.changeTabTitle(tabId, title, tooltip);
if (uiSourceCode.loadError()) {
- const icon = html`
- <devtools-icon class="small" name="cross-circle-filled"
- title=${i18nString(UIStrings.unableToLoadThisContent)}></devtools-icon>`;
+ const icon = new Icon();
+ icon.name = 'cross-circle-filled';
+ icon.classList.add('small');
+ UI.Tooltip.Tooltip.install(icon, i18nString(UIStrings.unableToLoadThisContent));
this.tabbedPane.setTrailingTabIcon(tabId, icon);
} else if (Persistence.Persistence.PersistenceImpl.instance().hasUnsavedCommittedChanges(uiSourceCode)) {
/* eslint-disable @devtools/no-imperative-dom-api --
```

Change information

Commit message:
Update lint rule for imperative icon creation

- updated the identifiers after ui kit migration
- moved the icon-related out of button.ts as icons are no longer related to the button component
- added support for UIUtils.createIconLabel
Bug: 464124289
Change-Id: I6e42c200af4c19b630ab9482b4efee387cffe2fa
Commit-Queue: Danil Somsikov <d...@chromium.org>
Auto-Submit: Danil Somsikov <d...@chromium.org>
Reviewed-by: Kim-Anh Tran <kim...@chromium.org>
Files:
  • M front_end/panels/common/PersistenceUtils.ts
  • M front_end/panels/sources/TabbedEditorContainer.ts
  • M scripts/eslint_rules/lib/no-imperative-dom-api.ts
  • M scripts/eslint_rules/lib/no-imperative-dom-api/button.ts
  • M scripts/eslint_rules/lib/no-imperative-dom-api/dom-fragment.ts
  • A scripts/eslint_rules/lib/no-imperative-dom-api/icon.ts
  • M scripts/eslint_rules/lib/no-imperative-dom-api/ui-utils.ts
  • M scripts/eslint_rules/tests/no-imperative-dom-api.test.ts
Change size: M
Delta: 8 files changed, 163 insertions(+), 40 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Kim-Anh Tran
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: I6e42c200af4c19b630ab9482b4efee387cffe2fa
Gerrit-Change-Number: 7205974
Gerrit-PatchSet: 7
Gerrit-Owner: Danil Somsikov <d...@chromium.org>
Gerrit-Reviewer: Danil Somsikov <d...@chromium.org>
Gerrit-Reviewer: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages