You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: www/apps/book/app/learn/customization/custom-features/page.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ In the upcoming chapters, you'll follow step-by-step guides to build custom feat
8
8
9
9
By following these guides, you'll add brands to the Medusa application that you can associate with products.
10
10
11
-
To build a custom feature in Medusa, you need three main tools:
11
+
To build a custom feature in Medusa, you need three main [Framework](../../fundamentals/framework/page.mdx)tools:
12
12
13
13
-[Module](../../fundamentals/modules/page.mdx): a package with commerce logic for a single domain. It defines new tables to add to the database, and a class of methods to manage these tables.
14
14
-[Workflow](../../fundamentals/workflows/page.mdx): a tool to perform an operation comprising multiple steps with built-in rollback and retry mechanisms.
Copy file name to clipboardExpand all lines: www/apps/book/app/learn/customization/customize-admin/page.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,10 @@ In the previous chapters, you've customized your Medusa application to [add bran
8
8
9
9
After customizing and extending your application with new features, you may need to provide an interface for admin users to utilize these features. The Medusa Admin dashboard is extendable, allowing you to:
10
10
11
-
- Insert components, called [widgets](../../fundamentals/admin/widgets/page.mdx), on existing pages.
12
-
- Add new pages, called [UI Routes](../../fundamentals/admin/ui-routes/page.mdx).
11
+
- Insert components, called [widgets](../../fundamentals/admin/widgets/page.mdx), into existing pages. For example, you can add a widget to the product details page that shows the product's brand.
12
+
- Add new pages, called [UI Routes](../../fundamentals/admin/ui-routes/page.mdx). For example, you can create a new page in the dashboard that lists all brands in the store.
13
13
14
-
From these customizations, you can send requests to custom API routes, allowing admin users to manage custom resources on the dashboard
14
+
Within these customizations, you can send requests to custom API routes, allowing admin users to view and manage custom resources on the dashboard.
Copy file name to clipboardExpand all lines: www/apps/book/app/learn/fundamentals/admin/constraints/page.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,11 @@ export const metadata = {
4
4
5
5
# {metadata.title}
6
6
7
-
This chapter lists some constraints of admin widgets and UI routes.
7
+
This chapter lists some development constraints of admin widgets and UI routes.
8
8
9
9
## Arrow Functions
10
10
11
-
Widget and UI route components must be created as arrow functions.
11
+
Widget and UI route components must be created as arrow functions. Otherwise, Medusa doesn't register them correctly.
12
12
13
13
exportconst arrowHighlights = [
14
14
["2", "function", "Don't declare the widget / UI route as a function."],
@@ -31,7 +31,7 @@ const ProductWidget = () => {
31
31
32
32
## Widget Zone
33
33
34
-
A widget zone's value must be wrapped in double or single quotes. It can't be a template literal or a variable.
34
+
A widget zone's value must be wrapped in double or single quotes. It can't be a template literal or a variable. Otherwise, Medusa doesn't register the widget correctly.
35
35
36
36
exportconst zoneHighlights = [
37
37
["3", "`product.details.before`", "Don't specify the value of `zone` as a template literal."],
Copy file name to clipboardExpand all lines: www/apps/book/public/llms-full.txt
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1524,7 +1524,7 @@ In the upcoming chapters, you'll follow step-by-step guides to build custom feat
1524
1524
1525
1525
By following these guides, you'll add brands to the Medusa application that you can associate with products.
1526
1526
1527
-
To build a custom feature in Medusa, you need three main tools:
1527
+
To build a custom feature in Medusa, you need three main [Framework](https://docs.medusajs.com/learn/fundamentals/framework/index.html.md) tools:
1528
1528
1529
1529
- [Module](https://docs.medusajs.com/learn/fundamentals/modules/index.html.md): a package with commerce logic for a single domain. It defines new tables to add to the database, and a class of methods to manage these tables.
1530
1530
- [Workflow](https://docs.medusajs.com/learn/fundamentals/workflows/index.html.md): a tool to perform an operation comprising multiple steps with built-in rollback and retry mechanisms.
@@ -1687,10 +1687,10 @@ In the previous chapters, you've customized your Medusa application to [add bran
1687
1687
1688
1688
After customizing and extending your application with new features, you may need to provide an interface for admin users to utilize these features. The Medusa Admin dashboard is extendable, allowing you to:
1689
1689
1690
-
- Insert components, called [widgets](https://docs.medusajs.com/learn/fundamentals/admin/widgets/index.html.md), on existing pages.
1691
-
- Add new pages, called [UI Routes](https://docs.medusajs.com/learn/fundamentals/admin/ui-routes/index.html.md).
1690
+
- Insert components, called [widgets](https://docs.medusajs.com/learn/fundamentals/admin/widgets/index.html.md), into existing pages. For example, you can add a widget to the product details page that shows the product's brand.
1691
+
- Add new pages, called [UI Routes](https://docs.medusajs.com/learn/fundamentals/admin/ui-routes/index.html.md). For example, you can create a new page in the dashboard that lists all brands in the store.
1692
1692
1693
-
From these customizations, you can send requests to custom API routes, allowing admin users to manage custom resources on the dashboard
1693
+
Within these customizations, you can send requests to custom API routes, allowing admin users to view and manage custom resources on the dashboard.
A widget zone's value must be wrapped in double or single quotes. It can't be a template literal or a variable.
5220
+
A widget zone's value must be wrapped in double or single quotes. It can't be a template literal or a variable. Otherwise, Medusa doesn't register the widget correctly.
0 commit comments