Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

refactor: remove unnecessary folders and index files in app/modules

Brad Barbin8b89a73530b3
diff --git a/apps/carbon/app/modules/account/ui/Password/PasswordForm/PasswordForm.tsx b/apps/carbon/app/modules/account/ui/Password/PasswordForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/account/ui/Password/PasswordForm/PasswordForm.tsx
rename to apps/carbon/app/modules/account/ui/Password/PasswordForm.tsx
diff --git a/apps/carbon/app/modules/account/ui/Password/PasswordForm/index.ts b/apps/carbon/app/modules/account/ui/Password/PasswordForm/index.ts
deleted file mode 100644
index dbb46e1458..0000000000
--- a/apps/carbon/app/modules/account/ui/Password/PasswordForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PasswordForm from "./PasswordForm";
-
-export default PasswordForm;
diff --git a/apps/carbon/app/modules/account/ui/Personal/PersonalDataForm/PersonalDataForm.tsx b/apps/carbon/app/modules/account/ui/Personal/PersonalDataForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/account/ui/Personal/PersonalDataForm/PersonalDataForm.tsx
rename to apps/carbon/app/modules/account/ui/Personal/PersonalDataForm.tsx
diff --git a/apps/carbon/app/modules/account/ui/Personal/PersonalDataForm/index.ts b/apps/carbon/app/modules/account/ui/Personal/PersonalDataForm/index.ts
deleted file mode 100644
index d0cc549b77..0000000000
--- a/apps/carbon/app/modules/account/ui/Personal/PersonalDataForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PersonalDataForm from "./PersonalDataForm";
-
-export default PersonalDataForm;
diff --git a/apps/carbon/app/modules/account/ui/Profile/ProfileForm/ProfileForm.tsx b/apps/carbon/app/modules/account/ui/Profile/ProfileForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/account/ui/Profile/ProfileForm/ProfileForm.tsx
rename to apps/carbon/app/modules/account/ui/Profile/ProfileForm.tsx
diff --git a/apps/carbon/app/modules/account/ui/Profile/ProfileForm/index.ts b/apps/carbon/app/modules/account/ui/Profile/ProfileForm/index.ts
deleted file mode 100644
index 445eac517e..0000000000
--- a/apps/carbon/app/modules/account/ui/Profile/ProfileForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ProfileForm from "./ProfileForm";
-
-export default ProfileForm;
diff --git a/apps/carbon/app/modules/account/ui/Profile/ProfilePhotoForm/ProfilePhotoForm.tsx b/apps/carbon/app/modules/account/ui/Profile/ProfilePhotoForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/account/ui/Profile/ProfilePhotoForm/ProfilePhotoForm.tsx
rename to apps/carbon/app/modules/account/ui/Profile/ProfilePhotoForm.tsx
diff --git a/apps/carbon/app/modules/account/ui/Profile/ProfilePhotoForm/index.ts b/apps/carbon/app/modules/account/ui/Profile/ProfilePhotoForm/index.ts
deleted file mode 100644
index 2753c24268..0000000000
--- a/apps/carbon/app/modules/account/ui/Profile/ProfilePhotoForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ProfilePhotoForm from "./ProfilePhotoForm";
-
-export default ProfilePhotoForm;
diff --git a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoriesTable/AccountCategoriesTable.tsx b/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoriesTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoriesTable/AccountCategoriesTable.tsx
rename to apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoriesTable.tsx
diff --git a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoriesTable/index.ts b/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoriesTable/index.ts
deleted file mode 100644
index 0e087d263b..0000000000
--- a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoriesTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import AccountCategoriesTable from "./AccountCategoriesTable";
-
-export default AccountCategoriesTable;
diff --git a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoriesTableFilters/AccountCategoriesTableFilters.tsx b/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoriesTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoriesTableFilters/AccountCategoriesTableFilters.tsx
rename to apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoriesTableFilters.tsx
diff --git a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoriesTableFilters/index.ts b/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoriesTableFilters/index.ts
deleted file mode 100644
index ecbe6c620a..0000000000
--- a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoriesTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import AccountCategoriesTableFilters from "./AccountCategoriesTableFilters";
-
-export default AccountCategoriesTableFilters;
diff --git a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryDetail/AccountCategoryDetail.tsx b/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryDetail.tsx
similarity index 100%
rename from apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryDetail/AccountCategoryDetail.tsx
rename to apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryDetail.tsx
diff --git a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryDetail/index.ts b/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryDetail/index.ts
deleted file mode 100644
index 4fdadeda2c..0000000000
--- a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryDetail/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import AccountCategoryDetail from "./AccountCategoryDetail";
-
-export default AccountCategoryDetail;
diff --git a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryForm/AccountCategoryForm.tsx b/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryForm/AccountCategoryForm.tsx
rename to apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryForm.tsx
diff --git a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryForm/index.ts b/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryForm/index.ts
deleted file mode 100644
index 0ae0b2d464..0000000000
--- a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountCategoryForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import AccountCategoryForm from "./AccountCategoryForm";
-
-export default AccountCategoryForm;
diff --git a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountSubcategoryForm/AccountSubcategoryForm.tsx b/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountSubcategoryForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/accounting/ui/AccountCategories/AccountSubcategoryForm/AccountSubcategoryForm.tsx
rename to apps/carbon/app/modules/accounting/ui/AccountCategories/AccountSubcategoryForm.tsx
diff --git a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountSubcategoryForm/index.ts b/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountSubcategoryForm/index.ts
deleted file mode 100644
index b4eb36a9c4..0000000000
--- a/apps/carbon/app/modules/accounting/ui/AccountCategories/AccountSubcategoryForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import AccountSubcategoryForm from "./AccountSubcategoryForm";
-
-export default AccountSubcategoryForm;
diff --git a/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm/ChartOfAccountForm.tsx b/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm/ChartOfAccountForm.tsx
rename to apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm.tsx
diff --git a/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm/index.ts b/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm/index.ts
deleted file mode 100644
index 4e0b9cefae..0000000000
--- a/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ChartOfAccountForm from "./ChartOfAccountForm";
-
-export default ChartOfAccountForm;
diff --git a/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTable/ChartOfAccountsTable.tsx b/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTable/ChartOfAccountsTable.tsx
rename to apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTable.tsx
diff --git a/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTable/index.ts b/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTable/index.ts
deleted file mode 100644
index 9cfeb995cc..0000000000
--- a/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ChartOfAccountsTable from "./ChartOfAccountsTable";
-
-export default ChartOfAccountsTable;
diff --git a/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTableFilters/ChartOfAccountsTableFilters.tsx b/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTableFilters/ChartOfAccountsTableFilters.tsx
rename to apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTableFilters.tsx
diff --git a/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTableFilters/index.ts b/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTableFilters/index.ts
deleted file mode 100644
index 4bcae33ff2..0000000000
--- a/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ChartOfAccountsTableFilters from "./ChartOfAccountsTableFilters";
-
-export default ChartOfAccountsTableFilters;
diff --git a/apps/carbon/app/modules/accounting/ui/Currencies/CurrenciesTable/CurrenciesTable.tsx b/apps/carbon/app/modules/accounting/ui/Currencies/CurrenciesTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/accounting/ui/Currencies/CurrenciesTable/CurrenciesTable.tsx
rename to apps/carbon/app/modules/accounting/ui/Currencies/CurrenciesTable.tsx
diff --git a/apps/carbon/app/modules/accounting/ui/Currencies/CurrenciesTable/index.ts b/apps/carbon/app/modules/accounting/ui/Currencies/CurrenciesTable/index.ts
deleted file mode 100644
index 2a12fc59c0..0000000000
--- a/apps/carbon/app/modules/accounting/ui/Currencies/CurrenciesTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CurrenciesTable from "./CurrenciesTable";
-
-export default CurrenciesTable;
diff --git a/apps/carbon/app/modules/accounting/ui/Currencies/CurrenciesTableFilters/CurrenciesTableFilters.tsx b/apps/carbon/app/modules/accounting/ui/Currencies/CurrenciesTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/accounting/ui/Currencies/CurrenciesTableFilters/CurrenciesTableFilters.tsx
rename to apps/carbon/app/modules/accounting/ui/Currencies/CurrenciesTableFilters.tsx
diff --git a/apps/carbon/app/modules/accounting/ui/Currencies/CurrenciesTableFilters/index.ts b/apps/carbon/app/modules/accounting/ui/Currencies/CurrenciesTableFilters/index.ts
deleted file mode 100644
index 78ff070a32..0000000000
--- a/apps/carbon/app/modules/accounting/ui/Currencies/CurrenciesTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CurrenciesTableFilters from "./CurrenciesTableFilters";
-
-export default CurrenciesTableFilters;
diff --git a/apps/carbon/app/modules/accounting/ui/Currencies/CurrencyForm/CurrencyForm.tsx b/apps/carbon/app/modules/accounting/ui/Currencies/CurrencyForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/accounting/ui/Currencies/CurrencyForm/CurrencyForm.tsx
rename to apps/carbon/app/modules/accounting/ui/Currencies/CurrencyForm.tsx
diff --git a/apps/carbon/app/modules/accounting/ui/Currencies/CurrencyForm/index.ts b/apps/carbon/app/modules/accounting/ui/Currencies/CurrencyForm/index.ts
deleted file mode 100644
index dcb693fca3..0000000000
--- a/apps/carbon/app/modules/accounting/ui/Currencies/CurrencyForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CurrencyForm from "./CurrencyForm";
-
-export default CurrencyForm;
diff --git a/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermForm/PaymentTermForm.tsx b/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermForm/PaymentTermForm.tsx
rename to apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermForm.tsx
diff --git a/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermForm/index.ts b/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermForm/index.ts
deleted file mode 100644
index df19001d81..0000000000
--- a/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PaymentTermsForm from "./PaymentTermForm";
-
-export default PaymentTermsForm;
diff --git a/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermsTable/PaymentTermsTable.tsx b/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermsTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermsTable/PaymentTermsTable.tsx
rename to apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermsTable.tsx
diff --git a/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermsTable/index.ts b/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermsTable/index.ts
deleted file mode 100644
index 56265c576e..0000000000
--- a/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermsTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PaymentTermsTable from "./PaymentTermsTable";
-
-export default PaymentTermsTable;
diff --git a/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermsTableFilters/PaymentTermsTableFilters.tsx b/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermsTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermsTableFilters/PaymentTermsTableFilters.tsx
rename to apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermsTableFilters.tsx
diff --git a/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermsTableFilters/index.ts b/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermsTableFilters/index.ts
deleted file mode 100644
index cc0cd9abc4..0000000000
--- a/apps/carbon/app/modules/accounting/ui/PaymentTerms/PaymentTermsTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PaymentTermsTableFilters from "./PaymentTermsTableFilters";
-
-export default PaymentTermsTableFilters;
diff --git a/apps/carbon/app/modules/documents/ui/Documents/DocumentCreateForm/DocumentCreateForm.tsx b/apps/carbon/app/modules/documents/ui/Documents/DocumentCreateForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/documents/ui/Documents/DocumentCreateForm/DocumentCreateForm.tsx
rename to apps/carbon/app/modules/documents/ui/Documents/DocumentCreateForm.tsx
diff --git a/apps/carbon/app/modules/documents/ui/Documents/DocumentCreateForm/index.ts b/apps/carbon/app/modules/documents/ui/Documents/DocumentCreateForm/index.ts
deleted file mode 100644
index 5303f4839e..0000000000
--- a/apps/carbon/app/modules/documents/ui/Documents/DocumentCreateForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import DocumentCreateForm from "./DocumentCreateForm";
-
-export default DocumentCreateForm;
diff --git a/apps/carbon/app/modules/documents/ui/Documents/DocumentForm/DocumentForm.tsx b/apps/carbon/app/modules/documents/ui/Documents/DocumentForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/documents/ui/Documents/DocumentForm/DocumentForm.tsx
rename to apps/carbon/app/modules/documents/ui/Documents/DocumentForm.tsx
diff --git a/apps/carbon/app/modules/documents/ui/Documents/DocumentForm/index.ts b/apps/carbon/app/modules/documents/ui/Documents/DocumentForm/index.ts
deleted file mode 100644
index 768fb2e84e..0000000000
--- a/apps/carbon/app/modules/documents/ui/Documents/DocumentForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import DocumentForm from "./DocumentForm";
-
-export default DocumentForm;
diff --git a/apps/carbon/app/modules/documents/ui/Documents/DocumentIcon/DocumentIcon.tsx b/apps/carbon/app/modules/documents/ui/Documents/DocumentIcon.tsx
similarity index 100%
rename from apps/carbon/app/modules/documents/ui/Documents/DocumentIcon/DocumentIcon.tsx
rename to apps/carbon/app/modules/documents/ui/Documents/DocumentIcon.tsx
diff --git a/apps/carbon/app/modules/documents/ui/Documents/DocumentIcon/index.ts b/apps/carbon/app/modules/documents/ui/Documents/DocumentIcon/index.ts
deleted file mode 100644
index 666c9a63ea..0000000000
--- a/apps/carbon/app/modules/documents/ui/Documents/DocumentIcon/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import DocumentIcon from "./DocumentIcon";
-
-export default DocumentIcon;
diff --git a/apps/carbon/app/modules/documents/ui/Documents/DocumentsTable/DocumentsTable.tsx b/apps/carbon/app/modules/documents/ui/Documents/DocumentsTable.tsx
similarity index 99%
rename from apps/carbon/app/modules/documents/ui/Documents/DocumentsTable/DocumentsTable.tsx
rename to apps/carbon/app/modules/documents/ui/Documents/DocumentsTable.tsx
index 22890d450e..c1800526ee 100644
--- a/apps/carbon/app/modules/documents/ui/Documents/DocumentsTable/DocumentsTable.tsx
+++ b/apps/carbon/app/modules/documents/ui/Documents/DocumentsTable.tsx
@@ -32,7 +32,7 @@ import { useUrlParams } from "~/hooks";
import type { Document, DocumentLabel } from "~/modules/documents";
import { DocumentIcon } from "~/modules/documents";
import { path } from "~/utils/path";
-import { useDocument } from "../useDocument";
+import { useDocument } from "./useDocument";
type DocumentsTableProps = {
data: Document[];
diff --git a/apps/carbon/app/modules/documents/ui/Documents/DocumentsTable/index.ts b/apps/carbon/app/modules/documents/ui/Documents/DocumentsTable/index.ts
deleted file mode 100644
index 91d47f7721..0000000000
--- a/apps/carbon/app/modules/documents/ui/Documents/DocumentsTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import DocumentsTable from "./DocumentsTable";
-
-export default DocumentsTable;
diff --git a/apps/carbon/app/modules/documents/ui/Documents/DocumentsTableFilters/DocumentsTableFilters.tsx b/apps/carbon/app/modules/documents/ui/Documents/DocumentsTableFilters.tsx
similarity index 97%
rename from apps/carbon/app/modules/documents/ui/Documents/DocumentsTableFilters/DocumentsTableFilters.tsx
rename to apps/carbon/app/modules/documents/ui/Documents/DocumentsTableFilters.tsx
index 10ada1eb2a..2cf03044f3 100644
--- a/apps/carbon/app/modules/documents/ui/Documents/DocumentsTableFilters/DocumentsTableFilters.tsx
+++ b/apps/carbon/app/modules/documents/ui/Documents/DocumentsTableFilters.tsx
@@ -5,7 +5,7 @@ import { DebouncedInput } from "~/components/Search";
import { usePermissions, useUrlParams } from "~/hooks";
import type { DocumentLabel } from "~/modules/documents/types";
import { capitalize } from "~/utils/string";
-import DocumentCreateForm from "../DocumentCreateForm";
+import DocumentCreateForm from "./DocumentCreateForm";
type DocumentTableFiltersProps = {
labels: DocumentLabel[];
diff --git a/apps/carbon/app/modules/documents/ui/Documents/DocumentsTableFilters/index.ts b/apps/carbon/app/modules/documents/ui/Documents/DocumentsTableFilters/index.ts
deleted file mode 100644
index b19b42de83..0000000000
--- a/apps/carbon/app/modules/documents/ui/Documents/DocumentsTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import DocumentsTableFilters from "./DocumentsTableFilters";
-
-export default DocumentsTableFilters;
diff --git a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptPostModal/ReceiptPostModal.tsx b/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx
similarity index 100%
rename from apps/carbon/app/modules/inventory/ui/Receipts/ReceiptPostModal/ReceiptPostModal.tsx
rename to apps/carbon/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx
diff --git a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptPostModal/index.ts b/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptPostModal/index.ts
deleted file mode 100644
index ea8571e190..0000000000
--- a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptPostModal/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ReceiptPostModal from "./ReceiptPostModal";
-
-export default ReceiptPostModal;
diff --git a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptStatus/ReceiptStatus.tsx b/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptStatus.tsx
similarity index 100%
rename from apps/carbon/app/modules/inventory/ui/Receipts/ReceiptStatus/ReceiptStatus.tsx
rename to apps/carbon/app/modules/inventory/ui/Receipts/ReceiptStatus.tsx
diff --git a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptStatus/index.ts b/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptStatus/index.ts
deleted file mode 100644
index 76ed4ac16f..0000000000
--- a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptStatus/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ReceiptStatus from "./ReceiptStatus";
-
-export default ReceiptStatus;
diff --git a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptsTable/ReceiptsTable.tsx b/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptsTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/inventory/ui/Receipts/ReceiptsTable/ReceiptsTable.tsx
rename to apps/carbon/app/modules/inventory/ui/Receipts/ReceiptsTable.tsx
diff --git a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptsTable/index.ts b/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptsTable/index.ts
deleted file mode 100644
index 4aa53880d5..0000000000
--- a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptsTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ReceiptsTable from "./ReceiptsTable";
-
-export default ReceiptsTable;
diff --git a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptsTableFilters/ReceiptsTableFilters.tsx b/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptsTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/inventory/ui/Receipts/ReceiptsTableFilters/ReceiptsTableFilters.tsx
rename to apps/carbon/app/modules/inventory/ui/Receipts/ReceiptsTableFilters.tsx
diff --git a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptsTableFilters/index.ts b/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptsTableFilters/index.ts
deleted file mode 100644
index 420ba9beba..0000000000
--- a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptsTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ReceiptsTableFilters from "./ReceiptsTableFilters";
-
-export default ReceiptsTableFilters;
diff --git a/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodForm/ShippingMethodForm.tsx b/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodForm/ShippingMethodForm.tsx
rename to apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodForm.tsx
diff --git a/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodForm/index.ts b/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodForm/index.ts
deleted file mode 100644
index 45df5723f5..0000000000
--- a/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ShippingMethodForm from "./ShippingMethodForm";
-
-export default ShippingMethodForm;
diff --git a/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable/ShippingMethodsTable.tsx b/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable/ShippingMethodsTable.tsx
rename to apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable.tsx
diff --git a/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable/index.ts b/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable/index.ts
deleted file mode 100644
index c807689689..0000000000
--- a/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ShippingMethodsTable from "./ShippingMethodsTable";
-
-export default ShippingMethodsTable;
diff --git a/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTableFilters/ShippingMethodsTableFilters.tsx b/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTableFilters/ShippingMethodsTableFilters.tsx
rename to apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTableFilters.tsx
diff --git a/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTableFilters/index.ts b/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTableFilters/index.ts
deleted file mode 100644
index 2972aec811..0000000000
--- a/apps/carbon/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ShippingMethodsTableFilters from "./ShippingMethodsTableFilters";
-
-export default ShippingMethodsTableFilters;
diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceForm/PurchaseInvoiceForm.tsx b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceForm/PurchaseInvoiceForm.tsx
rename to apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceForm.tsx
diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceForm/index.ts b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceForm/index.ts
deleted file mode 100644
index 3669952dbf..0000000000
--- a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PurchaseInvoiceForm from "./PurchaseInvoiceForm";
-
-export default PurchaseInvoiceForm;
diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader/PurchaseInvoiceHeader.tsx b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader.tsx
similarity index 98%
rename from apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader/PurchaseInvoiceHeader.tsx
rename to apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader.tsx
index df1bf9e95f..b4e4aab62d 100644
--- a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader/PurchaseInvoiceHeader.tsx
+++ b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader.tsx
@@ -23,7 +23,7 @@ import {
usePurchaseInvoiceTotals,
} from "~/modules/invoicing";
import { path } from "~/utils/path";
-import PurchaseInvoicePostModal from "../PurchaseInvoicePostModal";
+import PurchaseInvoicePostModal from "./PurchaseInvoicePostModal";
const PurchaseInvoiceHeader = () => {
const permissions = usePermissions();
diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader/index.ts b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader/index.ts
deleted file mode 100644
index 20eaa9886c..0000000000
--- a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PurchaseInvoiceHeader from "./PurchaseInvoiceHeader";
-
-export default PurchaseInvoiceHeader;
diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm/PurchaseInvoiceLineForm.tsx b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm/PurchaseInvoiceLineForm.tsx
rename to apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm.tsx
diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm/index.ts b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm/index.ts
deleted file mode 100644
index 7306512f89..0000000000
--- a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PurchaseInvoiceLineForm from "./PurchaseInvoiceLineForm";
-
-export default PurchaseInvoiceLineForm;
diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicePostModal/PurchaseInvoicePostModal.tsx b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicePostModal.tsx
similarity index 100%
rename from apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicePostModal/PurchaseInvoicePostModal.tsx
rename to apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicePostModal.tsx
diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicePostModal/index.ts b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicePostModal/index.ts
deleted file mode 100644
index a96471ebf0..0000000000
--- a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicePostModal/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PurchaseInvoicePostModal from "./PurchaseInvoicePostModal";
-
-export default PurchaseInvoicePostModal;
diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicingStatus/PurchaseInvoicingStatus.tsx b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicingStatus.tsx
similarity index 100%
rename from apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicingStatus/PurchaseInvoicingStatus.tsx
rename to apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicingStatus.tsx
diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicingStatus/index.ts b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicingStatus/index.ts
deleted file mode 100644
index 081aaf92ea..0000000000
--- a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicingStatus/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import InvoicingStatus from "./PurchaseInvoicingStatus";
-
-export default InvoicingStatus;
diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoices/PurchaseInvoicesTable/PurchaseInvoicesTable.tsx b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoices/PurchaseInvoicesTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/invoicing/ui/PurchaseInvoices/PurchaseInvoicesTable/PurchaseInvoicesTable.tsx
rename to apps/carbon/app/modules/invoicing/ui/PurchaseInvoices/PurchaseInvoicesTable.tsx
diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoices/PurchaseInvoicesTable/index.ts b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoices/PurchaseInvoicesTable/index.ts
deleted file mode 100644
index 20eb703746..0000000000
--- a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoices/PurchaseInvoicesTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PurchaseInvoicesTable from "./PurchaseInvoicesTable";
-
-export default PurchaseInvoicesTable;
diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoices/PurchaseInvoicesTableFilters/PurchaseInvoicesTableFilters.tsx b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoices/PurchaseInvoicesTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/invoicing/ui/PurchaseInvoices/PurchaseInvoicesTableFilters/PurchaseInvoicesTableFilters.tsx
rename to apps/carbon/app/modules/invoicing/ui/PurchaseInvoices/PurchaseInvoicesTableFilters.tsx
diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoices/PurchaseInvoicesTableFilters/index.ts b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoices/PurchaseInvoicesTableFilters/index.ts
deleted file mode 100644
index 132ef7b7f8..0000000000
--- a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoices/PurchaseInvoicesTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PurchaseInvoicesTableFilters from "./PurchaseInvoicesTableFilters";
-
-export default PurchaseInvoicesTableFilters;
diff --git a/apps/carbon/app/modules/parts/ui/Part/PartCostingForm/PartCostingForm.tsx b/apps/carbon/app/modules/parts/ui/Part/PartCostingForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/Part/PartCostingForm/PartCostingForm.tsx
rename to apps/carbon/app/modules/parts/ui/Part/PartCostingForm.tsx
diff --git a/apps/carbon/app/modules/parts/ui/Part/PartCostingForm/index.ts b/apps/carbon/app/modules/parts/ui/Part/PartCostingForm/index.ts
deleted file mode 100644
index 1a274660db..0000000000
--- a/apps/carbon/app/modules/parts/ui/Part/PartCostingForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PartCostingForm from "./PartCostingForm";
-
-export default PartCostingForm;
diff --git a/apps/carbon/app/modules/parts/ui/Part/PartForm/PartForm.tsx b/apps/carbon/app/modules/parts/ui/Part/PartForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/Part/PartForm/PartForm.tsx
rename to apps/carbon/app/modules/parts/ui/Part/PartForm.tsx
diff --git a/apps/carbon/app/modules/parts/ui/Part/PartForm/index.ts b/apps/carbon/app/modules/parts/ui/Part/PartForm/index.ts
deleted file mode 100644
index aace59b8a1..0000000000
--- a/apps/carbon/app/modules/parts/ui/Part/PartForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PartForm from "./PartForm";
-
-export default PartForm;
diff --git a/apps/carbon/app/modules/parts/ui/Part/PartInventoryForm/PartInventoryForm.tsx b/apps/carbon/app/modules/parts/ui/Part/PartInventoryForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/Part/PartInventoryForm/PartInventoryForm.tsx
rename to apps/carbon/app/modules/parts/ui/Part/PartInventoryForm.tsx
diff --git a/apps/carbon/app/modules/parts/ui/Part/PartInventoryForm/index.ts b/apps/carbon/app/modules/parts/ui/Part/PartInventoryForm/index.ts
deleted file mode 100644
index 85895a2460..0000000000
--- a/apps/carbon/app/modules/parts/ui/Part/PartInventoryForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PartInventoryForm from "./PartInventoryForm";
-
-export default PartInventoryForm;
diff --git a/apps/carbon/app/modules/parts/ui/Part/PartManufacturingForm/PartManufacturingForm.tsx b/apps/carbon/app/modules/parts/ui/Part/PartManufacturingForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/Part/PartManufacturingForm/PartManufacturingForm.tsx
rename to apps/carbon/app/modules/parts/ui/Part/PartManufacturingForm.tsx
diff --git a/apps/carbon/app/modules/parts/ui/Part/PartManufacturingForm/index.ts b/apps/carbon/app/modules/parts/ui/Part/PartManufacturingForm/index.ts
deleted file mode 100644
index c030e3a122..0000000000
--- a/apps/carbon/app/modules/parts/ui/Part/PartManufacturingForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PartManufacturingForm from "./PartManufacturingForm";
-
-export default PartManufacturingForm;
diff --git a/apps/carbon/app/modules/parts/ui/Part/PartPlanningForm/PartPlanningForm.tsx b/apps/carbon/app/modules/parts/ui/Part/PartPlanningForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/Part/PartPlanningForm/PartPlanningForm.tsx
rename to apps/carbon/app/modules/parts/ui/Part/PartPlanningForm.tsx
diff --git a/apps/carbon/app/modules/parts/ui/Part/PartPlanningForm/index.ts b/apps/carbon/app/modules/parts/ui/Part/PartPlanningForm/index.ts
deleted file mode 100644
index 76a00061bd..0000000000
--- a/apps/carbon/app/modules/parts/ui/Part/PartPlanningForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PartPlanningForm from "./PartPlanningForm";
-
-export default PartPlanningForm;
diff --git a/apps/carbon/app/modules/parts/ui/Part/PartPreview/PartPreview.tsx b/apps/carbon/app/modules/parts/ui/Part/PartPreview.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/Part/PartPreview/PartPreview.tsx
rename to apps/carbon/app/modules/parts/ui/Part/PartPreview.tsx
diff --git a/apps/carbon/app/modules/parts/ui/Part/PartPreview/index.ts b/apps/carbon/app/modules/parts/ui/Part/PartPreview/index.ts
deleted file mode 100644
index 98c18c14da..0000000000
--- a/apps/carbon/app/modules/parts/ui/Part/PartPreview/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PartPreview from "./PartPreview";
-
-export default PartPreview;
diff --git a/apps/carbon/app/modules/parts/ui/Part/PartPurchasingForm/PartPurchasingForm.tsx b/apps/carbon/app/modules/parts/ui/Part/PartPurchasingForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/Part/PartPurchasingForm/PartPurchasingForm.tsx
rename to apps/carbon/app/modules/parts/ui/Part/PartPurchasingForm.tsx
diff --git a/apps/carbon/app/modules/parts/ui/Part/PartPurchasingForm/index.ts b/apps/carbon/app/modules/parts/ui/Part/PartPurchasingForm/index.ts
deleted file mode 100644
index e06475c8ec..0000000000
--- a/apps/carbon/app/modules/parts/ui/Part/PartPurchasingForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PartPurchasingForm from "./PartPurchasingForm";
-
-export default PartPurchasingForm;
diff --git a/apps/carbon/app/modules/parts/ui/Part/PartSalePriceForm/PartSalePriceForm.tsx b/apps/carbon/app/modules/parts/ui/Part/PartSalePriceForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/Part/PartSalePriceForm/PartSalePriceForm.tsx
rename to apps/carbon/app/modules/parts/ui/Part/PartSalePriceForm.tsx
diff --git a/apps/carbon/app/modules/parts/ui/Part/PartSalePriceForm/index.ts b/apps/carbon/app/modules/parts/ui/Part/PartSalePriceForm/index.ts
deleted file mode 100644
index 029d2459fb..0000000000
--- a/apps/carbon/app/modules/parts/ui/Part/PartSalePriceForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PartSalePriceForm from "./PartSalePriceForm";
-
-export default PartSalePriceForm;
diff --git a/apps/carbon/app/modules/parts/ui/Part/PartSupplierForm/PartSupplierForm.tsx b/apps/carbon/app/modules/parts/ui/Part/PartSupplierForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/Part/PartSupplierForm/PartSupplierForm.tsx
rename to apps/carbon/app/modules/parts/ui/Part/PartSupplierForm.tsx
diff --git a/apps/carbon/app/modules/parts/ui/Part/PartSupplierForm/index.ts b/apps/carbon/app/modules/parts/ui/Part/PartSupplierForm/index.ts
deleted file mode 100644
index 2cc49a0875..0000000000
--- a/apps/carbon/app/modules/parts/ui/Part/PartSupplierForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PartSupplierForm from "./PartSupplierForm";
-
-export default PartSupplierForm;
diff --git a/apps/carbon/app/modules/parts/ui/Part/index.ts b/apps/carbon/app/modules/parts/ui/Part/index.ts
index ee73974235..9b61d68d68 100644
--- a/apps/carbon/app/modules/parts/ui/Part/index.ts
+++ b/apps/carbon/app/modules/parts/ui/Part/index.ts
@@ -14,9 +14,9 @@ export {
PartCostingForm,
PartForm,
PartInventoryForm,
+ PartManufacturingForm,
PartPlanningForm,
PartPreview,
- PartManufacturingForm,
PartPurchasingForm,
PartSalePriceForm,
PartSidebar,
diff --git a/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupForm/PartGroupForm.tsx b/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/PartGroups/PartGroupForm/PartGroupForm.tsx
rename to apps/carbon/app/modules/parts/ui/PartGroups/PartGroupForm.tsx
diff --git a/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupForm/index.ts b/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupForm/index.ts
deleted file mode 100644
index 4f38fd77ed..0000000000
--- a/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PartGroupForm from "./PartGroupForm";
-
-export default PartGroupForm;
diff --git a/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupsTable/PartGroupsTable.tsx b/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupsTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/PartGroups/PartGroupsTable/PartGroupsTable.tsx
rename to apps/carbon/app/modules/parts/ui/PartGroups/PartGroupsTable.tsx
diff --git a/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupsTable/index.ts b/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupsTable/index.ts
deleted file mode 100644
index 9ceb279c29..0000000000
--- a/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupsTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PartGroupsTable from "./PartGroupsTable";
-
-export default PartGroupsTable;
diff --git a/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupsTableFilters/PartGroupsTableFilters.tsx b/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupsTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/PartGroups/PartGroupsTableFilters/PartGroupsTableFilters.tsx
rename to apps/carbon/app/modules/parts/ui/PartGroups/PartGroupsTableFilters.tsx
diff --git a/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupsTableFilters/index.ts b/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupsTableFilters/index.ts
deleted file mode 100644
index 4bd33b238b..0000000000
--- a/apps/carbon/app/modules/parts/ui/PartGroups/PartGroupsTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PartGroupsTableFilters from "./PartGroupsTableFilters";
-
-export default PartGroupsTableFilters;
diff --git a/apps/carbon/app/modules/parts/ui/Parts/PartsTable/PartsTable.tsx b/apps/carbon/app/modules/parts/ui/Parts/PartsTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/Parts/PartsTable/PartsTable.tsx
rename to apps/carbon/app/modules/parts/ui/Parts/PartsTable.tsx
diff --git a/apps/carbon/app/modules/parts/ui/Parts/PartsTable/index.ts b/apps/carbon/app/modules/parts/ui/Parts/PartsTable/index.ts
deleted file mode 100644
index e0b6a661a1..0000000000
--- a/apps/carbon/app/modules/parts/ui/Parts/PartsTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PartsTable from "./PartsTable";
-
-export default PartsTable;
diff --git a/apps/carbon/app/modules/parts/ui/Parts/PartsTableFilters/PartsTableFilters.tsx b/apps/carbon/app/modules/parts/ui/Parts/PartsTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/Parts/PartsTableFilters/PartsTableFilters.tsx
rename to apps/carbon/app/modules/parts/ui/Parts/PartsTableFilters.tsx
diff --git a/apps/carbon/app/modules/parts/ui/Parts/PartsTableFilters/index.ts b/apps/carbon/app/modules/parts/ui/Parts/PartsTableFilters/index.ts
deleted file mode 100644
index 7180390d60..0000000000
--- a/apps/carbon/app/modules/parts/ui/Parts/PartsTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PartsTableFilters from "./PartsTableFilters";
-
-export default PartsTableFilters;
diff --git a/apps/carbon/app/modules/parts/ui/Routing/PartsTree/PartsTree.tsx b/apps/carbon/app/modules/parts/ui/Routing/PartsTree.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/Routing/PartsTree/PartsTree.tsx
rename to apps/carbon/app/modules/parts/ui/Routing/PartsTree.tsx
diff --git a/apps/carbon/app/modules/parts/ui/Routing/PartsTree/index.ts b/apps/carbon/app/modules/parts/ui/Routing/PartsTree/index.ts
deleted file mode 100644
index a0a33672da..0000000000
--- a/apps/carbon/app/modules/parts/ui/Routing/PartsTree/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PartsTree from "./PartsTree";
-
-export default PartsTree;
diff --git a/apps/carbon/app/modules/parts/ui/Service/ServiceForm/ServiceForm.tsx b/apps/carbon/app/modules/parts/ui/Service/ServiceForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/Service/ServiceForm/ServiceForm.tsx
rename to apps/carbon/app/modules/parts/ui/Service/ServiceForm.tsx
diff --git a/apps/carbon/app/modules/parts/ui/Service/ServiceForm/index.ts b/apps/carbon/app/modules/parts/ui/Service/ServiceForm/index.ts
deleted file mode 100644
index 147b4e46b4..0000000000
--- a/apps/carbon/app/modules/parts/ui/Service/ServiceForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ServiceForm from "./ServiceForm";
-
-export default ServiceForm;
diff --git a/apps/carbon/app/modules/parts/ui/Service/ServicePreview/ServicePreview.tsx b/apps/carbon/app/modules/parts/ui/Service/ServicePreview.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/Service/ServicePreview/ServicePreview.tsx
rename to apps/carbon/app/modules/parts/ui/Service/ServicePreview.tsx
diff --git a/apps/carbon/app/modules/parts/ui/Service/ServicePreview/index.ts b/apps/carbon/app/modules/parts/ui/Service/ServicePreview/index.ts
deleted file mode 100644
index 47ce0ada47..0000000000
--- a/apps/carbon/app/modules/parts/ui/Service/ServicePreview/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ServicePreview from "./ServicePreview";
-
-export default ServicePreview;
diff --git a/apps/carbon/app/modules/parts/ui/Service/ServiceSupplierForm/ServiceSupplierForm.tsx b/apps/carbon/app/modules/parts/ui/Service/ServiceSupplierForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/Service/ServiceSupplierForm/ServiceSupplierForm.tsx
rename to apps/carbon/app/modules/parts/ui/Service/ServiceSupplierForm.tsx
diff --git a/apps/carbon/app/modules/parts/ui/Service/ServiceSupplierForm/index.ts b/apps/carbon/app/modules/parts/ui/Service/ServiceSupplierForm/index.ts
deleted file mode 100644
index 0b4d70eeaa..0000000000
--- a/apps/carbon/app/modules/parts/ui/Service/ServiceSupplierForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ServiceSupplierForm from "./ServiceSupplierForm";
-
-export default ServiceSupplierForm;
diff --git a/apps/carbon/app/modules/parts/ui/Services/ServicesTable/ServicesTable.tsx b/apps/carbon/app/modules/parts/ui/Services/ServicesTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/Services/ServicesTable/ServicesTable.tsx
rename to apps/carbon/app/modules/parts/ui/Services/ServicesTable.tsx
diff --git a/apps/carbon/app/modules/parts/ui/Services/ServicesTable/index.ts b/apps/carbon/app/modules/parts/ui/Services/ServicesTable/index.ts
deleted file mode 100644
index f82fd3dff7..0000000000
--- a/apps/carbon/app/modules/parts/ui/Services/ServicesTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ServicesTable from "./ServicesTable";
-
-export default ServicesTable;
diff --git a/apps/carbon/app/modules/parts/ui/Services/ServicesTableFilters/ServicesTableFilters.tsx b/apps/carbon/app/modules/parts/ui/Services/ServicesTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/Services/ServicesTableFilters/ServicesTableFilters.tsx
rename to apps/carbon/app/modules/parts/ui/Services/ServicesTableFilters.tsx
diff --git a/apps/carbon/app/modules/parts/ui/Services/ServicesTableFilters/index.ts b/apps/carbon/app/modules/parts/ui/Services/ServicesTableFilters/index.ts
deleted file mode 100644
index 5d65cd633f..0000000000
--- a/apps/carbon/app/modules/parts/ui/Services/ServicesTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ServicesTableFilters from "./ServicesTableFilters";
-
-export default ServicesTableFilters;
diff --git a/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasureForm/UnitOfMeasureForm.tsx b/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasureForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasureForm/UnitOfMeasureForm.tsx
rename to apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasureForm.tsx
diff --git a/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasureForm/index.ts b/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasureForm/index.ts
deleted file mode 100644
index 27ed28fa35..0000000000
--- a/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasureForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import UnitOfMeasureForm from "./UnitOfMeasureForm";
-
-export default UnitOfMeasureForm;
diff --git a/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasuresTable/UnitOfMeasuresTable.tsx b/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasuresTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasuresTable/UnitOfMeasuresTable.tsx
rename to apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasuresTable.tsx
diff --git a/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasuresTable/index.ts b/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasuresTable/index.ts
deleted file mode 100644
index b340f6f46d..0000000000
--- a/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasuresTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import UnitOfMeasuresTable from "./UnitOfMeasuresTable";
-
-export default UnitOfMeasuresTable;
diff --git a/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasuresTableFilters/UnitOfMeasuresTableFilters.tsx b/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasuresTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasuresTableFilters/UnitOfMeasuresTableFilters.tsx
rename to apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasuresTableFilters.tsx
diff --git a/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasuresTableFilters/index.ts b/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasuresTableFilters/index.ts
deleted file mode 100644
index a000227b84..0000000000
--- a/apps/carbon/app/modules/parts/ui/UnitOfMeasure/UnitOfMeasuresTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import UnitOfMeasuresTableFilters from "./UnitOfMeasuresTableFilters";
-
-export default UnitOfMeasuresTableFilters;
diff --git a/apps/carbon/app/modules/purchasing/purchasing.models.ts b/apps/carbon/app/modules/purchasing/purchasing.models.ts
index a7d4576a3a..14e82bf155 100644
--- a/apps/carbon/app/modules/purchasing/purchasing.models.ts
+++ b/apps/carbon/app/modules/purchasing/purchasing.models.ts
@@ -169,7 +169,7 @@ export const purchaseOrderReleaseValidator = withZod(
)
);
-const requestForQuoteStatusType = [
+export const requestForQuoteStatusType = [
"Draft",
"Sent",
"Expired",
diff --git a/apps/carbon/app/modules/purchasing/purchasing.service.ts b/apps/carbon/app/modules/purchasing/purchasing.service.ts
index 690822d974..8f8327c9d0 100644
--- a/apps/carbon/app/modules/purchasing/purchasing.service.ts
+++ b/apps/carbon/app/modules/purchasing/purchasing.service.ts
@@ -198,6 +198,39 @@ export async function getPurchaseOrderSuppliers(
return client.from("purchaseOrderSuppliers").select("id, name");
}
+export async function getRequestsForQuotes(
+ client: SupabaseClient<Database>,
+ args: GenericQueryFilters & {
+ search: string | null;
+ status: string | null;
+ supplierId: string | null;
+ partId: string | null;
+ }
+) {
+ let query = client.from("requestForQuotes").select("*", { count: "exact" });
+
+ if (args.search) {
+ query = query.or(
+ `id.ilike.%${args.search}%,name.ilike.%${args.search}%,description.ilike.%${args.search}%`
+ );
+ }
+
+ if (args.status) {
+ query = query.eq("status", args.status);
+ }
+
+ if (args.supplierId) {
+ query = query.contains("supplierIds", [args.supplierId]);
+ }
+
+ if (args.partId) {
+ query = query.contains("partIds", [args.partId]);
+ }
+
+ query = setGenericQueryFilters(query, args, "id", false);
+ return query;
+}
+
export async function getSupplier(
client: SupabaseClient<Database>,
supplierId: string
diff --git a/apps/carbon/app/modules/purchasing/types.ts b/apps/carbon/app/modules/purchasing/types.ts
index 9f46e6cc68..ef8e97761d 100644
--- a/apps/carbon/app/modules/purchasing/types.ts
+++ b/apps/carbon/app/modules/purchasing/types.ts
@@ -3,6 +3,7 @@ import type {
getExternalDocuments,
getPurchaseOrderLines,
getPurchaseOrders,
+ getRequestsForQuotes,
getSupplier,
getSupplierContacts,
getSupplierLocations,
@@ -36,6 +37,10 @@ export type PurchaseOrderType =
export type PurchaseOrderTransactionType =
Database["public"]["Enums"]["purchaseOrderTransactionType"];
+export type RequestForQuote = NonNullable<
+ Awaited<ReturnType<typeof getRequestsForQuotes>>["data"]
+>[number];
+
export type Supplier = NonNullable<
Awaited<ReturnType<typeof getSuppliers>>["data"]
>[number];
diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTable/PurchaseOrdersTable.tsx b/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTable.tsx
similarity index 99%
rename from apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTable/PurchaseOrdersTable.tsx
rename to apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTable.tsx
index 4954563720..51a4dff2e9 100644
--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTable/PurchaseOrdersTable.tsx
+++ b/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTable.tsx
@@ -19,7 +19,7 @@ import type {
} from "~/modules/purchasing";
import { PurchasingStatus } from "~/modules/purchasing";
import { path } from "~/utils/path";
-import { usePurchaseOrder } from "../usePurchaseOrder";
+import { usePurchaseOrder } from "./usePurchaseOrder";
type PurchaseOrdersTableProps = {
data: PurchaseOrder[];
diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTable/index.ts b/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTable/index.ts
deleted file mode 100644
index e1ae2054e9..0000000000
--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PurchaseOrdersTable from "./PurchaseOrdersTable";
-
-export default PurchaseOrdersTable;
diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTableFilters/PurchaseOrdersTableFilters.tsx b/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTableFilters/PurchaseOrdersTableFilters.tsx
rename to apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTableFilters.tsx
diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTableFilters/index.ts b/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTableFilters/index.ts
deleted file mode 100644
index ed0ac3f694..0000000000
--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/PurchaseOrdersTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PurchaseOrdersTableFilters from "./PurchaseOrdersTableFilters";
-
-export default PurchaseOrdersTableFilters;
diff --git a/apps/carbon/app/modules/purchasing/ui/RequestForQuotes/RequestForQuotesTable.tsx b/apps/carbon/app/modules/purchasing/ui/RequestForQuotes/RequestForQuotesTable.tsx
new file mode 100644
index 0000000000..4f9340aa5a
--- /dev/null
+++ b/apps/carbon/app/modules/purchasing/ui/RequestForQuotes/RequestForQuotesTable.tsx
@@ -0,0 +1,149 @@
+import { memo } from "react";
+import type { RequestForQuote } from "~/modules/purchasing";
+// import { RequestForQuoteStatus } from "~/modules/purchasing";
+
+type RequestForQuotesTableProps = {
+ data: RequestForQuote[];
+ count: number;
+};
+
+const RequestForQuotesTable = memo(
+ ({ data, count }: RequestForQuotesTableProps) => {
+ console.log({ data, count });
+ return null;
+ // const permissions = usePermissions();
+
+ // const columns = useMemo<ColumnDef<RequestForQuote>[]>(() => {
+ // return [
+ // {
+ // accessorKey: "requestForQuoteId",
+ // header: "Name",
+ // cell: ({ row }) => (
+ // <HStack>
+ // <Hyperlink onClick={() => alert("TODO")}>
+ // {row.original.name}
+ // </Hyperlink>
+ // </HStack>
+ // ),
+ // },
+ // {
+ // accessorKey: "supplierName",
+ // header: "Supplier",
+ // cell: (item) => item.getValue(),
+ // },
+ // {
+ // accessorKey: "orderDate",
+ // header: "Order Date",
+ // cell: (item) => item.getValue(),
+ // },
+ // {
+ // accessorKey: "status",
+ // header: "Status",
+ // cell: (item) => {
+ // const status =
+ // item.getValue<(typeof requestForQuoteStatusType)[number]>();
+ // return <RequestForQuoteStatus status={status} />;
+ // },
+ // },
+ // {
+ // accessorKey: "receiptPromisedDate",
+ // header: "Promised Date",
+ // cell: (item) => item.getValue(),
+ // },
+ // {
+ // accessorKey: "createdByFullName",
+ // header: "Created By",
+ // cell: ({ row }) => {
+ // return (
+ // <HStack>
+ // <Avatar size="sm" path={row.original.createdByAvatar} />
+ // <p>{row.original.createdByFullName}</p>
+ // </HStack>
+ // );
+ // },
+ // },
+ // {
+ // accessorKey: "createdAt",
+ // header: "Created At",
+ // cell: (item) => item.getValue(),
+ // },
+ // {
+ // accessorKey: "updatedByFullName",
+ // header: "Updated By",
+ // cell: ({ row }) => {
+ // return row.original.updatedByFullName ? (
+ // <HStack>
+ // <Avatar size="sm" path={row.original.updatedByAvatar ?? null} />
+ // <p>{row.original.updatedByFullName}</p>
+ // </HStack>
+ // ) : null;
+ // },
+ // },
+ // {
+ // accessorKey: "updatedAt",
+ // header: "Updated At",
+ // cell: (item) => item.getValue(),
+ // },
+ // ];
+ // }, []);
+
+ // const defaultColumnVisibility = {
+ // createdAt: false,
+ // createdByFullName: false,
+ // receiptPromisedDate: false,
+ // updatedAt: false,
+ // updatedByFullName: false,
+ // };
+
+ // const renderContextMenu = useMemo(() => {
+ // // eslint-disable-next-line react/display-name
+ // return (row: RequestForQuote) => (
+ // <>
+ // <MenuItem
+ // disabled={!permissions.can("view", "purchasing")}
+ // onClick={() => alert("TODO")}
+ // >
+ // <MenuIcon icon={<BsFillPenFill />} />
+ // Edit
+ // </MenuItem>
+ // <MenuItem
+ // onClick={() => {
+ // alert("TODO");
+ // }}
+ // >
+ // <MenuIcon icon={<BsStar />} />
+ // Favorite
+ // </MenuItem>
+
+ // <MenuItem
+ // disabled={!permissions.can("delete", "purchasing")}
+ // onClick={() => alert("TODO")}
+ // >
+ // <MenuIcon icon={<IoMdTrash />} />
+ // Delete
+ // </MenuItem>
+ // </>
+ // );
+ // }, [permissions]);
+
+ // return (
+ // <>
+ // <Table<RequestForQuote>
+ // count={count}
+ // columns={columns}
+ // data={data}
+ // defaultColumnVisibility={defaultColumnVisibility}
+ // withColumnOrdering
+ // withFilters
+ // withPagination
+ // withSimpleSorting
+ // renderContextMenu={renderContextMenu}
+ // />
+ // </>
+ // );
+ }
+);
+
+RequestForQuotesTable.displayName = "RequestForQuotesTable";
+
+export default RequestForQuotesTable;
diff --git a/apps/carbon/app/modules/purchasing/ui/RequestForQuotes/RequestForQuotesTableFilters.tsx b/apps/carbon/app/modules/purchasing/ui/RequestForQuotes/RequestForQuotesTableFilters.tsx
new file mode 100644
index 0000000000..973071744c
--- /dev/null
+++ b/apps/carbon/app/modules/purchasing/ui/RequestForQuotes/RequestForQuotesTableFilters.tsx
@@ -0,0 +1,88 @@
+import { Button, HStack } from "@carbon/react";
+import { Link } from "@remix-run/react";
+import { IoMdAdd } from "react-icons/io";
+import { Combobox, Select } from "~/components";
+import { TableFilters } from "~/components/Layout";
+import { DebouncedInput } from "~/components/Search";
+import { usePermissions, useUrlParams } from "~/hooks";
+import { requestForQuoteStatusType } from "~/modules/purchasing";
+import { useParts, useSuppliers } from "~/stores";
+import { path } from "~/utils/path";
+
+const RequestForQuotesTableFilters = () => {
+ const [suppliers] = useSuppliers();
+ const [parts] = useParts();
+ const [params, setParams] = useUrlParams();
+ const permissions = usePermissions();
+
+ const supplierOptions = suppliers
+ .filter((supplier) => supplier.id && supplier.name)
+ .map((supplier) => ({
+ label: supplier.name,
+ value: supplier.id,
+ }));
+
+ const partOptions = parts
+ .filter((part) => part.id && part.name)
+ .map((part) => ({
+ label: part.name,
+ value: part.id,
+ }));
+
+ const requestForQuoteStatusOptions = requestForQuoteStatusType.map(
+ (status) => ({
+ label: status,
+ value: status,
+ })
+ );
+
+ return (
+ <TableFilters>
+ <HStack>
+ <DebouncedInput param="search" size="sm" placeholder="Search" />
+ <Select
+ size="sm"
+ value={params.get("status") ?? ""}
+ isClearable
+ options={requestForQuoteStatusOptions}
+ onChange={(selected) => {
+ setParams({ status: selected });
+ }}
+ aria-label="Status"
+ placeholder="Status"
+ />
+ <Combobox
+ size="sm"
+ value={params.get("supplierId") ?? ""}
+ isClearable
+ options={supplierOptions}
+ onChange={(selected) => {
+ setParams({ supplierId: selected });
+ }}
+ aria-label="Supplier"
+ placeholder="Supplier"
+ />
+ <Combobox
+ size="sm"
+ value={params.get("partId") ?? ""}
+ isClearable
+ options={partOptions}
+ onChange={(selected) => {
+ setParams({ partId: selected });
+ }}
+ aria-label="Part"
+ placeholder="Part"
+ />
+ </HStack>
+ <HStack>
+ {permissions.can("create", "purchasing") && (
+ <Button asChild leftIcon={<IoMdAdd />}>
+ <Link to={path.to.newRequestForQuote}>New RFQ</Link>
+ </Button>
+ )}
+ </HStack>
+ </TableFilters>
+ );
+};
+
+export default RequestForQuotesTableFilters;
diff --git a/apps/carbon/app/modules/purchasing/ui/RequestForQuotes/index.ts b/apps/carbon/app/modules/purchasing/ui/RequestForQuotes/index.ts
new file mode 100644
index 0000000000..fcb7803204
--- /dev/null
+++ b/apps/carbon/app/modules/purchasing/ui/RequestForQuotes/index.ts
@@ -0,0 +1,4 @@
+import RequestForQuotesTable from "./RequestForQuotesTable";
+import RequestForQuotesTableFilters from "./RequestForQuotesTableFilters";
+
+export { RequestForQuotesTable, RequestForQuotesTableFilters };
diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierContactForm/SupplierContactForm.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierContactForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/purchasing/ui/Supplier/SupplierContactForm/SupplierContactForm.tsx
rename to apps/carbon/app/modules/purchasing/ui/Supplier/SupplierContactForm.tsx
diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierContactForm/index.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierContactForm/index.tsx
deleted file mode 100644
index bb71398f9e..0000000000
--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierContactForm/index.tsx
+++ /dev/null
@@ -1,3 +0,0 @@
-import SupplierContactForm from "./SupplierContactForm";
-
-export default SupplierContactForm;
diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierContacts/SupplierContacts.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierContacts.tsx
similarity index 100%
rename from apps/carbon/app/modules/purchasing/ui/Supplier/SupplierContacts/SupplierContacts.tsx
rename to apps/carbon/app/modules/purchasing/ui/Supplier/SupplierContacts.tsx
diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierContacts/index.ts b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierContacts/index.ts
deleted file mode 100644
index 4e6da35e8f..0000000000
--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierContacts/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import SupplierContacts from "./SupplierContacts";
-
-export default SupplierContacts;
diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierForm/SupplierForm.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/purchasing/ui/Supplier/SupplierForm/SupplierForm.tsx
rename to apps/carbon/app/modules/purchasing/ui/Supplier/SupplierForm.tsx
diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierForm/index.ts b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierForm/index.ts
deleted file mode 100644
index ed1e84d2b7..0000000000
--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import SupplierForm from "./SupplierForm";
-
-export default SupplierForm;
diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierHeader/SupplierHeader.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierHeader.tsx
similarity index 93%
rename from apps/carbon/app/modules/purchasing/ui/Supplier/SupplierHeader/SupplierHeader.tsx
rename to apps/carbon/app/modules/purchasing/ui/Supplier/SupplierHeader.tsx
index cd9b1c1bf9..64c359cc65 100644
--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierHeader/SupplierHeader.tsx
+++ b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierHeader.tsx
@@ -76,10 +76,7 @@ const SupplierHeader = () => {
<CardAttributeLabel>Payment Terms</CardAttributeLabel>
<CardAttributeValue>
{/* // TODO: defaultPaymentTermId */}
- {sharedSupplierData?.paymentTerms?.find(
- (term) =>
- term.id === routeData?.supplier?.defaultPaymentTermId
- )?.name ?? "--"}
+ --
</CardAttributeValue>
</CardAttribute>
</CardAttributes>
diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierHeader/index.ts b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierHeader/index.ts
deleted file mode 100644
index bb88c2030d..0000000000
--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierHeader/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import SupplierHeader from "./SupplierHeader";
-
-export default SupplierHeader;
diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierLocationForm/SupplierLocationForm.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierLocationForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/purchasing/ui/Supplier/SupplierLocationForm/SupplierLocationForm.tsx
rename to apps/carbon/app/modules/purchasing/ui/Supplier/SupplierLocationForm.tsx
diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierLocationForm/index.ts b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierLocationForm/index.ts
deleted file mode 100644
index 3f1859db3c..0000000000
--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierLocationForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import SupplierLocationForm from "./SupplierLocationForm";
-
-export default SupplierLocationForm;
diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierLocations/SupplierLocations.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierLocations.tsx
similarity index 100%
rename from apps/carbon/app/modules/purchasing/ui/Supplier/SupplierLocations/SupplierLocations.tsx
rename to apps/carbon/app/modules/purchasing/ui/Supplier/SupplierLocations.tsx
diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierLocations/index.ts b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierLocations/index.ts
deleted file mode 100644
index 307b65b822..0000000000
--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierLocations/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import SupplierLocations from "./SupplierLocations";
-
-export default SupplierLocations;
diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierPaymentForm/SupplierPaymentForm.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierPaymentForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/purchasing/ui/Supplier/SupplierPaymentForm/SupplierPaymentForm.tsx
rename to apps/carbon/app/modules/purchasing/ui/Supplier/SupplierPaymentForm.tsx
diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierPaymentForm/index.ts b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierPaymentForm/index.ts
deleted file mode 100644
index e0e682cb8e..0000000000
--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierPaymentForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import SupplierPaymentForm from "./SupplierPaymentForm";
-
-export default SupplierPaymentForm;
diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierShippingForm/SupplierShippingForm.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierShippingForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/purchasing/ui/Supplier/SupplierShippingForm/SupplierShippingForm.tsx
rename to apps/carbon/app/modules/purchasing/ui/Supplier/SupplierShippingForm.tsx
diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierShippingForm/index.ts b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierShippingForm/index.ts
deleted file mode 100644
index 6d74129dbd..0000000000
--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierShippingForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import SupplierShippingForm from "./SupplierShippingForm";
-
-export default SupplierShippingForm;
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypeForm/SupplierTypeForm.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypeForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypeForm/SupplierTypeForm.tsx
rename to apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypeForm.tsx
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypeForm/index.ts b/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypeForm/index.ts
deleted file mode 100644
index 17448614fc..0000000000
--- a/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypeForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import SupplierTypeForm from "./SupplierTypeForm";
-
-export default SupplierTypeForm;
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTable/SupplierTypesTable.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTable/SupplierTypesTable.tsx
rename to apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTable.tsx
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTable/index.ts b/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTable/index.ts
deleted file mode 100644
index 2bb37f3f4e..0000000000
--- a/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import SupplierTypesTable from "./SupplierTypesTable";
-
-export default SupplierTypesTable;
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTableFilters/SupplierTypesTableFilters.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTableFilters/SupplierTypesTableFilters.tsx
rename to apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTableFilters.tsx
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTableFilters/index.ts b/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTableFilters/index.ts
deleted file mode 100644
index 551303386f..0000000000
--- a/apps/carbon/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import SupplierTypesTableFilters from "./SupplierTypesTableFilters";
-
-export default SupplierTypesTableFilters;
diff --git a/apps/carbon/app/modules/purchasing/ui/Suppliers/SuppliersTable/SuppliersTable.tsx b/apps/carbon/app/modules/purchasing/ui/Suppliers/SuppliersTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/purchasing/ui/Suppliers/SuppliersTable/SuppliersTable.tsx
rename to apps/carbon/app/modules/purchasing/ui/Suppliers/SuppliersTable.tsx
diff --git a/apps/carbon/app/modules/purchasing/ui/Suppliers/SuppliersTable/index.ts b/apps/carbon/app/modules/purchasing/ui/Suppliers/SuppliersTable/index.ts
deleted file mode 100644
index 733d42d3b6..0000000000
--- a/apps/carbon/app/modules/purchasing/ui/Suppliers/SuppliersTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import SuppliersTable from "./SuppliersTable";
-
-export default SuppliersTable;
diff --git a/apps/carbon/app/modules/purchasing/ui/Suppliers/SuppliersTableFilters/SuppliersTableFilters.tsx b/apps/carbon/app/modules/purchasing/ui/Suppliers/SuppliersTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/purchasing/ui/Suppliers/SuppliersTableFilters/SuppliersTableFilters.tsx
rename to apps/carbon/app/modules/purchasing/ui/Suppliers/SuppliersTableFilters.tsx
diff --git a/apps/carbon/app/modules/purchasing/ui/Suppliers/SuppliersTableFilters/index.ts b/apps/carbon/app/modules/purchasing/ui/Suppliers/SuppliersTableFilters/index.ts
deleted file mode 100644
index 0136d93af5..0000000000
--- a/apps/carbon/app/modules/purchasing/ui/Suppliers/SuppliersTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import SuppliersTableFilters from "./SuppliersTableFilters";
-
-export default SuppliersTableFilters;
diff --git a/apps/carbon/app/modules/purchasing/ui/index.ts b/apps/carbon/app/modules/purchasing/ui/index.ts
index 9acc07cbed..bb2ee9cce7 100644
--- a/apps/carbon/app/modules/purchasing/ui/index.ts
+++ b/apps/carbon/app/modules/purchasing/ui/index.ts
@@ -2,7 +2,8 @@ import usePurchasingSidebar from "./usePurchasingSidebar";
export * from "./PurchaseOrder";
export * from "./PurchaseOrders";
+export * from "./RequestForQuotes";
export * from "./Supplier";
-export * from "./Suppliers";
export * from "./SupplierTypes";
+export * from "./Suppliers";
export { usePurchasingSidebar };
diff --git a/apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTable/AbilitiesTable.tsx b/apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTable.tsx
similarity index 98%
rename from apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTable/AbilitiesTable.tsx
rename to apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTable.tsx
index a8572c7c87..58d48381cf 100644
--- a/apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTable/AbilitiesTable.tsx
+++ b/apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTable.tsx
@@ -15,7 +15,7 @@ import { Avatar, Table } from "~/components";
import { usePermissions } from "~/hooks";
import type { Abilities, AbilityDatum } from "~/modules/resources";
import { path } from "~/utils/path";
-import AbilityChart from "../AbilityChart";
+import AbilityChart from "./AbilityChart";
type AbilitiesTableProps = {
data: Abilities;
diff --git a/apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTable/index.ts b/apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTable/index.ts
deleted file mode 100644
index 06226f4198..0000000000
--- a/apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import AbilitiesTable from "./AbilitiesTable";
-
-export default AbilitiesTable;
diff --git a/apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTableFilters/AbilitiesTableFilters.tsx b/apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTableFilters/AbilitiesTableFilters.tsx
rename to apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTableFilters.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTableFilters/index.ts b/apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTableFilters/index.ts
deleted file mode 100644
index 9d1df7d801..0000000000
--- a/apps/carbon/app/modules/resources/ui/Abilities/AbilitiesTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import AbilitiesTableFilters from "./AbilitiesTableFilters";
-
-export default AbilitiesTableFilters;
diff --git a/apps/carbon/app/modules/resources/ui/Abilities/AbilityChart/AbilityChart.tsx b/apps/carbon/app/modules/resources/ui/Abilities/AbilityChart.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Abilities/AbilityChart/AbilityChart.tsx
rename to apps/carbon/app/modules/resources/ui/Abilities/AbilityChart.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Abilities/AbilityChart/index.ts b/apps/carbon/app/modules/resources/ui/Abilities/AbilityChart/index.ts
deleted file mode 100644
index d46627c229..0000000000
--- a/apps/carbon/app/modules/resources/ui/Abilities/AbilityChart/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import AbilityChart from "./AbilityChart";
-
-export default AbilityChart;
diff --git a/apps/carbon/app/modules/resources/ui/Abilities/AbilityEmployeesTable/AbilityEmployeesTable.tsx b/apps/carbon/app/modules/resources/ui/Abilities/AbilityEmployeesTable.tsx
similarity index 97%
rename from apps/carbon/app/modules/resources/ui/Abilities/AbilityEmployeesTable/AbilityEmployeesTable.tsx
rename to apps/carbon/app/modules/resources/ui/Abilities/AbilityEmployeesTable.tsx
index bc87a04546..3740f1f12d 100644
--- a/apps/carbon/app/modules/resources/ui/Abilities/AbilityEmployeesTable/AbilityEmployeesTable.tsx
+++ b/apps/carbon/app/modules/resources/ui/Abilities/AbilityEmployeesTable.tsx
@@ -104,10 +104,7 @@ const AbilityEmployeesTable = ({
const percentage = row.original.percentage;
return (
<Progress
- size="md"
- borderRadius="full"
- maxW={200}
- colorScheme="green"
+ className="max-w-[200px]"
value={
row.original.status === AbilityEmployeeStatus.Complete
? 100
diff --git a/apps/carbon/app/modules/resources/ui/Abilities/AbilityEmployeesTable/index.ts b/apps/carbon/app/modules/resources/ui/Abilities/AbilityEmployeesTable/index.ts
deleted file mode 100644
index 1f0759744e..0000000000
--- a/apps/carbon/app/modules/resources/ui/Abilities/AbilityEmployeesTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import AbilityEmployeesTable from "./AbilityEmployeesTable";
-
-export default AbilityEmployeesTable;
diff --git a/apps/carbon/app/modules/resources/ui/Abilities/AbilityForm/AbilityForm.tsx b/apps/carbon/app/modules/resources/ui/Abilities/AbilityForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Abilities/AbilityForm/AbilityForm.tsx
rename to apps/carbon/app/modules/resources/ui/Abilities/AbilityForm.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Abilities/AbilityForm/index.ts b/apps/carbon/app/modules/resources/ui/Abilities/AbilityForm/index.ts
deleted file mode 100644
index aa2e0a96e4..0000000000
--- a/apps/carbon/app/modules/resources/ui/Abilities/AbilityForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import AbilityForm from "./AbilityForm";
-
-export default AbilityForm;
diff --git a/apps/carbon/app/modules/resources/ui/Abilities/EmployeeAbilityForm/EmployeeAbilityForm.tsx b/apps/carbon/app/modules/resources/ui/Abilities/EmployeeAbilityForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Abilities/EmployeeAbilityForm/EmployeeAbilityForm.tsx
rename to apps/carbon/app/modules/resources/ui/Abilities/EmployeeAbilityForm.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Abilities/EmployeeAbilityForm/index.ts b/apps/carbon/app/modules/resources/ui/Abilities/EmployeeAbilityForm/index.ts
deleted file mode 100644
index 2c0896d6fc..0000000000
--- a/apps/carbon/app/modules/resources/ui/Abilities/EmployeeAbilityForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import EmployeeAbilityForm from "./EmployeeAbilityForm";
-
-export default EmployeeAbilityForm;
diff --git a/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoriesTable/AttributesCategoriesTable.tsx b/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoriesTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoriesTable/AttributesCategoriesTable.tsx
rename to apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoriesTable.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoriesTable/index.ts b/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoriesTable/index.ts
deleted file mode 100644
index ceb9c1b289..0000000000
--- a/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoriesTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import AttributesCategoriesTable from "./AttributesCategoriesTable";
-
-export default AttributesCategoriesTable;
diff --git a/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoriesTableFilters/AttributeCategoriesTableFilters.tsx b/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoriesTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoriesTableFilters/AttributeCategoriesTableFilters.tsx
rename to apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoriesTableFilters.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoriesTableFilters/index.ts b/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoriesTableFilters/index.ts
deleted file mode 100644
index 478ea508ee..0000000000
--- a/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoriesTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import AttributeCategoriesTableFilters from "./AttributeCategoriesTableFilters";
-
-export default AttributeCategoriesTableFilters;
diff --git a/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryDetail/AttributeCategoryDetail.tsx b/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryDetail.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryDetail/AttributeCategoryDetail.tsx
rename to apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryDetail.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryDetail/index.ts b/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryDetail/index.ts
deleted file mode 100644
index 1ffe488d92..0000000000
--- a/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryDetail/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import AttributeCategoryDetail from "./AttributeCategoryDetail";
-
-export default AttributeCategoryDetail;
diff --git a/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryForm/AttributeCategoryForm.tsx b/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryForm/AttributeCategoryForm.tsx
rename to apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryForm.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryForm/index.ts b/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryForm/index.ts
deleted file mode 100644
index f74052d036..0000000000
--- a/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import AttributeCategoryForm from "./AttributeCategoryForm";
-
-export default AttributeCategoryForm;
diff --git a/apps/carbon/app/modules/resources/ui/Attributes/AttributeForm/AttributeForm.tsx b/apps/carbon/app/modules/resources/ui/Attributes/AttributeForm.tsx
similarity index 93%
rename from apps/carbon/app/modules/resources/ui/Attributes/AttributeForm/AttributeForm.tsx
rename to apps/carbon/app/modules/resources/ui/Attributes/AttributeForm.tsx
index e9f25df14f..18798853f6 100644
--- a/apps/carbon/app/modules/resources/ui/Attributes/AttributeForm/AttributeForm.tsx
+++ b/apps/carbon/app/modules/resources/ui/Attributes/AttributeForm.tsx
@@ -62,11 +62,15 @@ const AttributeForm = ({
initialValues.attributeDataTypeId === DataType.List
);
- const onChangeCheckForListType = (selected: {
- value: string;
- label: string;
- }) => {
- setIsList(Number(selected.value) === DataType.List);
+ const onChangeCheckForListType = (
+ selected: {
+ value: string;
+ label: string;
+ } | null
+ ) => {
+ setIsList(
+ selected === null ? false : Number(selected.value) === DataType.List
+ );
};
return (
diff --git a/apps/carbon/app/modules/resources/ui/Attributes/AttributeForm/index.ts b/apps/carbon/app/modules/resources/ui/Attributes/AttributeForm/index.ts
deleted file mode 100644
index 0cb93425a9..0000000000
--- a/apps/carbon/app/modules/resources/ui/Attributes/AttributeForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import AttributeForm from "./AttributeForm";
-
-export default AttributeForm;
diff --git a/apps/carbon/app/modules/resources/ui/Contractors/ContractorForm/ContractorForm.tsx b/apps/carbon/app/modules/resources/ui/Contractors/ContractorForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Contractors/ContractorForm/ContractorForm.tsx
rename to apps/carbon/app/modules/resources/ui/Contractors/ContractorForm.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Contractors/ContractorForm/index.ts b/apps/carbon/app/modules/resources/ui/Contractors/ContractorForm/index.ts
deleted file mode 100644
index 975f32c82c..0000000000
--- a/apps/carbon/app/modules/resources/ui/Contractors/ContractorForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ContractorForm from "./ContractorForm";
-
-export default ContractorForm;
diff --git a/apps/carbon/app/modules/resources/ui/Contractors/ContractorsTable/ContractorsTable.tsx b/apps/carbon/app/modules/resources/ui/Contractors/ContractorsTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Contractors/ContractorsTable/ContractorsTable.tsx
rename to apps/carbon/app/modules/resources/ui/Contractors/ContractorsTable.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Contractors/ContractorsTable/index.ts b/apps/carbon/app/modules/resources/ui/Contractors/ContractorsTable/index.ts
deleted file mode 100644
index f289ce4e4d..0000000000
--- a/apps/carbon/app/modules/resources/ui/Contractors/ContractorsTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ContractorsTable from "./ContractorsTable";
-
-export default ContractorsTable;
diff --git a/apps/carbon/app/modules/resources/ui/Contractors/ContractorsTableFilters/ContractorsTableFilters.tsx b/apps/carbon/app/modules/resources/ui/Contractors/ContractorsTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Contractors/ContractorsTableFilters/ContractorsTableFilters.tsx
rename to apps/carbon/app/modules/resources/ui/Contractors/ContractorsTableFilters.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Contractors/ContractorsTableFilters/index.ts b/apps/carbon/app/modules/resources/ui/Contractors/ContractorsTableFilters/index.ts
deleted file mode 100644
index 1fca445583..0000000000
--- a/apps/carbon/app/modules/resources/ui/Contractors/ContractorsTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ContractorsTableFilters from "./ContractorsTableFilters";
-
-export default ContractorsTableFilters;
diff --git a/apps/carbon/app/modules/resources/ui/Departments/DepartmentForm/DepartmentForm.tsx b/apps/carbon/app/modules/resources/ui/Departments/DepartmentForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Departments/DepartmentForm/DepartmentForm.tsx
rename to apps/carbon/app/modules/resources/ui/Departments/DepartmentForm.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Departments/DepartmentForm/index.ts b/apps/carbon/app/modules/resources/ui/Departments/DepartmentForm/index.ts
deleted file mode 100644
index 4a4343d871..0000000000
--- a/apps/carbon/app/modules/resources/ui/Departments/DepartmentForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import DepartmentForm from "./DepartmentForm";
-
-export default DepartmentForm;
diff --git a/apps/carbon/app/modules/resources/ui/Departments/DepartmentsTable/DepartmentsTable.tsx b/apps/carbon/app/modules/resources/ui/Departments/DepartmentsTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Departments/DepartmentsTable/DepartmentsTable.tsx
rename to apps/carbon/app/modules/resources/ui/Departments/DepartmentsTable.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Departments/DepartmentsTable/index.ts b/apps/carbon/app/modules/resources/ui/Departments/DepartmentsTable/index.ts
deleted file mode 100644
index 1e25a11b63..0000000000
--- a/apps/carbon/app/modules/resources/ui/Departments/DepartmentsTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import DepartmentsTable from "./DepartmentsTable";
-
-export default DepartmentsTable;
diff --git a/apps/carbon/app/modules/resources/ui/Departments/DepartmentsTableFilters/DepartmentsTableFilters.tsx b/apps/carbon/app/modules/resources/ui/Departments/DepartmentsTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Departments/DepartmentsTableFilters/DepartmentsTableFilters.tsx
rename to apps/carbon/app/modules/resources/ui/Departments/DepartmentsTableFilters.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Departments/DepartmentsTableFilters/index.ts b/apps/carbon/app/modules/resources/ui/Departments/DepartmentsTableFilters/index.ts
deleted file mode 100644
index 3e9f5b50e2..0000000000
--- a/apps/carbon/app/modules/resources/ui/Departments/DepartmentsTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import DepartmentsTableFilters from "./DepartmentsTableFilters";
-
-export default DepartmentsTableFilters;
diff --git a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentForm/EquipmentForm.tsx b/apps/carbon/app/modules/resources/ui/Equipment/EquipmentForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Equipment/EquipmentForm/EquipmentForm.tsx
rename to apps/carbon/app/modules/resources/ui/Equipment/EquipmentForm.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentForm/index.ts b/apps/carbon/app/modules/resources/ui/Equipment/EquipmentForm/index.ts
deleted file mode 100644
index 985ea3f652..0000000000
--- a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import EquipmentForm from "./EquipmentForm";
-
-export default EquipmentForm;
diff --git a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeDetail/EquipmentTypeDetail.tsx b/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeDetail.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeDetail/EquipmentTypeDetail.tsx
rename to apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeDetail.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeDetail/index.ts b/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeDetail/index.ts
deleted file mode 100644
index 26f1002c94..0000000000
--- a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeDetail/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import EquipmentTypeDetail from "./EquipmentTypeDetail";
-
-export default EquipmentTypeDetail;
diff --git a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeForm/EquipmentTypeForm.tsx b/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeForm/EquipmentTypeForm.tsx
rename to apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeForm.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeForm/index.ts b/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeForm/index.ts
deleted file mode 100644
index 530695073b..0000000000
--- a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypeForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import EquipmentTypesForm from "./EquipmentTypeForm";
-
-export default EquipmentTypesForm;
diff --git a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypesTable/EquipmentTypesTable.tsx b/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypesTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypesTable/EquipmentTypesTable.tsx
rename to apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypesTable.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypesTable/index.ts b/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypesTable/index.ts
deleted file mode 100644
index 5110c8d301..0000000000
--- a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypesTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import EquipmentTypesTable from "./EquipmentTypesTable";
-
-export default EquipmentTypesTable;
diff --git a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypesTableFilters/EquipmentTypesTableFilters.tsx b/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypesTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypesTableFilters/EquipmentTypesTableFilters.tsx
rename to apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypesTableFilters.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypesTableFilters/index.ts b/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypesTableFilters/index.ts
deleted file mode 100644
index 9e622b3377..0000000000
--- a/apps/carbon/app/modules/resources/ui/Equipment/EquipmentTypesTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import EquipmentTypesTableFilters from "./EquipmentTypesTableFilters";
-
-export default EquipmentTypesTableFilters;
diff --git a/apps/carbon/app/modules/resources/ui/Holidays/HolidayForm/HolidayForm.tsx b/apps/carbon/app/modules/resources/ui/Holidays/HolidayForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Holidays/HolidayForm/HolidayForm.tsx
rename to apps/carbon/app/modules/resources/ui/Holidays/HolidayForm.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Holidays/HolidayForm/index.ts b/apps/carbon/app/modules/resources/ui/Holidays/HolidayForm/index.ts
deleted file mode 100644
index 3f91d5dc18..0000000000
--- a/apps/carbon/app/modules/resources/ui/Holidays/HolidayForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import HolidayForm from "./HolidayForm";
-
-export default HolidayForm;
diff --git a/apps/carbon/app/modules/resources/ui/Holidays/HolidaysTable/HolidaysTable.tsx b/apps/carbon/app/modules/resources/ui/Holidays/HolidaysTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Holidays/HolidaysTable/HolidaysTable.tsx
rename to apps/carbon/app/modules/resources/ui/Holidays/HolidaysTable.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Holidays/HolidaysTable/index.ts b/apps/carbon/app/modules/resources/ui/Holidays/HolidaysTable/index.ts
deleted file mode 100644
index 2db43957c4..0000000000
--- a/apps/carbon/app/modules/resources/ui/Holidays/HolidaysTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import HolidaysTable from "./HolidaysTable";
-
-export default HolidaysTable;
diff --git a/apps/carbon/app/modules/resources/ui/Holidays/HolidaysTableFilters/HolidaysTableFilters.tsx b/apps/carbon/app/modules/resources/ui/Holidays/HolidaysTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Holidays/HolidaysTableFilters/HolidaysTableFilters.tsx
rename to apps/carbon/app/modules/resources/ui/Holidays/HolidaysTableFilters.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Holidays/HolidaysTableFilters/index.ts b/apps/carbon/app/modules/resources/ui/Holidays/HolidaysTableFilters/index.ts
deleted file mode 100644
index decb1648eb..0000000000
--- a/apps/carbon/app/modules/resources/ui/Holidays/HolidaysTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import HolidaysTableFilters from "./HolidaysTableFilters";
-
-export default HolidaysTableFilters;
diff --git a/apps/carbon/app/modules/resources/ui/Locations/LocationForm/LocationForm.tsx b/apps/carbon/app/modules/resources/ui/Locations/LocationForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Locations/LocationForm/LocationForm.tsx
rename to apps/carbon/app/modules/resources/ui/Locations/LocationForm.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Locations/LocationForm/index.ts b/apps/carbon/app/modules/resources/ui/Locations/LocationForm/index.ts
deleted file mode 100644
index cc681fea4b..0000000000
--- a/apps/carbon/app/modules/resources/ui/Locations/LocationForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import LocationForm from "./LocationForm";
-
-export default LocationForm;
diff --git a/apps/carbon/app/modules/resources/ui/Locations/LocationsTable/LocationsTable.tsx b/apps/carbon/app/modules/resources/ui/Locations/LocationsTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Locations/LocationsTable/LocationsTable.tsx
rename to apps/carbon/app/modules/resources/ui/Locations/LocationsTable.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Locations/LocationsTable/index.ts b/apps/carbon/app/modules/resources/ui/Locations/LocationsTable/index.ts
deleted file mode 100644
index 1434ab470d..0000000000
--- a/apps/carbon/app/modules/resources/ui/Locations/LocationsTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import LocationsTable from "./LocationsTable";
-
-export default LocationsTable;
diff --git a/apps/carbon/app/modules/resources/ui/Locations/LocationsTableFilters/LocationsTableFilters.tsx b/apps/carbon/app/modules/resources/ui/Locations/LocationsTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Locations/LocationsTableFilters/LocationsTableFilters.tsx
rename to apps/carbon/app/modules/resources/ui/Locations/LocationsTableFilters.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Locations/LocationsTableFilters/index.ts b/apps/carbon/app/modules/resources/ui/Locations/LocationsTableFilters/index.ts
deleted file mode 100644
index 917f62228f..0000000000
--- a/apps/carbon/app/modules/resources/ui/Locations/LocationsTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import LocationsTableFilters from "./LocationsTableFilters";
-
-export default LocationsTableFilters;
diff --git a/apps/carbon/app/modules/resources/ui/Partners/PartnerForm/PartnerForm.tsx b/apps/carbon/app/modules/resources/ui/Partners/PartnerForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Partners/PartnerForm/PartnerForm.tsx
rename to apps/carbon/app/modules/resources/ui/Partners/PartnerForm.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Partners/PartnerForm/index.ts b/apps/carbon/app/modules/resources/ui/Partners/PartnerForm/index.ts
deleted file mode 100644
index 14124cdb70..0000000000
--- a/apps/carbon/app/modules/resources/ui/Partners/PartnerForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PartnerForm from "./PartnerForm";
-
-export default PartnerForm;
diff --git a/apps/carbon/app/modules/resources/ui/Partners/PartnersTable/PartnersTable.tsx b/apps/carbon/app/modules/resources/ui/Partners/PartnersTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Partners/PartnersTable/PartnersTable.tsx
rename to apps/carbon/app/modules/resources/ui/Partners/PartnersTable.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Partners/PartnersTable/index.ts b/apps/carbon/app/modules/resources/ui/Partners/PartnersTable/index.ts
deleted file mode 100644
index 082843e88e..0000000000
--- a/apps/carbon/app/modules/resources/ui/Partners/PartnersTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PartnersTable from "./PartnersTable";
-
-export default PartnersTable;
diff --git a/apps/carbon/app/modules/resources/ui/Partners/PartnersTableFilters/PartnersTableFilters.tsx b/apps/carbon/app/modules/resources/ui/Partners/PartnersTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Partners/PartnersTableFilters/PartnersTableFilters.tsx
rename to apps/carbon/app/modules/resources/ui/Partners/PartnersTableFilters.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Partners/PartnersTableFilters/index.ts b/apps/carbon/app/modules/resources/ui/Partners/PartnersTableFilters/index.ts
deleted file mode 100644
index 2b1d86f2c2..0000000000
--- a/apps/carbon/app/modules/resources/ui/Partners/PartnersTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PartnersTableFilters from "./PartnersTableFilters";
-
-export default PartnersTableFilters;
diff --git a/apps/carbon/app/modules/resources/ui/People/PeopleTable/PeopleTable.tsx b/apps/carbon/app/modules/resources/ui/People/PeopleTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/People/PeopleTable/PeopleTable.tsx
rename to apps/carbon/app/modules/resources/ui/People/PeopleTable.tsx
diff --git a/apps/carbon/app/modules/resources/ui/People/PeopleTable/index.ts b/apps/carbon/app/modules/resources/ui/People/PeopleTable/index.ts
deleted file mode 100644
index dbe39e96c6..0000000000
--- a/apps/carbon/app/modules/resources/ui/People/PeopleTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PeopleTable from "./PeopleTable";
-
-export default PeopleTable;
diff --git a/apps/carbon/app/modules/resources/ui/People/PeopleTableFilters/PeopleTableFilters.tsx b/apps/carbon/app/modules/resources/ui/People/PeopleTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/People/PeopleTableFilters/PeopleTableFilters.tsx
rename to apps/carbon/app/modules/resources/ui/People/PeopleTableFilters.tsx
diff --git a/apps/carbon/app/modules/resources/ui/People/PeopleTableFilters/index.ts b/apps/carbon/app/modules/resources/ui/People/PeopleTableFilters/index.ts
deleted file mode 100644
index c074c31be6..0000000000
--- a/apps/carbon/app/modules/resources/ui/People/PeopleTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PeopleTableFilters from "./PeopleTableFilters";
-
-export default PeopleTableFilters;
diff --git a/apps/carbon/app/modules/resources/ui/Person/PersonAbilities/PersonAbilities.tsx b/apps/carbon/app/modules/resources/ui/Person/PersonAbilities.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Person/PersonAbilities/PersonAbilities.tsx
rename to apps/carbon/app/modules/resources/ui/Person/PersonAbilities.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Person/PersonAbilities/index.ts b/apps/carbon/app/modules/resources/ui/Person/PersonAbilities/index.ts
deleted file mode 100644
index 8596cdf253..0000000000
--- a/apps/carbon/app/modules/resources/ui/Person/PersonAbilities/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PersonAbiltiies from "./PersonAbilities";
-
-export default PersonAbiltiies;
diff --git a/apps/carbon/app/modules/resources/ui/Person/PersonDaysOff/PersonDaysOff.tsx b/apps/carbon/app/modules/resources/ui/Person/PersonDaysOff.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Person/PersonDaysOff/PersonDaysOff.tsx
rename to apps/carbon/app/modules/resources/ui/Person/PersonDaysOff.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Person/PersonDaysOff/index.ts b/apps/carbon/app/modules/resources/ui/Person/PersonDaysOff/index.ts
deleted file mode 100644
index ea3616d18e..0000000000
--- a/apps/carbon/app/modules/resources/ui/Person/PersonDaysOff/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PersonDaysOff from "./PersonDaysOff";
-
-export default PersonDaysOff;
diff --git a/apps/carbon/app/modules/resources/ui/Person/PersonJob/PersonJob.tsx b/apps/carbon/app/modules/resources/ui/Person/PersonJob.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Person/PersonJob/PersonJob.tsx
rename to apps/carbon/app/modules/resources/ui/Person/PersonJob.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Person/PersonJob/index.ts b/apps/carbon/app/modules/resources/ui/Person/PersonJob/index.ts
deleted file mode 100644
index 813374a8ce..0000000000
--- a/apps/carbon/app/modules/resources/ui/Person/PersonJob/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PersonJob from "./PersonJob";
-
-export default PersonJob;
diff --git a/apps/carbon/app/modules/resources/ui/Person/PersonOvertime/PersonOvertime.tsx b/apps/carbon/app/modules/resources/ui/Person/PersonOvertime.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Person/PersonOvertime/PersonOvertime.tsx
rename to apps/carbon/app/modules/resources/ui/Person/PersonOvertime.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Person/PersonOvertime/index.ts b/apps/carbon/app/modules/resources/ui/Person/PersonOvertime/index.ts
deleted file mode 100644
index d2cee756d4..0000000000
--- a/apps/carbon/app/modules/resources/ui/Person/PersonOvertime/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PersonOvertime from "./PersonOvertime";
-
-export default PersonOvertime;
diff --git a/apps/carbon/app/modules/resources/ui/Person/PersonPreview/PersonPreview.tsx b/apps/carbon/app/modules/resources/ui/Person/PersonPreview.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Person/PersonPreview/PersonPreview.tsx
rename to apps/carbon/app/modules/resources/ui/Person/PersonPreview.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Person/PersonPreview/index.ts b/apps/carbon/app/modules/resources/ui/Person/PersonPreview/index.ts
deleted file mode 100644
index 79bea6c99f..0000000000
--- a/apps/carbon/app/modules/resources/ui/Person/PersonPreview/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import PersonPreview from "./PersonPreview";
-
-export default PersonPreview;
diff --git a/apps/carbon/app/modules/resources/ui/Shifts/ShiftForm/ShiftForm.tsx b/apps/carbon/app/modules/resources/ui/Shifts/ShiftForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Shifts/ShiftForm/ShiftForm.tsx
rename to apps/carbon/app/modules/resources/ui/Shifts/ShiftForm.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Shifts/ShiftForm/index.ts b/apps/carbon/app/modules/resources/ui/Shifts/ShiftForm/index.ts
deleted file mode 100644
index 0355f4858a..0000000000
--- a/apps/carbon/app/modules/resources/ui/Shifts/ShiftForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ShiftForm from "./ShiftForm";
-
-export default ShiftForm;
diff --git a/apps/carbon/app/modules/resources/ui/Shifts/ShiftsTable/ShiftsTable.tsx b/apps/carbon/app/modules/resources/ui/Shifts/ShiftsTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Shifts/ShiftsTable/ShiftsTable.tsx
rename to apps/carbon/app/modules/resources/ui/Shifts/ShiftsTable.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Shifts/ShiftsTable/index.ts b/apps/carbon/app/modules/resources/ui/Shifts/ShiftsTable/index.ts
deleted file mode 100644
index ad11d6ab3d..0000000000
--- a/apps/carbon/app/modules/resources/ui/Shifts/ShiftsTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ShiftsTable from "./ShiftsTable";
-
-export default ShiftsTable;
diff --git a/apps/carbon/app/modules/resources/ui/Shifts/ShiftsTableFilters/ShiftsTableFilters.tsx b/apps/carbon/app/modules/resources/ui/Shifts/ShiftsTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/Shifts/ShiftsTableFilters/ShiftsTableFilters.tsx
rename to apps/carbon/app/modules/resources/ui/Shifts/ShiftsTableFilters.tsx
diff --git a/apps/carbon/app/modules/resources/ui/Shifts/ShiftsTableFilters/index.ts b/apps/carbon/app/modules/resources/ui/Shifts/ShiftsTableFilters/index.ts
deleted file mode 100644
index 58685e9ad8..0000000000
--- a/apps/carbon/app/modules/resources/ui/Shifts/ShiftsTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ShiftsTableFilters from "./ShiftsTableFilters";
-
-export default ShiftsTableFilters;
diff --git a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellForm/WorkCellForm.tsx b/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/WorkCells/WorkCellForm/WorkCellForm.tsx
rename to apps/carbon/app/modules/resources/ui/WorkCells/WorkCellForm.tsx
diff --git a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellForm/index.ts b/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellForm/index.ts
deleted file mode 100644
index 6842e71759..0000000000
--- a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import WorkCellForm from "./WorkCellForm";
-
-export default WorkCellForm;
diff --git a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeDetail/WorkCellTypeDetail.tsx b/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeDetail.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeDetail/WorkCellTypeDetail.tsx
rename to apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeDetail.tsx
diff --git a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeDetail/index.ts b/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeDetail/index.ts
deleted file mode 100644
index 8ff14dd86b..0000000000
--- a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeDetail/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import WorkCellTypeDetail from "./WorkCellTypeDetail";
-
-export default WorkCellTypeDetail;
diff --git a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeForm/WorkCellTypeForm.tsx b/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeForm/WorkCellTypeForm.tsx
rename to apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeForm.tsx
diff --git a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeForm/index.ts b/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeForm/index.ts
deleted file mode 100644
index a9636b8d59..0000000000
--- a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypeForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import WorkCellTypeForm from "./WorkCellTypeForm";
-
-export default WorkCellTypeForm;
diff --git a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypesTable/WorkCellTypesTable.tsx b/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypesTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypesTable/WorkCellTypesTable.tsx
rename to apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypesTable.tsx
diff --git a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypesTable/index.ts b/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypesTable/index.ts
deleted file mode 100644
index 8e0e4f389e..0000000000
--- a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypesTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import WorkCellTypesTable from "./WorkCellTypesTable";
-
-export default WorkCellTypesTable;
diff --git a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypesTableFilters/WorkCellTypesTableFilters.tsx b/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypesTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypesTableFilters/WorkCellTypesTableFilters.tsx
rename to apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypesTableFilters.tsx
diff --git a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypesTableFilters/index.ts b/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypesTableFilters/index.ts
deleted file mode 100644
index 397f00b91c..0000000000
--- a/apps/carbon/app/modules/resources/ui/WorkCells/WorkCellTypesTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import WorkCellTypesTableFilters from "./WorkCellTypesTableFilters";
-
-export default WorkCellTypesTableFilters;
diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerContactForm/CustomerContactForm.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerContactForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/sales/ui/Customer/CustomerContactForm/CustomerContactForm.tsx
rename to apps/carbon/app/modules/sales/ui/Customer/CustomerContactForm.tsx
diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerContactForm/index.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerContactForm/index.tsx
deleted file mode 100644
index 9da6f144fc..0000000000
--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerContactForm/index.tsx
+++ /dev/null
@@ -1,3 +0,0 @@
-import CustomerContactForm from "./CustomerContactForm";
-
-export default CustomerContactForm;
diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerContacts/CustomerContacts.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerContacts.tsx
similarity index 100%
rename from apps/carbon/app/modules/sales/ui/Customer/CustomerContacts/CustomerContacts.tsx
rename to apps/carbon/app/modules/sales/ui/Customer/CustomerContacts.tsx
diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerContacts/index.ts b/apps/carbon/app/modules/sales/ui/Customer/CustomerContacts/index.ts
deleted file mode 100644
index 4ca1bc15e6..0000000000
--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerContacts/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CustomerContacts from "./CustomerContacts";
-
-export default CustomerContacts;
diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerForm/CustomerForm.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/sales/ui/Customer/CustomerForm/CustomerForm.tsx
rename to apps/carbon/app/modules/sales/ui/Customer/CustomerForm.tsx
diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerForm/index.ts b/apps/carbon/app/modules/sales/ui/Customer/CustomerForm/index.ts
deleted file mode 100644
index 80153745e0..0000000000
--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CustomerForm from "./CustomerForm";
-
-export default CustomerForm;
diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerHeader/CustomerHeader.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerHeader.tsx
similarity index 90%
rename from apps/carbon/app/modules/sales/ui/Customer/CustomerHeader/CustomerHeader.tsx
rename to apps/carbon/app/modules/sales/ui/Customer/CustomerHeader.tsx
index 7862b3e201..75419e5a84 100644
--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerHeader/CustomerHeader.tsx
+++ b/apps/carbon/app/modules/sales/ui/Customer/CustomerHeader.tsx
@@ -68,15 +68,12 @@ const CustomerHeader = () => {
)?.name ?? "--"}
</CardAttributeValue>
</CardAttribute>
- <CardAttribute>
+ {/* <CardAttribute>
<CardAttributeLabel>Payment Terms</CardAttributeLabel>
<CardAttributeValue>
- {sharedCustomerData?.paymentTerms?.find(
- (term) =>
- term.id === routeData?.customer?.defaultPaymentTermId
- )?.name ?? "--"}
+
</CardAttributeValue>
- </CardAttribute>
+ </CardAttribute> */}
</CardAttributes>
</CardContent>
</Card>
diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerHeader/index.ts b/apps/carbon/app/modules/sales/ui/Customer/CustomerHeader/index.ts
deleted file mode 100644
index 0569b423a7..0000000000
--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerHeader/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CustomerHeader from "./CustomerHeader";
-
-export default CustomerHeader;
diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerLocationForm/CustomerLocationForm.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerLocationForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/sales/ui/Customer/CustomerLocationForm/CustomerLocationForm.tsx
rename to apps/carbon/app/modules/sales/ui/Customer/CustomerLocationForm.tsx
diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerLocationForm/index.ts b/apps/carbon/app/modules/sales/ui/Customer/CustomerLocationForm/index.ts
deleted file mode 100644
index 35df58bce6..0000000000
--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerLocationForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CustomerLocationForm from "./CustomerLocationForm";
-
-export default CustomerLocationForm;
diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerLocations/CustomerLocations.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerLocations.tsx
similarity index 100%
rename from apps/carbon/app/modules/sales/ui/Customer/CustomerLocations/CustomerLocations.tsx
rename to apps/carbon/app/modules/sales/ui/Customer/CustomerLocations.tsx
diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerLocations/index.ts b/apps/carbon/app/modules/sales/ui/Customer/CustomerLocations/index.ts
deleted file mode 100644
index 90bffd6e65..0000000000
--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerLocations/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CustomerLocations from "./CustomerLocations";
-
-export default CustomerLocations;
diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerPaymentForm/CustomerPaymentForm.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerPaymentForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/sales/ui/Customer/CustomerPaymentForm/CustomerPaymentForm.tsx
rename to apps/carbon/app/modules/sales/ui/Customer/CustomerPaymentForm.tsx
diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerPaymentForm/index.ts b/apps/carbon/app/modules/sales/ui/Customer/CustomerPaymentForm/index.ts
deleted file mode 100644
index 3a93b1a28a..0000000000
--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerPaymentForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CustomerPaymentForm from "./CustomerPaymentForm";
-
-export default CustomerPaymentForm;
diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerShippingForm/CustomerShippingForm.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerShippingForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/sales/ui/Customer/CustomerShippingForm/CustomerShippingForm.tsx
rename to apps/carbon/app/modules/sales/ui/Customer/CustomerShippingForm.tsx
diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerShippingForm/index.ts b/apps/carbon/app/modules/sales/ui/Customer/CustomerShippingForm/index.ts
deleted file mode 100644
index ef689058a5..0000000000
--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerShippingForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CustomerShippingForm from "./CustomerShippingForm";
-
-export default CustomerShippingForm;
diff --git a/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypeForm/CustomerTypeForm.tsx b/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypeForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypeForm/CustomerTypeForm.tsx
rename to apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypeForm.tsx
diff --git a/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypeForm/index.ts b/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypeForm/index.ts
deleted file mode 100644
index 9afadaf30c..0000000000
--- a/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypeForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CustomerTypeForm from "./CustomerTypeForm";
-
-export default CustomerTypeForm;
diff --git a/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypesTable/CustomerTypesTable.tsx b/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypesTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypesTable/CustomerTypesTable.tsx
rename to apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypesTable.tsx
diff --git a/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypesTable/index.ts b/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypesTable/index.ts
deleted file mode 100644
index 7c52ef6811..0000000000
--- a/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypesTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CustomerTypesTable from "./CustomerTypesTable";
-
-export default CustomerTypesTable;
diff --git a/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypesTableFilters/CustomerTypesTableFilters.tsx b/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypesTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypesTableFilters/CustomerTypesTableFilters.tsx
rename to apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypesTableFilters.tsx
diff --git a/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypesTableFilters/index.ts b/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypesTableFilters/index.ts
deleted file mode 100644
index 0f3529f802..0000000000
--- a/apps/carbon/app/modules/sales/ui/CustomerTypes/CustomerTypesTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CustomerTypesTableFilters from "./CustomerTypesTableFilters";
-
-export default CustomerTypesTableFilters;
diff --git a/apps/carbon/app/modules/sales/ui/Customers/CustomersTable/CustomersTable.tsx b/apps/carbon/app/modules/sales/ui/Customers/CustomersTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/sales/ui/Customers/CustomersTable/CustomersTable.tsx
rename to apps/carbon/app/modules/sales/ui/Customers/CustomersTable.tsx
diff --git a/apps/carbon/app/modules/sales/ui/Customers/CustomersTable/index.ts b/apps/carbon/app/modules/sales/ui/Customers/CustomersTable/index.ts
deleted file mode 100644
index c6fe5c0540..0000000000
--- a/apps/carbon/app/modules/sales/ui/Customers/CustomersTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CustomersTable from "./CustomersTable";
-
-export default CustomersTable;
diff --git a/apps/carbon/app/modules/sales/ui/Customers/CustomersTableFilters/CustomersTableFilters.tsx b/apps/carbon/app/modules/sales/ui/Customers/CustomersTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/sales/ui/Customers/CustomersTableFilters/CustomersTableFilters.tsx
rename to apps/carbon/app/modules/sales/ui/Customers/CustomersTableFilters.tsx
diff --git a/apps/carbon/app/modules/sales/ui/Customers/CustomersTableFilters/index.ts b/apps/carbon/app/modules/sales/ui/Customers/CustomersTableFilters/index.ts
deleted file mode 100644
index 56e106d5cf..0000000000
--- a/apps/carbon/app/modules/sales/ui/Customers/CustomersTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CustomersTableFilters from "./CustomersTableFilters";
-
-export default CustomersTableFilters;
diff --git a/apps/carbon/app/modules/users/ui/Customers/CreateCustomerModal/CreateCustomerModal.tsx b/apps/carbon/app/modules/users/ui/Customers/CreateCustomerModal.tsx
similarity index 100%
rename from apps/carbon/app/modules/users/ui/Customers/CreateCustomerModal/CreateCustomerModal.tsx
rename to apps/carbon/app/modules/users/ui/Customers/CreateCustomerModal.tsx
diff --git a/apps/carbon/app/modules/users/ui/Customers/CreateCustomerModal/index.ts b/apps/carbon/app/modules/users/ui/Customers/CreateCustomerModal/index.ts
deleted file mode 100644
index 5d5da0c5ce..0000000000
--- a/apps/carbon/app/modules/users/ui/Customers/CreateCustomerModal/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CreateCustomerModal from "./CreateCustomerModal";
-
-export default CreateCustomerModal;
diff --git a/apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTable/CustomerAccountsTable.tsx b/apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTable/CustomerAccountsTable.tsx
rename to apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTable.tsx
diff --git a/apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTable/index.ts b/apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTable/index.ts
deleted file mode 100644
index bb25aef5c5..0000000000
--- a/apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CustomerAccountsTable from "./CustomerAccountsTable";
-
-export default CustomerAccountsTable;
diff --git a/apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTableFilters/CustomerAccountsTableFilters.tsx b/apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTableFilters/CustomerAccountsTableFilters.tsx
rename to apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTableFilters.tsx
diff --git a/apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTableFilters/index.ts b/apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTableFilters/index.ts
deleted file mode 100644
index 90c5535661..0000000000
--- a/apps/carbon/app/modules/users/ui/Customers/CustomerAccountsTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CustomerAccountsTableFilters from "./CustomerAccountsTableFilters";
-
-export default CustomerAccountsTableFilters;
diff --git a/apps/carbon/app/modules/users/ui/DeactivateUsersModal/index.ts b/apps/carbon/app/modules/users/ui/DeactivateUsersModal/index.ts
deleted file mode 100644
index 00d765483f..0000000000
--- a/apps/carbon/app/modules/users/ui/DeactivateUsersModal/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import DeactivateUsersModal from "./DeactivateUsersModal";
-
-export default DeactivateUsersModal;
diff --git a/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypeForm/EmployeeTypeForm.tsx b/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypeForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypeForm/EmployeeTypeForm.tsx
rename to apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypeForm.tsx
diff --git a/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypeForm/index.ts b/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypeForm/index.ts
deleted file mode 100644
index 31c2b5da7d..0000000000
--- a/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypeForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import EmployeeTypeForm from "./EmployeeTypeForm";
-
-export default EmployeeTypeForm;
diff --git a/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable/EmployeeTypesTable.tsx b/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable/EmployeeTypesTable.tsx
rename to apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable.tsx
diff --git a/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable/index.ts b/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable/index.ts
deleted file mode 100644
index d19a094bb6..0000000000
--- a/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import EmployeeTypesTable from "./EmployeeTypesTable";
-
-export default EmployeeTypesTable;
diff --git a/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTableFilters/EmployeeTypesTableFilters.tsx b/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTableFilters/EmployeeTypesTableFilters.tsx
rename to apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTableFilters.tsx
diff --git a/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTableFilters/index.ts b/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTableFilters/index.ts
deleted file mode 100644
index 04b5179d32..0000000000
--- a/apps/carbon/app/modules/users/ui/EmployeeTypes/EmployeeTypesTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import EmployeeTypesTableFilters from "./EmployeeTypesTableFilters";
-
-export default EmployeeTypesTableFilters;
diff --git a/apps/carbon/app/modules/users/ui/Employees/BulkEditPermissionsForm/BulkEditPermissionsForm.tsx b/apps/carbon/app/modules/users/ui/Employees/BulkEditPermissionsForm.tsx
similarity index 98%
rename from apps/carbon/app/modules/users/ui/Employees/BulkEditPermissionsForm/BulkEditPermissionsForm.tsx
rename to apps/carbon/app/modules/users/ui/Employees/BulkEditPermissionsForm.tsx
index 03f868bc45..0cdec830e5 100644
--- a/apps/carbon/app/modules/users/ui/Employees/BulkEditPermissionsForm/BulkEditPermissionsForm.tsx
+++ b/apps/carbon/app/modules/users/ui/Employees/BulkEditPermissionsForm.tsx
@@ -17,7 +17,7 @@ import { Employees, Hidden, Radios, Submit } from "~/components/Form";
import type { Permission } from "~/modules/users";
import { bulkPermissionsValidator } from "~/modules/users";
import { path } from "~/utils/path";
-import PermissionCheckboxes from "../../components/Permission";
+import PermissionCheckboxes from "../components/Permission";
type BulkEditPermissionsProps = {
userIds: string[];
diff --git a/apps/carbon/app/modules/users/ui/Employees/BulkEditPermissionsForm/index.ts b/apps/carbon/app/modules/users/ui/Employees/BulkEditPermissionsForm/index.ts
deleted file mode 100644
index ca24516d50..0000000000
--- a/apps/carbon/app/modules/users/ui/Employees/BulkEditPermissionsForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import BulkEditPermissionsForm from "./BulkEditPermissionsForm";
-
-export default BulkEditPermissionsForm;
diff --git a/apps/carbon/app/modules/users/ui/Employees/CreateEmployeeModal/CreateEmployeeModal.tsx b/apps/carbon/app/modules/users/ui/Employees/CreateEmployeeModal.tsx
similarity index 100%
rename from apps/carbon/app/modules/users/ui/Employees/CreateEmployeeModal/CreateEmployeeModal.tsx
rename to apps/carbon/app/modules/users/ui/Employees/CreateEmployeeModal.tsx
diff --git a/apps/carbon/app/modules/users/ui/Employees/CreateEmployeeModal/index.ts b/apps/carbon/app/modules/users/ui/Employees/CreateEmployeeModal/index.ts
deleted file mode 100644
index 08fed6621a..0000000000
--- a/apps/carbon/app/modules/users/ui/Employees/CreateEmployeeModal/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import CreateEmployeeModal from "./CreateEmployeeModal";
-
-export default CreateEmployeeModal;
diff --git a/apps/carbon/app/modules/users/ui/Employees/EmployeePermissionsForm/EmployeePermissionsForm.tsx b/apps/carbon/app/modules/users/ui/Employees/EmployeePermissionsForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/users/ui/Employees/EmployeePermissionsForm/EmployeePermissionsForm.tsx
rename to apps/carbon/app/modules/users/ui/Employees/EmployeePermissionsForm.tsx
diff --git a/apps/carbon/app/modules/users/ui/Employees/EmployeePermissionsForm/index.ts b/apps/carbon/app/modules/users/ui/Employees/EmployeePermissionsForm/index.ts
deleted file mode 100644
index 879f602c5b..0000000000
--- a/apps/carbon/app/modules/users/ui/Employees/EmployeePermissionsForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import EmployeePermissionsForm from "./EmployeePermissionsForm";
-
-export default EmployeePermissionsForm;
diff --git a/apps/carbon/app/modules/users/ui/Employees/EmployeesTable/EmployeesTable.tsx b/apps/carbon/app/modules/users/ui/Employees/EmployeesTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/users/ui/Employees/EmployeesTable/EmployeesTable.tsx
rename to apps/carbon/app/modules/users/ui/Employees/EmployeesTable.tsx
diff --git a/apps/carbon/app/modules/users/ui/Employees/EmployeesTable/index.ts b/apps/carbon/app/modules/users/ui/Employees/EmployeesTable/index.ts
deleted file mode 100644
index 23e77e8867..0000000000
--- a/apps/carbon/app/modules/users/ui/Employees/EmployeesTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import EmployeesTable from "./EmployeesTable";
-
-export default EmployeesTable;
diff --git a/apps/carbon/app/modules/users/ui/Employees/EmployeesTableFilters/EmployeesTableFilters.tsx b/apps/carbon/app/modules/users/ui/Employees/EmployeesTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/users/ui/Employees/EmployeesTableFilters/EmployeesTableFilters.tsx
rename to apps/carbon/app/modules/users/ui/Employees/EmployeesTableFilters.tsx
diff --git a/apps/carbon/app/modules/users/ui/Employees/EmployeesTableFilters/index.ts b/apps/carbon/app/modules/users/ui/Employees/EmployeesTableFilters/index.ts
deleted file mode 100644
index ba96d27e3a..0000000000
--- a/apps/carbon/app/modules/users/ui/Employees/EmployeesTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import EmployeesTableFilters from "./EmployeesTableFilters";
-
-export default EmployeesTableFilters;
diff --git a/apps/carbon/app/modules/users/ui/Groups/GroupsForm/GroupsForm.tsx b/apps/carbon/app/modules/users/ui/Groups/GroupsForm.tsx
similarity index 100%
rename from apps/carbon/app/modules/users/ui/Groups/GroupsForm/GroupsForm.tsx
rename to apps/carbon/app/modules/users/ui/Groups/GroupsForm.tsx
diff --git a/apps/carbon/app/modules/users/ui/Groups/GroupsForm/index.ts b/apps/carbon/app/modules/users/ui/Groups/GroupsForm/index.ts
deleted file mode 100644
index 2d520fb68d..0000000000
--- a/apps/carbon/app/modules/users/ui/Groups/GroupsForm/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import GroupForm from "./GroupsForm";
-
-export default GroupForm;
diff --git a/apps/carbon/app/modules/users/ui/Groups/GroupsTable/GroupsTable.tsx b/apps/carbon/app/modules/users/ui/Groups/GroupsTable.tsx
similarity index 100%
rename from apps/carbon/app/modules/users/ui/Groups/GroupsTable/GroupsTable.tsx
rename to apps/carbon/app/modules/users/ui/Groups/GroupsTable.tsx
diff --git a/apps/carbon/app/modules/users/ui/Groups/GroupsTable/index.ts b/apps/carbon/app/modules/users/ui/Groups/GroupsTable/index.ts
deleted file mode 100644
index 463edc52df..0000000000
--- a/apps/carbon/app/modules/users/ui/Groups/GroupsTable/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import GroupsTable from "./GroupsTable";
-
-export default GroupsTable;
diff --git a/apps/carbon/app/modules/users/ui/Groups/GroupsTableFilters/GroupsTableFilters.tsx b/apps/carbon/app/modules/users/ui/Groups/GroupsTableFilters.tsx
similarity index 100%
rename from apps/carbon/app/modules/users/ui/Groups/GroupsTableFilters/GroupsTableFilters.tsx
rename to apps/carbon/app/modules/users/ui/Groups/GroupsTableFilters.tsx
diff --git a/apps/carbon/app/modules/users/ui/Groups/GroupsTableFilters/index.ts b/apps/carbon/app/modules/users/ui/Groups/GroupsTableFilters/index.ts
deleted file mode 100644
index 4e36f01945..0000000000
--- a/apps/carbon/app/modules/users/ui/Groups/GroupsTableFilters/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import GroupsTableFilters from "./GroupsTableFilters";
-
-export default GroupsTableFilters;
diff --git a/apps/carbon/app/modules/users/ui/ResendInviteModal/index.ts b/apps/carbon/app/modules/users/ui/ResendInviteModal/index.ts
deleted file mode 100644
index c05fc8fad8..0000000000
--- a/apps/carbon/app/modules/users/ui/ResendInviteModal/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ResendInviteModal from "./ResendInviteModal";
-
-export default ResendInviteModal;
diff --git a/apps/carbon/app/modules/users/ui/DeactivateUsersModal/DeactivateUsersModal.tsx b/apps/carbon/app/modules/users/ui/components/DeactivateUsersModal.tsx
similarity index 100%
rename from apps/carbon/app/modules/users/ui/DeactivateUsersModal/DeactivateUsersModal.tsx
rename to apps/carbon/app/modules/users/ui/components/DeactivateUsersModal.tsx
diff --git a/apps/carbon/app/modules/users/ui/components/Permission/Permission.tsx b/apps/carbon/app/modules/users/ui/components/Permission.tsx
similarity index 100%
rename from apps/carbon/app/modules/users/ui/components/Permission/Permission.tsx
rename to apps/carbon/app/modules/users/ui/components/Permission.tsx
diff --git a/apps/carbon/app/modules/users/ui/components/Permission/index.ts b/apps/carbon/app/modules/users/ui/components/Permission/index.ts
deleted file mode 100644
index d0f7e6707c..0000000000
--- a/apps/carbon/app/modules/users/ui/components/Permission/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import Permission from "./Permission";
-
-export default Permission;
diff --git a/apps/carbon/app/modules/users/ui/ResendInviteModal/ResendInviteModal.tsx b/apps/carbon/app/modules/users/ui/components/ResendInviteModal.tsx
similarity index 100%
rename from apps/carbon/app/modules/users/ui/ResendInviteModal/ResendInviteModal.tsx
rename to apps/carbon/app/modules/users/ui/components/ResendInviteModal.tsx
diff --git a/apps/carbon/app/modules/users/ui/components/index.ts b/apps/carbon/app/modules/users/ui/components/index.ts
new file mode 100644
index 0000000000..33add82a74
--- /dev/null
+++ b/apps/carbon/app/modules/users/ui/components/index.ts
@@ -0,0 +1,5 @@
+import DeactivateUsersModal from "./DeactivateUsersModal";
+import Permission from "./Permission";
+import ResendInviteModal from "./ResendInviteModal";
+
+export { DeactivateUsersModal, Permission, ResendInviteModal };
diff --git a/apps/carbon/app/modules/users/ui/index.ts b/apps/carbon/app/modules/users/ui/index.ts
index 0b35a63926..dd4f433e86 100644
--- a/apps/carbon/app/modules/users/ui/index.ts
+++ b/apps/carbon/app/modules/users/ui/index.ts
@@ -1,10 +1,9 @@
-import DeactivateUsersModal from "./DeactivateUsersModal";
-import ResendInviteModal from "./ResendInviteModal";
import useUsersSidebar from "./useUsersSidebar";
-export { DeactivateUsersModal, ResendInviteModal, useUsersSidebar };
export * from "./Customers";
-export * from "./Employees";
export * from "./EmployeeTypes";
+export * from "./Employees";
export * from "./Groups";
export * from "./Suppliers";
+export * from "./components";
+export { useUsersSidebar };
diff --git a/apps/carbon/app/routes/x+/purchasing+/rfqs.tsx b/apps/carbon/app/routes/x+/purchasing+/rfqs.tsx
new file mode 100644
index 0000000000..7a8abd72f6
--- /dev/null
+++ b/apps/carbon/app/routes/x+/purchasing+/rfqs.tsx
@@ -0,0 +1,76 @@
+import { VStack } from "@carbon/react";
+import type { LoaderFunctionArgs } from "@remix-run/node";
+import { json, redirect } from "@remix-run/node";
+import { Outlet, useLoaderData } from "@remix-run/react";
+import {
+ RequestForQuotesTable,
+ RequestForQuotesTableFilters,
+ getRequestsForQuotes,
+} from "~/modules/purchasing";
+import { requirePermissions } from "~/services/auth";
+import { flash } from "~/services/session.server";
+import type { Handle } from "~/utils/handle";
+import { path } from "~/utils/path";
+import { getGenericQueryFilters } from "~/utils/query";
+import { error } from "~/utils/result";
+
+export const handle: Handle = {
+ breadcrumb: "Requests for Quotes",
+ to: path.to.requestForQuotes,
+};
+
+export async function loader({ request }: LoaderFunctionArgs) {
+ const { client } = await requirePermissions(request, {
+ view: "purchasing",
+ });
+
+ const url = new URL(request.url);
+ const searchParams = new URLSearchParams(url.search);
+ const search = searchParams.get("search");
+ const status = searchParams.get("status");
+ const supplierId = searchParams.get("supplierId");
+ const partId = searchParams.get("partId");
+
+ const { limit, offset, sorts, filters } =
+ getGenericQueryFilters(searchParams);
+
+ const [requestForQuotes] = await Promise.all([
+ getRequestsForQuotes(client, {
+ search,
+ status,
+ partId,
+ supplierId,
+ limit,
+ offset,
+ sorts,
+ filters,
+ }),
+ ]);
+
+ if (requestForQuotes.error) {
+ redirect(
+ path.to.authenticatedRoot,
+ await flash(
+ request,
+ error(requestForQuotes.error, "Failed to fetch request for quotes")
+ )
+ );
+ }
+
+ return json({
+ count: requestForQuotes.count ?? 0,
+ requestForQuotes: requestForQuotes.data ?? [],
+ });
+}
+
+export default function RequestForQuotesSearchRoute() {
+ const { count, requestForQuotes } = useLoaderData<typeof loader>();
+
+ return (
+ <VStack spacing={0} className="h-full">
+ <RequestForQuotesTableFilters />
+ <RequestForQuotesTable data={requestForQuotes} count={count} />
+ <Outlet />
+ </VStack>
+ );
+}
diff --git a/apps/carbon/app/utils/path.ts b/apps/carbon/app/utils/path.ts
index e18224a8f5..8a54834c2b 100644
--- a/apps/carbon/app/utils/path.ts
+++ b/apps/carbon/app/utils/path.ts
@@ -269,6 +269,7 @@ export const path = {
newPurchaseOrderLine: (id: string) =>
generatePath(`${x}/purchase-order/${id}/lines/new`),
newReceipt: `${x}/inventory/receipts/new`,
+ newRequestForQuote: `${x}/rfq/new`,
newShift: `${x}/resources/shifts/new`,
newShippingMethod: `${x}/inventory/shipping-methods/new`,
newService: `${x}/service/new`,
@@ -354,6 +355,7 @@ export const path = {
receiptPost: (id: string) =>
generatePath(`${x}/inventory/receipts/${id}/post`),
refreshSession: "/refresh-session",
+ requestForQuotes: `${x}/purchasing/rfqs`,
resendInvite: `${x}/users/resend-invite`,
resetPassord: "/reset-password",
resources: `${x}/resources`,
diff --git a/packages/database/src/seed/employee-types.ts b/packages/database/src/seed/employee-types.ts
index a0dba0934b..477b2b77e8 100644
--- a/packages/database/src/seed/employee-types.ts
+++ b/packages/database/src/seed/employee-types.ts
@@ -27,12 +27,12 @@ export const employeeTypePermissionsDefinitions: Record<
>
> = {
Admin: {
- Accounting: {
- create: true,
- update: true,
- delete: true,
- view: true,
- },
+ // Accounting: {
+ // create: true,
+ // update: true,
+ // delete: true,
+ // view: true,
+ // },
Invoicing: {
create: true,
update: true,
@@ -45,24 +45,24 @@ export const employeeTypePermissionsDefinitions: Record<
delete: true,
view: true,
},
- Jobs: {
- create: true,
- update: true,
- delete: true,
- view: true,
- },
+ // Jobs: {
+ // create: true,
+ // update: true,
+ // delete: true,
+ // view: true,
+ // },
Inventory: {
create: true,
update: true,
delete: true,
view: true,
},
- Scheduling: {
- create: true,
- update: true,
- delete: true,
- view: true,
- },
+ // Scheduling: {
+ // create: true,
+ // update: true,
+ // delete: true,
+ // view: true,
+ // },
Sales: {
create: true,
update: true,
@@ -81,18 +81,18 @@ export const employeeTypePermissionsDefinitions: Record<
delete: true,
view: true,
},
- Messaging: {
- create: true,
- update: true,
- delete: true,
- view: true,
- },
- Timecards: {
- create: true,
- update: true,
- delete: true,
- view: true,
- },
+ // Messaging: {
+ // create: true,
+ // update: true,
+ // delete: true,
+ // view: true,
+ // },
+ // Timecards: {
+ // create: true,
+ // update: true,
+ // delete: true,
+ // view: true,
+ // },
Resources: {
create: true,
update: true,
@@ -113,12 +113,12 @@ export const employeeTypePermissionsDefinitions: Record<
},
},
"Project Manager": {
- Accounting: {
- create: false,
- update: false,
- delete: false,
- view: false,
- },
+ // Accounting: {
+ // create: false,
+ // update: false,
+ // delete: false,
+ // view: false,
+ // },
Invoicing: {
create: false,
update: false,
@@ -131,24 +131,24 @@ export const employeeTypePermissionsDefinitions: Record<
delete: true,
view: true,
},
- Jobs: {
- create: true,
- update: true,
- delete: true,
- view: true,
- },
+ // Jobs: {
+ // create: true,
+ // update: true,
+ // delete: true,
+ // view: true,
+ // },
Inventory: {
create: false,
update: false,
delete: false,
view: true,
},
- Scheduling: {
- create: true,
- update: true,
- delete: true,
- view: true,
- },
+ // Scheduling: {
+ // create: true,
+ // update: true,
+ // delete: true,
+ // view: true,
+ // },
Sales: {
create: false,
update: false,
@@ -167,18 +167,18 @@ export const employeeTypePermissionsDefinitions: Record<
delete: true,
view: true,
},
- Messaging: {
- create: true,
- update: true,
- delete: true,
- view: true,
- },
- Timecards: {
- create: false,
- update: false,
- delete: false,
- view: true,
- },
+ // Messaging: {
+ // create: true,
+ // update: true,
+ // delete: true,
+ // view: true,
+ // },
+ // Timecards: {
+ // create: false,
+ // update: false,
+ // delete: false,
+ // view: true,
+ // },
Resources: {
create: true,
update: true,
@@ -199,12 +199,12 @@ export const employeeTypePermissionsDefinitions: Record<
},
},
Sales: {
- Accounting: {
- create: false,
- update: false,
- delete: false,
- view: false,
- },
+ // Accounting: {
+ // create: false,
+ // update: false,
+ // delete: false,
+ // view: false,
+ // },
Invoicing: {
create: false,
update: false,
@@ -217,24 +217,24 @@ export const employeeTypePermissionsDefinitions: Record<
delete: false,
view: true,
},
- Jobs: {
- create: false,
- update: false,
- delete: false,
- view: true,
- },
+ // Jobs: {
+ // create: false,
+ // update: false,
+ // delete: false,
+ // view: true,
+ // },
Inventory: {
create: false,
update: false,
delete: false,
view: true,
},
- Scheduling: {
- create: false,
- update: false,
- delete: false,
- view: true,
- },
+ // Scheduling: {
+ // create: false,
+ // update: false,
+ // delete: false,
+ // view: true,
+ // },
Sales: {
create: true,
update: true,
@@ -253,18 +253,18 @@ export const employeeTypePermissionsDefinitions: Record<
delete: true,
view: true,
},
- Messaging: {
- create: true,
- update: true,
- delete: true,
- view: true,
- },
- Timecards: {
- create: false,
- update: false,
- delete: false,
- view: false,
- },
+ // Messaging: {
+ // create: true,
+ // update: true,
+ // delete: true,
+ // view: true,
+ // },
+ // Timecards: {
+ // create: false,
+ // update: false,
+ // delete: false,
+ // view: false,
+ // },
Resources: {
create: false,
update: false,
diff --git a/packages/database/src/seed/features.ts b/packages/database/src/seed/features.ts
index bbbbc9491f..0655f594e2 100644
--- a/packages/database/src/seed/features.ts
+++ b/packages/database/src/seed/features.ts
@@ -1,19 +1,19 @@
import { v4 as uuidv4 } from "uuid";
const possibleFeatures = [
- "Accounting",
+ // "Accounting",
"Documents",
"Inventory",
"Invoicing",
- "Jobs",
- "Messaging",
+ // "Jobs",
+ // "Messaging",
"Parts",
"Purchasing",
"Resources",
"Sales",
- "Scheduling",
+ // "Scheduling",
"Settings",
- "Timecards",
+ // "Timecards",
"Users",
] as const;
@@ -28,4 +28,4 @@ possibleFeatures.forEach((name) => {
};
});
-export { possibleFeatures, features };
+export { features, possibleFeatures };
diff --git a/packages/database/src/types.ts b/packages/database/src/types.ts
index 6a544a0795..5affe37e39 100644
--- a/packages/database/src/types.ts
+++ b/packages/database/src/types.ts
@@ -7195,6 +7195,12 @@ export interface Database {
referencedRelation: "requestForQuote";
referencedColumns: ["id"];
},
+ {
+ foreignKeyName: "requestForQuoteLine_requestForQuoteId_fkey";
+ columns: ["requestForQuoteId"];
+ referencedRelation: "requestForQuotes";
+ referencedColumns: ["id"];
+ },
{
foreignKeyName: "requestForQuoteLine_shelfId_fkey";
columns: ["shelfId", "locationId"];
@@ -7295,6 +7301,12 @@ export interface Database {
referencedRelation: "requestForQuote";
referencedColumns: ["id"];
},
+ {
+ foreignKeyName: "requestForQuoteSupplier_requestForQuoteId_fkey";
+ columns: ["requestForQuoteId"];
+ referencedRelation: "requestForQuotes";
+ referencedColumns: ["id"];
+ },
{
foreignKeyName: "requestForQuoteSupplier_supplierContactId_fkey";
columns: ["supplierContactId"];
@@ -10591,6 +10603,38 @@ export interface Database {
}
];
};
+ requestForQuotes: {
+ Row: {
+ expirationDate: string | null;
+ id: string | null;
+ locationId: string | null;
+ locationName: string | null;
+ notes: string | null;
+ receiptDate: string | null;
+ status: Database["public"]["Enums"]["requestForQuoteStatus"] | null;
+ supplierIds: string[] | null;
+ };
+ Relationships: [
+ {
+ foreignKeyName: "requestForQuote_locationId_fkey";
+ columns: ["locationId"];
+ referencedRelation: "location";
+ referencedColumns: ["id"];
+ },
+ {
+ foreignKeyName: "requestForQuote_locationId_fkey";
+ columns: ["locationId"];
+ referencedRelation: "partQuantities";
+ referencedColumns: ["locationId"];
+ },
+ {
+ foreignKeyName: "requestForQuote_locationId_fkey";
+ columns: ["locationId"];
+ referencedRelation: "purchaseOrders";
+ referencedColumns: ["locationId"];
+ }
+ ];
+ };
services: {
Row: {
active: boolean | null;
diff --git a/packages/database/supabase/migrations/20240204025905_rfq.sql b/packages/database/supabase/migrations/20240204025905_rfq.sql
index 4c678e2cd1..3a205a21e2 100644
--- a/packages/database/supabase/migrations/20240204025905_rfq.sql
+++ b/packages/database/supabase/migrations/20240204025905_rfq.sql
@@ -92,3 +92,30 @@ CREATE TABLE "requestForQuoteSupplierLine" (
CONSTRAINT "requestForQuoteSupplierLine_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id") ON DELETE RESTRICT ON UPDATE CASCADE,
CONSTRAINT "requestForQuoteSupplierLine_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON DELETE RESTRICT ON UPDATE CASCADE
);
+
+CREATE OR REPLACE VIEW "requestForQuotes" WITH(SECURITY_INVOKER=true) AS
+ SELECT
+ r."id",
+ r."status",
+ r."notes",
+ r."receiptDate",
+ r."expirationDate",
+ r."locationId",
+ l."name" AS "locationName",
+ array_agg(rs."supplierId") AS "supplierIds",
+ array_agg(rl."partId") AS "partIds"
+FROM "requestForQuote" r
+LEFT JOIN "location" l
+ ON l.id = r."locationId"
+LEFT JOIN "requestForQuoteSupplier" rs
+ ON rs."requestForQuoteId" = r.id
+LEFT JOIN "requestForQuoteLine" rl
+ ON rl."requestForQuoteId" = r.id
+GROUP BY
+ r."id",
+ r."status",
+ r."notes",
+ r."receiptDate",
+ r."expirationDate",
+ r."locationId",
+ l."name";
\ No newline at end of file