Commit 92023f5
fix(web): resolve TypeScript build errors (#37)
* feat(consumption-euro): Add cost analysis page with year comparison (#33)
* feat(consumption-euro): Add cost analysis page with year comparison and detailed breakdown
Implement comprehensive electricity cost analysis on /consumption_euro page:
- Year stats cards with rolling 365-day period comparison
- Multi-year bar/area charts with HC/HP breakdown option
- Monthly breakdown table sorted newest to oldest
- Offer pricing card displaying all tariff types
- Expandable info block with cache, calculation, and data source details
- Year-over-year comparison badges showing cost and kWh differences
- Support for all offer types: Base, HC/HP, Tempo, EJP with dynamic pricing
- Dark mode support throughout
Added design documentation in docs/design/components/16-euro-stats.md
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(deps): regenerate package-lock.json with tree-sitter dependencies
Fixes npm ci failure by properly resolving tree-sitter peer dependencies:
- tree-sitter@0.21.1 for @swagger-api/apidom-parser-adapter-json
- tree-sitter@0.22.4 for @swagger-api/apidom-parser-adapter-yaml-1-2
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Clément VALENTIN <clement.valentin@blacktiger.tech>
Co-authored-by: Claude <noreply@anthropic.com>
* feat(balance): energy balance page with year filters (#35)
* feat(web): add Balance page for production vs consumption recap
- Add new /balance route accessible from main sidebar menu
- Create Balance page with 4 summary cards (consumption, production, net balance, self-consumption rate)
- Add monthly comparison bar chart (production vs consumption)
- Add net balance daily curve with green/red gradient
- Add yearly summary table with export functionality
- Support linked production PDLs
- Calculate self-consumption rate from cached data (30min for precise, daily for estimate)
- Data is read from React Query cache (no new API calls)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(web): improve Balance page design compliance
- Fix H1 structure to use text-3xl with icon inside flex container (6 occurrences)
- Add transition-colors duration-200 to all card components
- Change H3 to H2 for section titles per design guidelines
- Add consistent subtitle "Production vs Consommation"
Design compliance score: 72% -> 95%
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(balance): use PageHeader pattern like ConsumptionKwh
- Add /balance route to PDL_SELECTOR_PAGES in PageHeader
- Add Balance page config to PAGE_CONFIG (Scale icon, title, subtitle)
- Remove all inline H1 headers from Balance page
- Remove inline PDL selectors (now handled by PageHeader)
- Use empty state pattern matching ConsumptionKwh
- Fix AnimatedSection isVisible prop
- Fix unused Zap import in BalanceSummaryCards
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(balance): use same linked PDL banner style as Production page
- Replace simple info text with gradient banner matching Production page
- Add lightning bolt SVG icon
- Use green gradient background with rounded corners
- Display both production and consumption PDL numbers in monospace font
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(balance): add top padding (pt-6) to all page states
Add consistent pt-6 padding to all return states (empty, error, loading, main content) to create proper spacing between the PageHeader and page content.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* feat(balance): improve year filter buttons and add InfoBlock
- Display year filter buttons in a single line with multi-select support
- Order years from most recent to oldest
- Add semi-transparent background colors with colored borders
- Include selection indicator dot in top-right corner
- Add collapsible InfoBlock with cache warning and explanatory sections
- Remove Total row from yearly table
- Reduce spacing between chart bars for better visibility
- Document Year Filter Buttons pattern in design guidelines
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* feat(balance): display production value in year filter buttons
Add production kWh information below each year in the year filter buttons to provide context when selecting years for comparison.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Clément VALENTIN <clement.valentin@blacktiger.tech>
Co-authored-by: Claude <noreply@anthropic.com>
* debug: Add console logs to Contribute page for provider data (#34)
Add detailed logging to understand why providers list appears empty on the Contribute page. Logs show the API response and the current state of providersData, isLoading, and error.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Clément VALENTIN <clement.valentin@blacktiger.tech>
Co-authored-by: Claude <noreply@anthropic.com>
* fix(web): resolve TypeScript build errors
- Add missing 'Info' import from lucide-react in Balance/index.tsx
- Fix ejp_pointe -> ejp_peak property name in OfferPricingCard.tsx
- Prefix unused hcHpCalculationTrigger parameter with underscore
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(web): regenerate package-lock.json and fix recharts type errors
- Regenerate package-lock.json to resolve tree-sitter dependency sync issue
- Fix recharts activeLabel type errors by converting to String() in 6 chart components:
- Consumption/AnnualCurve.tsx
- Consumption/MonthlyHcHp.tsx
- Consumption/PowerPeaks.tsx
- ConsumptionKwh/AnnualCurve.tsx
- ConsumptionKwh/MonthlyHcHp.tsx
- ConsumptionKwh/PowerPeaks.tsx
- Production/AnnualProductionCurve.tsx
This fixes the CI build failure where npm ci failed due to out-of-sync lock file.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Clément VALENTIN <clement.valentin@blacktiger.tech>
Co-authored-by: Claude <noreply@anthropic.com>1 parent 67cbb4e commit 92023f5
File tree
42 files changed
+5120
-1234
lines changed- apps
- api
- migrations
- src
- models
- routers
- schemas
- web
- src
- api
- components
- pages
- Balance
- components
- hooks
- types
- ConsumptionEuro
- components
- hooks
- types
- ConsumptionKwh/components
- Consumption/components
- Production/components
- types
- docs/design/components
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
42 files changed
+5120
-1234
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
| |||
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
| 107 | + | |
102 | 108 | | |
103 | 109 | | |
104 | 110 | | |
| |||
309 | 315 | | |
310 | 316 | | |
311 | 317 | | |
| 318 | + | |
312 | 319 | | |
313 | 320 | | |
314 | 321 | | |
| |||
348 | 355 | | |
349 | 356 | | |
350 | 357 | | |
| 358 | + | |
351 | 359 | | |
352 | 360 | | |
353 | 361 | | |
| |||
524 | 532 | | |
525 | 533 | | |
526 | 534 | | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
527 | 604 | | |
528 | 605 | | |
529 | 606 | | |
| |||
771 | 848 | | |
772 | 849 | | |
773 | 850 | | |
| 851 | + | |
774 | 852 | | |
775 | 853 | | |
776 | 854 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
0 commit comments