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

Use Customer Account API in templates/skeleton & template/demo-store #1576

Merged
merged 22 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
523be74
✨ add type generation for customer account api in app/graphql/custome…
michenly Jan 4, 2024
ec6f0f6
✨ add customer client creation into remix server context
michenly Dec 14, 2023
a53f557
🔥 remove account activate, recover, register and reset. Since these a…
michenly Dec 14, 2023
476501d
💥 get customer login flow and account/orders landing page working
michenly Dec 14, 2023
1243bfd
🗒️ Doc Changes:
michenly Jan 2, 2024
d05aa96
✅ Test update
michenly Jan 10, 2024
6d65ea5
Update templates/skeleton/app/routes/account.$.tsx
michenly Jan 12, 2024
9cc5f54
✨ add an option to change auth url from the default /authorize
michenly Jan 12, 2024
8e62d99
✨ add defer loading for login check in root (#1636)
michenly Jan 15, 2024
9b8d2a3
cart edit
michenly Jan 17, 2024
41cccc0
🔥 remove customer-api example
michenly Jan 17, 2024
6004f5c
Update .changeset/tasty-plums-pump.md
michenly Jan 17, 2024
fe62884
Update packages/hydrogen/src/customer/customer.ts
michenly Jan 17, 2024
2d65a51
Update packages/hydrogen/src/customer/customer.ts
michenly Jan 17, 2024
be2fdbe
Update packages/hydrogen/src/customer/customer.ts
michenly Jan 17, 2024
843360b
demo-store customer account api update (#1647)
michenly Jan 17, 2024
a8848e1
implement redirectPath for skeleton template
michenly Jan 17, 2024
444e92e
use /account/authorize as the default authUrl
michenly Jan 17, 2024
e22157b
add post-fix Promise to those promise in defer that still need resolving
michenly Jan 17, 2024
4848329
remove redirectPath from authorize()
michenly Jan 17, 2024
65a886f
fix customer test
michenly Jan 17, 2024
3f085ba
fix cart
michenly Jan 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changeset/tasty-plums-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'skeleton': patch
'@shopify/hydrogen': patch
'@shopify/cli-hydrogen': patch
---

✨ Use the new Customer Account API in the account section of the skeleton template
michenly marked this conversation as resolved.
Show resolved Hide resolved

✨ Add an `authUrl` option to `createCustomerClient` that defines the route in your app that authorizes a user after logging in. The default value is `/account/authorize`.

✨ Add an optional `redirectPath` parameter to customer client's login method. This param defines the final path the user lands on at the end of the oAuth flow. It defaults to `/`
11 changes: 9 additions & 2 deletions .graphqlrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ projects:
default:
schema: 'packages/hydrogen-react/storefront.schema.json'
documents:
- 'templates/**/app/**/*.{graphql,js,ts,jsx,tsx}'
- 'examples/**/app/**/*.{graphql,js,ts,jsx,tsx}'
- 'templates/**/app/**/*.{graphql,js,ts,jsx,tsx}'
- 'examples/**/app/**/*.{graphql,js,ts,jsx,tsx}'
- '!templates/**/app/graphql/**/*.{graphql,js,ts,jsx,tsx}'
- '!examples/**/app/graphql/**/*.{graphql,js,ts,jsx,tsx}'
customer-account:
schema: 'packages/hydrogen-react/customer-account.schema.json'
documents:
- 'templates/**/app/graphql/customer-account/**/*.{graphql,js,ts,jsx,tsx}'
- 'examples/**/app/graphql/customer-account/**/*.{graphql,js,ts,jsx,tsx}'
admin:
schema: 'packages/cli/admin.schema.json'
documents: 'packages/cli/src/**/graphql/admin/**/*.ts'
Expand Down
1 change: 0 additions & 1 deletion examples/customer-api/.gitignore

This file was deleted.

37 changes: 0 additions & 37 deletions examples/customer-api/README.md

This file was deleted.

12 changes: 0 additions & 12 deletions examples/customer-api/app/entry.client.tsx

This file was deleted.

40 changes: 0 additions & 40 deletions examples/customer-api/app/entry.server.tsx

This file was deleted.

74 changes: 0 additions & 74 deletions examples/customer-api/app/root.tsx

This file was deleted.

81 changes: 0 additions & 81 deletions examples/customer-api/app/routes/_index.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions examples/customer-api/app/routes/authorize.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions examples/customer-api/app/routes/logout.tsx

This file was deleted.

31 changes: 0 additions & 31 deletions examples/customer-api/app/styles/app.css

This file was deleted.

7 changes: 0 additions & 7 deletions examples/customer-api/example.env

This file was deleted.

42 changes: 0 additions & 42 deletions examples/customer-api/package.json

This file was deleted.

Loading
Loading