Skip to content

v0.2.0 — First functional release

Choose a tag to compare

@axielroque axielroque released this 19 Aug 19:27
· 107 commits to main since this release

First release past the 0.1.0 scaffolding baseline. 1.0.0 is reserved for the public WordPress.org launch.

What's in this release

  • Real profit calculation engine — net profit/margin from revenue minus product cost (WooCommerce COGS), gateway fees, shipping, and refunds. Reads orders exclusively through the WooCommerce CRUD API (wc_get_orders(), $order->get_*()), HPOS-compatible.
  • REST endpoint — GET /profit-lens/v1/summary?range=7d|30d|month|custom.
  • Dashboard — KPIs, profit chart, cost breakdown, sortable/searchable profit-by-product table, custom date range picker.
  • Per-order-line cost snapshot (#7) — product cost is now frozen per order line the first time an order reaches completed/processing, so editing a product's cost later no longer rewrites the profit of past periods.
  • Test suite — PHPUnit 57/57 passing.

Known limitation (tracked, not blocking)

Large-catalog /summary payloads on an all-time date range can delay the whole dashboard's initial load, not just the product table — tracked in #8, with the measured threshold and the fix direction (split products into its own paginated request) already documented there.

🤖 Generated with Claude Code