Rename the middle rain tiers and merge Mod–Heavy into Heavy (#214)
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
This commit is contained in:
parent
bbabf9e8f9
commit
1d32ec6b40
2 changed files with 6 additions and 7 deletions
|
|
@ -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" },
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue