mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-03 23:37:00 +01:00
* fix(auth): Loki's sign-in in AccountKit's order and words Every other app on AccountKit's screens draws OrangeCat, the passkey, the password, the sign-in link and then recovery, and links between the pages with "Create an account" / "Sign in". Loki put "Forgot password?" under the password field and said "Welcome back", "Create one free →" and "Already have an account? Sign in →". The sign-in and sign-up cards now take those words from AccountKit's labels, and recovery is a full-width row after the sign-in link. Loki still draws these forms itself; moving them onto SignInForm/SignUpForm/AccountPanel is the next step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 * test(auth): the shared sign-in's words come from AccountKit, not a copy The expectation named Apple and X, which AccountKit's published label no longer does, so the test failed on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 --------- Co-authored-by: Claude <noreply@anthropic.com>
23 lines
1.0 KiB
TypeScript
23 lines
1.0 KiB
TypeScript
import assert from "node:assert/strict";
|
|
import { DIGEST_CADENCES } from "../../src/db/schema/notification-preferences";
|
|
import { DIGEST_CADENCE_COPY, EMAIL_THEME, MAIL_KINDS, mailSubject } from "../../src/config/comms";
|
|
import { AUTH_COPY } from "../../src/config/auth";
|
|
import { NAV } from "../../src/config/navigation";
|
|
import { PALETTE } from "../../src/lib/palette";
|
|
|
|
for (const cadence of DIGEST_CADENCES) {
|
|
assert.ok(DIGEST_CADENCE_COPY[cadence].label, `cadence ${cadence} has a label`);
|
|
}
|
|
|
|
assert.ok(MAIL_KINDS.includes("digest"));
|
|
assert.match(mailSubject("verify"), /email/i);
|
|
assert.match(mailSubject("feedback_shipped", "kivvi"), /kivvi/);
|
|
assert.ok(AUTH_COPY.forgot.title, "auth copy has the recovery title");
|
|
assert.equal(NAV.prompts.label, "Prompts");
|
|
|
|
assert.equal(EMAIL_THEME.header, PALETTE.dark.surfacePage);
|
|
assert.equal(EMAIL_THEME.page, PALETTE.light.surfacePage);
|
|
assert.notEqual(EMAIL_THEME.header, PALETTE.zinc[950], "email header uses brand surface, not zinc");
|
|
|
|
console.log("✓ comms SSOT tests passed");
|