mirror of
https://github.com/runbear-io/beardrive.git
synced 2026-08-25 08:08:08 +02:00
The Dashboard treemap painted the full 0-300d green->amber->red ramp even when every file in scope was the same age, so an all-fresh project read as "everything is healthy" - while the legend directly underneath admitted the colour carried no signal. The flag that legend computed never reached the cells that made the claim. isFlatRange now lives one component up, in Treemap, which owns both the cells and the legend. Flat scope: one neutral grey fill (deliberately off the ramp), an inert legend swatch, and a statement instead of an apology. Non-flat scope is untouched. Computed over every scoped file, so it follows the folder scope and never the read-type lens. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>