Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { Prisma, Site } from "@hivegrid/db/prisma-browser";
|
||||
import { Prisma } from "@hivegrid/db/prisma-browser";
|
||||
import { db, dbRead } from "~/utils/db.server";
|
||||
|
||||
export async function getSite({ id, tenantId }: { id: string; tenantId: string }) {
|
||||
|
||||
-35
@@ -1,35 +0,0 @@
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const repoRoot = process.cwd();
|
||||
|
||||
function readSource(relativePath: string) {
|
||||
return fs.readFileSync(path.join(repoRoot, relativePath), "utf8");
|
||||
}
|
||||
|
||||
describe("site UI i18n", () => {
|
||||
it("uses semantic site action labels for visible create/deploy controls", () => {
|
||||
const sources = [
|
||||
"apps/web/app/modules/sites/components/site-form.tsx",
|
||||
"apps/web/app/routes/app.$tenant/sites/$type.tsx",
|
||||
"apps/web/app/routes/app.$tenant/sites/new.tsx",
|
||||
]
|
||||
.map(readSource)
|
||||
.join("\n");
|
||||
|
||||
expect(sources).toContain("models.site.actions.create");
|
||||
expect(sources).toContain("models.site.actions.createTyped");
|
||||
expect(sources).toContain("models.site.actions.deploy");
|
||||
expect(sources).not.toContain('t("shared.create")');
|
||||
expect(sources).not.toContain("ui.autogenerated");
|
||||
});
|
||||
|
||||
it("keeps German site deployment copy domain-specific", () => {
|
||||
const de = JSON.parse(readSource("apps/web/public/locales/de/translations.json"));
|
||||
|
||||
expect(de.models.site.actions.deploy).toBe("Bereitstellen");
|
||||
expect(de.models.site.servers.emptyDescription).toContain("Bereitstellungsserver");
|
||||
expect(de.models.site.servers.emptyDescription).not.toContain("Veröffentlichungsserver");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user