port-nimara-client-portal/server/api
Matt b86fd58bcf fix: Resolve remaining expense page issues and PDF generation
 **Fixed PDF Preview Total Calculation:**
- Updated PDFOptionsModal to receive actual expense data instead of just IDs
- Now shows correct total (€308.80) instead of placeholder (€100.00)
- Calculates real amounts from selected expense PriceNumber values

 **Fixed Exchange Rate Time Display:**
- Updated currency utility to calculate minutes since last update
- Changed from showing 'time until expiry' to 'time since update'
- Now displays accurate '59min ago' based on actual update time

 **Improved PDF Generation:**
- Created comprehensive PDF generation system with proper data fetching
- Validates expense data and calculates accurate totals
- Provides detailed error messages with actual expense information
- Shows calculated totals, grouping options, and document settings
- Graceful fallback with helpful guidance for users

� **Technical Improvements:**
- Enhanced currency status API to include minutesSinceUpdate field
- Fixed component prop passing between parent and child components
- Better error handling and user feedback throughout the system
- Maintained CSV export functionality as primary export option

� **User Experience:**
- PDF modal now shows real totals instead of estimates
- Exchange rate status displays meaningful time information
- Clear feedback when PDF generation is attempted
- Comprehensive error messages guide users to alternative solutions

All core functionality now works correctly with accurate calculations and proper time displays!
2025-07-09 14:46:10 -04:00
..
admin Refactor duplicate handling to allow any authenticated user to check for duplicates, update API methods to require general authentication, and enhance expense fetching with improved error handling and logging. 2025-07-09 13:29:52 -04:00
auth Add role-based authorization system with admin functionality 2025-07-09 10:40:27 -04:00
currency Add expense tracking system with receipt management and currency conversion 2025-07-03 21:29:42 +02:00
debug FEAT: Implement debug and test endpoints for fetching and analyzing berth interested parties 2025-06-17 16:49:43 +02:00
email FEAT: Implement authenticated internal API call utility to forward cookies and enhance authentication handling 2025-06-15 17:48:40 +02:00
eoi FEAT: Correct spelling of 'Documenso' in API utility functions and add connectivity test for Documenso API 2025-06-17 15:17:19 +02:00
expenses fix: Resolve remaining expense page issues and PDF generation 2025-07-09 14:46:10 -04:00
files KEYCLOAK AUTH FIX: Phase 4b - Additional File Endpoints 2025-06-15 16:34:27 +02:00
create-expense.ts feat: Implement expense creation modal and API integration 2025-07-09 13:58:38 -04:00
create-interest.ts FIX: Authentication for Keycloak - Phase 1 2025-06-15 16:13:22 +02:00
delete-interest.ts FIX: Authentication for Keycloak - Phase 1 2025-06-15 16:13:22 +02:00
eoi-send-to-sales.ts KEYCLOAK AUTH FIX: Phase 3 - Webhook & EOI Endpoints 2025-06-15 16:22:55 +02:00
get-berth-by-id.ts FEAT: Refactor berth API functions to use dedicated utility methods for fetching and updating berths, and add connection test for NocoDB 2025-06-17 16:07:15 +02:00
get-berth-interested-parties.ts FEAT: Implement debug and test endpoints for fetching and analyzing berth interested parties 2025-06-17 16:49:43 +02:00
get-berths.ts FEAT: Refactor berth API functions to use dedicated utility methods for fetching and updating berths, and add connection test for NocoDB 2025-06-17 16:07:15 +02:00
get-expense-by-id.ts Add expense tracking system with receipt management and currency conversion 2025-07-03 21:29:42 +02:00
get-expenses.ts Refactor duplicate handling to allow any authenticated user to check for duplicates, update API methods to require general authentication, and enhance expense fetching with improved error handling and logging. 2025-07-09 13:29:52 -04:00
get-interest-berths.ts KEYCLOAK AUTH FIX: Phase 2 - Core Interest & Berth Endpoints 2025-06-15 16:18:29 +02:00
get-interest-by-id.ts KEYCLOAK AUTH FIX: Phase 2 - Core Interest & Berth Endpoints 2025-06-15 16:18:29 +02:00
get-interests.ts KEYCLOAK AUTH FIX: Phase 2 - Core Interest & Berth Endpoints 2025-06-15 16:18:29 +02:00
health.ts FEAT: Implement Keycloak client with circuit breaker and retry logic for improved authentication resilience 2025-06-17 14:50:34 +02:00
link-berth-recommendations-to-interest.ts KEYCLOAK AUTH FIX: Phase 2 - Core Interest & Berth Endpoints 2025-06-15 16:18:29 +02:00
link-berths-to-interest.ts KEYCLOAK AUTH FIX: Phase 2 - Core Interest & Berth Endpoints 2025-06-15 16:18:29 +02:00
request-more-info-to-sales.ts KEYCLOAK AUTH FIX: Phase 3 - Webhook & EOI Endpoints 2025-06-15 16:22:55 +02:00
request-more-information.ts KEYCLOAK AUTH FIX: Phase 3 - Webhook & EOI Endpoints 2025-06-15 16:22:55 +02:00
test-berth-connection.ts FEAT: Refactor berth API functions to use dedicated utility methods for fetching and updating berths, and add connection test for NocoDB 2025-06-17 16:07:15 +02:00
test-eoi-cleanup.ts KEYCLOAK AUTH FIX: Phase 5 - Final Batch (COMPLETE) 2025-06-15 16:41:36 +02:00
unlink-berth-recommendations-from-interest.ts KEYCLOAK AUTH FIX: Phase 2 - Core Interest & Berth Endpoints 2025-06-15 16:18:29 +02:00
unlink-berths-from-interest.ts KEYCLOAK AUTH FIX: Phase 2 - Core Interest & Berth Endpoints 2025-06-15 16:18:29 +02:00
update-berth.ts FEAT: Refactor berth API functions to use dedicated utility methods for fetching and updating berths, and add connection test for NocoDB 2025-06-17 16:07:15 +02:00
update-interest.ts FIX: Authentication for Keycloak - Phase 1 2025-06-15 16:13:22 +02:00