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 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
ddd9673f86
commit
50c6e91b00
@@ -0,0 +1,47 @@
|
||||
import { GachaEvent } from "../../src/shared/schema.ts";
|
||||
const at = "2026-10-16T12:00:00.000Z";
|
||||
export const sampleEvent = GachaEvent.parse({
|
||||
id: "genshin:test:2026-10-01",
|
||||
game: "genshin",
|
||||
title: "Test",
|
||||
type: "story",
|
||||
summary: null,
|
||||
startsAt: "2026-10-01T00:00:00.000Z",
|
||||
startPrecision: "day",
|
||||
endsAt: "2026-10-20T00:00:00.000Z",
|
||||
endPrecision: "day",
|
||||
regionScoped: false,
|
||||
regionEnds: null,
|
||||
sourceUrl: "https://example.com",
|
||||
sourceId: "test",
|
||||
confidence: 1,
|
||||
extractionMethod: "parser",
|
||||
version: 1,
|
||||
firstSeenAt: at,
|
||||
updatedAt: at,
|
||||
status: "published",
|
||||
});
|
||||
|
||||
export class MemoryStorage implements Storage {
|
||||
values = new Map<string, string>();
|
||||
fail = "";
|
||||
get length() {
|
||||
return this.values.size;
|
||||
}
|
||||
clear() {
|
||||
this.values.clear();
|
||||
}
|
||||
key(i: number) {
|
||||
return [...this.values.keys()][i] ?? null;
|
||||
}
|
||||
getItem(k: string) {
|
||||
return this.values.get(k) ?? null;
|
||||
}
|
||||
removeItem(k: string) {
|
||||
this.values.delete(k);
|
||||
}
|
||||
setItem(k: string, v: string) {
|
||||
if (k === this.fail) throw new DOMException("Full", "QuotaExceededError");
|
||||
this.values.set(k, v);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user