[RPP Observations] Add Record buttons [devtools/devtools-frontend : main]

0 views
Skip to first unread message

Adam Raine (Gerrit)

unread,
Jun 26, 2024, 6:24:51 PM (3 days ago) Jun 26
to Paul Irish, devtools-rev...@chromium.org
Attention needed from Paul Irish

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • Paul Irish
Submit Requirements:
  • requirement is not satisfiedCode-Review
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: I16dafdacad1219979b7a5fe500623ea9ad0d9bd8
Gerrit-Change-Number: 5661756
Gerrit-PatchSet: 1
Gerrit-Owner: Adam Raine <asr...@chromium.org>
Gerrit-Reviewer: Paul Irish <paul...@chromium.org>
Gerrit-Attention: Paul Irish <paul...@chromium.org>
Gerrit-Comment-Date: Wed, 26 Jun 2024 22:24:49 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Kim-Anh Tran (Gerrit)

unread,
Jun 27, 2024, 3:55:34 AM (3 days ago) Jun 27
to Adam Raine, Paul Irish, devtools-g...@rotations.google.com, devtools-rev...@chromium.org
Attention needed from Adam Raine and Paul Irish

Kim-Anh Tran added 2 comments

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

Hi Adam! I'm this week's google material reviewer for DevTools. I've added a comment on the button usage 😊

File front_end/panels/timeline/components/LiveMetricsView.ts
Line 250, Patchset 3 (Latest): ${this.#toggleRecordButton}
Kim-Anh Tran . unresolved

Can we use `<devtools-button>` here? We use the legacy buttons mostly in legacy code. I think in this case you'd need a devtools button with the variant `icon toggle`, see: https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/ui/components/buttons/Button.ts;l=27;drc=f2e8fca99a170300ef5360049dec910aefe15cfd.

These toggles have been introduced recently, but there are some usages of it, for example here:
https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/ui/legacy/SearchableView.ts;l=235;drc=3e02eb658e84b46ebb53667e0a1cb52fe53b5f87

But you can find other usages of `<devtools-button>` within the context of `LitHtml`

This will require some work with the `ActionRegistry` since you don't have the helper, but I think this should work - let me know if there are unexpected problems!

Open in Gerrit

Related details

Attention is currently required from:
  • Adam Raine
  • Paul Irish
Submit Requirements:
  • requirement is not satisfiedCode-Review
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: I16dafdacad1219979b7a5fe500623ea9ad0d9bd8
Gerrit-Change-Number: 5661756
Gerrit-PatchSet: 3
Gerrit-Owner: Adam Raine <asr...@chromium.org>
Gerrit-Reviewer: Kim-Anh Tran <kim...@chromium.org>
Gerrit-Reviewer: Paul Irish <paul...@chromium.org>
Gerrit-Attention: Adam Raine <asr...@chromium.org>
Gerrit-Attention: Paul Irish <paul...@chromium.org>
Gerrit-Comment-Date: Thu, 27 Jun 2024 07:55:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Adam Raine (Gerrit)

unread,
Jun 27, 2024, 11:56:32 AM (3 days ago) Jun 27
to Kim-Anh Tran, Paul Irish, devtools-g...@rotations.google.com, devtools-rev...@chromium.org
Attention needed from Kim-Anh Tran and Paul Irish

Adam Raine added 1 comment

File front_end/panels/timeline/components/LiveMetricsView.ts
Line 250, Patchset 3 (Latest): ${this.#toggleRecordButton}
Kim-Anh Tran . unresolved

Can we use `<devtools-button>` here? We use the legacy buttons mostly in legacy code. I think in this case you'd need a devtools button with the variant `icon toggle`, see: https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/ui/components/buttons/Button.ts;l=27;drc=f2e8fca99a170300ef5360049dec910aefe15cfd.

These toggles have been introduced recently, but there are some usages of it, for example here:
https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/ui/legacy/SearchableView.ts;l=235;drc=3e02eb658e84b46ebb53667e0a1cb52fe53b5f87

But you can find other usages of `<devtools-button>` within the context of `LitHtml`

This will require some work with the `ActionRegistry` since you don't have the helper, but I think this should work - let me know if there are unexpected problems!

Adam Raine

I was trying that before, but it required extra steps for the button to work with the action registry. I will give it another go, now that some other problems have been sorted out.

Paul, we may need to diverge from the mocks slightly for this but I will update the screenshots when done.

Open in Gerrit

Related details

Attention is currently required from:
  • Kim-Anh Tran
  • Paul Irish
Submit Requirements:
  • requirement is not satisfiedCode-Review
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: I16dafdacad1219979b7a5fe500623ea9ad0d9bd8
Gerrit-Change-Number: 5661756
Gerrit-PatchSet: 3
Gerrit-Owner: Adam Raine <asr...@chromium.org>
Gerrit-Reviewer: Kim-Anh Tran <kim...@chromium.org>
Gerrit-Reviewer: Paul Irish <paul...@chromium.org>
Gerrit-Attention: Kim-Anh Tran <kim...@chromium.org>
Gerrit-Attention: Paul Irish <paul...@chromium.org>
Gerrit-Comment-Date: Thu, 27 Jun 2024 15:56:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Kim-Anh Tran <kim...@chromium.org>
unsatisfied_requirement
open
diffy

Adam Raine (Gerrit)

unread,
Jun 27, 2024, 1:06:01 PM (3 days ago) Jun 27
to Kim-Anh Tran, Paul Irish, devtools-g...@rotations.google.com, devtools-rev...@chromium.org
Attention needed from Kim-Anh Tran and Paul Irish

Adam Raine added 1 comment

File front_end/panels/timeline/components/LiveMetricsView.ts
Line 250, Patchset 3: ${this.#toggleRecordButton}
Kim-Anh Tran . resolved

Can we use `<devtools-button>` here? We use the legacy buttons mostly in legacy code. I think in this case you'd need a devtools button with the variant `icon toggle`, see: https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/ui/components/buttons/Button.ts;l=27;drc=f2e8fca99a170300ef5360049dec910aefe15cfd.

These toggles have been introduced recently, but there are some usages of it, for example here:
https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/ui/legacy/SearchableView.ts;l=235;drc=3e02eb658e84b46ebb53667e0a1cb52fe53b5f87

But you can find other usages of `<devtools-button>` within the context of `LitHtml`

This will require some work with the `ActionRegistry` since you don't have the helper, but I think this should work - let me know if there are unexpected problems!

Adam Raine

I was trying that before, but it required extra steps for the button to work with the action registry. I will give it another go, now that some other problems have been sorted out.

Paul, we may need to diverge from the mocks slightly for this but I will update the screenshots when done.

Adam Raine

Never mind, if anything this is more compliant with our mocks.

Open in Gerrit

Related details

Attention is currently required from:
  • Kim-Anh Tran
  • Paul Irish
Submit Requirements:
  • requirement is not satisfiedCode-Review
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: I16dafdacad1219979b7a5fe500623ea9ad0d9bd8
Gerrit-Change-Number: 5661756
Gerrit-PatchSet: 5
Gerrit-Owner: Adam Raine <asr...@chromium.org>
Gerrit-Reviewer: Kim-Anh Tran <kim...@chromium.org>
Gerrit-Reviewer: Paul Irish <paul...@chromium.org>
Gerrit-Attention: Kim-Anh Tran <kim...@chromium.org>
Gerrit-Attention: Paul Irish <paul...@chromium.org>
Gerrit-Comment-Date: Thu, 27 Jun 2024 17:05:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Adam Raine <asr...@chromium.org>
Comment-In-Reply-To: Kim-Anh Tran <kim...@chromium.org>
unsatisfied_requirement
open
diffy

Paul Irish (Gerrit)

unread,
Jun 27, 2024, 2:40:39 PM (3 days ago) Jun 27
to Adam Raine, Kim-Anh Tran, devtools-g...@rotations.google.com, devtools-rev...@chromium.org
Attention needed from Adam Raine and Kim-Anh Tran

Paul Irish voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Adam Raine
  • Kim-Anh Tran
Submit Requirements:
  • requirement satisfiedCode-Review
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: I16dafdacad1219979b7a5fe500623ea9ad0d9bd8
Gerrit-Change-Number: 5661756
Gerrit-PatchSet: 5
Gerrit-Owner: Adam Raine <asr...@chromium.org>
Gerrit-Reviewer: Kim-Anh Tran <kim...@chromium.org>
Gerrit-Reviewer: Paul Irish <paul...@chromium.org>
Gerrit-Attention: Adam Raine <asr...@chromium.org>
Gerrit-Attention: Kim-Anh Tran <kim...@chromium.org>
Gerrit-Comment-Date: Thu, 27 Jun 2024 18:40:36 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages