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

Social shares on Buyer's Guide product pages #1975

Merged
merged 10 commits into from
Oct 19, 2018
Merged

Conversation

mmmavis
Copy link
Collaborator

@mmmavis mmmavis commented Oct 19, 2018

Related to #1899

Covers

  • social shares on Buyer's Guide product pages

Based on specs in #1899 (comment) but we might want to update the pre-populated text a bit though... /cc @kristinashu

@cadecairos cadecairos temporarily deployed to foundation-mofostaging-pr-1975 October 19, 2018 00:14 Inactive
@mmmavis mmmavis temporarily deployed to foundation-mofostaging-pr-1975 October 19, 2018 00:18 Inactive
@mmmavis mmmavis temporarily deployed to foundation-mofostaging-pr-1975 October 19, 2018 01:16 Inactive
@kristinashu
Copy link

Amazing! You got it to pull the product name and it's creepiness!

Copy link

@kristinashu kristinashu left a comment

Choose a reason for hiding this comment

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

👏

@alanmoo alanmoo temporarily deployed to foundation-mofostaging-pr-1975 October 19, 2018 12:07 Inactive
@@ -159,6 +160,18 @@ export default class CreepVote extends React.Component {
* @returns {jsx} What users see when they have voted on this product.
*/
renderDidVote(){
let numGroups = 5;
Copy link
Contributor

Choose a reason for hiding this comment

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

Pomax landed a PR that has the creepiness groups as a constant- can we leverage that so we're not replicating it here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@alanmoo can you point me where that variable is? I can't find it in creep-vote.jsx

Copy link
Contributor

Choose a reason for hiding this comment

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

@mmmavis mmmavis temporarily deployed to foundation-mofostaging-pr-1975 October 19, 2018 15:37 Inactive
@mmmavis mmmavis temporarily deployed to foundation-mofostaging-pr-1975 October 19, 2018 16:37 Inactive
@mmmavis mmmavis temporarily deployed to foundation-mofostaging-pr-1975 October 19, 2018 16:44 Inactive
@mmmavis mmmavis temporarily deployed to foundation-mofostaging-pr-1975 October 19, 2018 16:47 Inactive
@mmmavis mmmavis requested a review from alanmoo October 19, 2018 16:50
let userVoteGroup = Math.floor(this.state.creepiness/(100/NUM_GROUPS));
let creepType;

if (userVoteGroup < Math.floor(NUM_GROUPS/2)) { // lower half groups
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't this be something like

creepType = CREEPINESS_LABELS[userVoteGroup]?

Copy link
Collaborator Author

@mmmavis mmmavis Oct 19, 2018

Choose a reason for hiding this comment

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

Nah, it's not 1-1. We only have 3 versions of keyword we wanna use in social share.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

version depending on a users vote: "CREEPY" (first two bars), "NOT REALLY CREEPY" (middle), "NOT CREEPY" (last two bars)]

Choose a reason for hiding this comment

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

We can do what Pomax did to make things consistent.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

k I'll update - @kristinashu should I make the label all caps in social share? e.g., SOMEWHAT CREEPY, A LITTLE CREEPY etc

Choose a reason for hiding this comment

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

lol yeah uppercase is great, thank you!

Choose a reason for hiding this comment

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

Unless that's more complicated, then lowercase is cool too!

@mmmavis
Copy link
Collaborator Author

mmmavis commented Oct 19, 2018

Done! @alanmoo

@mmmavis mmmavis requested a review from alanmoo October 19, 2018 17:36
Copy link
Contributor

@alanmoo alanmoo left a comment

Choose a reason for hiding this comment

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

There we go!

@alanmoo alanmoo merged commit 93b71e6 into master Oct 19, 2018
@alanmoo alanmoo deleted the bg-product-pages-share branch October 19, 2018 18:17
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.

4 participants