[cleanup] Extract props for different widgets in AIAssistancePanel [devtools/devtools-frontend : main]

0 views
Skip to first unread message

Nikolay Vitkov (Gerrit)

unread,
Nov 3, 2025, 4:42:15 PM (2 days ago) Nov 3
to Ergün Erdoğmuş, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Ergün Erdoğmuş

Nikolay Vitkov voted Auto-Submit+1

Auto-Submit+1
Open in Gerrit

Related details

Attention is currently required from:
  • Ergün Erdoğmuş
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: Ie71e241c67d80692b612ad47b9de9ae717d25415
Gerrit-Change-Number: 7114758
Gerrit-PatchSet: 2
Gerrit-Owner: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-Reviewer: Ergün Erdoğmuş <erg...@chromium.org>
Gerrit-Reviewer: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Ergün Erdoğmuş <erg...@chromium.org>
Gerrit-Comment-Date: Mon, 03 Nov 2025 21:42:12 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Ergün Erdoğmuş (Gerrit)

unread,
Nov 4, 2025, 4:54:58 AM (yesterday) Nov 4
to Nikolay Vitkov, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Nikolay Vitkov

Ergün Erdoğmuş voted and added 4 comments

Votes added by Ergün Erdoğmuş

Code-Review+1

4 comments

File front_end/panels/ai_assistance/AiAssistancePanel.ts
Line 305, Patchset 2 (Latest):type PanelViewProps = {
Ergün Erdoğmuş . unresolved

(nit): Just for consistency with `ToolbarViewInput`, WDYT of naming this `PanelViewInput`?

Line 558, Patchset 2 (Latest): async #getPanelViewStateWithProps(): Promise<PanelViewProps> {
Ergün Erdoğmuş . unresolved
(nit): We can call this `getPanelViewInput`, and also create a separate one `getToolbarViewInput` and then in the `performUpdate` method, we can combine them as:
```
{
...this.#getToolbarViewInput(),
...await this.#getPanelViewInput(),
}
```

Otherwise, I find it a bit trickier to understand why we still have `isLoading` etc. in the `performUpdate` method and realized that they are for the `ToolbarViewInput`.

File front_end/panels/ai_assistance/components/ChatView.ts
Line 471, Patchset 2 (Latest): 'has-conversation': true,
Ergün Erdoğmuş . unresolved

(nit): Now that we only render this footer when there is a conversation, we don't need the `has-conversation` modifier and we can directly add the hiding/showing logic from `.has-conversation` CSS rule to the `chat-view-footer`.

Line 1463, Patchset 2 (Latest): conversationType?: AiAssistanceModel.AiHistoryStorage.ConversationType,
Ergün Erdoğmuş . unresolved

We can mark this as non optional now as well.

Open in Gerrit

Related details

Attention is currently required from:
  • Nikolay Vitkov
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: Ie71e241c67d80692b612ad47b9de9ae717d25415
Gerrit-Change-Number: 7114758
Gerrit-PatchSet: 2
Gerrit-Owner: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-Reviewer: Ergün Erdoğmuş <erg...@chromium.org>
Gerrit-Reviewer: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-Comment-Date: Tue, 04 Nov 2025 09:54:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Nikolay Vitkov (Gerrit)

unread,
Nov 4, 2025, 6:41:21 AM (yesterday) Nov 4
to Ergün Erdoğmuş, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org

Nikolay Vitkov added 4 comments

File front_end/panels/ai_assistance/AiAssistancePanel.ts
Line 305, Patchset 2 (Latest):type PanelViewProps = {
Ergün Erdoğmuş . resolved

(nit): Just for consistency with `ToolbarViewInput`, WDYT of naming this `PanelViewInput`?

Nikolay Vitkov

Done

Line 558, Patchset 2 (Latest): async #getPanelViewStateWithProps(): Promise<PanelViewProps> {
Ergün Erdoğmuş . resolved
(nit): We can call this `getPanelViewInput`, and also create a separate one `getToolbarViewInput` and then in the `performUpdate` method, we can combine them as:
```
{
...this.#getToolbarViewInput(),
...await this.#getPanelViewInput(),
}
```

Otherwise, I find it a bit trickier to understand why we still have `isLoading` etc. in the `performUpdate` method and realized that they are for the `ToolbarViewInput`.

Nikolay Vitkov

Done

File front_end/panels/ai_assistance/components/ChatView.ts
Line 471, Patchset 2 (Latest): 'has-conversation': true,
Ergün Erdoğmuş . resolved

(nit): Now that we only render this footer when there is a conversation, we don't need the `has-conversation` modifier and we can directly add the hiding/showing logic from `.has-conversation` CSS rule to the `chat-view-footer`.

Nikolay Vitkov

Done

Line 1463, Patchset 2 (Latest): conversationType?: AiAssistanceModel.AiHistoryStorage.ConversationType,
Ergün Erdoğmuş . resolved

We can mark this as non optional now as well.

Nikolay Vitkov

No we can just remove it :P

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: Ie71e241c67d80692b612ad47b9de9ae717d25415
    Gerrit-Change-Number: 7114758
    Gerrit-PatchSet: 2
    Gerrit-Owner: Nikolay Vitkov <nvi...@chromium.org>
    Gerrit-Reviewer: Ergün Erdoğmuş <erg...@chromium.org>
    Gerrit-Reviewer: Nikolay Vitkov <nvi...@chromium.org>
    Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Comment-Date: Tue, 04 Nov 2025 11:41:17 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Ergün Erdoğmuş <erg...@chromium.org>
    satisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages