From 9ba48de55b15509716995b7f1d06b6958b96125c Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sun, 27 Sep 2026 14:27:01 +0200 Subject: [PATCH] ui tweaks --- .../src/pages/ChangeManagementPage.tsx | 21 +- .../src/pages/SiteVisitsPage.tsx | 203 +----------------- 2 files changed, 19 insertions(+), 205 deletions(-) diff --git a/PostFundManagement.ConsoleUI/src/pages/ChangeManagementPage.tsx b/PostFundManagement.ConsoleUI/src/pages/ChangeManagementPage.tsx index bbdd318..796a040 100644 --- a/PostFundManagement.ConsoleUI/src/pages/ChangeManagementPage.tsx +++ b/PostFundManagement.ConsoleUI/src/pages/ChangeManagementPage.tsx @@ -783,15 +783,26 @@ export const ChangeManagementPage: React.FC = () => { diff --git a/PostFundManagement.ConsoleUI/src/pages/SiteVisitsPage.tsx b/PostFundManagement.ConsoleUI/src/pages/SiteVisitsPage.tsx index f3ad7a4..91a2c8a 100644 --- a/PostFundManagement.ConsoleUI/src/pages/SiteVisitsPage.tsx +++ b/PostFundManagement.ConsoleUI/src/pages/SiteVisitsPage.tsx @@ -54,7 +54,6 @@ export const SiteVisitsPage: React.FC = () => { const { success, error: toastError } = useToast(); const [selectedProjectId, setSelectedProjectId] = useState('all'); - const [activeTab, setActiveTab] = useState<'visits' | 'feedback'>('visits'); const [searchTerm, setSearchTerm] = useState(''); const [statusFilter, setStatusFilter] = useState('all'); @@ -250,38 +249,9 @@ export const SiteVisitsPage: React.FC = () => { - {/* Tabs */} + {/* Site Visits Register View */}
-
- - - -
- - {/* Tab 1: Visits Table View */} - {activeTab === 'visits' && ( -
-
+
{/* Search */}
@@ -449,174 +419,7 @@ export const SiteVisitsPage: React.FC = () => {
-
- )} - - {/* Tab 2: Field Observations & Feedback Cards */} - {activeTab === 'feedback' && ( -
-
-
- {/* Search */} -
- - setSearchTerm(e.target.value)} - className="w-full bg-slate-900 border border-slate-800 rounded-xl pl-8 pr-3 py-1.5 text-xs text-white focus:outline-none focus:border-emerald-500 shadow-xs" - /> -
- - {/* Status Filter */} -
- -
- - {/* Project Selector */} -
- - -
-
- - {/* Actions: Refresh, Export, Log Site Visit */} -
- - - - - -
-
- - {loadingVisits ? ( -
-
-
- Loading observation cards... -
-
- ) : sortedVisits.length === 0 ? ( -
- No site visit observations or feedback found matching criteria. -
- ) : ( -
- {sortedVisits.map((v) => ( -
-
-
-
-
- -
-
-

- {v.inspectorName || 'Field Auditor'} -

-
- - {formatDate(v.visitedAt)} -
-
-
-
- -
-
- -
-

- Field Observations & Findings -

- {v.findings || 'No detailed findings recorded.'} -
-
- -
- ID #{v.id} -
- - -
-
-
- ))} -
- )} -
- )} -
+
{/* Modal: Create/Edit Site Visit */}