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

Accounts, Part 3 #65

Merged
merged 4 commits into from
Oct 11, 2022
Merged

Accounts, Part 3 #65

merged 4 commits into from
Oct 11, 2022

Conversation

jplhomer
Copy link
Contributor

@jplhomer jplhomer commented Oct 11, 2022

Builds out the Address CRUD functionality, and refactors everything to share a single modal.

RE: #1


if (rootData?.cart?._data) {
return rootData?.cart?._data;
}

throw rootData?.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.

This crashes the app if there is no cart present, so I removed it. We should reconsider whether we want a "magic" hook like this in H2.0.

Comment on lines +124 to +125
event.currentTarget.value.length &&
!event.currentTarget.validity.valid
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Prevents the error from showing up if the user hasn't had a god-dang chance to fill it out yet!!!

@jplhomer jplhomer merged commit 404bd2e into main Oct 11, 2022
@jplhomer jplhomer deleted the jl-auth-pt3 branch October 11, 2022 16:16
remcolakens added a commit to remcolakens/hydrogen that referenced this pull request Jul 14, 2023
## Context

Added basic `<Layout />` component for handling the `<Header />` and
`<Footer />` logic.
Included some refactoring of the remix components for a better
structure/overview

## Changes

- Changed the remix components folder structure for better overview
- Fixed Storybook aliases
- Fixed Storybook tailwind content path
- Added new component for handling the` <Layout />`
- Added basic `<Header />` component with logo only
- Added `<Footer />` component in the styling from the CBT design
- Add skip to content link

## Screenshot


![footer-component](https://github.com/code-internet-applications/cbt-hydrogen/assets/2558163/b29d532b-a75c-465e-b9c6-4f81ab12fd47)

## Paperwork

[SCH-24](https://codeinternetapplications.atlassian.net/browse/SCH-24)
[SCH-25](https://codeinternetapplications.atlassian.net/browse/SCH-25)
[SCH-26](https://codeinternetapplications.atlassian.net/browse/SCH-26)

## Checklist

- [x] My code follows the style guidelines of this project
- [x] I've performed a self-review of my own code
- [x] I've added a changeset if this PR contains user-facing or
noteworthy changes
- [x] I've commented my code, particularly in hard-to-understand areas
- [x] I've made corresponding changes to the documentation
- [x] I've tested my code for breaking changes and added the
corresponding
      footer in this PR if needed


[SCH-24]:
https://codeinternetapplications.atlassian.net/browse/SCH-24?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[SCH-25]:
https://codeinternetapplications.atlassian.net/browse/SCH-25?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[SCH-26]:
https://codeinternetapplications.atlassian.net/browse/SCH-26?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
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.

1 participant