fix(dashboard,medusa,fulfillment): Move Shipping Profiles to settings (#7090)

**What**
- Moves Shipping Profiles to settings
- Adds `q` and filters to shipping profile list endpoint
- Adds new details page for profiles
This commit is contained in:
Kasper Fabricius Kristensen
2024-04-19 14:11:32 +00:00
committed by GitHub
parent 9bd2d30595
commit e2fabc1c05
31 changed files with 536 additions and 136 deletions
@@ -1,6 +1,4 @@
import type {
AdminCustomerGroupsRes,
AdminCustomersRes,
AdminDiscountsRes,
AdminDraftOrdersRes,
AdminGiftCardsRes,
@@ -329,21 +329,6 @@ export const v2Routes: RouteObject[] = [
},
],
},
{
path: "shipping-profiles",
lazy: () =>
import("../../v2-routes/shipping/shipping-profiles-list"),
handle: {
crumb: () => "Shipping Profiles",
},
children: [
{
path: "create",
lazy: () =>
import("../../v2-routes/shipping/shipping-profile-create"),
},
],
},
{
path: "/customers",
handle: {
@@ -727,6 +712,38 @@ export const v2Routes: RouteObject[] = [
},
],
},
{
path: "shipping-profiles",
element: <Outlet />,
handle: {
crumb: () => "Shipping Profiles",
},
children: [
{
path: "",
lazy: () =>
import(
"../../v2-routes/shipping-profiles/shipping-profiles-list"
),
children: [
{
path: "create",
lazy: () =>
import(
"../../v2-routes/shipping-profiles/shipping-profile-create"
),
},
],
},
{
path: ":id",
lazy: () =>
import(
"../../v2-routes/shipping-profiles/shipping-profile-detail"
),
},
],
},
{
path: "api-key-management",
element: <Outlet />,