From 1d32ec6b409bd6a0e9c5c4357ffb1dca9bd227f6 Mon Sep 17 00:00:00 2001 From: Emi Griffith Date: Sun, 19 Jul 2026 21:38:30 -0700 Subject: [PATCH] =?UTF-8?q?Rename=20the=20middle=20rain=20tiers=20and=20me?= =?UTF-8?q?rge=20Mod=E2=80=93Heavy=20into=20Heavy=20(#214)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The rain-intensity scale drops its two hyphenated compound labels for single words and loses a tier, going from eight to seven: Trace / Light / Brisk / Typical / Heavy / Very Heavy / Extreme - Light–Mod -> Brisk, Moderate -> Typical (renames only; classes unchanged). - Mod–Heavy is merged up into Heavy, whose floor drops from the 75th to the 60th rain-day percentile, so Heavy now spans 60–90. - The lightest tier (already the merged Very Light) is renamed Trace. grading.py RAIN_BANDS and the frontend SCALE_RAIN mirror stay in lockstep, and the detail-view ladder derives from the table so it follows automatically. The now-unreferenced wet-6 colour token is kept so any day still cached under that class renders until the derived store recomputes; the chart's percentile fan also keeps it for a smooth gradient. Claude-Session: https://claude.ai/code/session_013dRZmX9D3JEntfMKWMTWZ8 --- static/shared.js | 9 ++++----- static/style.css | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/static/shared.js b/static/shared.js index c9702e9..0c0e40f 100644 --- a/static/shared.js +++ b/static/shared.js @@ -45,12 +45,11 @@ export const SCALE_TEMP = [ ]; // Rain-intensity tiers by rain-day percentile (dry days show their dry streak). export const SCALE_RAIN = [ - { c: "wet-2", label: "Very Light", range: "<10" }, + { c: "wet-2", label: "Trace", range: "<10" }, { c: "wet-3", label: "Light", range: "10–25" }, - { c: "wet-4", label: "Light–Mod", range: "25–40" }, - { c: "wet-5", label: "Moderate", range: "40–60" }, - { c: "wet-6", label: "Mod–Heavy", range: "60–75" }, - { c: "wet-7", label: "Heavy", range: "75–90" }, + { c: "wet-4", label: "Brisk", range: "25–40" }, + { c: "wet-5", label: "Typical", range: "40–60" }, + { c: "wet-7", label: "Heavy", range: "60–90" }, { c: "wet-8", label: "Very Heavy", range: "90–99" }, { c: "wet-9", label: "Extreme", range: ">99" }, ]; diff --git a/static/style.css b/static/style.css index 2757ca1..0e95e78 100644 --- a/static/style.css +++ b/static/style.css @@ -1100,8 +1100,8 @@ main { max-width: 1200px; margin: 0 auto; padding: 20px 24px 60px; } .ct-label { min-height: 2.2em; font-size: 10px; line-height: 1.1; font-weight: 600; color: var(--muted); overflow: hidden; - /* The strip's columns sit 1px apart, so long neighbouring names ("Light–Mod" - next to "Moderate") ran into each other and read as one word. */ + /* The strip's columns sit 1px apart, so long neighbouring names (e.g. "Very + Heavy" next to "Extreme") ran into each other and read as one word. */ padding: 0 2px; }