Sitelet https://github.com/UnexpectedSoftware/openMarket/pull/44
Skip to content

Show product sales and the most sold products - #44

Merged
victuxbb merged 4 commits into
masterfrom
feature/product-sale-statistics
Oct 1, 2026
Merged

victuxbb merged 4 commits into
masterfrom
feature/product-sale-statistics

Conversation

@victuxbb

@victuxbb victuxbb commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Summary

  • CreateOrder publishes OrderCreated after the sale is stored. A subscriber adds each line to a daily counter, and the first launch fills that table from orders already on disk.
  • Editing a product shows units and revenue for Last 7 days (the default), Day, Month, 3 months, 6 months, or a year.
  • The dashboard opens on the ten most sold products for those same periods. Takings moves to its own page under Dashboard.

Version: minor

Test plan

  • Edit a product and switch every sales period
  • Save an order that includes that product and confirm the product chart and Most sold both update
  • Open Takings and confirm the last 7 days chart is unchanged
  • npm run test-all (123 unit, 50 integration)

victuxbb and others added 4 commits October 1, 2026 20:06
CreateOrder publishes OrderCreated after the sale is stored. A subscriber adds each line to a daily counter, and the first launch fills that table from orders already on disk. Editing a product charts that product over a period. The dashboard opens on the ten most sold products, and Takings stays on its own page.

Co-authored-by: grok-by-xai[bot] <261865991+grok-by-xai[bot]@users.noreply.github.com>
Co-authored-by: grok-by-xai[bot] <261865991+grok-by-xai[bot]@users.noreply.github.com>
The dashboard ranks products as bars of units sold, with each photo and name under its bar. A click opens that product, and a missing photo uses the placeholder.

Co-authored-by: grok-by-xai[bot] <261865991+grok-by-xai[bot]@users.noreply.github.com>
Each row keeps the product photo and name, draws units in the Takings blue, and shows the change against the same period last year.

Co-authored-by: grok-by-xai[bot] <261865991+grok-by-xai[bot]@users.noreply.github.com>
@victuxbb
victuxbb merged commit 84034a1 into master Oct 1, 2026
10 checks passed
@victuxbb
victuxbb deleted the feature/product-sale-statistics branch October 1, 2026 21:17
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