docs: fix multiple typos in customization chapters (#10727)
This commit is contained in:
@@ -6,7 +6,7 @@ export const metadata = {
|
||||
|
||||
# {metadata.title}
|
||||
|
||||
In this chapter, you'll add a UI route to the admin dashboard that shows the all [brands](../../custom-features/module/page.mdx) in a new page. You'll retrieve the brands from the server and display them in a table with pagination.
|
||||
In this chapter, you'll add a UI route to the admin dashboard that shows all [brands](../../custom-features/module/page.mdx) in a new page. You'll retrieve the brands from the server and display them in a table with pagination.
|
||||
|
||||
<Prerequisites
|
||||
items={[
|
||||
|
||||
@@ -45,7 +45,7 @@ export const eventHighlights = [
|
||||
["15", "data", "The data to pass in the payload."]
|
||||
]
|
||||
|
||||
```ts title="src/workflows/create-brand/index.ts" highlights={eventHighlights}
|
||||
```ts title="src/workflows/create-brand.ts" highlights={eventHighlights}
|
||||
// other imports...
|
||||
import {
|
||||
emitEventStep,
|
||||
|
||||
@@ -77,7 +77,7 @@ const retrieveBrandsFromCmsStep = createStep(
|
||||
)
|
||||
```
|
||||
|
||||
You create a `retrieveBrandsFromSystemStep` that resolves the CMS Module's service and uses its `retrieveBrands` method to retrieve the brands in the CMS. You return those brands in the step's response.
|
||||
You create a `retrieveBrandsFromCmsStep` that resolves the CMS Module's service and uses its `retrieveBrands` method to retrieve the brands in the CMS. You return those brands in the step's response.
|
||||
|
||||
### createBrandsStep
|
||||
|
||||
@@ -208,17 +208,17 @@ import {
|
||||
|
||||
// ...
|
||||
|
||||
export const syncBrandsFromSystemWorkflow = createWorkflow(
|
||||
export const syncBrandsFromCmsWorkflow = createWorkflow(
|
||||
"sync-brands-from-system",
|
||||
() => {
|
||||
const brands = retrieveBrandsFromSystemStep()
|
||||
const brands = retrieveBrandsFromCmsStep()
|
||||
|
||||
// TODO create and update brands
|
||||
}
|
||||
)
|
||||
```
|
||||
|
||||
In the workflow, you only use the `retrieveBrandsFromSystemStep` for now, which retrieves the brands from the third-party CMS.
|
||||
In the workflow, you only use the `retrieveBrandsFromCmsStep` for now, which retrieves the brands from the third-party CMS.
|
||||
|
||||
Next, you need to identify which brands must be created or updated. Since workflows are constructed internally and are only evaluated during execution, you can't access values to perform data manipulation directly. Instead, use [transform](../../../fundamentals/workflows/variable-manipulation/page.mdx) from the Workflows SDK that gives you access to the real-time values of the data, allowing you to create new variables using those values.
|
||||
|
||||
|
||||
@@ -89,14 +89,14 @@ export const generatedEditDates = {
|
||||
"app/learn/customization/extend-features/extend-create-product/page.mdx": "2024-12-23T15:42:23.863Z",
|
||||
"app/learn/customization/custom-features/page.mdx": "2024-12-09T10:46:28.593Z",
|
||||
"app/learn/customization/customize-admin/page.mdx": "2024-12-09T11:02:38.801Z",
|
||||
"app/learn/customization/customize-admin/route/page.mdx": "2024-12-09T15:32:46.656Z",
|
||||
"app/learn/customization/customize-admin/route/page.mdx": "2024-12-24T15:08:46.095Z",
|
||||
"app/learn/customization/customize-admin/widget/page.mdx": "2024-12-09T11:02:39.108Z",
|
||||
"app/learn/customization/extend-features/define-link/page.mdx": "2024-12-09T11:02:39.346Z",
|
||||
"app/learn/customization/extend-features/page.mdx": "2024-12-09T11:02:39.244Z",
|
||||
"app/learn/customization/extend-features/query-linked-records/page.mdx": "2024-12-09T11:02:39.519Z",
|
||||
"app/learn/customization/integrate-systems/handle-event/page.mdx": "2024-12-09T11:02:39.744Z",
|
||||
"app/learn/customization/integrate-systems/handle-event/page.mdx": "2024-12-24T15:09:24.653Z",
|
||||
"app/learn/customization/integrate-systems/page.mdx": "2024-12-09T10:40:08.528Z",
|
||||
"app/learn/customization/integrate-systems/schedule-task/page.mdx": "2024-12-09T10:52:19.379Z",
|
||||
"app/learn/customization/integrate-systems/schedule-task/page.mdx": "2024-12-24T15:11:40.620Z",
|
||||
"app/learn/customization/integrate-systems/service/page.mdx": "2024-12-09T11:02:39.594Z",
|
||||
"app/learn/customization/next-steps/page.mdx": "2024-12-06T14:34:53.356Z",
|
||||
"app/learn/fundamentals/modules/architectural-modules/page.mdx": "2024-10-21T13:30:21.367Z",
|
||||
|
||||
Reference in New Issue
Block a user