- Implement dynamic caching for reports summary API to ensure up-to-date data. - Update reports summary endpoint to include guest counts and table details. - Improve error handling and user feedback in the ReportsExports component. - Add retry functionality for failed data fetches and display appropriate alerts. - Update UI to inform users when no guests are present in the database.
2.0 KiB
2.0 KiB
Feature updates to visualize
Dev server: http://localhost:3001
Admin: http://localhost:3001/admin (login: admin / admin123 if you’ve used the dev reset)
1. Admin login
- Dev reset (dev only): On the admin login page, in the “Troubleshooting (dev only)” section, use “Reset admin password to admin123” if you can’t sign in, then log in with
admin/admin123.
2. Reports & Exports – summary data
- URL: http://localhost:3001/admin?tab=reports
- What to check:
- Headcount cards (Total Invited, Confirmed, Declined, Pending, Total Attending) show real numbers from the DB instead of 0.
- Dietary and Relationships badges under the report cards (when data exists).
- Seating “X tables configured” when you have tables.
3. Reports & Exports – PDFs and printables
- Reports tab: Headcount, Dietary, Relationships, Seating → CSV, PDF, Excel.
- Printables tab:
- Name tags → “Generate Name Tags” → options → “Generate PDF”.
- Place cards → “Generate Place Cards” → “Generate PDF”.
- Seating chart poster → “Download PDF”.
- Menu cards → “Download PDF” (placeholder menu for now).
- Printable guest list → “Download PDF”.
PDFs are generated so they open correctly in Adobe Acrobat (no “damaged”/“unsupported” errors).
4. Seating chart – export
- URL: http://localhost:3001/admin?tab=seating (or wherever the seating chart lives in your admin).
- What to check: “Export” / “Download” seating chart →
seating-chart-YYYY-MM-DD.pdfdownloads.
Quick links
| Feature | URL |
|---|---|
| Admin login | http://localhost:3001/admin |
| Reports & Exports | http://localhost:3001/admin?tab=reports |
| Seating | http://localhost:3001/admin?tab=seating (if applicable) |