feat(dashboard, medusa) add metadata to pages (#9433)

**WIP**
- add metadata component and edit route to missing pages
- fix API issues around metadata in certain domains

---

FIXES CC-554
This commit is contained in:
Frane Polić
2024-10-06 11:57:56 +00:00
committed by GitHub
parent ffc35f2b6e
commit d6b452b734
25 changed files with 358 additions and 98 deletions
@@ -234,6 +234,11 @@ export const RouteMap: RouteObject[] = [
lazy: () =>
import("../../routes/categories/category-organize"),
},
{
path: "metadata/edit",
lazy: () =>
import("../../routes/categories/categories-metadata"),
},
],
},
],
@@ -623,6 +628,11 @@ export const RouteMap: RouteObject[] = [
"../../routes/reservations/reservation-detail/components/edit-reservation"
),
},
{
path: "metadata/edit",
lazy: () =>
import("../../routes/reservations/reservation-metadata"),
},
],
},
],
@@ -681,6 +691,11 @@ export const RouteMap: RouteObject[] = [
"../../routes/inventory/inventory-detail/components/adjust-inventory"
),
},
{
path: "metadata/edit",
lazy: () =>
import("../../routes/inventory/inventory-metadata"),
},
{
// TODO: create reservation
path: "reservations",
@@ -765,6 +780,10 @@ export const RouteMap: RouteObject[] = [
lazy: () =>
import("../../routes/regions/region-add-countries"),
},
{
path: "metadata/edit",
lazy: () => import("../../routes/regions/region-metadata"),
},
],
},
],
@@ -820,6 +839,10 @@ export const RouteMap: RouteObject[] = [
path: "edit",
lazy: () => import("../../routes/users/user-edit"),
},
{
path: "metadata/edit",
lazy: () => import("../../routes/users/user-metadata"),
},
],
},
],
@@ -867,6 +890,13 @@ export const RouteMap: RouteObject[] = [
"../../routes/sales-channels/sales-channel-add-products"
),
},
{
path: "metadata/edit",
lazy: () =>
import(
"../../routes/sales-channels/sales-channel-metadata"
),
},
],
},
],