Skip to content

feat: pricing playground 🎁#263

Merged
jpinho merged 15 commits intomainfrom
claude/pricing-demo-interactive-IRQnH
Mar 21, 2026
Merged

feat: pricing playground 🎁#263
jpinho merged 15 commits intomainfrom
claude/pricing-demo-interactive-IRQnH

Conversation

@jpinho
Copy link
Member

@jpinho jpinho commented Mar 21, 2026

No description provided.

jpinho added 15 commits March 21, 2026 20:09
Vite + React + Tailwind app showcasing all library capabilities:
- Per-unit, tiered volume, tiered graduated, and tiered flat fee pricing
- Tax handling (inclusive/exclusive comparison, multi-rate breakdown)
- Discounts & coupons (fixed, percentage, cashback with before/after)
- Composite pricing (multi-component bundles with recurrence grouping)
- Recurring billing with frequency normalization across periods
- Currency formatting (8 currencies, locale-aware, all format functions)
- Dynamic tariff (market price + markup with 24h simulation chart)
- GetAG energy pricing (Grundpreis/Arbeitspreis with cost breakdown)

Each section has interactive controls, live computation via the actual
library functions, and visual representations (tier charts, stacked
bars, side-by-side comparisons).

Run: cd demo && pnpm install && pnpm dev
…tion, Non-Commodity

Add a "Use Cases" group in the sidebar with four new interactive demo sections:
- Electricity: Single/dual-tariff (HT/NT) with Grundpreis + Arbeitspreis
- Gas: Gas-specific pricing with CO2 levy, gas storage levy, and per-kWh breakdown
- House Connection: Hausanschluss fees with distance-based trench work and toggleable services
- Non-Commodity: Network fees, metering, government levies, and energy taxes for power/gas

Updates App.tsx sidebar to support grouped navigation and adds use case cards to the overview page.
Screenshots of Overview, Electricity, Gas, House Connection, and Non-Commodity demo pages.
…, smart home)

Non-commodity now correctly represents physical products and services beyond
the energy supply: solar panels, battery storage, wallboxes, heat pumps, and
smart home devices with toggleable categories and recurring service contracts.
Built-in JS/TS tokenizer that highlights keywords, strings, numbers,
comments, properties, operators, and builtins with distinct colors.
No external dependency required.
…icing Playground

- Added interactive Usage CodeBlock with setup code to all 15 demo sections
- Each usage section shows the exact code needed to reproduce the demo's computation
- Code blocks are dynamic and update with the user's configured values
- Added install + quickstart code blocks to the Overview page
- Updated page title, sidebar, and hero to "epilot Pricing Playground"
Renamed the "Use Cases" group to "Energy & Utility Use Cases" and
repositioned it right after Overview for better visibility.
- Wrap pricing model demos under a "Capabilities" group heading
- Reorder Overview page: Energy & Utility Use Cases appear first,
  Capabilities section follows below
The multi-tax breakdown was accessing non-existent properties
(tax._title, rateValue) causing undefined to render. Use tax.rate
and tax.type which are the actual fields on TaxAmountBreakdown.
@jpinho jpinho changed the title Claude/pricing demo interactive ir qn h feat: pricing playground 🎁 Mar 21, 2026
@jpinho jpinho merged commit 346c1c4 into main Mar 21, 2026
0 of 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.

1 participant