diff --git a/src/client/components/Controls.tsx b/src/client/components/Controls.tsx index 66ba1b0..d308113 100644 --- a/src/client/components/Controls.tsx +++ b/src/client/components/Controls.tsx @@ -1,14 +1,13 @@ import type { LaneId } from "../../shared/custom.ts"; import type { Region } from "../../shared/schema.ts"; +import { REGION_LABEL } from "../../shared/time.ts"; import { useGameMeta } from "../state/gameMeta.tsx"; import type { Prefs } from "../state/usePrefs.ts"; import { YourOwn } from "./YourOwn.tsx"; -const REGIONS: Array<{ id: Region; label: string }> = [ - { id: "america", label: "America" }, - { id: "europe", label: "Europe" }, - { id: "asia", label: "Asia" }, -]; +const REGIONS: Array<{ id: Region; label: string }> = ( + ["america", "europe", "asia"] as const +).map((id) => ({ id, label: REGION_LABEL[id] })); export function Controls({ games, diff --git a/src/client/components/EventDetail.tsx b/src/client/components/EventDetail.tsx index 38176c8..febf37e 100644 --- a/src/client/components/EventDetail.tsx +++ b/src/client/components/EventDetail.tsx @@ -8,7 +8,11 @@ import { } from "../../shared/custom.ts"; import type { EventDraft } from "../state/useCustom.ts"; import { EventForm } from "./CustomForms.tsx"; -import { formatAbsolute, formatRemaining } from "../../shared/time.ts"; +import { + formatAbsolute, + formatRemaining, + REGION_LABEL, +} from "../../shared/time.ts"; import type { RowEvent } from "./EventRow.tsx"; import { pressure, pressureReason, type Effort } from "../../shared/effort.ts"; import type { Status } from "../state/useProgress.ts"; @@ -132,14 +136,17 @@ export function EventDetail({
- The source gave a date but no time of day, so this end is accurate to - the day only. Check in-game before the last hours. + The source gave a date but no time of day, so this counts down to + that day's {REGION_LABEL[region]} server reset — where these usually land, but a + reading rather than a stated time. Check in-game before the last + hours.
)} diff --git a/src/shared/time.ts b/src/shared/time.ts index 430b394..67bbbfc 100644 --- a/src/shared/time.ts +++ b/src/shared/time.ts @@ -21,6 +21,13 @@ export const REGION_RESET_UTC_OFFSET: Record