-
Notifications
You must be signed in to change notification settings - Fork 50
Conversation
andreamah
left a comment
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.
Good! Thanks for the organized refactoring 👍
src/view/components/Simulator.tsx
Outdated
| import Dropdown from "./Dropdown"; | ||
| import ActionBar from "./simulator/ActionBar" | ||
|
|
||
|
|
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: one line between these imports? or is this a convention for css files?
| if (l > 50) s = 100 * (cDelta / (2 - maxAndMin)); | ||
| else s = 100 * (cDelta / maxAndMin); | ||
| if (l > 50) { s = 100 * (cDelta / (2 - maxAndMin)); } | ||
| else { s = 100 * (cDelta / maxAndMin); } |
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: would look better if it were like:
if () {
...
} else {
...
}
or as ternary operator
| border-color: var(--vscode-highContrastButtonBorderOverride-color); | ||
| border-width: 1px; | ||
| border-style: solid; | ||
| } |
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: add space in between here
src/view/container/device/Device.tsx
Outdated
| image: TOOLBAR_SVG.LIGHT_SVG, | ||
| label: TOOLBAR_ICON_ID.LIGHT, | ||
| } | ||
| , { |
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: these brackets are all messed up and inconsistent
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 for the heads up. I'll actually make it a task to have proper linting rules and set up so it doesnt slow us down in the future
nasadigital
left a comment
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.
A bit late, but great job!
Description:
In preparation of expanding functionality of the extension, making component reusable is a priority to reduce technical debt in the near future.
Refactoring of component by extracting 2 components:
Also contains:
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Type of change
Please delete options that are not relevant.
Limitations:
Please describe limitations of this PR
Testing:
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: