Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/components/public-account-entry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function PublicAccountEntry({
<div className="portal-home">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[INFO] Inconsistent canonical mark source paths in comments

The comment in public-account-entry.tsx refers to brand/mark.svg while the comment in public-auth-routes.ts refers to public/brand/mark.svg. The repository may contain both brand/mark.svg and web/public/brand/mark.svg; using a consistent, unambiguous path (e.g., repo-root-relative brand/mark.svg or web-relative public/brand/mark.svg) avoids confusion about which file is the master vector.

<section className="portal-section">
<div className="portal-container public-account-entry">
{/* Exact founder raster; do not restyle or substitute a traced SVG. */}
{/* Pinned app-icon raster generated from brand/mark.svg; do not restyle. */}
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
className="public-account-mark"
Expand Down
2 changes: 1 addition & 1 deletion web/lib/public-auth-routes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe("CWC destinations", () => {
});

describe("canonical mark", () => {
it("ships the exact founder raster, not a redrawn substitute", () => {
it("ships the pinned raster generated from the canonical vector", () => {
const bytes = readFileSync(new URL("../public/brand/codewhale-mark.png", import.meta.url));
expect(createHash("sha256").update(bytes).digest("hex")).toBe(CANONICAL_MARK_SHA256);
expect(CANONICAL_MARK_SRC).toBe("/brand/codewhale-mark.png");
Expand Down
9 changes: 7 additions & 2 deletions web/lib/public-auth-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@
import { APP_URL } from "./i18n/links";
import { pathLocale } from "./i18n/path";

/** Exact founder raster (1254×1254) used on public account-entry pages. */
/**
* App-icon raster (1254×1254) used on public account-entry pages: the canonical
* mark in white on a navy field, generated from `public/brand/mark.svg`. The
* vector is the master — never hand-edit this PNG, regenerate it. Pinned by
* hash so a redrawn or stale substitute fails the test rather than shipping.
*/
export const CANONICAL_MARK_SRC = "/brand/codewhale-mark.png";
export const CANONICAL_MARK_SHA256 =
"5a2a34283560a3f0d65ab966ae49b88f67f5f26d659791213fa1120c1bc8929d";
"8b4c25460cb2a913bc42e4b97a06a09e4fd3bb31a93dc2da169a2858bbb34f01";

export const APP_AUTH_CALLBACK_URL = `${APP_URL}/auth/callback`;

Expand Down
Binary file modified web/public/brand/codewhale-mark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading