docs: revise main docs outline (#10502)

This commit is contained in:
Shahed Nasser
2024-12-09 13:54:42 +02:00
committed by GitHub
parent c8cb9b5c1a
commit 0ae98c51eb
141 changed files with 814 additions and 1181 deletions
@@ -8,8 +8,8 @@ In the previous chapters, you've customized your Medusa application to [add bran
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:
- Insert components, called [widgets](../../advanced-development/admin/widgets/page.mdx), on existing pages.
- Add new pages, called [UI Routes](../../advanced-development/admin/ui-routes/page.mdx).
- Insert components, called [widgets](../../fundamentals/admin/widgets/page.mdx), on existing pages.
- Add new pages, called [UI Routes](../../fundamentals/admin/ui-routes/page.mdx).
From these customizations, you can send requests to custom API routes, allowing admin users to manage custom resources on the dashboard
@@ -19,7 +19,7 @@ In this chapter, you'll add a UI route to the admin dashboard that shows the all
## 1. Get Brands API Route
In a [previous chapter](../../extend-features/query-linked-records/page.mdx), you learned how to add an API route that retrieves brands and their products using [Query](../../../advanced-development/module-links/query/page.mdx). You'll expand that API route to support pagination, so that on the admin dashboard you can show the brands in a paginated table.
In a [previous chapter](../../extend-features/query-linked-records/page.mdx), you learned how to add an API route that retrieves brands and their products using [Query](../../../fundamentals/module-links/query/page.mdx). You'll expand that API route to support pagination, so that on the admin dashboard you can show the brands in a paginated table.
Replace or create the `GET` API route at `src/api/admin/brands/route.ts` with the following:
@@ -76,7 +76,7 @@ You return in the response the retrieved brands and the pagination configuration
<Note>
Learn more about pagination with Query in [this chapter](../../../advanced-development/module-links/query/page.mdx#apply-pagination).
Learn more about pagination with Query in [this chapter](../../../fundamentals/module-links/query/page.mdx#apply-pagination).
</Note>
@@ -138,7 +138,7 @@ By applying the above middleware, you can pass pagination configurations to `GET
<Note>
Learn more about using the `validateAndTransformQuery` middleware to configure Query in [this chapter](../../../advanced-development/module-links/query/page.mdx#request-query-configurations).
Learn more about using the `validateAndTransformQuery` middleware to configure Query in [this chapter](../../../fundamentals/module-links/query/page.mdx#request-query-configurations).
</Note>
@@ -186,7 +186,7 @@ You'll now add the UI route that shows the paginated list of brands. A UI route
<Note>
Learn more about UI routes in [this chapter](../../../advanced-development/admin/ui-routes/page.mdx).
Learn more about UI routes in [this chapter](../../../fundamentals/admin/ui-routes/page.mdx).
</Note>
@@ -59,7 +59,7 @@ You'll now add a widget to the product-details page. A widget is a React compone
<Note>
Learn more about widgets in [this documentation](../../../advanced-development/admin/widgets/page.mdx).
Learn more about widgets in [this documentation](../../../fundamentals/admin/widgets/page.mdx).
</Note>