AI: improve the walkthrough UI [devtools/devtools-frontend : main]

0 views
Skip to first unread message

Jack Franklin (Gerrit)

unread,
Mar 23, 2026, 12:29:19 PMĀ (20 hours ago)Ā Mar 23
to Kateryna Prokopenko, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Kateryna Prokopenko

Jack Franklin added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Jack Franklin . resolved

PTAL.

I don't love that a lot of these styles exist in two places (inline CTA and sidebar CTA) but that would require a chunky refactor + styling work to make it possible to have one button in two places that I don't see another solution just now.

Open in Gerrit

Related details

Attention is currently required from:
  • Kateryna Prokopenko
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: Ida6a6c42b5949e1688577b5edd821d16defd5c65
Gerrit-Change-Number: 7691251
Gerrit-PatchSet: 1
Gerrit-Owner: Jack Franklin <jacktf...@chromium.org>
Gerrit-Reviewer: Jack Franklin <jacktf...@chromium.org>
Gerrit-Reviewer: Kateryna Prokopenko <kprok...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Kateryna Prokopenko <kprok...@chromium.org>
Gerrit-Comment-Date: Mon, 23 Mar 2026 16:29:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Kateryna Prokopenko (Gerrit)

unread,
Mar 23, 2026, 2:10:17 PMĀ (18 hours ago)Ā Mar 23
to Jack Franklin, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Jack Franklin

Kateryna Prokopenko voted and added 2 comments

Votes added by Kateryna Prokopenko

Code-Review+1

2 comments

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Kateryna Prokopenko . resolved

Looks good to me, Jack! One small suggestion

File front_end/panels/ai_assistance/components/WalkthroughView.ts
Line 94, Patchset 2 (Latest): ?data-has-widgets=${!input.isLoading && hasWidgets}
?data-no-widgets=${!hasWidgets}>
Kateryna Prokopenko . unresolved

Could we rename or at least add a comment as to why we have both? Otherwise it seems like we are passing 2 vars, which intuitively should be `var1 = !var2`

Open in Gerrit

Related details

Attention is currently required from:
  • Jack Franklin
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: Ida6a6c42b5949e1688577b5edd821d16defd5c65
Gerrit-Change-Number: 7691251
Gerrit-PatchSet: 2
Gerrit-Owner: Jack Franklin <jacktf...@chromium.org>
Gerrit-Reviewer: Jack Franklin <jacktf...@chromium.org>
Gerrit-Reviewer: Kateryna Prokopenko <kprok...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Jack Franklin <jacktf...@chromium.org>
Gerrit-Comment-Date: Mon, 23 Mar 2026 18:10:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Jack Franklin (Gerrit)

unread,
5:32 AMĀ (3 hours ago)Ā 5:32 AM
to Kateryna Prokopenko, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org

Jack Franklin voted and added 1 comment

Votes added by Jack Franklin

Commit-Queue+2

1 comment

File front_end/panels/ai_assistance/components/WalkthroughView.ts
Line 94, Patchset 2: ?data-has-widgets=${!input.isLoading && hasWidgets}
?data-no-widgets=${!hasWidgets}>
Kateryna Prokopenko . resolved

Could we rename or at least add a comment as to why we have both? Otherwise it seems like we are passing 2 vars, which intuitively should be `var1 = !var2`

Jack Franklin

Done

Open in Gerrit

Related details

Attention set is empty
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: Ida6a6c42b5949e1688577b5edd821d16defd5c65
    Gerrit-Change-Number: 7691251
    Gerrit-PatchSet: 3
    Gerrit-Owner: Jack Franklin <jacktf...@chromium.org>
    Gerrit-Reviewer: Jack Franklin <jacktf...@chromium.org>
    Gerrit-Reviewer: Kateryna Prokopenko <kprok...@chromium.org>
    Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Comment-Date: Tue, 24 Mar 2026 09:32:52 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Kateryna Prokopenko <kprok...@chromium.org>
    satisfied_requirement
    open
    diffy

    Devtools-frontend LUCI CQ (Gerrit)

    unread,
    6:09 AMĀ (2 hours ago)Ā 6:09 AM
    to Jack Franklin, Kateryna Prokopenko, devtools-rev...@chromium.org

    Devtools-frontend LUCI CQ submitted the change with unreviewed changes

    Unreviewed changes

    2 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/ai_assistance/components/WalkthroughView.ts
    Insertions: 6, Deletions: 0.

    @@ -87,6 +87,12 @@

    const hasWidgets = steps.some(s => s.widgets?.length);

    + // Note: we apply data-*-widgets attributes because we need to alter styling
    + // based on if widgets are present. It's clearer to style each state rather
    + // than only apply one data-* and then override existing styles. The styling
    + // here is more complex because we have to make the summary element look just
    + // like a DevTools Button, so as the user resizes the view from wide > small
    + // or vice-versa, the CTA does not change.
    // clang-format off
    return html`
    <details class="walkthrough-inline" ?open=${input.isExpanded} @toggle=${onToggle}>
    ```

    Change information

    Commit message:
    AI: improve the walkthrough UI

    1. Change the backgrounds & styles of the CTAs depending on if the
    walkthrough has widgets.
    2. Add the chevron to the CTAs.
    Bug: 495374445
    Change-Id: Ida6a6c42b5949e1688577b5edd821d16defd5c65
    Reviewed-by: Kateryna Prokopenko <kprok...@chromium.org>
    Commit-Queue: Jack Franklin <jacktf...@chromium.org>
    Files:
    • M front_end/panels/ai_assistance/components/ChatMessage.ts
    • M front_end/panels/ai_assistance/components/WalkthroughView.ts
    • M front_end/panels/ai_assistance/components/chatMessage.css
    • M front_end/panels/ai_assistance/components/walkthroughView.css
    Change size: M
    Delta: 4 files changed, 57 insertions(+), 7 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Kateryna Prokopenko
    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: Ida6a6c42b5949e1688577b5edd821d16defd5c65
    Gerrit-Change-Number: 7691251
    Gerrit-PatchSet: 4
    Gerrit-Owner: Jack Franklin <jacktf...@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