Skip to content

feat(web): vendor reports/demand/promo/desk + admin notify & overview#45

Merged
kashkoool merged 1 commit into
mainfrom
feat/frontend-vendor-analytics-admin
Jun 3, 2026
Merged

feat(web): vendor reports/demand/promo/desk + admin notify & overview#45
kashkoool merged 1 commit into
mainfrom
feat/frontend-vendor-analytics-admin

Conversation

@kashkoool

Copy link
Copy Markdown
Owner

What & why

Phase 14c — the final dashboards layer, wiring the SPA to the analytics/sales backend (#23/#37/#40) and the admin notify/reports endpoints. Frontend only.

Vendor

  • Reports: date-range financial + occupancy summary cards, a per-trip table, CSV/XLSX/PDF download (/reports/trips/export), and a demand forecast widget (/demand/predict).
  • Promo: list + create (percent/fixed, max-uses, expiry) + deactivate (/promo-codes).
  • Desk: counter cash booking (trip + customer email + passengers → POST /vendor/bookings) and a company-bookings list with cancel/refund. Reachable by managers and staff — the vendor nav now shows only the Desk tab to staff (role-aware).

Admin

  • Per-company in-app Notify composer (/admin/companies/{id}/notify).
  • Platform overview page — companies/active, trips, confirmed bookings, revenue (/admin/reports/summary) — behind a new admin sub-nav.

Notes

  • New models + API methods mirror the backend DTOs; the report export uses a Blob download.
  • No backend changes.

Verification

ng build + ng lint clean.

Completes the dashboards against the analytics + sales backend (#23/#37/#40)
and the admin notify/reports endpoints:
- Vendor Reports: date-range financial/occupancy summary cards, per-trip
  table, CSV/XLSX/PDF download, and a demand-forecast widget.
- Vendor Promo: list + create (percent/fixed, caps, expiry) + deactivate.
- Vendor Desk: counter cash booking (trip + customer + passengers) and a
  company-bookings list with cancel/refund — reachable by managers AND staff
  (the vendor nav now shows only the Desk to staff).
- Admin: per-company in-app Notify composer, plus a platform overview page
  (companies/trips/bookings/revenue) behind a new admin nav.

Frontend only. ng build + ng lint clean.
@coderabbitai

coderabbitai Bot commented Jun 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@kashkoool, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 11 minutes and 20 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b3842049-79f7-4e6a-93f5-1e553756ea26

📥 Commits

Reviewing files that changed from the base of the PR and between 373c479 and 13fd39c.

📒 Files selected for processing (12)
  • PROJECT_STATUS.md
  • web/customer/src/app/app.routes.ts
  • web/customer/src/app/core/api/admin-api.service.ts
  • web/customer/src/app/core/api/vendor-api.service.ts
  • web/customer/src/app/core/models.ts
  • web/customer/src/app/features/admin/admin-nav.ts
  • web/customer/src/app/features/admin/companies.ts
  • web/customer/src/app/features/admin/reports.ts
  • web/customer/src/app/features/vendor/desk.ts
  • web/customer/src/app/features/vendor/promo.ts
  • web/customer/src/app/features/vendor/reports.ts
  • web/customer/src/app/features/vendor/vendor-nav.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/frontend-vendor-analytics-admin

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@kashkoool kashkoool merged commit aea8715 into main Jun 3, 2026
9 checks passed
@kashkoool kashkoool deleted the feat/frontend-vendor-analytics-admin branch June 3, 2026 14:59
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