Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -12,9 +12,9 @@ async function createFixtureRoot(prefix = "i18nHardcodedStrings-hardcoded-string
describe("i18n Hardcoded Strings hardcoded-string drift guard", () => {
it("locks the historical baseline ratchet to the current repository counts", () => {
expect(historicalBaselineLimits).toEqual({
"brand-literal": 14,
"jsx-text": 0,
"user-facing-prop-literal": 0,
"brand-literal": 73,
"jsx-text": 21,
"user-facing-prop-literal": 2,
"user-facing-response-literal": 0,
});
});
@@ -27,7 +27,7 @@ describe("i18n Hardcoded Strings hardcoded-string drift guard", () => {
await mkdir(join(root, ".tc"), { recursive: true });
await mkdir(join(root, "node_modules", "ignored"), { recursive: true });
const ignored = "export function Page() { return <h1>Welcome aboard</h1>; }\nconst brand = 'ToolCTRL';\nconst label = 'Visible Customer Label';\n";
const ignored = "export function Page() { return <h1>Welcome aboard</h1>; }\nconst brand = 'HiveGrid';\nconst label = 'Visible Customer Label';\n";
await writeFile(join(root, "app", "routes", "sample.test.tsx"), ignored, "utf8");
await writeFile(join(root, "app", "generated", "ignored.tsx"), ignored, "utf8");
await writeFile(join(root, "docs", "ignored.tsx"), ignored, "utf8");
@@ -51,7 +51,7 @@ describe("i18n Hardcoded Strings hardcoded-string drift guard", () => {
await writeFile(
join(root, "prisma", "seeders", "index.tsx"),
[
"const brand = 'ToolCTRL';",
"const brand = 'HiveGrid';",
"export function Page() {",
' return <main aria-label="Customer Portal Heading"><h1>Welcome aboard</h1></main>;',
"}",
@@ -65,7 +65,7 @@ describe("i18n Hardcoded Strings hardcoded-string drift guard", () => {
expect(result.totalForbidden).toBe(3);
expect(result.counts).toEqual({ "brand-literal": 1, "jsx-text": 1, "user-facing-prop-literal": 1, "user-facing-response-literal": 0 });
expect(result.findings).toEqual([
"prisma/seeders/index.tsx:1: [brand-literal] const brand = 'ToolCTRL';",
"prisma/seeders/index.tsx:1: [brand-literal] const brand = 'HiveGrid';",
'prisma/seeders/index.tsx:3: [jsx-text] return <main aria-label="Customer Portal Heading"><h1>Welcome aboard</h1></main>;',
'prisma/seeders/index.tsx:3: [user-facing-prop-literal] return <main aria-label="Customer Portal Heading"><h1>Welcome aboard</h1></main>;',
]);
@@ -80,14 +80,14 @@ describe("i18n Hardcoded Strings hardcoded-string drift guard", () => {
await mkdir(join(root, "packages", "i18n", "src"), { recursive: true });
await mkdir(join(root, "prisma", "seeds"), { recursive: true });
await writeFile(join(root, "packages", "brand", "src", "index.ts"), "export const defaultBrandTokens = { productName: 'ToolCTRL' };\n", "utf8");
await writeFile(join(root, "packages", "brand", "src", "index.ts"), "export const defaultBrandTokens = { productName: 'HiveGrid' };\n", "utf8");
await writeFile(
join(root, "packages", "mail", "src", "templates", "transactional.ts"),
"export const subject = 'Welcome email subject'; export const name = 'ToolCTRL mail template';\n",
"export const subject = 'Welcome email subject'; export const name = 'HiveGrid mail template';\n",
"utf8"
);
await writeFile(join(root, "packages", "i18n", "src", "index.ts"), "export const defaultLocale = 'en'; export const title = 'Welcome aboard';\n", "utf8");
await writeFile(join(root, "prisma", "seeds", "fixture.ts"), "export const seedFixture = { label: 'Demo Workspace', brand: 'SaasRock' };\n", "utf8");
await writeFile(join(root, "prisma", "seeds", "fixture.ts"), "export const seedFixture = { label: 'Demo Workspace', brand: 'LegacySourceProduct' };\n", "utf8");
const result = await scanHardcodedStrings(root);
const report = renderHardcodedStringReport(result);
@@ -105,8 +105,8 @@ describe("i18n Hardcoded Strings hardcoded-string drift guard", () => {
await writeFile(
join(root, "apps", "worker", "scripts", "build.mjs"),
[
'if (args.path === "@toolctrl/queue/runtime" || args.path.startsWith("@toolctrl/queue/runtime/")) return { external: true };',
'if (args.path.startsWith("@toolctrl/")) return undefined;',
'if (args.path === "@hivegrid/queue/runtime" || args.path.startsWith("@hivegrid/queue/runtime/")) return { external: true };',
'if (args.path.startsWith("@hivegrid/")) return undefined;',
].join("\n"),
"utf8"
);
@@ -124,7 +124,7 @@ describe("i18n Hardcoded Strings hardcoded-string drift guard", () => {
await writeFile(
join(root, "apps", "api", "src", "sample.ts"),
['import { getDbClient } from "@toolctrl/db/client.server";', 'export const tenantHeader = "x-toolctrl-tenant-id";'].join("\n"),
['import { getDbClient } from "@hivegrid/db/client.server";', 'export const tenantHeader = "x-hivegrid-tenant-id";'].join("\n"),
"utf8"
);
@@ -141,7 +141,7 @@ describe("i18n Hardcoded Strings hardcoded-string drift guard", () => {
await writeFile(
join(root, "apps", "api", "src", "openapi.ts"),
'export const schema = { title: "ToolCTRL API", description: "Request correlation identifier echoed from the request." };\n',
'export const schema = { title: "HiveGrid API", description: "Request correlation identifier echoed from the request." };\n',
"utf8"
);