Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.