Add recently created 'Shade' values to 'Basic' profile and quick view
This commit is contained in:
fraxle
2026-08-02 17:18:34 +01:00
parent ec211314e0
commit ff86b6d5ca
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -1121,11 +1121,13 @@ export function UTCIForecast() {
${forecastView === 'simple' && (() => { ${forecastView === 'simple' && (() => {
const showFur = visibleCols.furSurfaceT; const showFur = visibleCols.furSurfaceT;
const showSolar = visibleCols.utciP; const showSolar = visibleCols.utciP;
const showShade = visibleCols.shadeT;
const showVehicle = visibleCols.vehicleT; const showVehicle = visibleCols.vehicleT;
const showIndoor = visibleCols.indoorT || visibleCols.managedT; const showIndoor = visibleCols.indoorT || visibleCols.managedT;
if (!showFur && !showSolar && !showVehicle && !showIndoor) return null; if (!showFur && !showSolar && !showShade && !showVehicle && !showIndoor) return null;
const furOn = simpleTemp === 'furSurfaceT'; const furOn = simpleTemp === 'furSurfaceT';
const solarOn = simpleTemp === 'utciAdj'; const solarOn = simpleTemp === 'utciAdj';
const shadeOn = simpleTemp === 'shadeT';
const vehicleOn = simpleTemp === 'vehicleT'; const vehicleOn = simpleTemp === 'vehicleT';
const indoorOn = simpleTemp === 'indoorT' || simpleTemp === 'managedT'; const indoorOn = simpleTemp === 'indoorT' || simpleTemp === 'managedT';
// Values (fur colour, vehicle type/speed, building type, // Values (fur colour, vehicle type/speed, building type,
@@ -1137,6 +1139,7 @@ export function UTCIForecast() {
return html` return html`
<span class="fvt-thermal-tabs"> <span class="fvt-thermal-tabs">
${showSolar && html`<button type="button" class=${'fvt-thermal-tab' + (solarOn ? ' on' : '')} onClick=${() => setSimpleTemp('utciAdj')}>SunSoak</button>`} ${showSolar && html`<button type="button" class=${'fvt-thermal-tab' + (solarOn ? ' on' : '')} onClick=${() => setSimpleTemp('utciAdj')}>SunSoak</button>`}
${showShade && html`<button type="button" class=${'fvt-thermal-tab' + (shadeOn ? ' on' : '')} onClick=${() => setSimpleTemp('shadeT')}>Shade</button>`}
${showVehicle && html`<button type="button" class=${'fvt-thermal-tab' + (vehicleOn ? ' on' : '')} onClick=${() => setSimpleTemp('vehicleT')}>Vehicle</button>`} ${showVehicle && html`<button type="button" class=${'fvt-thermal-tab' + (vehicleOn ? ' on' : '')} onClick=${() => setSimpleTemp('vehicleT')}>Vehicle</button>`}
${showIndoor && html`<button type="button" class=${'fvt-thermal-tab' + (indoorOn ? ' on' : '')} onClick=${() => setSimpleTemp(indoorManaged ? 'managedT' : 'indoorT')}>Indoors</button>`} ${showIndoor && html`<button type="button" class=${'fvt-thermal-tab' + (indoorOn ? ' on' : '')} onClick=${() => setSimpleTemp(indoorManaged ? 'managedT' : 'indoorT')}>Indoors</button>`}
${showFur && html`<button type="button" class=${'fvt-thermal-tab' + (furOn ? ' on' : '')} onClick=${() => setSimpleTemp('furSurfaceT')}>Fur Colour</button>`} ${showFur && html`<button type="button" class=${'fvt-thermal-tab' + (furOn ? ' on' : '')} onClick=${() => setSimpleTemp('furSurfaceT')}>Fur Colour</button>`}
+1 -1
View File
@@ -32,7 +32,7 @@ export const FILTER_PROFILES = {
// Basic is the "just tell me" preset - it opens in Quick view (see `view` // Basic is the "just tell me" preset - it opens in Quick view (see `view`
// below) with the smallest useful column set behind it. // below) with the smallest useful column set behind it.
view: 'simple', view: 'simple',
cols: { hour: true, air: false, shadeT: false, rh: false, dew: false, wind: true, dir: true, cloud: true, sun: false, direct: false, diffuse: false, tmrt: false, delta: false, utci: false, uvA: false, uvB: false, burn: false, utciP: true, precip: true, precipProb: false, lightning: false, soilT: false, soilT6: false, soilM: false, concreteT: false, vehicleT: false, indoorT: false, managedT: false, vis: false, aqi: false, pollen: false, furSurfaceT: false, pawT: false, petShadeT: false, petHomeT: false }, cols: { hour: true, air: false, shadeT: true, rh: false, dew: false, wind: true, dir: true, cloud: true, sun: false, direct: false, diffuse: false, tmrt: false, delta: false, utci: false, uvA: false, uvB: false, burn: false, utciP: true, precip: true, precipProb: false, lightning: false, soilT: false, soilT6: false, soilM: false, concreteT: false, vehicleT: false, indoorT: false, managedT: false, vis: false, aqi: false, pollen: false, furSurfaceT: false, pawT: false, petShadeT: false, petHomeT: false },
}, },
home: { home: {
label: 'Home', label: 'Home',