Skip to content

feat: implement earnings and payments dashboard with data parsing and…#1

Merged
hardinxcore merged 11 commits into
mainfrom
release
Mar 31, 2026
Merged

feat: implement earnings and payments dashboard with data parsing and…#1
hardinxcore merged 11 commits into
mainfrom
release

Conversation

@hardinxcore
Copy link
Copy Markdown
Owner

@hardinxcore hardinxcore commented Mar 30, 2026

  • Align EST_LAUNCH_DATE comment in RenewalCalendar.tsx to match the constant value (2025-05-04 instead of 2025-05-05)
  • Make header row detection case-insensitive in earnings.worker.ts and payments.worker.ts by normalizing both the line and expected column names to lowercase before comparison

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new “Incentives & Earnings” analytics area to the app (alongside existing billing and pricing tooling), including CSV parsing via Web Workers, IndexedDB persistence, and new dashboards/visualizations.

Changes:

  • Introduces earnings/payments CSV parsing (Web Workers + parser utilities) and a dedicated useEarningsStore persisted in IndexedDB.
  • Adds a new EarningsView analytics dashboard (charts, drill-downs, exports) and hooks it into app navigation/home dashboard.
  • Adds a new RenewalCalendar view and updates docs/metadata to reflect the expanded feature set.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/workers/payments.worker.ts Parses Partner Center Payments CSVs in a worker (header detection + row mapping).
src/workers/earnings.worker.ts Parses Partner Center Earnings CSVs in a worker (header detection + row mapping).
src/utils/paymentsParser.ts Worker wrapper for payments parsing + summary meta computation.
src/utils/earningsParser.ts Worker wrapper for earnings parsing + summary meta computation.
src/utils/earningsDb.ts IndexedDB schema + persistence helpers for earnings and payments datasets.
src/types/EarningsData.ts Adds typed data models and parse-result/meta contracts for earnings & payments.
src/store/earningsStore.ts Zustand store for earnings/payments with persistence + append/reset/load operations.
src/components/HomeDashboard.tsx Adds an “Incentives & Earnings” entry card and wiring to navigation.
src/components/EarningsView.tsx New analytics dashboard UI (charts, tables, drill-downs, exports, payments tab).
src/components/RenewalCalendar.tsx New renewal calendar/list UI with export and EST/NCE indicators.
src/App.tsx Integrates new views into app navigation and restores earnings state on startup.
README.md Documents incentives/earnings features and Partner Center export locations.
package.json Updates app description to include incentives analytics.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/RenewalCalendar.tsx
Comment thread src/components/EarningsView.tsx Outdated
Comment thread src/components/EarningsView.tsx Outdated
Comment thread src/components/EarningsView.tsx Outdated
Comment thread src/workers/earnings.worker.ts Outdated
Comment thread src/workers/earnings.worker.ts
Comment thread src/workers/payments.worker.ts Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@hardinxcore hardinxcore merged commit 5d37956 into main Mar 31, 2026
2 checks passed
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.

3 participants