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>
17 lines
849 B
TypeScript
17 lines
849 B
TypeScript
import { expect, test } from "bun:test";
|
|
import { renderToStaticMarkup as render } from "react-dom/server";
|
|
import { ChangelogPage } from "../src/client/components/redesign/ChangelogPage.tsx";
|
|
import { ENTRIES, NOTES } from "../src/shared/changelog.ts";
|
|
|
|
test("the changelog keeps every commit, its kind and the note's specs in the mockup layout", () => {
|
|
const html = render(<ChangelogPage notes={NOTES} entries={ENTRIES} />);
|
|
expect(html).toContain('class="rel"');
|
|
for (const entry of ENTRIES) expect(html).toContain(`>${entry.ref}<`);
|
|
for (const label of ["New", "Fixed", "Games & sources"])
|
|
expect(html).toContain(label);
|
|
const withSpec = NOTES.find((n) => (n.specs ?? []).length > 0);
|
|
if (withSpec)
|
|
expect(html).toContain(`Spec: ${withSpec.specs![0]!.split("/").at(-1)}`);
|
|
expect(html).toContain("Other changes");
|
|
});
|