From 7252d2cfcf995e9c3f0ed5c557e623d598fca5b1 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 26 Jan 2026 14:57:43 -0500 Subject: [PATCH] feat: add all new Resource fields to data browser detail modal Updated Resources data browser page to display all 40+ fields in the detail modal including: - Name fields (prefix, middle initial, suffix) - All contact information (3 email addresses, home phone) - Employment details (payroll, accounting, internal cost) - Location and availability - System preferences (date/time/number formats) - Demographics and security (gender, license, security level) - Survey ratings Fields are organized into logical groups with comments for clarity. --- app/admin/data-browser/resources/page.tsx | 37 +++++++++++++++++++++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/app/admin/data-browser/resources/page.tsx b/app/admin/data-browser/resources/page.tsx index 8b172d2..15ac5be 100644 --- a/app/admin/data-browser/resources/page.tsx +++ b/app/admin/data-browser/resources/page.tsx @@ -96,17 +96,48 @@ export default function ResourcesBrowserPage() { const detailFields = [ { key: 'id', label: 'ID' }, + // Name fields + { key: 'name_prefix', label: 'Prefix' }, { key: 'first_name', label: 'First Name' }, + { key: 'middle_initial', label: 'Middle Initial' }, { key: 'last_name', label: 'Last Name' }, - { key: 'email', label: 'Email' }, - { key: 'user_name', label: 'Username' }, - { key: 'title', label: 'Title' }, + { key: 'name_suffix', label: 'Suffix' }, + // Contact information + { key: 'email', label: 'Primary Email' }, + { key: 'email_address', label: 'Email Address' }, + { key: 'email_address2', label: 'Email Address 2' }, + { key: 'email_address3', label: 'Email Address 3' }, { key: 'office_phone', label: 'Office Phone' }, { key: 'mobile_phone', label: 'Mobile Phone' }, + { key: 'home_phone', label: 'Home Phone' }, { key: 'office_extension', label: 'Extension' }, + // System fields + { key: 'user_name', label: 'Username' }, + { key: 'title', label: 'Title' }, { key: 'is_active', label: 'Active' }, + // Employment details { key: 'resource_type', label: 'Resource Type' }, + { key: 'payroll_identifier', label: 'Payroll Identifier' }, + { key: 'payroll_type', label: 'Payroll Type' }, + { key: 'accounting_reference_id', label: 'Accounting Reference ID' }, + { key: 'internal_cost', label: 'Internal Cost' }, { key: 'hire_date', label: 'Hire Date' }, + // Location and availability + { key: 'location_id', label: 'Location ID' }, + { key: 'travel_availability_pct', label: 'Travel Availability %' }, + { key: 'default_service_desk_role_id', label: 'Default Service Desk Role' }, + // System preferences + { key: 'email_type_code', label: 'Email Type' }, + { key: 'number_format', label: 'Number Format' }, + { key: 'time_format', label: 'Time Format' }, + { key: 'date_format', label: 'Date Format' }, + // Demographics and security + { key: 'gender', label: 'Gender' }, + { key: 'license_type', label: 'License Type' }, + { key: 'security_level', label: 'Security Level' }, + // Ratings + { key: 'survey_resource_rating', label: 'Survey Rating' }, + // Audit fields { key: 'synced_at', label: 'Synced At' }, { key: 'is_deleted', label: 'Is Deleted' }, ];