Files
Krow-workspace/src/pages/ActivityLog.jsx
bwnyasse 7cd93465bc feat(scripts/prepare-export.js): convert script to ES module syntax
feat(scripts/prepare-export.js): replace require with import statements
feat(scripts/prepare-export.js): use fileURLToPath to define __dirname
feat(scripts/prepare-export.js): refactor patch application for clarity
feat(scripts/prepare-export.js): add global import fix for components
feat(scripts/prepare-export.js): fix component imports using regex
feat(scripts/prepare-export.js): add main function to execute patches
feat(scripts/prepare-export.js): mock base44 client for local development
feat(scripts/prepare-export.js): add company logo field to business modal
feat(scripts/prepare-export.js): add AI order assistant component
feat(scripts/prepare-export.js): enhance event form with new features
feat(scripts/prepare-export.js): add event form wizard component
feat(scripts/prepare-export.js): add safe date formatter to message thread

feat(DocumentViewer.jsx): Implement signature capture and acknowledgment feature
feat(DocumentViewer.jsx): Add signature pad for capturing digital signatures
feat(DocumentViewer.jsx): Enable saving signature to user profile
feat(DocumentViewer.jsx): Implement acknowledgment functionality with signature and notes
feat(DocumentViewer.jsx): Add UI elements for signer name input and signature pad
feat(DocumentViewer.jsx): Implement signature adoption from saved profile
feat(DocumentViewer.jsx): Improve UI and UX for document review process
feat(UpcomingOrdersCard.jsx): Create new component to display upcoming orders
feat(UpcomingOrdersCard.jsx): Implement progress bar and status indicators
feat(UpcomingOrdersCard.jsx): Add ETA calculation and display
feat(UpcomingOrdersCard.jsx): Improve UI and UX for upcoming order display
feat(ActivityLog.jsx): Implement safe date formatting to handle invalid dates
feat(ClientDashboard.jsx): Implement client dashboard with key metrics and quick actions
feat(ClientDashboard.jsx): Add analytics cards for cost, labor, and sales
feat(ClientDashboard.jsx): Implement quick reorder functionality
feat(ClientDashboard.jsx): Add spending trend chart
feat(ClientDashboard.jsx): Improve UI and UX for client dashboard
feat(ClientOrders.jsx): Implement client orders page with filtering and quick actions
feat(ClientOrders.jsx): Add status badges and event details
feat(ClientOrders.jsx): Improve UI and UX for client orders page
feat(CreateEvent.jsx): Implement event creation page with AI assistant and form wizard
feat(CreateEvent.jsx): Add AI assistant for extracting event data
feat(CreateEvent.jsx): Implement form wizard for event creation
feat(CreateEvent.jsx): Improve UI and UX for event creation page
feat(EditBusiness.jsx): Add company logo URL input to edit business page
feat(EditBusiness.jsx): Improve UI and UX for edit business page
feat(EventDetail.jsx): Implement safe date formatting to handle invalid dates

feat(PartnerManagement.jsx): enhance partner management page with consolidated business directory and operator metrics
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from business entities
feat(PartnerManagement.jsx): add consolidated business directory from

feat(ProcurementDashboard.jsx): add supplier onboarding tab with filtering and detail panel
feat(ProcurementDashboard.jsx): implement supplier onboarding tab with filtering and detail panel
feat(ProcurementDashboard.jsx): add document status badges and actions in supplier detail panel
feat(ProcurementDashboard.jsx): add compliance health indicator to supplier detail panel
feat(ProcurementDashboard.jsx): add document request functionality with toast notifications
feat(ProcurementDashboard.jsx): add clear filters button and active filters display
feat(ProcurementDashboard.jsx): improve supplier table UI and add empty state
feat(ProcurementDashboard.jsx): add document type filter to supplier onboarding tab
feat(ProcurementDashboard.jsx): add state filter to supplier onboarding tab
feat(ProcurementDashboard.jsx): add document status and type filtering to onboarding tab
feat(ProcurementDashboard.jsx): add summary counts for onboarding tab based on filtered suppliers
feat(ProcurementDashboard.jsx): add document status and type filtering to onboarding tab
feat(ProcurementDashboard.jsx): add document status and type filtering to onboarding tab
feat(Reports.jsx): add safe date formatting to handle invalid dates
feat(SmartVendorOnboarding.jsx): implement NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA signing step with signature capture
feat(SmartVendorOnboarding.jsx): add NDA

feat(VendorDashboard.jsx): overhaul vendor dashboard with new UI/UX
feat(VendorDashboard.jsx): add AI insights and rapid orders sections
feat(VendorDashboard.jsx): implement sales vs payroll chart and client analysis
feat(VendorDashboard.jsx): enhance top performers and gold vendors sections
feat(VendorDashboard.jsx): improve quick actions and today's metrics
feat(VendorDashboard.jsx): integrate total revenue card and staff assignment
feat(VendorOrders.jsx): enhance vendor orders page with rapid request support
feat(VendorOrders.jsx): add rapid request badge and filter
feat(WorkforceShifts.jsx): add safe date formatting to handle invalid dates
2025-11-11 07:26:06 -05:00

168 lines
6.1 KiB
JavaScript

import React, { useState } from "react";
import { base44 } from "@/api/base44Client";
import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query";
import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card";
import { Button } from "@/components/ui/button";
import { Badge } from "@/components/ui/badge";
import { Input } from "@/components/ui/input";
import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
import {
Activity,
Calendar,
UserPlus,
FileText,
MessageSquare,
AlertCircle,
CheckCircle,
Search,
Filter
} from "lucide-react";
import { formatDistanceToNow } from "date-fns";
import PageHeader from "../components/common/PageHeader";
const iconMap = {
calendar: Calendar,
user: UserPlus,
invoice: FileText,
message: MessageSquare,
alert: AlertCircle,
check: CheckCircle,
};
const colorMap = {
blue: "bg-blue-100 text-blue-600",
red: "bg-red-100 text-red-600",
green: "bg-green-100 text-green-600",
yellow: "bg-yellow-100 text-yellow-600",
purple: "bg-purple-100 text-purple-600",
};
// Safe date formatter
const safeFormatDistanceToNow = (dateString) => {
if (!dateString) return "Unknown time";
try {
const date = new Date(dateString);
// Check for valid date object
if (isNaN(date.getTime())) return "Unknown time";
return formatDistanceToNow(date, { addSuffix: true });
} catch {
return "Unknown time";
}
};
export default function ActivityLog() {
const [activeTab, setActiveTab] = useState("all");
const [searchTerm, setSearchTerm] = useState("");
const queryClient = useQueryClient();
const { data: user } = useQuery({
queryKey: ['current-user-activity'],
queryFn: () => base44.auth.me(),
});
const { data: activities = [], isLoading } = useQuery({
queryKey: ['activity-logs', user?.id],
queryFn: () => base44.entities.ActivityLog.filter({ user_id: user?.id }, '-created_date', 100),
enabled: !!user?.id,
initialData: [],
});
const filteredActivities = activities.filter(activity => {
const matchesSearch = !searchTerm ||
activity.title?.toLowerCase().includes(searchTerm.toLowerCase()) ||
activity.description?.toLowerCase().includes(searchTerm.toLowerCase());
const matchesTab = activeTab === "all" ||
(activeTab === "unread" && !activity.is_read) ||
(activeTab === "read" && activity.is_read);
return matchesSearch && matchesTab;
});
const unreadCount = activities.filter(a => !a.is_read).length;
return (
<div className="p-4 md:p-8 bg-slate-50 min-h-screen">
<div className="max-w-5xl mx-auto">
<PageHeader
title="Activity Log"
subtitle={`${activities.length} total activities • ${unreadCount} unread`}
/>
{/* Filters */}
<div className="mb-6 space-y-4">
<Tabs value={activeTab} onValueChange={setActiveTab}>
<TabsList className="bg-white border border-slate-200">
<TabsTrigger value="all">
All <Badge variant="secondary" className="ml-2">{activities.length}</Badge>
</TabsTrigger>
<TabsTrigger value="unread">
Unread <Badge variant="secondary" className="ml-2">{unreadCount}</Badge>
</TabsTrigger>
<TabsTrigger value="read">
Read <Badge variant="secondary" className="ml-2">{activities.length - unreadCount}</Badge>
</TabsTrigger>
</TabsList>
</Tabs>
<div className="relative">
<Search className="absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-slate-400" />
<Input
placeholder="Search activities..."
value={searchTerm}
onChange={(e) => setSearchTerm(e.target.value)}
className="pl-10"
/>
</div>
</div>
{/* Activities List */}
<div className="space-y-3">
{filteredActivities.length > 0 ? (
filteredActivities.map((activity) => {
const Icon = iconMap[activity.icon_type] || AlertCircle;
const colorClass = colorMap[activity.icon_color] || colorMap.blue;
return (
<Card key={activity.id} className={`border-2 ${activity.is_read ? 'border-slate-200 opacity-70' : 'border-blue-200'}`}>
<CardContent className="p-6">
<div className="flex gap-4">
<div className={`w-14 h-14 rounded-full ${colorClass} flex items-center justify-center flex-shrink-0`}>
<Icon className="w-7 h-7" />
</div>
<div className="flex-1 min-w-0">
<div className="flex items-start justify-between mb-2">
<h3 className="font-bold text-[#1C323E] text-lg">{activity.title}</h3>
<span className="text-sm text-slate-500 whitespace-nowrap ml-4">
{safeFormatDistanceToNow(activity.created_date)}
</span>
</div>
<p className="text-slate-600 mb-4">{activity.description}</p>
<div className="flex items-center gap-3">
{!activity.is_read && (
<Badge className="bg-blue-500 text-white">Unread</Badge>
)}
<Badge variant="outline">{activity.activity_type?.replace('_', ' ')}</Badge>
</div>
</div>
</div>
</CardContent>
</Card>
);
})
) : (
<Card>
<CardContent className="p-12 text-center">
<Activity className="w-16 h-16 mx-auto text-slate-300 mb-4" />
<h3 className="text-xl font-semibold text-slate-900 mb-2">No activities found</h3>
<p className="text-slate-600">Try adjusting your filters</p>
</CardContent>
</Card>
)}
</div>
</div>
</div>
);
}