refactor(ui): localize progress and loading styles

This commit is contained in:
2026-08-09 13:42:09 +05:30
parent fdf6282aed
commit b6bd5cfcb7
6 changed files with 151 additions and 63 deletions
+5
View File
@@ -1,4 +1,5 @@
import { expect, test } from "bun:test";
import { gzipSync } from "bun";
import { readFileSync } from "node:fs";
import { join } from "node:path";
import { compileWireFile, parse } from "../../compiler/src/index.ts";
@@ -18,6 +19,10 @@ test("bundled UI assets are discoverable and readable", () => {
expect(uiCss()).toContain("--wire-");
});
test("global UI CSS stays below its migration ratchet", () => {
expect(gzipSync(new TextEncoder().encode(uiCss())).length).toBeLessThanOrEqual(26_004);
});
test("generated component reference documents every bundled component and its props", () => {
const reference = JSON.parse(
readFileSync(join(uiComponentsDir(), "..", "component-reference.json"), "utf8"),