fix(calendar): show unscheduled markers on future days off

This commit is contained in:
syntaxbullet
2026-10-24 20:23:54 +02:00
parent ccd998ab04
commit 7a0cae8f08
7 changed files with 77 additions and 22 deletions

View File

@@ -52,7 +52,7 @@ export function CalendarHeatmap({
const [customRange, setCustomRange] = useState<{ from: string; to: string } | null>(null);
const [rangeError, setRangeError] = useState("");
const latestDate =
allDays.findLast((day) => day.state !== "future")?.date ??
allDays.findLast((day) => !(day.future ?? day.state === "future"))?.date ??
allDays.at(-1)?.date;
// Inspecting a square changes selection, not the window. Only an external
// date outside the visible preset needs a new anchor to bring it into view.