diff --git a/web-ui/src/components/graph/graph-filter-panel.tsx b/web-ui/src/components/graph/graph-filter-panel.tsx index 37d9ad4..f057cec 100644 --- a/web-ui/src/components/graph/graph-filter-panel.tsx +++ b/web-ui/src/components/graph/graph-filter-panel.tsx @@ -48,7 +48,14 @@ export type GraphControls = { }; const ALL = "__all__"; -const YEARS = Array.from({ length: 2026 - 1994 + 1 }, (_, i) => 2026 - i); +// Floor covers the oldest dated precedent in the corpus (currently ע"א 725/81 → +// 1982); ceiling tracks the current year so the range never ages out. +const YEAR_FLOOR = 1980; +const CURRENT_YEAR = new Date().getFullYear(); +const YEARS = Array.from( + { length: CURRENT_YEAR - YEAR_FLOOR + 1 }, + (_, i) => CURRENT_YEAR - i, +); const COLOR_BY: { value: ColorBy; label: string }[] = [ { value: "type", label: "סוג נקודה" },