Skip to content
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

Merged
merged 15 commits into from
Jun 25, 2019

Conversation

alexpaxton
Copy link
Contributor

@alexpaxton alexpaxton commented Jun 25, 2019

Closes #156

Changes

  • Ported over ResourceList component folder from InfluxDB
  • Split components into 2 sub-families:
    • ResourceList (means of listing and filtering cards)
    • ResourceCard (card and related components)
  • Made cards more generic
    • Removed props for owner and updated in favor of using metaData prop
  • Moved the meta data line below description instead of having it on the same line as name
  • Wrote markdown documentation for all new components
  • Created a few examples in the docs
  • Removed unused props from ResourceName
  • Caught an issue in which the Label component did not use StandardProps

Screenshots

Screen Shot 2019-06-24 at 5 12 23 PM
Screen Shot 2019-06-24 at 5 12 29 PM

Checklist

  • Change is reflected in documentation
  • Added entry to top of changelog.md with link to PR
  • Signed CLA

New Issues

Found this bug #160 along the way

Copy link
Collaborator

@mavarius mavarius left a 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
Copy link
Collaborator

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) {
Copy link
Collaborator

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.

@alexpaxton alexpaxton merged commit 213960e into master Jun 25, 2019
@alexpaxton alexpaxton deleted the port/resource-list branch June 25, 2019 17:06
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port ResourceCard components from InfluxDB
2 participants