uprava UI pro planovani
Some checks failed
CI and deploy / migration-check (push) Failing after 12s
CI and deploy / deploy (push) Has been skipped

This commit is contained in:
Dusan Vojacek
2026-05-21 13:22:33 +02:00
parent b78597fdda
commit 52bedcf67d
7 changed files with 439 additions and 5 deletions

View File

@@ -18,11 +18,14 @@ function deyeModeLabel(s: SlotData): string {
function deyeModeBadge(s: SlotData): { label: string; klass: string; title: string } {
const m = s.deye_physical_mode
const em = (s.export_mode ?? 'NONE').toString().trim().toUpperCase()
const exportHint =
em !== 'NONE' ? ` · plán export ${em}` : ''
if (m === 'SELL') {
return {
label: 'SELL',
klass: 'bg-orange-500/15 text-orange-200 ring-1 ring-orange-500/35',
title: 'SELL (selling first): reg142=0, reg178=32 (grid peak shaving off)',
title: `SELL (selling first): reg142=0, reg178=32 (grid peak shaving off)${exportHint}`,
}
}
if (m === 'CHARGE') {