diff --git a/app/src/Stats.jsx b/app/src/Stats.jsx index df43219..9307e4c 100644 --- a/app/src/Stats.jsx +++ b/app/src/Stats.jsx @@ -13,15 +13,26 @@ export { decodeHistory } from './readingHistory.js' const SHADES = ['bg-stone-100', 'bg-brand-200', 'bg-brand-300', 'bg-brand-400', 'bg-brand-500'] const FALLBACK_SECONDS = 30 * 60 // median assumed until there is enough history const FALLBACK_PAGES = 20 +// A day the reader marked read but recorded no amount for: outlined, not shaded. +const UNKNOWN_SHADE = 'bg-stone-100 ring-1 ring-inset ring-brand-400' +const UNMEASURED = 'read, no time recorded' -function ShadeLegend() { +function ShadeLegend({ unknown }) { return ( -
- Less - {SHADES.map((c) => ( -