7f35297025
Naser confirmed all remaining QA Review / Draft rows (97 subtasks, 16
parent rollups) are done in substance: the site has been in production
for roughly a year. Overrides the conservative QA-Review/Draft mapping
from the prior takeover commit (0f9d12c) at his explicit instruction.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1.9 KiB
1.9 KiB
id, title, status, date, parent
| id | title | status | date | parent |
|---|---|---|---|---|
| 6-4 | 6-4 Data Export - User Lists | Done | 2026-09-27 | 6 |
Description
As an admin, I want to export user data in CSV and PDF formats, So that I can generate reports and maintain offline records. Full implementation history: docs/stories/story-6.4-data-export-user-lists.md
Acceptance Criteria
- Export all users (both individual and company clients)
- Export individual clients only (
user_type = 'individual') - Export company clients only (
user_type = 'company') - Date range filter on
created_atfield (start date, end date) - Status filter: active, deactivated, or all
- Filters combine with export type (e.g., "active individual clients created in 2024")
- Name (
namefor individual,company_namefor company) - Email (
email) - Phone (
phone) - User type (
user_type: individual/company) - National ID / Company registration (
national_idfor individual,company_cert_numberfor company) - Status (
status: active/deactivated) - Created date (
created_atformatted per locale) - UTF-8 BOM for proper Arabic character display in Excel
- Same data fields as CSV in tabular format
- Libra branding header (logo, firm name)
- Generation timestamp in footer
- Page numbers if multiple pages
- Professional formatting with brand colors (Navy #0A1F44, Gold #D4AF37)
- Column headers based on admin's
preferred_languagesetting - Date formatting per locale (DD/MM/YYYY for Arabic, MM/DD/YYYY for English)
- PDF title and footer text bilingual
- Export section accessible from Admin User Management page
- Filter form with: user type dropdown, status dropdown, date range picker
- "Export CSV" and "Export PDF" buttons
- Loading indicator during export generation
- Success toast on download start
- Error toast if export fails