From 5593764fdb7aae4d3fbc04f703b5e05388d504c0 Mon Sep 17 00:00:00 2001 From: Davide Scaini Date: Thu, 14 May 2026 15:55:10 +0200 Subject: [PATCH] explore: skip legacy bare-timestamp geojsons; type pill colors visible when inactive --- bincio/explore.py | 4 ++++ site/src/components/Explore.svelte | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bincio/explore.py b/bincio/explore.py index 7bbdaaf..29387e3 100644 --- a/bincio/explore.py +++ b/bincio/explore.py @@ -51,6 +51,10 @@ def bake_tracks(handle: str, data_dir: Path) -> int: meta = json.loads(meta_path.read_text(encoding="utf-8")) except (OSError, json.JSONDecodeError): pass + else: + # bare-timestamp geojson with no metadata — superseded by a slug version + if list(acts_dir.glob(f"{act_id}-*.geojson")): + continue if meta.get("virtual") or meta.get("sub_sport") == "indoor": continue diff --git a/site/src/components/Explore.svelte b/site/src/components/Explore.svelte index f87bb5f..031fde9 100644 --- a/site/src/components/Explore.svelte +++ b/site/src/components/Explore.svelte @@ -425,9 +425,10 @@ .pill.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); } .pill.small { padding: 0.15rem 0.45rem; font-size: 0.67rem; } - .type-pill.active { background: color-mix(in srgb, var(--type-color) 15%, transparent); border-color: var(--type-color); color: var(--type-color); } + .type-pill { border-color: color-mix(in srgb, var(--type-color) 45%, transparent); color: color-mix(in srgb, var(--type-color) 65%, var(--text-5)); } + .type-pill.active { background: color-mix(in srgb, var(--type-color) 18%, transparent); border-color: var(--type-color); color: var(--type-color); } .type-pill:hover { border-color: var(--type-color); color: var(--type-color); } - .type-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--type-color); flex-shrink: 0; } + .type-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--type-color); flex-shrink: 0; } .year-pills { margin-bottom: 0.4rem; } .month-pills { margin-bottom: 0.4rem; }