Commit Graph

5 Commits

Author SHA1 Message Date
977e4e73e2 Speed up activity log listing with batch actor lookups and search filter.
Batch-load users and team members per page instead of N+1 lookups, and add server-side search on message, action, and resource fields.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 13:13:28 +03:00
f6e53ac5f5 fix: use base 10 in payment CSV optional int64 formatting
FormatInt second argument is radix, not bit size; 64 caused strconv illegal base errors on export.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 10:16:04 -07:00
2fa3459493 fix: recover panics and return JSON errors on CSV export failure
Prevent handler panics from dropping connections as nginx 502s and surface export DB errors as JSON 500 responses with CORS headers.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 10:13:02 -07:00
56c644b0e3 fix: harden CSV export streaming behind reverse proxies
Flush headers early, keep export DB context alive, log stream failures, skip redundant payment counts, and expose Content-Disposition for CORS downloads.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 10:01:31 -07:00
713bd95f97 feat: add Tier 1 admin CSV export APIs and integration guide
Add streaming CSV export for payments, users, subscriptions, activity logs, and team members with list-filter parity, RBAC permissions, and admin panel documentation.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 08:35:42 -07:00