-
Notifications
You must be signed in to change notification settings - Fork 4
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
Refactor devicelist page #435
Conversation
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.
INCREDIBLY SEXY 🚀 🎉
testing very cute, frontend lookin SPICY & workin like a charm, easiest approve of my life
@@ -149,6 +149,6 @@ export default function DevicesTable(props) { | |||
} | |||
|
|||
DevicesTable.propTypes = { | |||
title: PropTypes.string.isRequired, | |||
title: PropTypes.node.isRequired, |
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.
VERY SEXY that all you had to change in this file was this!!! \o/
Design feedback:
Overall tho i really love this change!! Great improvement!! |
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.
Minòr comments otherwise LGTM
getTitle() { | ||
const { selected } = this.state; | ||
return ( | ||
<DeviceTableTitle index={selected} handleChange={this.handleChange} /> | ||
); | ||
} | ||
|
||
render() { | ||
return <DevicesTable devices={this.getDevices()} title={this.getTitle()} />; | ||
} |
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.
Why did you choose to inject the entire title component into DevicesTable
rather than just have it in DevicesTable?
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.
this makes it read cleaner and is easier to test
frontend/src/devicelist/__tests__/DeviceListPageContents.test.jsx
Outdated
Show resolved
Hide resolved
Peer programmed :) Co-authored-by: Felix Lapierre <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
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.
yum yum yum
@felixlapierre issue #438 created to address interaction affordance |
General info
Issue number:
Task description:
Testing
Test coverage:
Additional notes
Note to reviewers:
To do before merging: