From 20e8f994a157d2fd0f6adeb1cb3dbb08725c4cac Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Fri, 12 Dec 2025 18:38:41 -0800 Subject: [PATCH] --- frontend/src/pages/BatchesPage.tsx | 7 ++- frontend/src/pages/SettingsPage.tsx | 94 ++++++++++++++++------------- 2 files changed, 57 insertions(+), 44 deletions(-) diff --git a/frontend/src/pages/BatchesPage.tsx b/frontend/src/pages/BatchesPage.tsx index 461ca09..4501013 100644 --- a/frontend/src/pages/BatchesPage.tsx +++ b/frontend/src/pages/BatchesPage.tsx @@ -42,8 +42,8 @@ function StageProgressMini({ currentStage }: { currentStage: string }) {
))} @@ -221,7 +221,8 @@ export default function BatchesPage() { )} {createTaskBatch && ( setCreateTaskBatch(null)} onSuccess={() => { setCreateTaskBatch(null); diff --git a/frontend/src/pages/SettingsPage.tsx b/frontend/src/pages/SettingsPage.tsx index 6cb1b25..d7c549d 100644 --- a/frontend/src/pages/SettingsPage.tsx +++ b/frontend/src/pages/SettingsPage.tsx @@ -2,7 +2,8 @@ import { useNavigate } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import { Settings, Shield, ChevronRight, Sun, Moon, Globe, Type, - Eye, Volume2, Bell, Minimize2, RotateCcw, Monitor + Eye, Volume2, Bell, Minimize2, RotateCcw, Monitor, Users, + ClipboardList, Layers, FileText } from 'lucide-react'; import { usePreferences } from '../context/PreferencesContext'; import { PageHeader } from '../components/ui/LinearPrimitives'; @@ -12,17 +13,30 @@ export default function SettingsPage() { const { t } = useTranslation(); const { preferences, setPreference, resetPreferences } = usePreferences(); - const sections = [ + const adminSections = [ { - title: t('settings.title'), - items: [ - { - label: 'Walkthrough Config', - description: 'Manage questions and checkpoints', - icon: Shield, - action: () => navigate('/settings/walkthrough') - } - ] + label: 'Walkthrough Config', + description: 'Configure daily walkthrough questions', + icon: ClipboardList, + action: () => navigate('/settings/walkthrough') + }, + { + label: 'Roles & Permissions', + description: 'Manage staff access levels', + icon: Shield, + action: () => navigate('/roles') + }, + { + label: 'Task Templates', + description: 'Create reusable task templates', + icon: FileText, + action: () => navigate('/tasks/templates') + }, + { + label: 'Layout Designer', + description: 'Design facility floor layouts', + icon: Layers, + action: () => navigate('/layout-designer') } ]; @@ -190,36 +204,34 @@ export default function SettingsPage() {
- {/* Admin Sections */} - {sections.map((section, idx) => ( -
-

- Admin -

- {section.items.map((item, itemIdx) => { - const Icon = item.icon; - return ( - - ); - })} -
- ))} + {/* Admin Section */} +
+

+ Admin +

+ {adminSections.map((item, idx) => { + const Icon = item.icon; + return ( + + ); + })} +
{/* Reset Button */}