feat: show when a coordinator sign-in ends

The coordinator page shows the stored end date in the pantry time zone. Opening the desk still updates last seen and does not move that date.
This commit is contained in:
blake committed 2026-10-29 11:22:45 -05:00
1 parent 096d1a2b9f
commit 4376e39f58
4 files changed
+26 -2

No files matched your search

+3 -1
View File
@@ -210,6 +210,7 @@ export function AdminHome(props: {
backupNote: string;
backupState: 'saved' | 'waiting' | 'behind';
backupSavedToday: boolean;
sessionEndsAt: string;
newEvent?: { values: EventValues; error?: string };
}) {
const draft = props.newEvent?.values ?? {
@@ -221,6 +222,7 @@ export function AdminHome(props: {
published: false,
};
const clock = formatInstantInZone(props.now, props.config.defaultTimeZone);
const sessionEnds = formatInstantInZone(props.sessionEndsAt, props.config.defaultTimeZone);
const thisMonth = monthBounds(clock.date, 0);
const lastMonth = monthBounds(clock.date, -1);
const exportFrom = props.exportFrom || thisMonth.from;
@@ -240,7 +242,7 @@ export function AdminHome(props: {
<h1>Coordinator</h1>
<p class="desk-date">{clock.dateLabel}</p>
<p class="desk-signed">
Signed in as <strong>{props.name}</strong>.
Signed in as <strong>{props.name}</strong>. This sign-in ends on {sessionEnds.dateLabel}.
</p>
</div>
<div class="desk-intro-side">