Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
Binary file modified apps/web/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/favicon.ico
Binary file not shown.
Binary file modified assets/dev/blueprint-ios-1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/dev/blueprint-macos-1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/dev/blueprint-universal-1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/dev/blueprint-web-apple-touch-180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/dev/blueprint-web-favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/dev/blueprint-web-favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/dev/blueprint-web-favicon.ico
Binary file not shown.
Binary file modified assets/dev/blueprint-windows.ico
Binary file not shown.
Binary file modified assets/nightly/nightly-ios-1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/nightly/nightly-macos-1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/nightly/nightly-universal-1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/nightly/nightly-web-apple-touch-180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/nightly/nightly-web-favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/nightly/nightly-web-favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/nightly/nightly-web-favicon.ico
Binary file not shown.
Binary file modified assets/nightly/nightly-windows.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions assets/prod/app-icon.icon/Assets/text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/prod/app-icon.icon/icon.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"image-name": "text.svg",
"name": "Text",
"position": {
"scale": 10,
"scale": 8.5,
"translation-in-points": [0, 0]
}
}
Expand Down
Binary file modified assets/prod/black-ios-1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/prod/black-macos-1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/prod/black-universal-1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/prod/t3-black-web-apple-touch-180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/prod/t3-black-web-favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/prod/t3-black-web-favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/prod/t3-black-web-favicon.ico
Binary file not shown.
Binary file modified assets/prod/t3-black-windows.ico
Binary file not shown.
52 changes: 52 additions & 0 deletions scripts/lib/icon-source-consistency.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// @effect-diagnostics nodeBuiltinImport:off - Tests compare static icon source files directly.
import * as NodeFS from "node:fs";
import * as NodePath from "node:path";
import * as NodeURL from "node:url";

import { describe, expect, it } from "vite-plus/test";

const REPOSITORY_ROOT = NodePath.join(
NodePath.dirname(NodeURL.fileURLToPath(import.meta.url)),
"..",
"..",
);
const ICON_PROJECTS = ["dev", "nightly", "prod"].map((variant) =>
NodePath.join(REPOSITORY_ROOT, "assets", variant, "app-icon.icon"),
);

interface IconLayer {
readonly name?: string;
readonly position?: {
readonly scale?: number;
readonly "translation-in-points"?: ReadonlyArray<number>;
};
}

interface IconProject {
readonly groups?: ReadonlyArray<{ readonly layers?: ReadonlyArray<IconLayer> }>;
}

const readTextLayer = (projectPath: string) => {
const project = JSON.parse(
NodeFS.readFileSync(NodePath.join(projectPath, "icon.json"), "utf8"),
) as IconProject;
return project.groups
?.flatMap((group) => group.layers ?? [])
.find((layer) => layer.name === "Text");
};

describe("icon sources", () => {
it("keeps the visible T3 mark identical across all app variants", () => {
const textSources = ICON_PROJECTS.map((projectPath) =>
NodeFS.readFileSync(NodePath.join(projectPath, "Assets", "text.svg"), "utf8"),
);

expect(new Set(textSources).size).toBe(1);
for (const projectPath of ICON_PROJECTS) {
expect(readTextLayer(projectPath)?.position).toEqual({
scale: 8.5,
"translation-in-points": [0, 0],
});
}
});
});
Loading