generated from vtex-sites/base.store
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Feat: [Refinements] Creates ShippingSimulation
#201
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Tweaks PDP grid * Creates shipping simulation component * Adds ShippingSimulation parts and styles * Tweaks PDP grid * Updates input text clear button control * Adds conditional rendering and session checking * Renames from Zip code to Postal Code * Makes Postal Code link text uniform * Themification ShippingSimulation * Organizes ShippingSimulation component * Manages simulation state using single object * Adds CHANGELOG entry * Creates Stories * removes stories folder * Fixes sonarQube * Trigger CI * Extracts code into new hook that uses useReducer * Removes -tablet from tokens * Tweaks border radius Co-authored-by: Fanny Chien <[email protected]> * Tweaks font-size token * Removes too specific token * Tweaks tokens spaces * Removes SessionProvider from stories Co-authored-by: Fanny Chien <[email protected]>
renatamottam
added
Documentation
Improvements or additions to documentation
Features
New feature or request
labels
Sep 15, 2022
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Lighthouse ReportsHere are the Lighthouse reports of this Pull Request📝 Based on commit 2c6fc90
|
lucasfp13
approved these changes
Sep 16, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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's the purpose of this pull request?
This PR aims to create and refine the
ShippingSimulation
that is found in the PDP.This task didn't include API integration. Thus, we are using mocked data just to see the component working as expected.
Tasks:
How does it work?
👀 One behavior to pay attention to:
PostalCode
included in its session, the page should load thisPostalCode
in theShippingSimulation
as the default.PostalCode
in its session while in thePDP
using theRegionalization
feature, the page should load thisPostalCode
only if there is noPostalCode
included in theShippingSimulation
. But as we don't save thePostalCode
from theShippingSimulation
, if the user refreshes the page, the one from the session must override the other from theShippingSimulation
.How to test it?
So far, we are using mocked data, but you can play around inside the
PDP
. If something didn't work properly (because we are using a user session), try to clean theIndexDB
data.You can also see the storybook.
References
https://www.figma.com/file/EYJqnbWByrSX9EMKvBzBLm/22%2F06%2F14-Handoff-for-PDP-Components?node-id=1001%3A131786
https://www.figma.com/file/EYJqnbWByrSX9EMKvBzBLm/22%2F06%2F14-Handoff-for-PDP-Components?node-id=1001%3A152727
https://vtex-dev.atlassian.net/jira/software/projects/FS/boards/632?selectedIssue=FS-475
Checklist
You may erase this after checking them all ;)
Changelog
CHANGELOG.md
at the beginning of its due section. The latest version should come first.CHANGELOG.md
. E.g., New items in thepull_request_template.md
(#4)PR Description
Breaking change
,Enhancement
,Bug
orChore
.ComponentName
component.useWindowDimensions
hook.Documentation