Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions dashboard/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## v0.11.23-pre.42 (2026-11-06)
## v0.11.23-pre.43 (2026-11-06)

### Features

Expand Down Expand Up @@ -38,10 +38,10 @@
- **monitoring:** Monitoring shows the forecast check, a year comparison and the learned values as a usual day (#297) (4f93975)
- **dashboard:** show system versions on the versions page (#299) (18a2b0b)
- **automations:** Monitoring checks the results of adopted suggestions and rules report a season drift (#300) (d9e023b)
- **onboarding:** show a missing tour target as a status line with its reason (#307) (640faee)
- **onboarding:** pass the unavailable reason of tour steps to the web UI (cf6a666)
- **onboarding:** keep tour step hints out of the step text (03bc065)
- **onboarding:** show a missing tour target as a status line and spot it once it appears (f0728db)
- **onboarding:** show a missing tour target as a status line with its reason (#307)
- **monitoring:** add a notice for a missing site location (e85cf0b)
- **monitoring:** ask for the site location when PV learning needs it (9300975)
- **automations:** mark rules that came from a learned suggestion (f85130f)
Expand Down Expand Up @@ -375,9 +375,9 @@
- **automations:** correct the learning feature after the full review (#296) (88f3c75)
- Monitoring names values without a role and links to the learning settings (#303) (29450b8)
- **automations:** correct the learning methods after the spec check (#306) (0296218)
- **onboarding:** draw the status line icon as an outline (77f5e56)
- **history:** keep proxies from compressing the event streams (#304) (0298760)
- **backup:** A restore stays in place even when the battery state cannot be written (#288) (e5c5437)
- **onboarding:** draw the status line icon as an outline (77f5e56)
- **autolearn:** learn the season median of the weather factor from measured minutes (ca31a44)
- **autolearn:** count a load that the PV covers as a weather measurement (d5ffb8e)
- **autolearn:** need a known off state before a switch counts as turned on (0ad8879)
Expand Down Expand Up @@ -592,6 +592,7 @@

### Style

- **dashboard:** align the tab hint dots and stop tabs from wrapping (#308)
- **performance:** style the learning row fold (55b33c1)

### Chores
Expand Down
2 changes: 1 addition & 1 deletion dashboard/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.11.23-pre.42
v0.11.23-pre.43
4 changes: 4 additions & 0 deletions dashboard/internal/webui/cache-bust-history.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
version,date,asset,v,note
v0.11.23-pre.43,2026-11-30,css/base.css,55,
v0.11.23-pre.43,2026-11-30,css/onboarding.css,8,
v0.11.23-pre.43,2026-11-30,js/dashboard.js,56,
v0.11.23-pre.43,2026-11-30,js/onboarding.js,11,
v0.11.23-pre.42,2026-11-30,css/onboarding.css,7,
v0.11.23-pre.42,2026-11-30,js/onboarding-model.js,7,
v0.11.23-pre.42,2026-11-30,js/onboarding.js,10,
Expand Down
20 changes: 16 additions & 4 deletions dashboard/internal/webui/static/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -409,11 +409,19 @@ nav .nav-more-list[hidden] { display: none; }
nav .nav-more-list button { text-align: left; border-radius: 6px; padding: .6rem .8rem; }
nav .nav-more-list button::after { content: none; }
nav .nav-more-list button.active { background: var(--accent-bg); color: var(--accent); }
.nav-menu-toggle { display: none; }
.nav-menu-toggle { position: relative; display: none; }
/* Hinweispunkt der Reiterleiste: oben rechts am Reiter und an den Knoepfen
"Weitere" und Menue (dashboard.js, tabHasDot). In den senkrechten Listen
steht er hinter dem Eintrag, dort waere die Ecke weit vom Text weg. */
.tab-dot { position: absolute; top: .55rem; right: .3rem; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.nav-more-list .tab-dot { position: static; display: inline-block; margin-left: .4rem; vertical-align: middle; }
/* Hauptmenue im Modus "Weitere" (Einstellung Darstellung, pro Browser):
eine Zeile, der Rest steht unter "Weitere" (fitNav in dashboard.js). Im
Modus "menu" bleibt es beim Aufklappmenue unter 700px. */
.nav-shell[data-nav-mode="more"] nav#dashboard-tabs { flex-wrap: nowrap; position: relative; }
/* Ohne Schrumpfen: fitNav misst sonst gestauchte Breiten, laesst zu viele Reiter
in der Zeile und Namen wie "Device-Map" brechen um. */
.nav-shell[data-nav-mode="more"] nav#dashboard-tabs .tab { flex-shrink: 0; }
.nav-shell[data-nav-mode="more"] nav#dashboard-tabs .tab.is-overflow { display: none !important; }
.nav-shell[data-nav-mode="more"] nav#dashboard-tabs .tab-divider { display: none; }
.nav-shell[data-nav-mode="menu"] nav#dashboard-tabs .nav-more { display: none; }
Expand Down Expand Up @@ -2060,12 +2068,14 @@ small { color: var(--text-muted); }
raus auf demselben Pfad (apple-design 7). visibility haelt die
eingeklappten Tabs aus der Tab-Reihenfolge, ohne die Auffahrt zu
blockieren (0s verzoegert beim Schliessen, sofort beim Oeffnen).
max-height ist nur eine Obergrenze: 32rem fasst die zehn Manager-Tabs
knapp; der 4-Tab-Viewer oeffnet dadurch minimal abrupter. */
max-height ist nur eine Obergrenze: 60rem fasst die Manager-Tabs samt
eigener Seiten, darueber scrollt die Liste; kurze Listen oeffnen dadurch
etwas abrupter. nowrap, sonst wird aus zu viel Hoehe eine zweite Spalte. */
.nav-shell[data-nav-mode="menu"] .nav-menu-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .6rem; margin-top: 1.5rem; }
.nav-shell[data-nav-mode="menu"] nav#dashboard-tabs {
margin-top: 0;
flex-direction: column;
flex-wrap: nowrap;
align-items: stretch;
padding: 0;
overflow: hidden;
Expand All @@ -2075,7 +2085,8 @@ small { color: var(--text-muted); }
transition: max-height .26s var(--ease-out), opacity .18s var(--ease-out), visibility 0s linear .26s;
}
.nav-shell[data-nav-mode="menu"] nav#dashboard-tabs.nav-open {
max-height: 32rem;
max-height: 60rem;
overflow-y: auto;
opacity: 1;
visibility: visible;
transition: max-height .26s var(--ease-out), opacity .18s var(--ease-out), visibility 0s;
Expand All @@ -2085,6 +2096,7 @@ small { color: var(--text-muted); }
traegt hier eine flaechige Markierung. */
.nav-shell[data-nav-mode="menu"] nav#dashboard-tabs .tab::after { content: none; }
.nav-shell[data-nav-mode="menu"] nav#dashboard-tabs .tab.active { background: var(--accent-bg); color: var(--accent); }
.nav-shell[data-nav-mode="menu"] nav#dashboard-tabs .tab-dot { position: static; display: inline-block; margin-left: .4rem; vertical-align: .15em; }
/* In der senkrechten Liste trennt eine waagerechte Linie - der senkrechte
Strich der Tab-Zeile stuende hier quer zur Leserichtung. */
.nav-shell[data-nav-mode="menu"] nav#dashboard-tabs .tab-divider { align-self: stretch; width: auto; height: 0; margin: .4rem .2rem; border-left: 0; border-top: 1px solid var(--border); }
Expand Down
4 changes: 0 additions & 4 deletions dashboard/internal/webui/static/css/onboarding.css
Original file line number Diff line number Diff line change
Expand Up @@ -482,10 +482,6 @@ button.ob-crosslink { font: inherit; cursor: pointer; }
background: var(--accent);
vertical-align: .15em;
}
.ob-marker[hidden] { display: none; }
.ob-marker--tab { position: absolute; top: .55rem; right: .3rem; margin: 0; }
/* Punkt an den Knoepfen der schmalen Navigation: im Text, auf der Mittellinie. */
.nav-menu-toggle .ob-marker, .nav-more-toggle .ob-marker, .nav-more-list .ob-marker { flex: none; vertical-align: middle; }

/* --- Checkliste ------------------------------------------------------------ */
.ob-checklist .ob-cl-mode { display: contents; }
Expand Down
27 changes: 25 additions & 2 deletions dashboard/internal/webui/static/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@
return copy.textContent.trim();
};

// Reiter, die einen Hinweispunkt tragen koennen (siehe tabHasDot).
const DOT_TABS = ['tab-efficiency', 'tab-monitoring', 'tab-energy', 'tab-automations', 'tab-settings'];

const dashboardShell = () => ({
activePanel: document.body.dataset.initialPanel || 'overview-panel',
// Der Reiter Effizienz zeigt sich nur, solange es Messketten gibt. Der
Expand Down Expand Up @@ -192,13 +195,33 @@
label: tabLabel(tab),
el: tab,
active: tab.classList.contains('active'),
// Der Einstellungs-Tab traegt den Marker fuer ungesehene Neuerungen.
settings: tab.id === 'tab-settings',
}));
more.hidden = rest.length === 0;
if (rest.length === 0) this.navMoreOpen = false;
},

// Hat der Reiter einen Hinweis? Eine Quelle fuer den Punkt am Reiter, in der
// Liste "Weitere" und an den beiden Menueknoepfen.
tabHasDot(id) {
switch (id) {
case 'tab-efficiency': return this.hasChains && this.efficiencyTabNew;
case 'tab-monitoring': return this.monitoringNew;
case 'tab-energy': return this.energySuggestionsOpen;
case 'tab-automations': return this.automationFindingsOpen;
// Ein Punkt fuer beides: ungesehene Neuerungen und neue Lernfunktionen.
case 'tab-settings': return this.learningNewOpen || Boolean(this.$store?.onboarding?.unseenCount);
default: return false;
}
},

get anyTabDot() {
return DOT_TABS.some((id) => this.tabHasDot(id) && Boolean(document.getElementById(id)));
},

get overflowHasDot() {
return this.overflowNav.some((item) => this.tabHasDot(item.key));
},

// Welcher Eintrag aktiv ist, steht in den Klassen der Tabs (Alpine setzt sie
// nach dem Wechsel), darum liest das hier nach $nextTick neu.
syncNavActive() {
Expand Down
8 changes: 0 additions & 8 deletions dashboard/internal/webui/static/js/onboarding.js
Original file line number Diff line number Diff line change
Expand Up @@ -966,13 +966,5 @@
window.matchMedia?.(PHONE)?.addEventListener('change', (event) => window.Alpine.store('onboarding').resize(event.matches ? 'phone' : 'desktop'));
});

// Marker am Einstellungs-Tab, solange es ungesehene Neuerungen gibt. Das
// Element steht im Template, hier schaltet nur seine Sichtbarkeit.
document.addEventListener('alpine:initialized', () => {
const marker = document.querySelector('#tab-settings .ob-marker--tab');
if (!marker) return;
window.Alpine.effect(() => { marker.hidden = !window.Alpine.store('onboarding').unseenCount; });
});

window.obOnboarding = { openPlace, waitFor, resolveTarget, dotOffset };
})();
Loading
Loading