Extract the header from ConsoleInsights as a new Widget [devtools/devtools-frontend : main]

0 views
Skip to first unread message

Alex Rudenko (Gerrit)

unread,
Nov 3, 2025, 6:37:37 AM (4 days ago) Nov 3
to Piotr Paulski, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Piotr Paulski

Alex Rudenko added 1 comment

File front_end/panels/explain/components/ConsoleInsightHeader.ts
Line 68, Patchset 5 (Latest):export class ConsoleInsightHeader extends UI.Widget.Widget {
Alex Rudenko . unresolved

this presenter does not integrate with any models and has very little logic. I think this should be a view. Is there a reason to extract it?

Open in Gerrit

Related details

Attention is currently required from:
  • Piotr Paulski
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: I6299e0895089b64bfd3d90f485e2d7edff962bf3
Gerrit-Change-Number: 7106268
Gerrit-PatchSet: 5
Gerrit-Owner: Piotr Paulski <piotrp...@chromium.org>
Gerrit-Reviewer: Piotr Paulski <piotrp...@chromium.org>
Gerrit-CC: Alex Rudenko <alexr...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Piotr Paulski <piotrp...@chromium.org>
Gerrit-Comment-Date: Mon, 03 Nov 2025 11:37:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Piotr Paulski (Gerrit)

unread,
Nov 3, 2025, 7:02:01 AM (4 days ago) Nov 3
to Alex Rudenko, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Alex Rudenko

Piotr Paulski added 1 comment

File front_end/panels/explain/components/ConsoleInsightHeader.ts
Line 68, Patchset 5 (Latest):export class ConsoleInsightHeader extends UI.Widget.Widget {
Alex Rudenko . unresolved

this presenter does not integrate with any models and has very little logic. I think this should be a view. Is there a reason to extract it?

Piotr Paulski

Only temporarily. When I rewrite all parts of ConsoleInsight to widgets, I will replace this and similar smaller components back to functions in the large view.

Open in Gerrit

Related details

Attention is currently required from:
  • Alex Rudenko
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: I6299e0895089b64bfd3d90f485e2d7edff962bf3
Gerrit-Change-Number: 7106268
Gerrit-PatchSet: 5
Gerrit-Owner: Piotr Paulski <piotrp...@chromium.org>
Gerrit-Reviewer: Piotr Paulski <piotrp...@chromium.org>
Gerrit-CC: Alex Rudenko <alexr...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Alex Rudenko <alexr...@chromium.org>
Gerrit-Comment-Date: Mon, 03 Nov 2025 12:01:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Alex Rudenko <alexr...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Alex Rudenko (Gerrit)

unread,
Nov 3, 2025, 7:37:13 AM (4 days ago) Nov 3
to Piotr Paulski, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Piotr Paulski

Alex Rudenko added 1 comment

File front_end/panels/explain/components/ConsoleInsightHeader.ts
Line 68, Patchset 5:export class ConsoleInsightHeader extends UI.Widget.Widget {
Alex Rudenko . unresolved

this presenter does not integrate with any models and has very little logic. I think this should be a view. Is there a reason to extract it?

Piotr Paulski

Only temporarily. When I rewrite all parts of ConsoleInsight to widgets, I will replace this and similar smaller components back to functions in the large view.

Alex Rudenko

This sounds like extra steps with limited benefits. Could we just turn the ConsoleInsight into a widget directly?

Open in Gerrit

Related details

Attention is currently required from:
  • Piotr Paulski
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: I6299e0895089b64bfd3d90f485e2d7edff962bf3
Gerrit-Change-Number: 7106268
Gerrit-PatchSet: 7
Gerrit-Owner: Piotr Paulski <piotrp...@chromium.org>
Gerrit-Reviewer: Piotr Paulski <piotrp...@chromium.org>
Gerrit-CC: Alex Rudenko <alexr...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Piotr Paulski <piotrp...@chromium.org>
Gerrit-Comment-Date: Mon, 03 Nov 2025 12:37:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Piotr Paulski <piotrp...@chromium.org>
Comment-In-Reply-To: Alex Rudenko <alexr...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Piotr Paulski (Gerrit)

unread,
Nov 3, 2025, 7:46:54 AM (4 days ago) Nov 3
to Alex Rudenko, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Alex Rudenko

Piotr Paulski added 1 comment

File front_end/panels/explain/components/ConsoleInsightHeader.ts
Line 68, Patchset 5:export class ConsoleInsightHeader extends UI.Widget.Widget {
Alex Rudenko . unresolved

this presenter does not integrate with any models and has very little logic. I think this should be a view. Is there a reason to extract it?

Piotr Paulski

Only temporarily. When I rewrite all parts of ConsoleInsight to widgets, I will replace this and similar smaller components back to functions in the large view.

Alex Rudenko

This sounds like extra steps with limited benefits. Could we just turn the ConsoleInsight into a widget directly?

Piotr Paulski

There are a lot of additional fixes needed to convert all the animations to not use imperative DOM manipulations and a few race conditions that show up after conversion to widget due to change from sync to async rendering. I felt I need to split it into several steps to make sure it is reviewable.
This first one actually solves couple of issues with component initialization order (by moving `#render` from the constructor) and unblocks this step-by-step rewrite. I updated CL description to point that out.

Open in Gerrit

Related details

Attention is currently required from:
  • Alex Rudenko
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: I6299e0895089b64bfd3d90f485e2d7edff962bf3
Gerrit-Change-Number: 7106268
Gerrit-PatchSet: 7
Gerrit-Owner: Piotr Paulski <piotrp...@chromium.org>
Gerrit-Reviewer: Piotr Paulski <piotrp...@chromium.org>
Gerrit-CC: Alex Rudenko <alexr...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Alex Rudenko <alexr...@chromium.org>
Gerrit-Comment-Date: Mon, 03 Nov 2025 12:46:50 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Alex Rudenko (Gerrit)

unread,
Nov 4, 2025, 2:04:49 AM (3 days ago) Nov 4
to Piotr Paulski, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Piotr Paulski

Alex Rudenko added 1 comment

File front_end/panels/explain/components/ConsoleInsightHeader.ts
Line 68, Patchset 5:export class ConsoleInsightHeader extends UI.Widget.Widget {
Alex Rudenko . unresolved

this presenter does not integrate with any models and has very little logic. I think this should be a view. Is there a reason to extract it?

Piotr Paulski

Only temporarily. When I rewrite all parts of ConsoleInsight to widgets, I will replace this and similar smaller components back to functions in the large view.

Alex Rudenko

This sounds like extra steps with limited benefits. Could we just turn the ConsoleInsight into a widget directly?

Piotr Paulski

There are a lot of additional fixes needed to convert all the animations to not use imperative DOM manipulations and a few race conditions that show up after conversion to widget due to change from sync to async rendering. I felt I need to split it into several steps to make sure it is reviewable.
This first one actually solves couple of issues with component initialization order (by moving `#render` from the constructor) and unblocks this step-by-step rewrite. I updated CL description to point that out.

Alex Rudenko

I am not sure it justifies the presenter. Why cannot it be a helper function producing a lit-html template? The presenter only adds unnecessary property passing and widget instantiations in my opinion.

Open in Gerrit

Related details

Attention is currently required from:
  • Piotr Paulski
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: I6299e0895089b64bfd3d90f485e2d7edff962bf3
Gerrit-Change-Number: 7106268
Gerrit-PatchSet: 8
Gerrit-Owner: Piotr Paulski <piotrp...@chromium.org>
Gerrit-Reviewer: Piotr Paulski <piotrp...@chromium.org>
Gerrit-CC: Alex Rudenko <alexr...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Piotr Paulski <piotrp...@chromium.org>
Gerrit-Comment-Date: Tue, 04 Nov 2025 07:04:45 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Alex Rudenko (Gerrit)

unread,
Nov 4, 2025, 2:14:42 AM (3 days ago) Nov 4
to Piotr Paulski, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Piotr Paulski

Alex Rudenko added 1 comment

File front_end/panels/explain/components/ConsoleInsightHeader.ts
Line 68, Patchset 5:export class ConsoleInsightHeader extends UI.Widget.Widget {
Alex Rudenko . unresolved

this presenter does not integrate with any models and has very little logic. I think this should be a view. Is there a reason to extract it?

Piotr Paulski

Only temporarily. When I rewrite all parts of ConsoleInsight to widgets, I will replace this and similar smaller components back to functions in the large view.

Alex Rudenko

This sounds like extra steps with limited benefits. Could we just turn the ConsoleInsight into a widget directly?

Piotr Paulski

There are a lot of additional fixes needed to convert all the animations to not use imperative DOM manipulations and a few race conditions that show up after conversion to widget due to change from sync to async rendering. I felt I need to split it into several steps to make sure it is reviewable.
This first one actually solves couple of issues with component initialization order (by moving `#render` from the constructor) and unblocks this step-by-step rewrite. I updated CL description to point that out.

Alex Rudenko

I am not sure it justifies the presenter. Why cannot it be a helper function producing a lit-html template? The presenter only adds unnecessary property passing and widget instantiations in my opinion.

Alex Rudenko

Let me know if it's ready for review, I can do a full review.

Open in Gerrit

Related details

Attention is currently required from:
  • Piotr Paulski
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: I6299e0895089b64bfd3d90f485e2d7edff962bf3
Gerrit-Change-Number: 7106268
Gerrit-PatchSet: 8
Gerrit-Owner: Piotr Paulski <piotrp...@chromium.org>
Gerrit-Reviewer: Piotr Paulski <piotrp...@chromium.org>
Gerrit-CC: Alex Rudenko <alexr...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Piotr Paulski <piotrp...@chromium.org>
Gerrit-Comment-Date: Tue, 04 Nov 2025 07:14:38 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Piotr Paulski (Gerrit)

unread,
Nov 4, 2025, 4:26:43 AM (3 days ago) Nov 4
to Alex Rudenko, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Alex Rudenko

Piotr Paulski added 1 comment

File front_end/panels/explain/components/ConsoleInsightHeader.ts
Line 68, Patchset 5:export class ConsoleInsightHeader extends UI.Widget.Widget {
Alex Rudenko . unresolved

this presenter does not integrate with any models and has very little logic. I think this should be a view. Is there a reason to extract it?

Piotr Paulski

Only temporarily. When I rewrite all parts of ConsoleInsight to widgets, I will replace this and similar smaller components back to functions in the large view.

Alex Rudenko

This sounds like extra steps with limited benefits. Could we just turn the ConsoleInsight into a widget directly?

Piotr Paulski

There are a lot of additional fixes needed to convert all the animations to not use imperative DOM manipulations and a few race conditions that show up after conversion to widget due to change from sync to async rendering. I felt I need to split it into several steps to make sure it is reviewable.
This first one actually solves couple of issues with component initialization order (by moving `#render` from the constructor) and unblocks this step-by-step rewrite. I updated CL description to point that out.

Alex Rudenko

I am not sure it justifies the presenter. Why cannot it be a helper function producing a lit-html template? The presenter only adds unnecessary property passing and widget instantiations in my opinion.

Alex Rudenko

Let me know if it's ready for review, I can do a full review.

Piotr Paulski

I came to the same conclusion overnight - I don't need the widget to convert part of the existing `#render` method to a function outside of the component. Just pass the inputs as parameter instead of relying on having access to `this.#something`. I'll let you know when I convert this CL.

Open in Gerrit

Related details

Attention is currently required from:
  • Alex Rudenko
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: I6299e0895089b64bfd3d90f485e2d7edff962bf3
Gerrit-Change-Number: 7106268
Gerrit-PatchSet: 8
Gerrit-Owner: Piotr Paulski <piotrp...@chromium.org>
Gerrit-Reviewer: Piotr Paulski <piotrp...@chromium.org>
Gerrit-CC: Alex Rudenko <alexr...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Alex Rudenko <alexr...@chromium.org>
Gerrit-Comment-Date: Tue, 04 Nov 2025 09:26:38 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages