Closed Bug 1623594 Opened 4 years ago Closed 4 years ago

Add recording state UI to the profiling popup

Categories

(DevTools :: Performance Tools (Profiler/Timeline), enhancement, P3)

enhancement

Tracking

(firefox78 fixed)

RESOLVED FIXED
Firefox 78
Tracking Status
firefox78 --- fixed

People

(Reporter: fvsch, Assigned: gregtatum)

References

Details

Attachments

(2 files)

Right now the "recording" state is communicated indirectly in the doorhanger menu:

  • Call to action is "Start Recording": not currently recording
  • Call to actions are "Discard" and "Capture": i guess we're recording? maybe?

I brought it up on chat.mozilla.org and Nazim showed the attached mockup (from Victoria?) which is a good solution. A quick discussion followed:

  • Nazim Adding the elapsed time is maybe not desirable because it adds some JS execution? (Nazim: "I think we didn't want to add the incremental time at the end, because that also needs some code to run in an interval")
  • It's good to hide the Settings section, especially since showing a disabled <select> element can be confusing ("disabled" states are often misunderstood by users).
  • But maybe show the current preset used, as a simple text label?
  • Ongoing activity could be shown with a flashing red dot, using a CSS animation if that's not costly?

Label suggestions for presets:

Recording…
Using preset: Web Developer

and:

Recording…
Using custom settings

Visual suggestion for a flashing red dot next to the "Recording…" label:

https://codepen.io/fvsch/pen/ExjRqRq

Nazim Adding the elapsed time is maybe not desirable because it adds some JS execution? (Nazim: "I think we didn't want to add the incremental time at the end, because that also needs some code to run in an interval")

The assumption is that a 1s timer interval should not skew anything, especially as the popup will not stay open while the user reproduces the issue.

But maybe show the current preset used, as a simple text label?

Keeping the preset visible somehow would be a nice reminder to have. Not sure though if that is a question users have while recording.

Ongoing activity could be shown with a flashing red dot, using a CSS animation if that's not costly?

CSS animations will likely show up more often as they will cause a 60fps animation on the compositor.

Pinging Greg just to keep the discussion going :-)

Flags: needinfo?(gtatum)
Priority: -- → P3

I'll leave this bug as the work to implement Victoria's design, but we need to make sure the UI doesn't animate or update, as it shows up in profiles.

Flags: needinfo?(gtatum)
Summary: Doorhanger: communicate recording state explicitly → Add recording state UI to the profiling popup
Assignee: nobody → gtatum
Pushed by gtatum@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0d900cb13dd4
Add recording state UI to the profiling popup; r=julienw
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: