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

Program tag components #133

Merged
merged 7 commits into from
May 2, 2020
Merged

Program tag components #133

merged 7 commits into from
May 2, 2020

Conversation

thumn
Copy link
Contributor

@thumn thumn commented Apr 27, 2020

What's new in this PR

  • Program tags are now a shared component
  • Added text to accepted programs section in store details for stores with no programs

How to review

Verify that chips still appear correctly in the StoreCard and StoreDetailsScreen and StoresList.
Verify that stores like "BP Blair" have the default text for no programs available.

Relevant Links

Online sources

Related PRs

#98

Next steps

Screenshots

CC: @anniero98 @wangannie

@thumn thumn requested a review from wangannie April 27, 2020 05:21
@wangannie wangannie requested a review from annieyro April 28, 2020 14:00
Copy link
Collaborator

@annieyro annieyro left a comment

Choose a reason for hiding this comment

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

Looks really good! I think the filter using Chip components also need to be refactored still - probably add a boolean for tag as a prop and then switch the styles/color attributes of the Chip on that?

components/store/StoreCard.js Show resolved Hide resolved
components/store/ProgramTag.js Show resolved Hide resolved
Copy link
Member

@wangannie wangannie 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! Just make sure to address Annie's comment about refactoring the filter chips and I think it's good to go.

// i.e. "WIC" was entered as "WIc" or "SNAP Match" was entered as "snap Match"
// Hopefully ensures that chips will work most of the time, only not displaying if
// they enter the wrong string of words
if (
Copy link
Member

Choose a reason for hiding this comment

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

Nice that you considered these cases, but wouldn't this input only come from within our code? Why would we need this here?

Copy link
Contributor Author

@thumn thumn Apr 30, 2020

Choose a reason for hiding this comment

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

I figured that the program name gets passed from so many sources (i.e. store card, store details, store list and maybe more in the future) so if there's ever a case someone spells it wrong or something it would still work ?? it's a bit extra but i guess it ensures that the chips still function correctly even if there's a small capitalization error in the code

Copy link
Collaborator

Choose a reason for hiding this comment

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

i agree with this sentiment much human error

@wangannie wangannie requested review from annieyro and wangannie April 30, 2020 05:59
Copy link
Member

@wangannie wangannie left a comment

Choose a reason for hiding this comment

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

Looks great! So much cleaner 💯

components/store/ProgramTag.js Show resolved Hide resolved
Copy link
Collaborator

@annieyro annieyro 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!!

@wangannie wangannie merged commit de5c203 into master May 2, 2020
@wangannie wangannie deleted the thu/comp-tags branch May 2, 2020 23:51
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