Adding the BO's procurator info to ProfileBox to cover B2B scenario #266
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What did you change? *
A null procurator means that we are not in a B2B scenario, so everything remains unchanged.
In that scenario, we also omit document, birthDate, and gender.
Why? *
As agreed during a meeting with both B2B and My Account teams,
this PR is to add the necessary customization to the Profile section so it can display the procurator's info.
Before the change, some B2B customers were forking the app to add their customization, which is not a good practice.
Please let me know if anything needs clarification, and let me know if you have any suggestions!
How to test it? *
You can use the Workspace to log in and test the Profile page in both B2B and B2C scenarios.
B2B User:
[email protected]
Vtex1234
B2C User:
[email protected]
Vtex1234
Here are some screenshots:
Before the change, note that the Buyer Organization's name and email were displayed as if they were the user's info:
Now, we show the procurator's info:
But everything remains the same in a B2C scenario:
Types of changes *