5.0.8
Adaptive week ahead
This commit is contained in:
+5
-3
@@ -40,7 +40,7 @@ import { ConfigPanel } from './components/ConfigPanel.js';
|
||||
import { WelcomeModal } from './components/WelcomeModal.js';
|
||||
import { RestoreModal } from './components/RestoreModal.js';
|
||||
import { buildColumnDefs, airTempRgb, petAirTempRgb } from './tableColumns.js';
|
||||
import { computeWhyFeelsLike, computeGlanceSummary, computeBestDay, bestDaysLabel } from './compute.js';
|
||||
import { computeWhyFeelsLike, computeGlanceSummary, computeBestDay, bestDaysLabel, bestDaysHint } from './compute.js';
|
||||
import { solarElevationDeg } from './physics.js';
|
||||
import { exportDayXls } from './export.js';
|
||||
|
||||
@@ -534,7 +534,9 @@ export function UTCIForecast() {
|
||||
);
|
||||
// Week-scoped, so it is kept out of the day-scoped "At a glance" panel and
|
||||
// rendered in its own "The Week Ahead" box beneath it.
|
||||
const weekAhead = computeBestDay(days, nowLocalISO);
|
||||
// Scored on the profile's own main field, so the panel answers "when should
|
||||
// I drive / when is the house bearable", not always "when is it nice out".
|
||||
const weekAhead = computeBestDay(days, nowLocalISO, activeProfile, outdoorsVariant);
|
||||
|
||||
// Human-readable date for the "Day at a glance" heading, e.g. "Mon 2nd June 2026".
|
||||
const glanceDate = (() => {
|
||||
@@ -1619,7 +1621,7 @@ export function UTCIForecast() {
|
||||
<span class="insight-label">${titleCaseText(label)}</span>
|
||||
<span class="insight-value">${titleCaseText(value)}</span>
|
||||
${score != null && html`
|
||||
<span class="week-score" title=${`${score}% of an ideal day out — longer comfortable stretches and temperatures nearer 20 °C score higher`}>
|
||||
<span class="week-score" title=${bestDaysHint(activeProfile, outdoorsVariant, score)}>
|
||||
<span class="week-score__track">
|
||||
<span class="week-score__fill" style=${`width:${score}%;background:${scoreFillColor(score)}`}></span>
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user