feat(dashboard): Reservations and inventory item list pages (#6550)

**What**
- Adds list page for reservations and inventory items
- Adds new String filter type, that allows users to filter by a string, eg. "material === 'metal'"
- Adds new Number filter type, that allows users to filter by a number or numerical comparator, eg. quantity === 10 / quantity is gt 10 and lt 50.
This commit is contained in:
Kasper Fabricius Kristensen
2024-03-11 08:40:25 +00:00
committed by GitHub
parent d38b5eb790
commit fb25471e92
39 changed files with 1576 additions and 110 deletions
@@ -223,6 +223,38 @@ const router = createBrowserRouter([
},
],
},
{
path: "/inventory",
handle: {
crumb: () => "Inventory",
},
lazy: () => import("../../routes/inventory/inventory-list"),
},
{
path: "/reservations",
handle: {
crumb: () => "Reservations",
},
children: [
{
path: "",
lazy: () =>
import("../../routes/reservations/reservation-list"),
},
{
path: ":id",
lazy: () =>
import("../../routes/reservations/reservation-detail"),
// children: [
// {
// path: "edit",
// lazy: () =>
// import("../../routes/reservations/reservation-edit"),
// },
// ],
},
],
},
{
path: "/customers",
handle: {
@@ -335,13 +367,6 @@ const router = createBrowserRouter([
},
],
},
{
path: "/inventory",
handle: {
crumb: () => "Inventory",
},
lazy: () => import("../../routes/inventory/list"),
},
{
path: "/discounts",
handle: {