diff --git a/src/frontend/src/pages/Index/Settings/SystemSettings.tsx b/src/frontend/src/pages/Index/Settings/SystemSettings.tsx index 35855567cb..44d8369f23 100644 --- a/src/frontend/src/pages/Index/Settings/SystemSettings.tsx +++ b/src/frontend/src/pages/Index/Settings/SystemSettings.tsx @@ -1,9 +1,9 @@ import { t } from '@lingui/core/macro'; -import { Divider, Skeleton, Stack } from '@mantine/core'; +import { Skeleton, Stack } from '@mantine/core'; import { IconBellCog, - IconCategory, - IconClipboardList, + IconBox, + IconBuildingFactory2, IconCurrencyDollar, IconFileAnalytics, IconFingerprint, @@ -13,10 +13,7 @@ import { IconQrcode, IconServerCog, IconShoppingCart, - IconTag, - IconTools, - IconTruckDelivery, - IconTruckReturn + IconTruckDelivery } from '@tabler/icons-react'; import { lazy, useMemo } from 'react'; @@ -81,25 +78,32 @@ export default function SystemSettings() { label: t`Authentication`, icon: , content: ( - + + + + ) }, { @@ -168,12 +172,6 @@ export default function SystemSettings() { ) }, - { - name: 'labels', - label: t`Labels`, - icon: , - content: - }, { name: 'reporting', label: t`Reporting`, @@ -184,7 +182,9 @@ export default function SystemSettings() { 'REPORT_ENABLE', 'REPORT_DEFAULT_PAGE_SIZE', 'REPORT_DEBUG_MODE', - 'REPORT_LOG_ERRORS' + 'REPORT_LOG_ERRORS', + 'LABEL_ENABLE', + 'LABEL_DPI' ]} /> ) @@ -198,67 +198,72 @@ export default function SystemSettings() { { name: 'parts', label: t`Parts`, - icon: , + icon: , content: ( - + + + + ) }, { name: 'stock', label: t`Stock`, icon: , - content: ( - - ) - }, - { - name: 'stock-history', - label: t`Stock History`, - icon: , content: ( + + - , + name: 'manufacturing', + label: t`Manufacturing`, + icon: , content: ( , content: ( , content: ( - - ) - }, - { - name: 'returnorders', - label: t`Return Orders`, - icon: , - content: ( - + + + + ) }, { name: 'plugins', - label: t`Plugin Settings`, + label: t`Plugins`, icon: , content: } diff --git a/src/frontend/tests/pui_settings.spec.ts b/src/frontend/tests/pui_settings.spec.ts index ca9258a087..d9aa1e24ed 100644 --- a/src/frontend/tests/pui_settings.spec.ts +++ b/src/frontend/tests/pui_settings.spec.ts @@ -178,7 +178,6 @@ test('Settings - Global', async ({ browser }) => { await loadTab(page, 'Pricing'); await loadTab(page, 'Parts'); await loadTab(page, 'Stock', true); - await loadTab(page, 'Stock History'); await loadTab(page, 'Notifications'); await page @@ -195,7 +194,7 @@ test('Settings - Global', async ({ browser }) => { .getByText('URL that is used to send messages to a slack channel') .waitFor(); - await loadTab(page, 'Plugin Settings'); + await loadTab(page, 'Plugins'); await page .getByText('The settings below are specific to each available plugin') .waitFor(); @@ -236,13 +235,12 @@ test('Settings - Admin', async ({ browser }) => { await loadTab(page, 'Barcodes'); await loadTab(page, 'Notifications'); await loadTab(page, 'Pricing'); - await loadTab(page, 'Labels'); await loadTab(page, 'Reporting'); - - await loadTab(page, 'Build Orders'); - await loadTab(page, 'Purchase Orders'); - await loadTab(page, 'Sales Orders'); - await loadTab(page, 'Return Orders'); + await loadTab(page, 'Parts'); + await loadTab(page, 'Stock'); + await loadTab(page, 'Manufacturing'); + await loadTab(page, 'Purchasing'); + await loadTab(page, 'Sales'); // Admin Center await page.getByRole('button', { name: 'admin' }).click();