feat: the redesigned Event Clock
The new reader app replaces the old UI: Checklist with a rail (focus pills, Next to expire, today's dailies, pinned routines), Timeline in a new and a classic look, Routines, Archive and a Settings area, in a Structured (default) and a Relaxed interface. It follows the approved Round 6 B and Round 7 mockups, corrected screen by screen with the owner. Reader data moves to a v2 store (gacha-tracker:v2:*). Existing v1 data is migrated on first load, a recovery copy is written first, and the v1 keys are never removed, so a rollback finds them unchanged. Redeem codes for Genshin arrive as their own feed. Also: live's urgency ramp, editable per theme; completion and section-complete fireworks; a returning-user tour; the design mockups, specs, plans, reviews and handoff record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
ddd9673f86
commit
50c6e91b00
@@ -0,0 +1,31 @@
|
||||
import { expect, test } from "bun:test";
|
||||
import { formatInZone } from "../src/client/state/displayTime.ts";
|
||||
test("named timezones use their daylight-saving rules and invalid zones fall back", () => {
|
||||
const winter = formatInZone(
|
||||
"2026-01-01T12:00:00Z",
|
||||
true,
|
||||
"Europe/Copenhagen",
|
||||
);
|
||||
const summer = formatInZone(
|
||||
"2026-07-01T12:00:00Z",
|
||||
true,
|
||||
"Europe/Copenhagen",
|
||||
);
|
||||
expect(winter).toContain("13:00");
|
||||
expect(summer).toContain("14:00");
|
||||
expect(() =>
|
||||
formatInZone("2026-07-01T12:00:00Z", true, "invalid"),
|
||||
).not.toThrow();
|
||||
});
|
||||
import { readerInstant } from "../src/client/state/useCustom.ts";
|
||||
test("custom event entry resolves a chosen zone and rejects nonexistent daylight-saving times", () => {
|
||||
expect(
|
||||
readerInstant("2026-07-01", "12:00", "start", "Europe/Copenhagen"),
|
||||
).toBe("2026-07-01T10:00:00.000Z");
|
||||
expect(
|
||||
readerInstant("2026-03-29", "02:30", "start", "Europe/Copenhagen"),
|
||||
).toBeNull();
|
||||
expect(
|
||||
readerInstant("2026-02-30", "12:00", "start", "Europe/Copenhagen"),
|
||||
).toBeNull();
|
||||
});
|
||||
Reference in New Issue
Block a user