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

allow a player to store their pronouns as part of their profile #711

Merged
merged 13 commits into from
Nov 5, 2021

Conversation

socksrust
Copy link
Contributor

@socksrust socksrust commented Jul 16, 2021

Adds pronouns as a profile characteristic.

Paired With: @vidvidvid

@vercel
Copy link

vercel bot commented Jul 16, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/metafam/the-game/Ap5VQqU1Zfxp5vmqypjVS8CvaSrd
✅ Preview: Failed

[Deployment for 15c58c5 failed]

@dan13ram
Copy link
Member

dan13ram commented Jul 17, 2021

@jaburx Thank you so much for working on this.

Could you take a look at the build issues ? Seems like typecheck is failing.

Also would be super great if you split this PR into two where the first one includes only backend changes, and while the second one include only frontend changes.

This would greatly help in the code review & merge process, and also that way the frontend only PR can have a working preview deployment to test with :)

Cheers!

@@ -7,7 +7,7 @@ import React, { useState } from 'react';

export const SetupDone: React.FC = () => {
const router = useRouter();
const { user } = useUser({ redirectTo: '/' });
Copy link
Member

Choose a reason for hiding this comment

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

¿Could you describe why you removed this?

I always thought it was a little semantically stilted, but didn't change it b/c of not wanting to introduce side effects I was unaware of.

Maybe to guarantee a continuance of behavior you could set a default value in the useUser definition of redirectTo = '/'.

Copy link
Collaborator

Choose a reason for hiding this comment

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

this was causing the buggy behaviour when visiting one of the profile setup pages and the user would just get redirected to /players, i fixed it in packages/web/lib/hooks/index.ts by renaming the redirectIfFound into redirectIfNotFound and setting to false by default and tweaking some of its behaviour. Now everything works the same, apart from the bug in player setup pages, which is gone.

packages/web/components/Setup/SetupPronouns.tsx Outdated Show resolved Hide resolved
packages/web/components/Setup/SetupPronouns.tsx Outdated Show resolved Hide resolved
packages/web/components/Setup/SetupPronouns.tsx Outdated Show resolved Hide resolved
packages/web/components/Player/Section/PlayerPronouns.tsx Outdated Show resolved Hide resolved
packages/web/components/Player/Section/PlayerHero.tsx Outdated Show resolved Hide resolved
packages/web/components/Setup/SetupPronouns.tsx Outdated Show resolved Hide resolved
packages/web/graphql/mutations/player.ts Outdated Show resolved Hide resolved
packages/web/graphql/mutations/player.ts Outdated Show resolved Hide resolved
@dysbulic
Copy link
Member

dysbulic commented Aug 5, 2021

¿@jaburx, have you abandoned this code? You're pretty close. If you respond to a couple of my comments, I'll merge this.

@Udit-takkar
Copy link
Member

Udit-takkar commented Sep 9, 2021

Is this issue still open? Can i look into this? @dysbulic

@dysbulic
Copy link
Member

Closing to trigger the Google Cloud builds.

@dysbulic dysbulic closed this Oct 27, 2021
@dysbulic dysbulic reopened this Oct 27, 2021
@github-actions
Copy link

Successfully deployed a Preview of this Pull Request
Frontend
Hasura

@dysbulic
Copy link
Member

So, @vidvidvid, the Google deployments are successful, so everything’s good. I'll review it shortly.

@vidvidvid
Copy link
Collaborator

nicu 👍

@dysbulic
Copy link
Member

This code is based on a version of the profile editing page that doesn't exist anymore. This is in part a result of the time it took to complete the review, which is largely because I was unaware the issues I had raised had been resolved.

I've been trying to figure out how to remove Dependabot from my GitHub activity feed. I turned off notifications in the settings, but I keep getting them. They make it harder to distinguish important updates.

Also, however, the redesign of the profile pages has been ongoing for a almost a month now, so this issue shouldn't be a surprise to anyone.

To me, the correct next step is to put in a request to the design guild for a profile page with pronouns in it. ¿Right, @davort?

@vidvidvid
Copy link
Collaborator

Hey, the setup wizard steps still exist. They are just accessible only the first time the user logs in and sets up their profile.
Or are you talking about some other non-existent profile editing page?

@vidvidvid
Copy link
Collaborator

@dysbulic i'm gonna merge the develop branch into it and fix the conflicting files, ok?

@vidvidvid
Copy link
Collaborator

actually, i would also need to add the pronouns input field to the new profile edit dialog, but this can be done after this pr is merged, so we don't keep bloating it up. what do you think?

@vidvidvid
Copy link
Collaborator

For some reason the build appears to fail, but when I run yarn backend:build locally, it builds it without any errors: @metafam/backend: [07:47:08] Generate outputs [failed] is failing it.
I will try to re-run the checks.

@github-actions
Copy link

github-actions bot commented Nov 2, 2021

Successfully deployed a Preview of this Pull Request
Frontend
Hasura

@dysbulic
Copy link
Member

dysbulic commented Nov 2, 2021

@vidvidvid, just one last quibble. On the roles page which precedes pronouns, the submit button is entitled "Professional Profile" rather than "Pronouns".

Also, on the roles page, could you switch whiteSpace from nowrap to auto for the "Make Primary / Secondary" and "Remove Role" buttons when selecting a role? They are overdrawing each other.

2021⁄11⁄02@11:16:37 screenshot profile-setup-roles

Copy link
Member

@dysbulic dysbulic left a comment

Choose a reason for hiding this comment

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

Overall looks good. I had some syntactic suggestions, but the only real blocking issue is the text of the submit button on the preceding page.

packages/web/components/Setup/SetupPronouns.tsx Outdated Show resolved Hide resolved
@alalonde
Copy link
Contributor

alalonde commented Nov 2, 2021

Two requests, now that the edit profile branch is in here:

  • only show pronouns section of the player card if there is data set
  • add pronoun input field to the edit modal

@davort
Copy link

davort commented Nov 2, 2021

Overall looks good. I had some syntactic suggestions, but the only real blocking issue is the text of the submit button on the preceding page.

I don't think pronouns as a separate/standalone step in the onboarding flow is optimal.

In principle, we'd want to keep the whole flow as fluid as possible. That said, perhaps we ought to consider "bundling" the choice of pronouns with some other, simpler choices, such as "Display name" or "Website"?

@vidvidvid
Copy link
Collaborator

WIll take care of @dysbulic 's and @alalonde 's suggestions tomorrow, gonna sleep now. @davort I think your suggestion makes sense and it would be nice to bundle up some of the choices, but I'd prefer to get done with this pr and make another issue for a slight re-work of the setup wizard - that way 1. you get time to make a plan on what to put together and 2. we can finally close this pr that's been open for months, what do you think?

@davort
Copy link

davort commented Nov 3, 2021

WIll take care of @dysbulic 's and @alalonde 's suggestions tomorrow, gonna sleep now. @davort I think your suggestion makes sense and it would be nice to bundle up some of the choices, but I'd prefer to get done with this pr and make another issue for a slight re-work of the setup wizard - that way 1. you get time to make a plan on what to put together and 2. we can finally close this pr that's been open for months, what do you think?

Thanks @vidvidvid - sounds good to me. Let's do like you suggested 👍

@vidvidvid
Copy link
Collaborator

vidvidvid commented Nov 3, 2021

Fixed @dysbulic 's suggestions, also slightly improved the buttons from the screenshot you provided:
Screenshot 2021-11-03 at 12 20 06

Also took care of @alalonde 's requests:

  • if pronouns weren't selected, hide the section
  • added pronoun input field to the edit modal

Screenshot 2021-11-03 at 12 48 50

We can eventually make a follow up with re-organisation of the setup wizard steps.

@alalonde
Copy link
Contributor

alalonde commented Nov 5, 2021

I don't think pronouns as a separate/standalone step in the onboarding flow is optimal.

I would go even farther and say that it shouldn't be in the onboarding flow at all. There are probably too many steps already; really only the most critical information should be required during onboarding. And I suspect that the people that really feel strongly about inputting their pronoun preferences will easy find the field in the edit profile modal.

@alalonde alalonde merged commit d164de0 into develop Nov 5, 2021
@alalonde alalonde deleted the feat/pronous-profile branch November 5, 2021 04:59
@github-actions
Copy link

github-actions bot commented Nov 5, 2021

Successfully undeployed the Preview of this Pull Request

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.

[MyMeta] Allow a Player to store their pronouns as part of their profile
7 participants