@graphcommerce/docs 9.0.4-canary.1 → 9.0.4-canary.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.4-canary.11
4
+
5
+ ## 9.0.4-canary.10
6
+
7
+ ## 9.0.4-canary.9
8
+
9
+ ## 9.0.4-canary.8
10
+
11
+ ## 9.0.4-canary.7
12
+
13
+ ## 9.0.4-canary.6
14
+
15
+ ## 9.0.4-canary.5
16
+
17
+ ## 9.0.4-canary.4
18
+
19
+ ## 9.0.4-canary.3
20
+
21
+ ## 9.0.4-canary.2
22
+
3
23
  ## 9.0.4-canary.1
4
24
 
5
25
  ## 9.0.4-canary.0
package/feature-list.md CHANGED
@@ -203,7 +203,7 @@ Features taken from the Magento Commerce 2 Feature List
203
203
  - [x] Zoom-in on product images.
204
204
  - [ ] Display product videos from YouTube or Vimeo. — [Todo]
205
205
  - [x] Include swatches to show colors, fabrics, and more.
206
- - [ ] Show multiple products in a grouped view. — [Todo]
206
+ - [x] Show multiple products in a grouped view. — [Todo]
207
207
  - [x] Indicate stock availability.
208
208
  - [x] Set related products, up-sell, and cross-sell recommendations to increase
209
209
  average order value.
@@ -276,7 +276,7 @@ Features taken from the Magento Commerce 2 Feature List
276
276
  emails.
277
277
  - [x] Build customer relationships by creating newsletters and managing their
278
278
  distribution.
279
- - [ ] Connect with customers with a Contact Us form. — [Todo]
279
+ - [x] Connect with customers with a Contact Us form.
280
280
 
281
281
  ### Customer loyalty
282
282
 
@@ -290,13 +290,13 @@ Features taken from the Magento Commerce 2 Feature List
290
290
  registry. — [Commerce]
291
291
  - [ ] Automatically update item counts and notify the registry owner as
292
292
  purchases are made. — [Commerce]
293
- - [ ] Allow customers to purchase physical and virtual gift cards. — [Commerce]
293
+ - [x] Allow customers to purchase physical and virtual gift cards. — [Commerce]
294
294
  - [ ] Offer exclusive shopping experiences with private or flash sale sites. —
295
295
  [Commerce]
296
296
  - [ ] Streamline re-ordering by enabling shoppers to add products to the cart by
297
297
  SKU. — [Commerce]
298
298
  - [ ] Accelerate growth by collecting and displaying high-converting user
299
- generated content powered by Yotpo. — [Commerce]
299
+ generated content powered by Yotpo. — [Commerce] f
300
300
 
301
301
  ### Customer accounts
302
302
 
@@ -305,10 +305,11 @@ Features taken from the Magento Commerce 2 Feature List
305
305
  - [x] Choose default billing and shipping addresses.
306
306
  - [x] Store unlimited addresses in the address book.
307
307
  - [x] See order status and history.
308
- - [ ] Re-order from the customer account. — [Todo]
308
+ - [x] Re-order from the customer account.
309
309
  - [x] View recently ordered items.
310
- - [ ] Track available store credits, gift card totals, and reward points. —
311
- [Commerce]
310
+ - [x] Track available store credits [Commerce]
311
+ - [ ] Track gift card totals — [Commerce]
312
+ - [ ] Track reward points — [Commerce]
312
313
  - [x] Manage newsletter subscriptions.
313
314
  - [x] View submitted product reviews.
314
315
  - [ ] Access downloadable/digital products. — [Todo]
@@ -251,6 +251,11 @@ The Google Tagmanager ID to be used on the site.
251
251
 
252
252
  This value is required even if you are configuring different values for each locale.
253
253
 
254
+ #### graphqlMeshEditMode: boolean = `false`
255
+
256
+ The GraphQL Mesh will be loaded once and any modifications to resolvers will be ignored. When developing
257
+ new resolvers this should be set to true.
258
+
254
259
  #### hygraphManagementApi: string
255
260
 
256
261
  Hygraph Management API. **Only used for migrations.**
package/framework/mesh.md CHANGED
@@ -27,7 +27,8 @@ To make modifications to the Mesh configuration, you can:
27
27
  ### Modify the meshrc.yaml:
28
28
 
29
29
  You can always modify the base configuration of the Mesh by modifying the
30
- `meshrc.yaml` file.
30
+ `meshrc.yaml` file. After making always run `yarn codegen` (this can be in a
31
+ separate terminal and nextjs will reload it).
31
32
 
32
33
  ### Write a plugin:
33
34
 
@@ -61,6 +62,33 @@ export const meshConfig: FunctionPlugin<typeof meshConfigBase> = (
61
62
  },
62
63
  },
63
64
  ],
65
+ additionalResolvers: [
66
+ ...(baseConfig.additionalResolvers ?? []),
67
+ 'lib/resolvers/my-feature.ts',
68
+ ],
64
69
  })
65
70
  }
66
71
  ```
72
+
73
+ ### Creating additional schema's
74
+
75
+ During development it might come in handy to write schema extensions even before
76
+ any backend work has been done. `AnyFile.graphqls` in the graphql directory will
77
+ automatically be picked up and merged with the rest of the schema.
78
+
79
+ ### Creating additional resolvers
80
+
81
+ In the plugin add additionalResolvers and point to your ts file where the
82
+ resolver is.
83
+
84
+ ```tsx
85
+ // This MUST be a type import, else there will be a circular dependency.
86
+ import type { Resolvers } from '@graphcommerce/graphql-mesh'
87
+
88
+ const resolvers: Resolvers = {}
89
+ ```
90
+
91
+ To make sure changes are picked up during development set the config value
92
+ `graphqlMeshEditMode: true` in your graphcommerce.config.js or set the env
93
+ variable `GC_GRAPHQL_MESH_EDIT_MODE=1`. This _will_ make the frontend
94
+ considerably slower.
package/package.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "name": "@graphcommerce/docs",
3
3
  "homepage": "https://www.graphcommerce.org/docs",
4
4
  "repository": "github:graphcommerce-org/graphcommerce/docs",
5
- "version": "9.0.4-canary.1",
5
+ "version": "9.0.4-canary.11",
6
6
  "sideEffects": true,
7
7
  "peerDependencies": {
8
- "@graphcommerce/prettier-config-pwa": "^9.0.4-canary.1"
8
+ "@graphcommerce/prettier-config-pwa": "^9.0.4-canary.11"
9
9
  },
10
10
  "prettier": "@graphcommerce/prettier-config-pwa"
11
11
  }
package/roadmap.md CHANGED
@@ -14,7 +14,8 @@ roadmap.
14
14
  - [ ] GraphCommerce Pro: Distribution of private npm packages for customers.
15
15
  - [ ] GraphCommerce Pro: Distribution of private Magento modules for customers.
16
16
  - [ ] Adobe Commerce: Returns functionality
17
- - [ ] Adobe Commerce: Store credit functionality
17
+ - [x] Adobe Commerce: Store credit functionality
18
+ - [x] Adobe Commerce: Gift card functionality
18
19
  - [ ] Adobe Commerce: Content staging functionality in preview mode.
19
20
  - [ ] Storelocator UI. Generic Store Locator UI to allow for any datasource to
20
21
  be used. Integrate with Magento's pickupLocations functionality.
@@ -36,7 +37,6 @@ roadmap.
36
37
  - [ ] Upgrade to React 19 + Next.js app router support.
37
38
  - [ ] Adobe Commerce: Reward points functionality
38
39
  - [ ] Adobe Commerce: Gift wrapping functionality
39
- - [ ] Adobe Commerce: Gift card functionality
40
40
  - [ ] Adobe Commerce: Gift registry functionality
41
41
  - [ ] Adobe Commerce: Multi Wishlist functionality
42
42
  - [ ] Adobe Comemrce: Adobe Sensei integration
@@ -50,7 +50,7 @@ roadmap.
50
50
  logging in.
51
51
  - [ ] Magento 2.4.7: Implement attributesForm for customer_account_edit,
52
52
  customer_account_create, customer_register_address, customer_address_edit
53
- - [ ] Magento 2.4.7: sendEmailToFriend implementation
53
+ - [ ] Magento: sendEmailToFriend implementation
54
54
  - [ ] Magento 2.4.7: Implement a new success page on the the new
55
55
  guestOrderByToken
56
56
  - [ ] Magento: Implement fixed_product_taxes