-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Port & Refactor ResourceList component family from InfluxDB #159
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.
Looks good for the most part. A few comments.
/** Placeholder text to display in input during editing */ | ||
placeholder: string | ||
/** Called when user hits enter or blurs the input */ | ||
onUpdate: (description: string) => void |
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.
We need a provision for list items with static descriptions that shouldn’t be edited.
private get children(): JSX.Element | ReactNode { | ||
const {children, emptyState} = this.props | ||
|
||
if (React.Children.count(children) === 0 || children === undefined) { |
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.
Children could also likely be null
.
Closes #156
Changes
ResourceList
component folder from InfluxDBResourceList
(means of listing and filtering cards)ResourceCard
(card and related components)owner
andupdated
in favor of usingmetaData
propResourceName
Label
component did not useStandardProps
Screenshots
Checklist
changelog.md
with link to PRNew Issues
Found this bug #160 along the way