docs: added product review guide (#11852)

* finish guide

* fix tags not showing correctly

* revert changes in prepare

* generate changes
This commit is contained in:
Shahed Nasser
2025-03-19 15:19:38 +02:00
committed by GitHub
parent 8385a5e34d
commit ee014e063e
14 changed files with 30436 additions and 12190 deletions
File diff suppressed because it is too large Load Diff
+18
View File
@@ -110,6 +110,24 @@ async function main() {
{ {
dir: path.join(process.cwd(), "..", "resources", "app", "js-sdk"), dir: path.join(process.cwd(), "..", "resources", "app", "js-sdk"),
}, },
{
dir: path.join(process.cwd(), "..", "resources", "app", "examples"),
},
{
dir: path.join(
process.cwd(),
"..",
"resources",
"app",
"how-to-tutorials"
),
},
{
dir: path.join(process.cwd(), "..", "resources", "app", "integrations"),
},
{
dir: path.join(process.cwd(), "..", "resources", "app", "plugins"),
},
{ {
dir: path.join( dir: path.join(
process.cwd(), process.cwd(),
File diff suppressed because it is too large Load Diff
+5 -4
View File
@@ -6044,9 +6044,9 @@ export const generatedEditDates = {
"app/how-to-tutorials/page.mdx": "2025-03-10T09:33:49.208Z", "app/how-to-tutorials/page.mdx": "2025-03-10T09:33:49.208Z",
"app/tools/page.mdx": "2025-03-10T12:38:56.520Z", "app/tools/page.mdx": "2025-03-10T12:38:56.520Z",
"app/references-overview/page.mdx": "2025-03-10T12:55:49.803Z", "app/references-overview/page.mdx": "2025-03-10T12:55:49.803Z",
"app/architectural-modules/locking/page.mdx": "2025-03-12T11:40:25.695Z", "app/architectural-modules/locking/page.mdx": "2025-03-14T08:32:57.875Z",
"app/architectural-modules/locking/postgres/page.mdx": "2025-03-12T10:07:48.820Z", "app/architectural-modules/locking/postgres/page.mdx": "2025-03-14T08:32:57.875Z",
"app/architectural-modules/locking/redis/page.mdx": "2025-03-12T10:07:43.867Z", "app/architectural-modules/locking/redis/page.mdx": "2025-03-14T08:32:57.876Z",
"references/locking/interfaces/locking.ILockingModule/page.mdx": "2025-03-12T12:28:30.425Z", "references/locking/interfaces/locking.ILockingModule/page.mdx": "2025-03-12T12:28:30.425Z",
"references/locking/interfaces/locking.ILockingProvider/page.mdx": "2025-03-12T12:28:30.422Z", "references/locking/interfaces/locking.ILockingProvider/page.mdx": "2025-03-12T12:28:30.422Z",
"references/modules/locking/page.mdx": "2025-03-12T12:28:30.419Z", "references/modules/locking/page.mdx": "2025-03-12T12:28:30.419Z",
@@ -6060,5 +6060,6 @@ export const generatedEditDates = {
"references/notification_service/interfaces/notification_service.INotificationModuleService/page.mdx": "2025-03-17T15:24:05.173Z", "references/notification_service/interfaces/notification_service.INotificationModuleService/page.mdx": "2025-03-17T15:24:05.173Z",
"app/nextjs-starter/guides/revalidate-cache/page.mdx": "2025-03-18T08:47:59.628Z", "app/nextjs-starter/guides/revalidate-cache/page.mdx": "2025-03-18T08:47:59.628Z",
"app/storefront-development/cart/totals/page.mdx": "2025-03-18T09:20:59.533Z", "app/storefront-development/cart/totals/page.mdx": "2025-03-18T09:20:59.533Z",
"app/storefront-development/checkout/order-confirmation/page.mdx": "2025-03-18T09:44:14.561Z" "app/storefront-development/checkout/order-confirmation/page.mdx": "2025-03-18T09:44:14.561Z",
"app/how-to-tutorials/tutorials/product-reviews/page.mdx": "2025-03-19T13:00:56.901Z"
} }
@@ -815,6 +815,10 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/how-to-tutorials/page.mdx", "filePath": "/www/apps/resources/app/how-to-tutorials/page.mdx",
"pathname": "/how-to-tutorials" "pathname": "/how-to-tutorials"
}, },
{
"filePath": "/www/apps/resources/app/how-to-tutorials/tutorials/product-reviews/page.mdx",
"pathname": "/how-to-tutorials/tutorials/product-reviews"
},
{ {
"filePath": "/www/apps/resources/app/integrations/guides/resend/page.mdx", "filePath": "/www/apps/resources/app/integrations/guides/resend/page.mdx",
"pathname": "/integrations/guides/resend" "pathname": "/integrations/guides/resend"
@@ -3373,7 +3373,7 @@ const generatedgeneratedCommerceModulesSidebarSidebar = {
"isPathHref": true, "isPathHref": true,
"type": "category", "type": "category",
"title": "Admin User Guides", "title": "Admin User Guides",
"autogenerate_tags": "userGuide+fulfillment", "autogenerate_tags": "fulfillment+userGuide",
"autogenerate_as_ref": true, "autogenerate_as_ref": true,
"sort_sidebar": "alphabetize", "sort_sidebar": "alphabetize",
"description": "Learn how to utilize and manage Fulfillment features in the Medusa Admin dashboard.", "description": "Learn how to utilize and manage Fulfillment features in the Medusa Admin dashboard.",
@@ -3394,6 +3394,14 @@ const generatedgeneratedCommerceModulesSidebarSidebar = {
"path": "https://docs.medusajs.com/user-guide/orders/fulfillments", "path": "https://docs.medusajs.com/user-guide/orders/fulfillments",
"children": [] "children": []
}, },
{
"loaded": true,
"isPathHref": true,
"type": "ref",
"title": "Manage Shipping Options",
"path": "https://docs.medusajs.com/user-guide/settings/locations-and-shipping/locations",
"children": []
},
{ {
"loaded": true, "loaded": true,
"isPathHref": true, "isPathHref": true,
@@ -11011,7 +11019,7 @@ const generatedgeneratedCommerceModulesSidebarSidebar = {
"isPathHref": true, "isPathHref": true,
"type": "category", "type": "category",
"title": "Server Guides", "title": "Server Guides",
"autogenerate_tags": "server+product", "autogenerate_tags": "product+server",
"autogenerate_as_ref": true, "autogenerate_as_ref": true,
"sort_sidebar": "alphabetize", "sort_sidebar": "alphabetize",
"description": "Learn how to use the Product Module in your customizations on the Medusa application server.", "description": "Learn how to use the Product Module in your customizations on the Medusa application server.",
@@ -11047,6 +11055,14 @@ const generatedgeneratedCommerceModulesSidebarSidebar = {
"path": "/commerce-modules/product/guides/price", "path": "/commerce-modules/product/guides/price",
"title": "Get Variant Prices", "title": "Get Variant Prices",
"children": [] "children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "ref",
"title": "Implement Product Reviews",
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/product-reviews",
"children": []
} }
] ]
}, },
@@ -349,6 +349,15 @@ const generatedgeneratedHowToTutorialsSidebarSidebar = {
"description": "Learn how to use prices from external systems for products.", "description": "Learn how to use prices from external systems for products.",
"children": [] "children": []
}, },
{
"loaded": true,
"isPathHref": true,
"type": "link",
"title": "Product Reviews",
"path": "/how-to-tutorials/tutorials/product-reviews",
"description": "Learn how to implement product reviews in your Medusa store.",
"children": []
},
{ {
"loaded": true, "loaded": true,
"isPathHref": true, "isPathHref": true,
+1 -1
View File
@@ -93,7 +93,7 @@ export const fulfillmentSidebar = [
{ {
type: "category", type: "category",
title: "Admin User Guides", title: "Admin User Guides",
autogenerate_tags: "userGuide+fulfillment", autogenerate_tags: "fulfillment+userGuide",
autogenerate_as_ref: true, autogenerate_as_ref: true,
sort_sidebar: "alphabetize", sort_sidebar: "alphabetize",
description: description:
@@ -78,6 +78,13 @@ While tutorials show you a specific use case, they also help you understand how
description: description:
"Learn how to use prices from external systems for products.", "Learn how to use prices from external systems for products.",
}, },
{
type: "link",
title: "Product Reviews",
path: "/how-to-tutorials/tutorials/product-reviews",
description:
"Learn how to implement product reviews in your Medusa store.",
},
{ {
type: "link", type: "link",
title: "Quote Management", title: "Quote Management",
+1 -1
View File
@@ -39,7 +39,7 @@ export const productSidebar = [
{ {
type: "category", type: "category",
title: "Server Guides", title: "Server Guides",
autogenerate_tags: "server+product", autogenerate_tags: "product+server",
autogenerate_as_ref: true, autogenerate_as_ref: true,
sort_sidebar: "alphabetize", sort_sidebar: "alphabetize",
description: description:
@@ -46,11 +46,7 @@ const getIntersectionTags = (tags: string): Tag => {
return tagsToIntersect return tagsToIntersect
.slice(1) .slice(1)
.every((otherTag) => .every((otherTag) =>
otherTag.some( otherTag.some((otherTagItem) => otherTagItem.path === tagItem.path)
(otherTagItem) =>
otherTagItem.title === tagItem.title &&
otherTagItem.path === tagItem.path
)
) )
}) })
} }
+4
View File
@@ -63,6 +63,10 @@ export const product = [
"title": "Get Variant Price with Taxes", "title": "Get Variant Price with Taxes",
"path": "https://docs.medusajs.com/resources/commerce-modules/product/guides/price-with-taxes" "path": "https://docs.medusajs.com/resources/commerce-modules/product/guides/price-with-taxes"
}, },
{
"title": "Implement Product Reviews",
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/product-reviews"
},
{ {
"title": "Build Wishlist Plugin", "title": "Build Wishlist Plugin",
"path": "https://docs.medusajs.com/resources/plugins/guides/wishlist" "path": "https://docs.medusajs.com/resources/plugins/guides/wishlist"
+4
View File
@@ -55,6 +55,10 @@ export const server = [
"title": "Implement Quote Management", "title": "Implement Quote Management",
"path": "https://docs.medusajs.com/resources/examples/guides/quote-management" "path": "https://docs.medusajs.com/resources/examples/guides/quote-management"
}, },
{
"title": "Product Reviews",
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/product-reviews"
},
{ {
"title": "Build Wishlist Plugin", "title": "Build Wishlist Plugin",
"path": "https://docs.medusajs.com/resources/plugins/guides/wishlist" "path": "https://docs.medusajs.com/resources/plugins/guides/wishlist"
+4
View File
@@ -23,6 +23,10 @@ export const tutorial = [
"title": "Implement Quote Management", "title": "Implement Quote Management",
"path": "https://docs.medusajs.com/resources/examples/guides/quote-management" "path": "https://docs.medusajs.com/resources/examples/guides/quote-management"
}, },
{
"title": "Product Reviews",
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/product-reviews"
},
{ {
"title": "Build Wishlist Plugin", "title": "Build Wishlist Plugin",
"path": "https://docs.medusajs.com/resources/plugins/guides/wishlist" "path": "https://docs.medusajs.com/resources/plugins/guides/wishlist"