3.3.2.3
Fix bottom panels Add semi-cloud icons
This commit is contained in:
@@ -607,7 +607,7 @@ export function computeGlanceSummary(todayRows, profile, variant, skinType, cols
|
||||
// ── Vehicle ────────────────────────────────────────────────────────────
|
||||
if (profile === 'vehicle') {
|
||||
const peakCabin = peakRow('vehicleT');
|
||||
const dangerFrom = todayRows.find(r => r.vehicleT != null && r.vehicleT >= 29);
|
||||
const dangerWins = allWindows(todayRows, r => r.vehicleT != null && r.vehicleT >= 29);
|
||||
|
||||
return [
|
||||
...climateItem,
|
||||
@@ -620,8 +620,8 @@ export function computeGlanceSummary(todayRows, profile, variant, skinType, cols
|
||||
}, {
|
||||
icon: '🧒',
|
||||
label: 'Children/pets in car',
|
||||
value: dangerFrom ? `Unsafe from ${hhmm(dangerFrom.iso)}` : 'Safe all day',
|
||||
alert: !!dangerFrom,
|
||||
value: dangerWins.length ? `Unsafe ${formatWindows(dangerWins)}` : 'Safe all day',
|
||||
alert: dangerWins.length > 0,
|
||||
grp: 'felt',
|
||||
}] : []),
|
||||
...(show('precipProb') ? [rainItem] : []),
|
||||
@@ -698,7 +698,7 @@ export function computeGlanceSummary(todayRows, profile, variant, skinType, cols
|
||||
const peakIndoor = peakRow('indoorT');
|
||||
const maxPollen = Math.max(0, ...todayRows.map(r => r.grassPollen ?? 0));
|
||||
const peakAqi = Math.max(0, ...todayRows.map(r => r.aqi ?? 0));
|
||||
const carDanger = todayRows.find(r => r.vehicleT != null && r.vehicleT >= 29);
|
||||
const carDangerWins = allWindows(todayRows, r => r.vehicleT != null && r.vehicleT >= 29);
|
||||
|
||||
return [
|
||||
...(show('furSurfaceT') ? [{
|
||||
@@ -725,8 +725,8 @@ export function computeGlanceSummary(todayRows, profile, variant, skinType, cols
|
||||
...(show('vehicleT') ? [{
|
||||
icon: '🧒',
|
||||
label: 'Kids/pets in car',
|
||||
value: carDanger ? `Unsafe from ${hhmm(carDanger.iso)}` : 'Safe all day',
|
||||
alert: !!carDanger,
|
||||
value: carDangerWins.length ? `Unsafe ${formatWindows(carDangerWins)}` : 'Safe all day',
|
||||
alert: carDangerWins.length > 0,
|
||||
grp: 'felt',
|
||||
}] : []),
|
||||
...lightningItem,
|
||||
|
||||
Reference in New Issue
Block a user