Solar: drop the data source line under the location

The attribution at the bottom of the page is enough.  The line under the
location now only appears to report the data's state: loading, failed to
load, or replaced by the user's own values.  Bumps wrolpi-help for the
refreshed screenshot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Roland 2026-10-04 18:25:24 -06:00
parent a51b15bf4f
commit bbd2e42715
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
4 changed files with 6 additions and 9 deletions

View file

@ -41,7 +41,6 @@ import {
CLIMATOLOGY_CHANGES,
CLIMATOLOGY_DATA_REFERENCE,
CLIMATOLOGY_LICENSE,
CLIMATOLOGY_SOURCE,
lookupClimatology,
useClimatology,
} from "./solarData";
@ -247,7 +246,8 @@ function LocationSection({get, set, s, climatology}) {
);
};
let source;
// The data's attribution is at the bottom of the page; this line only reports the data's state.
let source = null;
if (s.ownData) {
source = 'Using your own sunlight data.';
} else if (climatology.loading) {
@ -256,8 +256,6 @@ function LocationSection({get, set, s, climatology}) {
source = <Message kind='warning' title='Sunlight data could not be loaded'>
Enter your own monthly sunlight under "Use my own sunlight data" below.
</Message>;
} else {
source = `Sunlight and temperature: ${CLIMATOLOGY_SOURCE}; see Data attribution at the bottom of the page.`;
}
return <>
@ -279,7 +277,7 @@ function LocationSection({get, set, s, climatology}) {
</Grid.Col>
</Grid>
{geoError && <Message kind='warning' title='Could not get your location'>{geoError}</Message>}
<div style={{fontSize: '0.85em', opacity: 0.75, marginTop: '0.5em'}}>{source}</div>
{source && <div style={{fontSize: '0.85em', opacity: 0.75, marginTop: '0.5em'}}>{source}</div>}
</>;
}