From 313a593a4435943237cbafa2dd767c6bc09a858c Mon Sep 17 00:00:00 2001 From: Emi Griffith Date: Sat, 11 Jul 2026 00:02:19 -0700 Subject: [PATCH] =?UTF-8?q?Lead=20location=20labels=20with=20neighbourhood?= =?UTF-8?q?;=20drop=20=C2=B17-day=20window=20jargon=20(#18)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reverse-geocode at zoom 14 and prefer neighbourhood/suburb ahead of the city so labels read 'Gowanus, New York' when OSM has that detail, falling back to the city (and county) when it doesn't. Replace the recurring '±7-day window' phrasing in the UI with plain language ('a typical day', 'days around this date', 'typical climate'). --- static/app.js | 4 ++-- static/day.html | 4 ++-- static/day.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/static/app.js b/static/app.js index 481c9ff..b3ac1bf 100644 --- a/static/app.js +++ b/static/app.js @@ -132,7 +132,7 @@ function render(data) {

${placeLabel(data)}

${data.place ? coords + " · " : ""}~${cell.area_sq_mi} sq mi cell · climatology from ${yrs} - (${c.n_samples.toLocaleString()} days in the ±7-day window)

+ (${c.n_samples.toLocaleString()} days around this date)

@@ -147,7 +147,7 @@ function render(data) { -
${data.target_date} vs normal (±7 days) — tap a metric for the full breakdown
+
${data.target_date} vs a typical day — tap a metric for the full breakdown
${cmpCard("High", "tmax", c.tmax, fmtTemp)} ${cmpCard("Low", "tmin", c.tmin, fmtTemp)} diff --git a/static/day.html b/static/day.html index bc0d08f..8865229 100644 --- a/static/day.html +++ b/static/day.html @@ -13,7 +13,7 @@

Thermograph · Day

-

Every percentile boundary for one day vs its ±7-day climate window

+

Every percentile boundary for one day vs its typical climate