Skip to content

Rebuild the event and organizer reports as one tabbed workspace - #1501

Open
daveearley wants to merge 2 commits into
v2.3.0from
feature/reports-redesign
Open

daveearley wants to merge 2 commits into
v2.3.0from
feature/reports-redesign

Conversation

@daveearley

Copy link
Copy Markdown
Contributor

What this changes

The event and organizer reports are rebuilt as one tabbed workspace.

  • /reports opens the first report directly. The index page of report cards and the "Back to Reports" button are gone. /report/:reportType URLs keep working, and an unknown report type redirects to the first report.
  • Each report is a single sheet: tabs, filters, the period as a heading with a one-line description, a lead figure with supporting totals, a per-day bar chart on the two daily reports, and the table with a totals row.
  • Period, filters and sort live in the URL, and the period follows you between tabs.
  • Event and organizer reports share one ReportView. ReportTable, OrganizerReportTable and DownloadCsvButton are removed.
  • TanStackTable gains an optional totals footer (showFooter).

Behaviour changes worth knowing

  • Revenue is always in one currency. "All currencies" summed EUR and GBP into one figure, so the revenue report now always has a currency selected. Reports whose rows carry their own currency (events, tax, platform fees) keep "All currencies", hide money totals when the rows mix currencies, and say why.
  • Daily rows are labelled with their UTC day. The rows are bucketed by UTC date; the date used to be shifted into the event timezone and could show the wrong day. The report description now says days are counted in UTC.
  • Days with no sales are hidden by default, with a "Show days with no sales" switch. Exports still contain every day.
  • Labels. "Net revenue" is now "After refunds", "Fees" is "Service fees", "Customers" is "Unique customers". A promo code with 0 uses left no longer shows "Unlimited".
  • Platform fees. Order links open the order (they pointed at a route that does not exist). Payment IDs link to the Stripe dashboard only when the payment's account is one of the organizer's connected Standard accounts; Express accounts have no full dashboard, so those stay plain text with a copy button.
  • Event CSV exports are now quoted and formula-escaped properly, and use the new column labels as headers.

API

  • GET /organizers/{id}/reports/platform_fees rows gain stripe_account_id (additive).
  • GET /organizers/{id}/reports/tax_summary/export now writes the tax rate as charged (23%). It was multiplied by 100 (2300%).

Testing

  • Backend: Unit suite, full Feature suite and pint pass. New Feature test for the tax rate export; the platform fees test asserts stripe_account_id.
  • Frontend: tsc --noEmit clean, ESLint clean on the new and changed report files, new strings translated in every locale.
  • E2E against the dev stack: report specs rewritten and extended (totals, hidden days, tabs keeping the period, empty and error states, sorting, CSV export, a member without financial access, no sideways scroll at 390, 768 and 1280px), plus unit specs for summing, sorting, currency detection and CSV escaping.
  • Checked by hand at 390, 768, 1024 and 1512px.

Not covered

  • Self-hosted (non-Cloud) mode was not run; the platform fees tab is hidden there.
  • The multi-page state of the platform fees report (over 1,000 rows) was not seen with real data.
  • Test-mode Stripe payments need /test/ in the dashboard URL and the payment's mode is not stored, so those links can miss.
  • Translations are machine-written and not reviewed by native speakers.

Reports open straight onto the first report in a single sheet: tabs, filters,
a lead figure with supporting totals, a per-day chart on the daily reports and
a table with a totals row. Period, filters and sort live in the URL.

- Revenue always shows one currency; reports that can mix currencies hide money
  totals and say why
- Daily rows are labelled with the UTC day they are bucketed by
- Days with no sales are hidden until asked for
- Platform fees: order links open the order, and payment IDs link to Stripe for
  Standard connected accounts
- Tax summary CSV exports the rate as charged (23%, not 2300%)
- Event and organizer report tables share one view; the two old table
  components and the reports index page are removed
@github-actions

Copy link
Copy Markdown
Contributor

✅ E2E smoke tests: Everything passed.

Mode Result ✅ Passed ❌ Failed ⚠️ Flaky ⏭️ Skipped ⏱️ Duration
Self-hosted ✅ Passed 119 0 0 0 3m 15s

Open the run

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant