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

Venia v2 Cart Page #2084

Merged
merged 11 commits into from
Jan 8, 2020
Merged

Venia v2 Cart Page #2084

merged 11 commits into from
Jan 8, 2020

Conversation

supernova-at
Copy link
Contributor

@supernova-at supernova-at commented Jan 7, 2020

Description

Venia v2 separates out the Cart into its own page. This PR lays out the basic structure of the page. Future PRs will populate the page with its actual content / components.

Related Issue

Closes PWA-130.

Acceptance

Verification Stakeholders

@jimbo

Specification

Verification Steps

  1. yarn watch:venia
  2. Navigate to Venia in your browser
  3. Navigate to <your dev site>/cart
  4. Verify that the new Cart page skeleton appears
  5. Verify that if you are not signed in, a "Sign In" button appears
  6. Verify that clicking the "Sign In" button opens the navigation drawer.
  7. Verify that if you are already signed in, the "Sign In" button does not appear
  8. Switch between Desktop and Mobile (< 640px) views

On Mobile:

  1. Verify that the "Recently Viewed" container is not present
  2. Verify that the page is a single column layout
  3. Verify that the "Order Summary" container appears at the bottom

On Desktop:

  1. Verify that the "Recently Viewed" container is present
  2. Verify that the page is split into two columns
  3. Scroll and verify that the "Order Summary" container "sticks" to the side / stays in view. Note that it is expected that it will disappear once you scroll past all of the content.

Screenshots / Screen Captures (if appropriate)

Mobile

Screen Shot 2020-01-07 at 2 44 03 PM

Desktop

Screen Shot 2020-01-07 at 2 44 22 PM

Checklist

  • I have updated the documentation accordingly, if necessary.
  • I have added tests to cover my changes, if necessary.

@PWAStudioBot
Copy link
Contributor

PWAStudioBot commented Jan 7, 2020

Messages
📖

Access a deployed version of this PR here. Make sure to wait for the "pwa-pull-request-deploy" job to complete.

📖 DangerCI Failures related to missing labels/description/linked issues/etc will persist until the next push or next nightly build run (assuming they are fixed).
📖

Associated JIRA tickets: PWA-130.

Generated by 🚫 dangerJS against 2ea98d1

@revanth0212 revanth0212 added the version: Major This changeset includes incompatible API changes and its release necessitates a Major version bump. label Jan 7, 2020
Copy link
Contributor

@revanth0212 revanth0212 left a comment

Choose a reason for hiding this comment

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

Nice work @supernova-at

A question/suggestion. Other than that, no issues.

packages/venia-ui/lib/components/CartPage/cartPage.js Outdated Show resolved Hide resolved
@supernova-at supernova-at added version: Minor This changeset includes functionality added in a backwards compatible manner. and removed version: Major This changeset includes incompatible API changes and its release necessitates a Major version bump. labels Jan 8, 2020
revanth0212
revanth0212 previously approved these changes Jan 8, 2020
Copy link
Contributor

@sirugh sirugh left a comment

Choose a reason for hiding this comment

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

The only thing I really want to see fixed is the css for the order summary, otherwise this is good.

* TODO: Use CSS Properties (variables) or something instead of hardcoding these.
* min-height of nav header + page spacing + height of page header
*/
top: calc(3.5rem + 3.5rem + 25px);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not sticking as I would expect. Add some extra long text like lorem ipsum and scroll. You'll see that it scrolls off the page.

Copy link
Contributor Author

@supernova-at supernova-at Jan 8, 2020

Choose a reason for hiding this comment

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

Oh yeah, that's what

Scroll and verify that the "Order Summary" container "sticks" to the side / stays in view. Note that it is expected that it will disappear once you scroll past all of the content.

was supposed to identify 😛.

If we're talking about the same thing, the fact that you can scroll past the content entirely is a product of a style that gets applied to all pages: the initial height of the page content area is always set to 100vh.

I think once the components on this page are present we won't be able to repro this.


.sign_in {
font-weight: bold;
text-decoration: underline;
Copy link
Contributor

Choose a reason for hiding this comment

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

This text looks a little larger than in the mocks, at least in relation to its counterpart in the header, "Cart".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's actually a good callout - I don't know how to open the mock in XD to get the correct size. I'll dig deeper.

Copy link
Contributor

Choose a reason for hiding this comment

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

Should be able to find a link somewhere in the epic or linked issues. But @tjwiebell is also having trouble finding pixel/size direction from XD so not sure how to help from there.

grid-area: adjustments;
}

.recently_viewed_container {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is an extension/dynamic location can we just call this cart_extension_container and rename the grid area?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we know for sure that's the case? I wasn't clear.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah yea, it was discussed when we broke the stories down that its more like a configurable area for things like "recently viewed" or "people like you purchased..." etc.

Copy link
Contributor

Choose a reason for hiding this comment

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

TBH It may be better to simply remove/comment out the html since those components don't exist and I'm not sure we are expected to even implement it within this epic.

*/
top: calc(3.5rem + 3.5rem + 25px);
top: 3.5rem;
Copy link
Contributor

Choose a reason for hiding this comment

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

Would have liked this to be a variable but the TODO will suffice

@sirugh sirugh merged commit 3048211 into develop Jan 8, 2020
@sirugh sirugh deleted the supernova/130_cart_page branch January 8, 2020 21:34
@jimbo
Copy link
Contributor

jimbo commented Jan 8, 2020

Looking through late on this one, but it's fine. We can patch up the CSS as part of the pricing summary work. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:peregrine pkg:venia-ui version: Minor This changeset includes functionality added in a backwards compatible manner.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants