-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add warmup and step delay to developer UI #323
Add warmup and step delay to developer UI #323
Conversation
Please have a look again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this seems to work perfectly fine!
Here are a few comments. Only the simple ones are mandatory, I'm leaving the ones that need more work for a future PR.
resources/developer-mode.mjs
Outdated
content.append(createUIForWarmupBeforeSync()) | ||
content.append(document.createElement("br")); | ||
content.append(createUIForSyncStepDelay()); | ||
details.append(content); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
details.append(content)
is already done below, so probably this line should be removed
resources/developer-mode.mjs
Outdated
range.value = initialValue; | ||
|
||
const label = document.createElement("label"); | ||
const rangeLabel = document.createElement("span"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: the name "label" can be confusing in this context, I believe it should be renamed, for example to rangeValueText
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if rangeLabel
should be outside of the label
element (it's not labeling the input), but this would need more CSS changes that we're willing to do here, I believe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed the variable to rangeValueAndUnit, let's maybe move the rest for later.
}; | ||
return label; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like we could factorize a bit more these UI creations, but I'm not sure this would actually be easier to read. So I'm fine with keeping them this way.
What's the status of this PR? Are we merging it for 3.0? |
I'd be happy to land this if possible, but only if everybody is fine with it :) |
Let's land it for 3.0 then :) |
Drive-by-fix: