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

feat: Add roses example #312

Merged
merged 10 commits into from
Oct 17, 2018
Merged

feat: Add roses example #312

merged 10 commits into from
Oct 17, 2018

Conversation

moog16
Copy link

@moog16 moog16 commented Oct 3, 2018

In an attempt to use more of our components, testing/dogfooding, and show casing, I started with this product feedback page using text field, top app bar, chips, and button.

image

@codecov-io
Copy link

codecov-io commented Oct 3, 2018

Codecov Report

Merging #312 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #312   +/-   ##
=======================================
  Coverage   97.25%   97.25%           
=======================================
  Files          36       36           
  Lines        1491     1491           
  Branches      164      164           
=======================================
  Hits         1450     1450           
  Misses         41       41

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4e0cdf5...7d5bc7c. Read the comment docs.

@@ -0,0 +1,29 @@
# Roses Example

This is an example of a product feedback form using only MDC React components. This also uses some MDC Web-only packages, which are just styles ([typography](https://github.com/material-components/material-components-web/tree/master/packages/mdc-typography), [theme]https://github.com/material-components/material-components-web/tree/master/packages/mdc-theme, and [shape](https://github.com/material-components/material-components-web/tree/master/packages/mdc-shape)).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing a bracket after theme


1. `cd ./examples/roses`
1. `npm i`
1. `npk start`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: npm

import Button from '@material/react-button';
import MaterialIcon from '@material/react-material-icon';

import './index.scss';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary since it's already imported in index.js


class Feedback extends React.Component {
state = {
feedback: '',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
feedback: '',
feedback: '',
feedbackChips: [],

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add selected chips to state too

alt='red roses logo'
/>
{this.renderMessage()}
<ChipSet filter>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<ChipSet filter>
<ChipSet
filter
selectedChipIds={this.state.feedbackChips}
handleSelect={(selectedChipIds) => this.setState({feedbackChips: selectedChipIds})}
>

@moog16
Copy link
Author

moog16 commented Oct 16, 2018

Also want to add analytics

@moog16
Copy link
Author

moog16 commented Oct 16, 2018

Don't think I can add analytics to a not-live site

@moog16
Copy link
Author

moog16 commented Oct 16, 2018

Also added note to readme about being on node v10.4.x

@moog16 moog16 merged commit 04bbd18 into master Oct 17, 2018
@moog16 moog16 deleted the examples branch October 17, 2018 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants