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

Feature/contact #496

Merged
merged 5 commits into from
Mar 24, 2021
Merged

Feature/contact #496

merged 5 commits into from
Mar 24, 2021

Conversation

henriquecbuss
Copy link
Member

@henriquecbuss henriquecbuss commented Mar 19, 2021

What issue does this PR close

Closes #473, closes #474 and closes #472

Changes Proposed ( a list of new changes introduced by this PR)

  • Add a modal that asks the user to add a contact information if they don't have any
  • Update the public profile with the new design, and add the ability to see the user's contacts
  • Update the private profile with the new design, and add the ability to add/edit own contacts

How to test ( a list of instructions on how to test this PR)

Log into an account that has no contact and see if the modal shows up. Try adding a contact. If the user already has a contact, this shouldn't show up
Go into your private profile and try adding/deleting contacts
Go into someone's public profile and look at their contacts. Test the links to see if they open correctly

henriquecbuss and others added 3 commits March 19, 2021 17:52
* Add basic layout (#473)

* Add phone validation (#473)

* Fix country select, add date check (#473)

* Update graphql

* Add Contact (#473)

* Rename phone to contact

* Use ContactType.list (#473)

* Rename phone to contact

* Add translations (#473)

* Add different inputs for phone/username contact types (#473)

* Add country code to contact types that use phone numbers (#473)

* Add normalization (#473)

* Use ContactType in AddContactModal (#473)

* Uses (correct) Countries (#473)

* WIP: Update GraphQL bindings

* WIP: Add graphql secret and auth token

* Better contact validation (#473)

* Add large modal option

* Display error (#473)

* Fix contact modal placeholder for profiles (#473)

* Remove unused imports (#473)

* Fix mobile design

* Use country flags on country select

* Fix according to review

* Fix queries after signing in

* Rename flag icons

* Clean up costa rica flag

* Use Whatsapp as default contact

* Adjust casing

* Stop showing contact modal if user already has contacts

* Separate contact view and update to Profile.Contact

* Remove unused imports, exports and functions

* Add and use a port for storing auth token

* Add USA phone support

* Add validation for instagram and telegram

* Move contact logic to Contact.elm

* Move graphql query with auth to Auth

* Simplify auth queries and mutations

* Update GraphQL types

* Fix analysis query

Add filter to optional args.

* Remove Debug.log

* Code cleanup

* Clean up, create profileSelectionSet in Contact.elm

* Change view with RemoteData, fix some I18N

* Fix view for Multiple, add I18N

* Fix validation for Multiple

* Use robinheghan/elm-phone-numbers

* Add + before country code

* Add docs for LoggedIn init functions

* Change placeholder based on country, remove footer text

* Show feedback

* WIP: Move authToken into LoggedIn and sketch out new query function

* Fix according to elm-review

* WIP: Change query and mutation signatures, remove authToken from Shared

* Fix PaymentHistory init for LoggedIn

* Fix bug where user wouldn't be authed after logging in

* Update GraphQL

* Add Profile.AddContact

* Adjust Contact.elm, use RemoteData in AddContact.elm

* Fix Multiple view

* Add public profile contact styles for mobile

* Remove prefixes when converting from Normalized to Basic

* Remove unused variable

* Add I18N

* Use new public profile layout

* Fix styles when screen is too small and name is too long

* Finish private profile styles, refactor code

* Fix styles to be inside container

Co-authored-by: Andrey Miskov <amiskov@gmail.com>
* Add basic layout (#473)

* Add phone validation (#473)

* Fix country select, add date check (#473)

* Update graphql

* Add Contact (#473)

* Rename phone to contact

* Use ContactType.list (#473)

* Rename phone to contact

* Add translations (#473)

* Add different inputs for phone/username contact types (#473)

* Add country code to contact types that use phone numbers (#473)

* Add normalization (#473)

* Use ContactType in AddContactModal (#473)

* Uses (correct) Countries (#473)

* WIP: Update GraphQL bindings

* WIP: Add graphql secret and auth token

* Better contact validation (#473)

* Add large modal option

* Display error (#473)

* Fix contact modal placeholder for profiles (#473)

* Remove unused imports (#473)

* Fix mobile design

* Use country flags on country select

* Fix according to review

* Fix queries after signing in

* Rename flag icons

* Clean up costa rica flag

* Use Whatsapp as default contact

* Adjust casing

* Stop showing contact modal if user already has contacts

* Separate contact view and update to Profile.Contact

* Remove unused imports, exports and functions

* Add and use a port for storing auth token

* Add USA phone support

* Add validation for instagram and telegram

* Move contact logic to Contact.elm

* Move graphql query with auth to Auth

* Simplify auth queries and mutations

* Update GraphQL types

* Fix analysis query

Add filter to optional args.

* Remove Debug.log

* Code cleanup

* Clean up, create profileSelectionSet in Contact.elm

* Change view with RemoteData, fix some I18N

* Fix view for Multiple, add I18N

* Fix validation for Multiple

* Use robinheghan/elm-phone-numbers

* Add + before country code

* Add docs for LoggedIn init functions

* Change placeholder based on country, remove footer text

* Show feedback

* WIP: Move authToken into LoggedIn and sketch out new query function

* Fix according to elm-review

* WIP: Change query and mutation signatures, remove authToken from Shared

* Fix PaymentHistory init for LoggedIn

* Fix bug where user wouldn't be authed after logging in

* Update GraphQL

* Add Profile.AddContact

* Adjust Contact.elm, use RemoteData in AddContact.elm

* Fix Multiple view

* Add public profile contact styles for mobile

* Remove prefixes when converting from Normalized to Basic

* Remove unused variable

* Add I18N

* Use new public profile layout

* Fix styles when screen is too small and name is too long

* Finish private profile styles, refactor code

* Fix styles to be inside container

* Add modal footer back

Co-authored-by: Andrey Miskov <amiskov@gmail.com>
lucca65
lucca65 previously approved these changes Mar 23, 2021
Copy link
Member

@lucca65 lucca65 left a comment

Choose a reason for hiding this comment

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

nice! :shipit:

@henriquecbuss
Copy link
Member Author

@heltonlr Can you test this on staging please? It includes the modal you've already tested, and the public/private profile redesign.

The modal is only shown if the user doesn't have any contacts added, and it's set to not show up anymore after 01/01/2022. Is that date fine or should we change it?

@lucca65 The Netlify deploys aren't working with the auth update, it sends an empty password. I'm not sure how it's set up, but maybe we need to define the GRAPHQL_SECRET environment variable on Netlify?

@lucca65
Copy link
Member

lucca65 commented Mar 23, 2021

@NeoVier yeah, I don't know how to do it on netlify actually we need to dig deeper on to this

@heltonlr
Copy link

@heltonlr Can you test this on staging please? It includes the modal you've already tested, and the public/private profile redesign.

The modal is only shown if the user doesn't have any contacts added, and it's set to not show up anymore after 01/01/2022. Is that date fine or should we change it?

@lucca65 The Netlify deploys aren't working with the auth update, it sends an empty password. I'm not sure how it's set up, but maybe we need to define the GRAPHQL_SECRET environment variable on Netlify?

Sure, I will finish tomorrow and let you know!!

@henriquecbuss henriquecbuss requested a review from lucca65 March 24, 2021 15:56
@henriquecbuss
Copy link
Member Author

@heltonlr Everything should be fixed now

@lucca65 Should I merge this or do you want to wait for after the auth update? Or should this also include #497?

@lucca65
Copy link
Member

lucca65 commented Mar 24, 2021

we can address #497 right after it! merge on! this deploy will include more stuff 💪

@heltonlr
Copy link

@heltonlr Everything should be fixed now

@lucca65 Should I merge this or do you want to wait for after the auth update? Or should this also include #497?

Thanks, @NeoVier , awesome job

@henriquecbuss henriquecbuss merged commit 0f1ee88 into master Mar 24, 2021
@henriquecbuss henriquecbuss deleted the feature/contact branch March 24, 2021 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants