Overview
BrokerOS provides two synchronized data export capabilities across all operational departments for both Web (Next.js 16) and Mobile (Expo React Native 54):- Filter-Aware CSV Lead and Customer Export: In Lead Management and Customer Management tables or lists, clicking “Export CSV” extracts strictly the filtered dataset currently selected (status, date, score, or search query). If no filter is applied, it exports all accessible leads in the user scope.
- Time-Range-Aware HTML Analytics Report Export: In department Analytics views, clicking “Export Report” generates a standalone, self-contained, responsive HTML report matching the currently selected time range (weekly, monthly, yearly, or all-time).
Architecture Flow
1. Filter-Aware CSV Export
Behavior Matrix
CSV File Headers (RFC-4180 Compliant)
The shared export utility inpackages/constants/src/export.ts maps records into standardized CSV columns:
Lead ID: Unique database identifierFull Name: Combined first and last namePhone Number: International formatted phone numberPipeline Stage: Current lead status (NEW,CONTACTED,INTERESTED, etc.)Sub-Status: Detailed operational sub-statusTemperature: AI categorized temperature (HOT,WARM,COLD)AI Score: Intent score (0 to 100)Assigned Agent: Full name of assigned telecaller or sales executiveProject: Associated real estate development projectLast Contact: Timestamp of most recent call or meetingNext Follow-Up: Scheduled follow-up date and timeSite Visit Date: Scheduled or completed site visit timestampSite Visit Status: Verification state of site visitCreated At: Record creation timestampBroker / CP Partner: Associated channel partner broker name (for CP inventory)
2. Time-Range-Aware HTML Analytics Reports
Department heads and executives can download standalone HTML reports from any analytics screen. The generated file is self-contained with modern CSS styles, KPI metric cards, funnel breakdown bars, and summary tables.Supported Departments
- Pre-Sales Floor:
apps/web/app/dashboard/pre-sales/analytics/page.tsxandapps/mobile/app/(dashboard)/pre-sales/analytics.tsx - Pre-Sales Manager:
apps/web/app/dashboard/pre-sales-manager/analytics/page.tsxandapps/mobile/app/(dashboard)/pre-sales-manager/analytics.tsx - Sales Executive:
apps/web/app/dashboard/sales-executive/analytics/page.tsxandapps/mobile/app/(dashboard)/sales-executive/analytics/index.tsx - Sales Manager:
apps/web/app/dashboard/sales-manager/analytics/page.tsxandapps/mobile/app/(dashboard)/sales-manager/analytics/index.tsx - Post-Sales Floor:
apps/web/app/dashboard/post-sales/analytics/page.tsxandapps/mobile/app/(dashboard)/post-sales/analytics.tsx - Post-Sales Manager:
apps/web/app/dashboard/post-sales-manager/analytics/page.tsxandapps/mobile/app/(dashboard)/post-sales-manager/analytics.tsx - Sourcing Manager (CP):
apps/web/app/dashboard/sourcing-manager/analytics/page.tsxandapps/mobile/app/(dashboard)/sourcing-manager/analytics/index.tsx - Closing Manager (CP):
apps/web/app/dashboard/closing-manager/analytics/page.tsxandapps/mobile/app/(dashboard)/closing-manager/analytics/index.tsx - Channel Partner Head:
apps/web/app/dashboard/channel-partner/analytics/page.tsxandapps/mobile/app/(dashboard)/channel-partner/analytics/index.tsx - Business Manager:
apps/web/app/dashboard/business-manager/analytics/page.tsx
3. Web and Mobile In-App UI Paths
Web UI Navigation
-
Lead Tables:
- Path:
Dashboard -> [Department] -> Lead Management - Filter Controls: Top toolbar filters (Status tabs, Date inputs, AI Score select, Search box)
- Action: The
Export CSV (count)button dynamically updates its count and exports the filtered rows.
- Path:
-
Analytics Views:
- Path:
Dashboard -> [Department] -> Analytics - Filter Controls: Segmented pill controls (
Weekly,Monthly,Yearly,All Time) - Action: Click the
Export HTML Reportbutton to download the standalone report matching the selected time range.
- Path:
Mobile App Navigation
-
Lead Lists:
- Path:
(dashboard) -> [Department] -> Lead Management - Filter Controls: Search bar and filter badges
- Action: Tap the green
CSV (count)button beside the search input. A native share sheet opens viaexpo-sharing.
- Path:
-
Analytics Views:
- Path:
(dashboard) -> [Department] -> Analytics - Filter Controls: Time range selector (
Weekly,Monthly,Yearly,All Time) - Action: Tap
Export Reportto render the HTML document and open the native system share dialog.
- Path: