A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
refactor(stylesheet): move Semantic CSS to the browser (#3329)
Amruth Pillai9509b5bc2ec1
diff --git a/apps/server/package.json b/apps/server/package.jsonindex 54551e9e1..89007f8f4 100644--- a/apps/server/package.json+++ b/apps/server/package.json@@ -52,7 +52,6 @@"@reactive-resume/db": "workspace:*","@reactive-resume/env": "workspace:*","@reactive-resume/mcp": "workspace:*",- "@reactive-resume/pdf": "workspace:*","@reactive-resume/schema": "workspace:*","@reactive-resume/utils": "workspace:*","@sindresorhus/slugify": "^3.0.0",@@ -61,7 +60,6 @@"ai": "^7.0.58","bcrypt": "^6.0.0","better-auth": "1.6.26",- "canonicalize": "^3.0.0","cjk-regex": "^3.4.0","css-tree": "^3.2.1","deepmerge-ts": "^7.1.5",@@ -74,7 +72,6 @@"node-html-parser": "^9.0.1","nodemailer": "^9.0.5","ollama-ai-provider-v2": "^4.0.1",- "pdfjs-dist": "^6.2.108","pg": "^8.23.0","phosphor-icons-react-pdf": "^0.1.3","react": "^19.2.8",diff --git a/apps/server/src/http/app.test.ts b/apps/server/src/http/app.test.tsindex d556f07c5..c41690342 100644--- a/apps/server/src/http/app.test.ts+++ b/apps/server/src/http/app.test.ts@@ -131,10 +131,10 @@ describe("createApp", () => {it("uses the transport address for public PDF fallback despite rotated forwarding headers", async () => {const { createApp } = await import("./app");const app = createApp();- const first = new Request("http://localhost:3001/api/resumes/jane/resume/pdf?reason=render-data-hash", {+ const first = new Request("http://localhost:3001/api/resumes/jane/resume/pdf", {headers: { "x-forwarded-for": "198.51.100.1" },});- const rotated = new Request("http://localhost:3001/api/resumes/jane/resume/pdf?reason=render-data-hash", {+ const rotated = new Request("http://localhost:3001/api/resumes/jane/resume/pdf", {headers: { "x-forwarded-for": "198.51.100.2" },});const env = transportEnv("203.0.113.9");@@ -159,8 +159,8 @@ describe("createApp", () => {const unknownRpcRequest = new Request("http://localhost:3001/api/rpc", {headers: { "cf-connecting-ip": "198.51.100.2" },});- const trustedOpenApiRequest = new Request("http://localhost:3001/api/openapi/resumes/jane/resume/style-projection");- const unknownOpenApiRequest = new Request("http://localhost:3001/api/openapi/resumes/jane/resume/style-projection");+ const trustedOpenApiRequest = new Request("http://localhost:3001/api/openapi/resumes/jane/resume");+ const unknownOpenApiRequest = new Request("http://localhost:3001/api/openapi/resumes/jane/resume");await app.fetch(trustedRpcRequest, transportEnv("203.0.113.9"));await app.fetch(unknownRpcRequest);diff --git a/apps/server/src/http/public-resume-pdf.test.ts b/apps/server/src/http/public-resume-pdf.test.tsindex 1073ae364..8dfed2b95 100644--- a/apps/server/src/http/public-resume-pdf.test.ts+++ b/apps/server/src/http/public-resume-pdf.test.ts@@ -6,16 +6,6 @@ const mocks = vi.hoisted(() => ({vi.mock("@reactive-resume/api/features/resume/public-pdf", () => ({createPublicResumePdf: mocks.createPublicResumePdf,- PUBLIC_RESUME_PDF_MISMATCH_REASONS: [- "missing-projection",- "format-version",- "language-version",- "semantic-tree-version",- "registry-fingerprint",- "adapter-fingerprint",- "render-data-hash",- "invalid-projection",- ],}));const { handlePublicResumePdf } = await import("./public-resume-pdf");@@ -24,18 +14,15 @@ const trustedClient = "203.0.113.9";describe("handlePublicResumePdf", () => {beforeEach(() => vi.clearAllMocks());- it("returns the authorized fallback PDF with strict mismatch metadata and cache policy", async () => {+ it("returns the authorized on-demand PDF without forwarding compatibility metadata", async () => {const body = new File(["%PDF"], "Ada_Lovelace.pdf", { type: "text/plain" });mocks.createPublicResumePdf.mockResolvedValueOnce({body,filename: "Ada_Lovelace.pdf",});- const registry = "0".repeat(64);- const adapter = "1".repeat(64);- const request = new Request(- `https://example.com/api/resumes/jane/resume/pdf?reason=render-data-hash®istryFingerprint=${registry}&adapterFingerprint=${adapter}`,- { headers: { "x-forwarded-for": "203.0.113.7" } },- );+ const request = new Request("https://example.com/api/resumes/jane/resume/pdf?ignored=true", {+ headers: { "x-forwarded-for": "203.0.113.7" },+ });const response = await handlePublicResumePdf(request, "jane", "resume", trustedClient);@@ -50,13 +37,10 @@ describe("handlePublicResumePdf", () => {slug: "resume",requestHeaders: request.headers,trustedClient,- mismatchReason: "render-data-hash",- clientRegistryFingerprint: registry,- clientAdapterFingerprint: adapter,});});- it("defaults a missing mismatch reason and keeps password/private responses uncacheable", async () => {+ it("keeps password and private responses uncacheable", async () => {mocks.createPublicResumePdf.mockResolvedValueOnce({body: new File(["%PDF"], "resume.pdf", { type: "application/pdf" }),filename: "resume.pdf",@@ -66,13 +50,15 @@ describe("handlePublicResumePdf", () => {const response = await handlePublicResumePdf(request, "jane", "resume", trustedClient);expect(response.headers.get("Cache-Control")).toBe("private, no-store");- expect(mocks.createPublicResumePdf).toHaveBeenCalledWith(- expect.objectContaining({ mismatchReason: "missing-projection" }),- );+ expect(mocks.createPublicResumePdf).toHaveBeenCalledWith({+ username: "jane",+ slug: "resume",+ requestHeaders: request.headers,+ trustedClient,+ });});it.each([- [{ code: "BAD_REQUEST" }, 400],[{ code: "NEED_PASSWORD" }, 401],[{ code: "NOT_FOUND" }, 404],[{ code: "RATE_LIMIT_EXCEEDED" }, 429],@@ -90,20 +76,4 @@ describe("handlePublicResumePdf", () => {expect(response.status).toBe(status);expect(response.headers.get("Cache-Control")).toBe("private, no-store");});-- it.each(["?reason=private-source", "?registryFingerprint=unsafe", "?adapterFingerprint=unsafe"])(- "rejects invalid fallback metadata before the API service",- async (search) => {- const response = await handlePublicResumePdf(- new Request(`https://example.com/api/resumes/jane/resume/pdf${search}`),- "jane",- "resume",- trustedClient,- );-- expect(response.status).toBe(400);- expect(response.headers.get("Cache-Control")).toBe("private, no-store");- expect(mocks.createPublicResumePdf).not.toHaveBeenCalled();- },- );});diff --git a/apps/server/src/http/public-resume-pdf.ts b/apps/server/src/http/public-resume-pdf.tsindex ee67acfec..ae15ee156 100644--- a/apps/server/src/http/public-resume-pdf.ts+++ b/apps/server/src/http/public-resume-pdf.ts@@ -1,57 +1,28 @@-import type { PublicResumePdfMismatchReason } from "@reactive-resume/api/features/resume/public-pdf";-import {- createPublicResumePdf,- PUBLIC_RESUME_PDF_MISMATCH_REASONS,-} from "@reactive-resume/api/features/resume/public-pdf";+import { createPublicResumePdf } from "@reactive-resume/api/features/resume/public-pdf";const noStoreResponse = (body: string, status: number) =>new Response(body, { status, headers: { "Cache-Control": "private, no-store" } });const errorStatus = (error: unknown): number => {const code = typeof error === "object" && error && "code" in error ? (error as { code?: unknown }).code : undefined;- if (code === "BAD_REQUEST") return 400;if (code === "NEED_PASSWORD") return 401;if (code === "NOT_FOUND") return 404;if (code === "RATE_LIMIT_EXCEEDED") return 429;return 500;};-const fingerprint = (value: string | null): string | undefined => {- if (value === null) return;- return /^[a-f0-9]{64}$/.test(value) ? value : undefined;-};-export async function handlePublicResumePdf(request: Request,username: string,slug: string,trustedClient = "unknown",): Promise<Response> {- const searchParams = new URL(request.url).searchParams;- const rawReason = searchParams.get("reason") ?? "missing-projection";- if (!PUBLIC_RESUME_PDF_MISMATCH_REASONS.includes(rawReason as PublicResumePdfMismatchReason)) {- return noStoreResponse("Invalid fallback metadata", 400);- }- const rawRegistryFingerprint = searchParams.get("registryFingerprint");- const rawAdapterFingerprint = searchParams.get("adapterFingerprint");- const clientRegistryFingerprint = fingerprint(rawRegistryFingerprint);- const clientAdapterFingerprint = fingerprint(rawAdapterFingerprint);- if (- (rawRegistryFingerprint !== null && clientRegistryFingerprint === undefined) ||- (rawAdapterFingerprint !== null && clientAdapterFingerprint === undefined)- ) {- return noStoreResponse("Invalid fallback metadata", 400);- }-try {const result = await createPublicResumePdf({username,slug,requestHeaders: request.headers,trustedClient,- mismatchReason: rawReason as PublicResumePdfMismatchReason,- ...(clientRegistryFingerprint ? { clientRegistryFingerprint } : {}),- ...(clientAdapterFingerprint ? { clientAdapterFingerprint } : {}),});return new Response(result.body, {diff --git a/apps/server/src/index.ts b/apps/server/src/index.tsindex 3bf36d1b6..dc0dfc48c 100644--- a/apps/server/src/index.ts+++ b/apps/server/src/index.ts@@ -2,7 +2,6 @@ import { pathToFileURL } from "node:url";import { serve } from "@hono/node-server";import { env } from "@reactive-resume/env/server";import { createApp } from "./http/app";-import { stylesheetPreflightRunner } from "./services/stylesheet-preflight";import { runStartupChecks } from "./startup/checks";export { createApp } from "./http/app";@@ -32,10 +31,6 @@ async function main() {console.info(`🚀 Up and running on http://localhost:${info.port}`);},);-- // Load the heavy PDF preflight runtime once, now, so the first semantic-CSS edit- // does not pay (and time out on) the cold worker start.- stylesheetPreflightRunner.warmup();}if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {diff --git a/apps/server/src/rpc/handler.ts b/apps/server/src/rpc/handler.tsindex 6438537af..0707a30d5 100644--- a/apps/server/src/rpc/handler.ts+++ b/apps/server/src/rpc/handler.ts@@ -3,7 +3,6 @@ import { RPCHandler } from "@orpc/server/fetch";import { BatchHandlerPlugin, RequestHeadersPlugin, StrictGetMethodPlugin } from "@orpc/server/plugins";import router from "@reactive-resume/api/routers";import { mergeResponseHeaders } from "../http/headers";-import { stylesheetPreflightRunner } from "../services/stylesheet-preflight";import { getRequestLocale } from "./locale";const rpcHandler = new RPCHandler(router, {@@ -24,7 +23,6 @@ export async function handleRpc(request: Request, trustedClient = "unknown") {reqHeaders: request.headers,resHeaders,trustedClient,- stylesheetPreflightRunner,},});diff --git a/apps/server/src/services/stylesheet-preflight.test.ts b/apps/server/src/services/stylesheet-preflight.test.tsdeleted file mode 100644index d04b51316..000000000--- a/apps/server/src/services/stylesheet-preflight.test.ts+++ /dev/null@@ -1,332 +0,0 @@-import { afterEach, describe, expect, it } from "vitest";-import { defaultResumeData } from "@reactive-resume/schema/resume/default";-import { createStylesheetPreflightRunner, STYLESHEET_PREFLIGHT_LIMITS } from "./stylesheet-preflight";--const validStylesheet = {- languageVersion: 1,- text: "@version 1;",-} as const;--const input = {- data: defaultResumeData,- template: defaultResumeData.metadata.template,- stylesheet: validStylesheet,-} as const;--// Runners now own a long-lived, reused worker; destroy them so no worker thread-// outlives its test.-const runners: Array<{ destroy(): Promise<void> }> = [];-const track = <T extends { destroy(): Promise<void> }>(runner: T): T => {- runners.push(runner);- return runner;-};-afterEach(async () => {- await Promise.all(runners.splice(0).map((runner) => runner.destroy()));-});--const memoryExhaustionWorker = new URL(- `data:text/javascript,${encodeURIComponent(`- const retained = [];- while (true) {- const batch = Array.from({ length: 100_000 }, (_, index) => ({ batch: retained.length, index }));- retained.push(batch);- }- `)}`,-);--const failedWorker = new URL(- `data:text/javascript,${encodeURIComponent('throw new Error("sensitive worker details");')}`,-);--// Counts how many preflights this single worker instance served so a reuse test-// can prove the worker is not respawned per request.-const reuseCountingWorker = new URL(- `data:text/javascript,${encodeURIComponent(`- import { parentPort } from "node:worker_threads";- let served = 0;- parentPort.postMessage({ type: "ready" });- parentPort.on("message", (message) => {- if (message?.type !== "preflight") return;- served += 1;- parentPort.postMessage({- type: "result",- requestId: message.requestId,- result: { ok: true, pageCount: 1, byteCount: served, diagnostics: [] },- });- });- `)}`,-);--const delayedSuccessfulWorker = new URL(- `data:text/javascript,${encodeURIComponent(`- import { parentPort } from "node:worker_threads";- parentPort.postMessage({ type: "ready" });- parentPort.on("message", (message) => {- if (message?.type !== "preflight") return;- setTimeout(() => {- parentPort.postMessage({- type: "result",- requestId: message.requestId,- result: {- ok: true,- pageCount: 1,- byteCount: Number(message.input.data.basics.name),- diagnostics: [],- },- });- }, 300);- });- `)}`,-);--const delayedReadyWorker = new URL(- `data:text/javascript,${encodeURIComponent(`- import { parentPort } from "node:worker_threads";- parentPort.on("message", (message) => {- if (message?.type !== "preflight") return;- setTimeout(() => {- parentPort.postMessage({- type: "result",- requestId: message.requestId,- result: { ok: true, pageCount: 1, byteCount: 1, diagnostics: [] },- });- }, 10);- });- setTimeout(() => parentPort.postMessage({ type: "ready" }), 50);- `)}`,-);--const neverCompletesWorker = new URL(- `data:text/javascript,${encodeURIComponent(`- import { parentPort } from "node:worker_threads";- parentPort.postMessage({ type: "ready" });- setInterval(() => {}, 1_000);- `)}`,-);--const synchronousFailureWorker = new URL("https://example.com/stylesheet-preflight.mjs");--const numberedInput = (number: number) => ({- ...input,- data: {- ...input.data,- basics: {- ...input.data.basics,- name: String(number),- },- },-});--const invalidInput = () => {- const data = structuredClone(defaultResumeData);- data.customSections = [- {- id: "custom-experience",- type: "experience",- title: "Experience",- icon: "",- columns: 1,- hidden: false,- keepTogether: false,- startOnNewPage: false,- items: [{ id: "summary-shaped-item", hidden: false, content: "<p>Missing company</p>" }],- } as never,- ];- return { ...input, data };-};--describe("stylesheet PDF preflight worker", () => {- it("keeps the production resource policy fixed and immutable", () => {- expect(STYLESHEET_PREFLIGHT_LIMITS).toEqual({- timeoutMs: 30_000,- maxPages: 20,- maxBytes: 10_000_000,- maxPageWidthPt: 2_000,- maxPageHeightPt: 20_000,- maxPageAreaPt2: 20_000_000,- maxOldGenerationMb: 256,- maxConcurrentWorkers: 1,- maxQueuedRequests: 32,- });- expect(Object.isFrozen(STYLESHEET_PREFLIGHT_LIMITS)).toBe(true);- });-- it("accepts a bounded candidate render in an isolated worker", async () => {- const runner = track(createStylesheetPreflightRunner({ timeoutMs: 15_000 }));-- const result = await runner.run(input);-- expect(result).toEqual(- expect.objectContaining({- ok: true,- pageCount: 1,- byteCount: expect.any(Number),- }),- );- if (!result.ok) throw new Error(`Expected successful preflight, received ${result.code}.`);- expect(result.byteCount).toBeGreaterThan(0);- expect(runner.activeWorkerCount).toBe(0);- }, 45_000);-- it("reuses one warm worker across sequential requests instead of cold-starting each one", async () => {- const runner = track(createStylesheetPreflightRunner({}, reuseCountingWorker));-- const first = await runner.run(input);- const second = await runner.run(input);- const third = await runner.run(input);-- // A single reused worker increments its per-instance counter; a per-request- // worker would report byteCount 1 every time.- expect([first, second, third].map((result) => (result.ok ? result.byteCount : -1))).toEqual([1, 2, 3]);- expect(runner.activeWorkerCount).toBe(0);- expect(runner.queuedPreflightCount).toBe(0);- });-- it("preserves structured resume-data failures across the worker boundary", async () => {- const runner = track(createStylesheetPreflightRunner({ timeoutMs: 15_000 }));-- const result = runner.run(invalidInput());-- await expect(result).rejects.toMatchObject({- name: "ZodError",- issues: expect.arrayContaining([expect.objectContaining({ path: ["customSections", 0, "items", 0, "company"] })]),- });- expect(runner.activeWorkerCount).toBe(0);- expect(runner.queuedPreflightCount).toBe(0);- }, 20_000);-- it("terminates a worker when the render exceeds its deadline", async () => {- const runner = track(createStylesheetPreflightRunner({ timeoutMs: 1 }, neverCompletesWorker));-- const result = await runner.run(input);-- expect(result).toEqual(expect.objectContaining({ ok: false, code: "STYLESHEET_PREFLIGHT_TIMEOUT" }));- expect(runner.activeWorkerCount).toBe(0);- expect(runner.queuedPreflightCount).toBe(0);- });-- it("starts the authored render deadline after the worker runtime is ready", async () => {- const runner = track(createStylesheetPreflightRunner({ timeoutMs: 20 }, delayedReadyWorker));-- await expect(runner.run(input)).resolves.toEqual(expect.objectContaining({ ok: true, pageCount: 1 }));- expect(runner.activeWorkerCount).toBe(0);- });-- it("returns deterministic output byte and page limit codes", async () => {- const byteRunner = track(createStylesheetPreflightRunner({ maxBytes: 16 }));- const pageRunner = track(createStylesheetPreflightRunner({ maxPages: 0 }));-- await expect(byteRunner.run(input)).resolves.toEqual(- expect.objectContaining({ ok: false, code: "STYLESHEET_PREFLIGHT_BYTE_LIMIT" }),- );- await expect(pageRunner.run(input)).resolves.toEqual(- expect.objectContaining({ ok: false, code: "STYLESHEET_PREFLIGHT_PAGE_LIMIT" }),- );- expect(byteRunner.activeWorkerCount).toBe(0);- expect(pageRunner.activeWorkerCount).toBe(0);- }, 30_000);-- it("maps worker heap exhaustion to a controlled memory-limit result", async () => {- const runner = track(- createStylesheetPreflightRunner({ maxOldGenerationMb: 8, timeoutMs: 10_000 }, memoryExhaustionWorker),- );-- const result = await runner.run(input);-- expect(result).toEqual(expect.objectContaining({ ok: false, code: "STYLESHEET_PREFLIGHT_MEMORY_LIMIT" }));- expect(runner.activeWorkerCount).toBe(0);- }, 15_000);-- it("does not expose internal errors from a failed worker bootstrap", async () => {- const runner = track(createStylesheetPreflightRunner({}, failedWorker));-- const result = await runner.run(input);-- expect(result).toEqual({- ok: false,- code: "STYLESHEET_PREFLIGHT_WORKER_FAILED",- message: "The PDF preflight worker failed.",- diagnostics: [],- });- expect(runner.activeWorkerCount).toBe(0);- expect(runner.queuedPreflightCount).toBe(0);- });-- it("surfaces sanitized render failures from inside the worker catch path", async () => {- const throwingWorker = new URL(- `data:text/javascript,${encodeURIComponent(`- import { parentPort } from "node:worker_threads";- parentPort.postMessage({ type: "ready" });- parentPort.on("message", (message) => {- if (message?.type !== "preflight") return;- parentPort.postMessage({- type: "result",- requestId: message.requestId,- result: {- ok: false,- code: "STYLESHEET_PREFLIGHT_WORKER_FAILED",- message: "The PDF preflight worker failed. (Error: Canvas is already closed)",- diagnostics: [],- },- });- });- `)}`,- );- const runner = track(createStylesheetPreflightRunner({ timeoutMs: 5_000 }, throwingWorker));-- const result = await runner.run(input);-- expect(result).toEqual({- ok: false,- code: "STYLESHEET_PREFLIGHT_WORKER_FAILED",- message: "The PDF preflight worker failed. (Error: Canvas is already closed)",- diagnostics: [],- });- });-- it("bounds concurrent workers and queued requests without charging queue time to the worker deadline", async () => {- const runner = track(- createStylesheetPreflightRunner(- {- timeoutMs: 500,- maxConcurrentWorkers: 1,- maxQueuedRequests: 2,- },- delayedSuccessfulWorker,- ),- );- const completionOrder: number[] = [];- const accepted = [1, 2, 3].map((number) =>- runner.run(numberedInput(number)).then((result) => {- if (result.ok) completionOrder.push(result.byteCount);- return result;- }),- );- const rejected = runner.run(numberedInput(4));-- expect(runner.activeWorkerCount).toBe(1);- expect(runner.queuedPreflightCount).toBe(2);- await expect(rejected).resolves.toEqual(- expect.objectContaining({- code: "STYLESHEET_PREFLIGHT_WORKER_FAILED",- message: "The PDF preflight queue is full.",- }),- );- const results = await Promise.all(accepted);-- expect(results.every((result) => result.ok)).toBe(true);- expect(completionOrder).toEqual([1, 2, 3]);- expect(runner.activeWorkerCount).toBe(0);- expect(runner.queuedPreflightCount).toBe(0);- }, 5_000);-- it("does not leak a slot when the worker constructor throws synchronously", async () => {- const runner = track(createStylesheetPreflightRunner({}, synchronousFailureWorker));-- await expect(runner.run(input)).resolves.toEqual(- expect.objectContaining({ ok: false, code: "STYLESHEET_PREFLIGHT_WORKER_FAILED" }),- );- expect(runner.activeWorkerCount).toBe(0);- expect(runner.queuedPreflightCount).toBe(0);- });-});diff --git a/apps/server/src/services/stylesheet-preflight.ts b/apps/server/src/services/stylesheet-preflight.tsdeleted file mode 100644index 521c382fe..000000000--- a/apps/server/src/services/stylesheet-preflight.ts+++ /dev/null@@ -1,362 +0,0 @@-import type {- PdfPreflightFailure,- PdfPreflightResult,- StylesheetPreflightInput,- StylesheetPreflightRunner,-} from "@reactive-resume/pdf/server";-import { fileURLToPath } from "node:url";-import { Worker } from "node:worker_threads";-import { STYLESHEET_PREFLIGHT_LIMITS } from "@reactive-resume/pdf/preflight-reference";--export { STYLESHEET_PREFLIGHT_LIMITS } from "@reactive-resume/pdf/preflight-reference";--type StylesheetPreflightLimits = {- timeoutMs: number;- maxPages: number;- maxBytes: number;- maxPageWidthPt: number;- maxPageHeightPt: number;- maxPageAreaPt2: number;- maxOldGenerationMb: number;- maxConcurrentWorkers: number;- maxQueuedRequests: number;-};--const SOURCE_WORKER_LOADER_HEAP_MB = 256;-// The worker is warmed once and reused, so the one-time cold load (which is-// super-linear in available CPU — measured ~9s at 0.5 vCPU, ~53s at 0.35, ~93s at-// 0.25) is paid at startup, not per request. This ceiling must exceed that cold-// load or warmup is killed mid-bootstrap and never completes on a throttled box;-// it only bounds a genuinely stuck bootstrap and is off the per-edit path.-const WORKER_READINESS_TIMEOUT_MS = 120_000;--type SerializedPreflightCause = {- name: string;- message: string;- issues: readonly unknown[];-};--type StylesheetPreflightWorkerMessage =- | { type: "ready" }- | { type: "load_error"; message: string }- | { type: "result"; requestId: number; result: PdfPreflightResult }- | { type: "preflight_error"; requestId: number; cause: SerializedPreflightCause };--export type NodeStylesheetPreflightRunner = StylesheetPreflightRunner & {- readonly activeWorkerCount: number;- readonly queuedPreflightCount: number;- warmup(): void;- destroy(): Promise<void>;-};--const failure = (code: PdfPreflightFailure["code"], message: string): PdfPreflightFailure => ({- ok: false,- code,- message,- diagnostics: [],-});--const workerFailure = (error: Error): PdfPreflightFailure => {- const code = (error as NodeJS.ErrnoException).code;- return code === "ERR_WORKER_OUT_OF_MEMORY" || /heap out of memory/i.test(error.message)- ? failure("STYLESHEET_PREFLIGHT_MEMORY_LIMIT", "The PDF preflight worker exceeded its memory limit.")- : failure("STYLESHEET_PREFLIGHT_WORKER_FAILED", "The PDF preflight worker failed.");-};--const sourceWorkerExecArgv = () => {- const importIndex = process.execArgv.findIndex(- (argument, index, arguments_) =>- (argument === "--import" && arguments_[index + 1]?.includes("tsx")) ||- (argument.startsWith("--import=") && argument.includes("tsx")),- );- const inherited = process.execArgv[importIndex];- if (inherited?.startsWith("--import=")) return [inherited];- if (inherited === "--import") return [inherited, process.execArgv[importIndex + 1] as string];- return ["--import", import.meta.resolve("tsx")];-};--const workerLocation = () => {- const source = import.meta.url.endsWith(".ts");- return {- source,- url: source- ? new URL("../workers/stylesheet-preflight.ts", import.meta.url)- : new URL("./stylesheet-preflight-worker.mjs", import.meta.url),- // Production must not inherit parent execArgv (e.g. --import/--input-type); source workers need tsx.- execArgv: source ? sourceWorkerExecArgv() : [],- ...(source- ? {- env: {- ...process.env,- TSX_TSCONFIG_PATH: fileURLToPath(new URL("../../tsconfig.json", import.meta.url)),- },- }- : {}),- };-};--type PendingRequest = {- resolve: (result: PdfPreflightResult) => void;- reject: (cause: unknown) => void;- renderTimer?: ReturnType<typeof setTimeout>;-};--type Readiness = {- promise: Promise<Worker>;- resolve: (worker: Worker) => void;- reject: (error: Error) => void;- timer: ReturnType<typeof setTimeout>;-};--export function createStylesheetPreflightRunner(- overrides: Partial<StylesheetPreflightLimits> = {},- testWorkerUrl?: URL,-): NodeStylesheetPreflightRunner {- const limits = Object.freeze({ ...STYLESHEET_PREFLIGHT_LIMITS, ...overrides });-- let worker: Worker | undefined;- let ready = false;- let readiness: Readiness | undefined;- let destroyed = false;- let requestSeq = 0;-- const pending = new Map<number, PendingRequest>();- // ponytail: process-local, bounded admission; upgrade to a pooled/distributed queue only for multi-process coordination.- const queue: Array<{- input: StylesheetPreflightInput;- resolve: PendingRequest["resolve"];- reject: PendingRequest["reject"];- }> = [];-- const teardownWorker = () => {- const dead = worker;- worker = undefined;- ready = false;- if (readiness) {- clearTimeout(readiness.timer);- readiness.reject(new Error("Stylesheet preflight worker did not become ready."));- readiness = undefined;- }- if (!dead) return;- dead.off("message", onMessage);- dead.off("error", onError);- dead.off("exit", onExit);- void dead.terminate().catch(() => undefined);- };-- const clearPending = (requestId: number): PendingRequest | undefined => {- const entry = pending.get(requestId);- if (!entry) return undefined;- if (entry.renderTimer) clearTimeout(entry.renderTimer);- pending.delete(requestId);- return entry;- };-- const drainQueue = () => {- while (!destroyed && pending.size < limits.maxConcurrentWorkers && queue.length > 0) {- const next = queue.shift();- if (!next) return;- dispatch(next.input, next.resolve, next.reject);- }- };-- const resolveRequest = (requestId: number, result: PdfPreflightResult) => {- const entry = clearPending(requestId);- if (!entry) return;- entry.resolve(result);- drainQueue();- };-- const rejectRequest = (requestId: number, cause: unknown) => {- const entry = clearPending(requestId);- if (!entry) return;- entry.reject(cause);- drainQueue();- };-- // A crashed/exited/timed-out worker is torn down and its in-flight requests are- // failed; the next dispatch (including any queued requests) spawns a fresh one,- // so a poisoned render never lingers across requests.- const failWorker = (result: PdfPreflightFailure) => {- teardownWorker();- const stale = [...pending.keys()];- for (const requestId of stale) resolveRequest(requestId, result);- drainQueue();- };-- function onMessage(message: StylesheetPreflightWorkerMessage) {- if (message.type === "ready") {- if (readiness) {- clearTimeout(readiness.timer);- ready = true;- const resolveReady = readiness.resolve;- const readyWorker = worker;- readiness = undefined;- if (readyWorker) resolveReady(readyWorker);- }- return;- }- if (message.type === "load_error") {- failWorker(failure("STYLESHEET_PREFLIGHT_WORKER_FAILED", message.message));- return;- }- if (message.type === "result") {- resolveRequest(message.requestId, message.result);- return;- }- if (message.type === "preflight_error") {- rejectRequest(- message.requestId,- Object.assign(new Error(message.cause.message), { name: message.cause.name, issues: message.cause.issues }),- );- }- }-- function onError(error: Error) {- console.warn("[stylesheet-preflight] worker error:", error.message);- failWorker(workerFailure(error));- }-- function onExit(code: number) {- if (destroyed || (!worker && pending.size === 0)) return;- console.warn(`[stylesheet-preflight] worker exited unexpectedly (code ${code})`);- failWorker(failure("STYLESHEET_PREFLIGHT_WORKER_FAILED", "The PDF preflight worker failed."));- }-- const startWorker = (): Promise<Worker> => {- const location = testWorkerUrl ? { source: false, url: testWorkerUrl, execArgv: [] as string[] } : workerLocation();- let spawned: Worker;- try {- spawned = new Worker(location.url, {- name: "stylesheet-preflight",- resourceLimits: {- // The source-only tsx compiler heap is outside the production render budget.- maxOldGenerationSizeMb: limits.maxOldGenerationMb + (location.source ? SOURCE_WORKER_LOADER_HEAP_MB : 0),- },- execArgv: location.execArgv,- ...("env" in location ? { env: location.env } : {}),- });- } catch (error) {- return Promise.reject(error instanceof Error ? error : new Error("Failed to start PDF preflight worker."));- }-- worker = spawned;- ready = false;- // The idle reused worker must not keep the process (or a test run) alive; active- // requests stay alive through their ref'd readiness/render timers.- spawned.unref();- spawned.on("message", onMessage);- spawned.once("error", onError);- spawned.once("exit", onExit);-- let resolve!: (value: Worker) => void;- let reject!: (error: Error) => void;- const promise = new Promise<Worker>((resolvePromise, rejectPromise) => {- resolve = resolvePromise;- reject = rejectPromise;- });- const timer = setTimeout(() => {- console.warn(`[stylesheet-preflight] worker did not become ready within ${WORKER_READINESS_TIMEOUT_MS}ms`);- teardownWorker();- }, WORKER_READINESS_TIMEOUT_MS);- readiness = { promise, resolve, reject, timer };- return promise;- };-- const getReadyWorker = (): Promise<Worker> => {- if (destroyed) return Promise.reject(new Error("Stylesheet preflight worker was terminated."));- if (worker && ready) return Promise.resolve(worker);- if (readiness) return readiness.promise;- return startWorker();- };-- // One retry: a worker that failed to become ready is torn down; a second- // attempt spawns a fresh worker before the request gives up.- const waitUntilReady = async (): Promise<Worker> => {- try {- return await getReadyWorker();- } catch {- return await getReadyWorker();- }- };-- function dispatch(- input: StylesheetPreflightInput,- resolve: PendingRequest["resolve"],- reject: PendingRequest["reject"],- ) {- const requestId = ++requestSeq;- pending.set(requestId, { resolve, reject });- void waitUntilReady()- .then((readyWorker) => {- const entry = pending.get(requestId);- if (!entry) return;- entry.renderTimer = setTimeout(() => {- // A stuck render poisons the reused worker: tear it down and respawn — but- // only the worker this request actually ran on, so a stale timer can never- // kill a newer worker already serving other requests.- clearPending(requestId);- if (worker === readyWorker) teardownWorker();- resolve(failure("STYLESHEET_PREFLIGHT_TIMEOUT", "The PDF preflight exceeded its deadline."));- drainQueue();- }, limits.timeoutMs);- readyWorker.postMessage({ type: "preflight", requestId, input, limits });- })- .catch((error: unknown) => {- resolveRequest(- requestId,- workerFailure(error instanceof Error ? error : new Error("Failed to start PDF preflight worker.")),- );- });- }-- return {- get activeWorkerCount() {- return pending.size;- },- get queuedPreflightCount() {- return queue.length;- },-- warmup() {- void waitUntilReady().catch(() => undefined);- },-- run(input: StylesheetPreflightInput): Promise<PdfPreflightResult> {- return new Promise<PdfPreflightResult>((resolve, reject) => {- if (destroyed) {- resolve(failure("STYLESHEET_PREFLIGHT_WORKER_FAILED", "The PDF preflight worker was terminated."));- return;- }- if (pending.size < limits.maxConcurrentWorkers) {- dispatch(input, resolve, reject);- return;- }- if (queue.length >= limits.maxQueuedRequests) {- resolve(failure("STYLESHEET_PREFLIGHT_WORKER_FAILED", "The PDF preflight queue is full."));- return;- }- queue.push({ input, resolve, reject });- });- },-- async destroy() {- destroyed = true;- const dead = worker;- teardownWorker();- await dead?.terminate().catch(() => undefined);- for (const requestId of [...pending.keys()]) {- resolveRequest(- requestId,- failure("STYLESHEET_PREFLIGHT_WORKER_FAILED", "The PDF preflight worker was terminated."),- );- }- while (queue.length > 0) {- const next = queue.shift();- next?.resolve(failure("STYLESHEET_PREFLIGHT_WORKER_FAILED", "The PDF preflight worker was terminated."));- }- },- };-}--export const stylesheetPreflightRunner = createStylesheetPreflightRunner();diff --git a/apps/server/src/workers/stylesheet-preflight-inspection.ts b/apps/server/src/workers/stylesheet-preflight-inspection.tsdeleted file mode 100644index 2083d96ab..000000000--- a/apps/server/src/workers/stylesheet-preflight-inspection.ts+++ /dev/null@@ -1,78 +0,0 @@-import type {- PdfPreflightPageLimits,- PdfPreflightResult,- RenderPreflightPdfResult,-} from "@reactive-resume/pdf/preflight";-import { getDocument } from "pdfjs-dist/legacy/build/pdf.mjs";--type StylesheetPreflightInspectionLimits = PdfPreflightPageLimits & {- maxPages: number;- maxBytes: number;-};--type PdfLoadingTask = {- promise: PromiseLike<{ numPages: number }>;- destroy(): Promise<void>;-};--type LoadPdf = (options: { data: Uint8Array }) => PdfLoadingTask;--export async function inspectPreflightPdf(- rendered: Extract<RenderPreflightPdfResult, { ok: true }>,- limits: StylesheetPreflightInspectionLimits,- loadPdf: LoadPdf = getDocument,-): Promise<PdfPreflightResult> {- if (rendered.bytes.byteLength > limits.maxBytes) {- return {- ok: false,- code: "STYLESHEET_PREFLIGHT_BYTE_LIMIT",- message: "The rendered PDF exceeds the preflight byte limit.",- diagnostics: rendered.diagnostics,- };- }-- const byteCount = rendered.bytes.byteLength;- let loadingTask: PdfLoadingTask;- try {- loadingTask = loadPdf({ data: rendered.bytes });- } catch {- return {- ok: false,- code: "STYLESHEET_PREFLIGHT_PARSE_FAILED",- message: "PDF inspection failed.",- diagnostics: rendered.diagnostics,- };- }-- try {- let document: { numPages: number };- try {- document = await loadingTask.promise;- } catch {- return {- ok: false,- code: "STYLESHEET_PREFLIGHT_PARSE_FAILED",- message: "PDF inspection failed.",- diagnostics: rendered.diagnostics,- };- }-- if (document.numPages > limits.maxPages) {- return {- ok: false,- code: "STYLESHEET_PREFLIGHT_PAGE_LIMIT",- message: "The rendered PDF exceeds the preflight page limit.",- diagnostics: rendered.diagnostics,- };- }-- return {- ok: true,- pageCount: document.numPages,- byteCount,- diagnostics: rendered.diagnostics,- };- } finally {- await loadingTask.destroy().catch(() => undefined);- }-}diff --git a/apps/server/src/workers/stylesheet-preflight.test.ts b/apps/server/src/workers/stylesheet-preflight.test.tsdeleted file mode 100644index 86ac6cec1..000000000--- a/apps/server/src/workers/stylesheet-preflight.test.ts+++ /dev/null@@ -1,58 +0,0 @@-import { describe, expect, it, vi } from "vitest";-import { inspectPreflightPdf } from "./stylesheet-preflight-inspection";--const warning = {- code: "EXTREME_VALUE",- severity: "warning",- message: "The authored value is unusually large.",- range: {- start: { line: 1, column: 1, offset: 0 },- end: { line: 1, column: 10, offset: 9 },- },-} as const;--const rendered = {- ok: true as const,- bytes: new TextEncoder().encode("%PDF-1.7"),- diagnostics: [warning],-};--const limits = {- maxPages: 20,- maxBytes: 10_000_000,- maxPageWidthPt: 2_000,- maxPageHeightPt: 20_000,- maxPageAreaPt2: 20_000_000,-};--describe("stylesheet preflight PDF inspection", () => {- it("preserves compiler warnings and hides parser exceptions", async () => {- const destroy = vi.fn(async () => undefined);-- const result = await inspectPreflightPdf(rendered, limits, () => ({- promise: Promise.reject(new Error("sensitive parser details")),- destroy,- }));-- expect(result).toEqual({- ok: false,- code: "STYLESHEET_PREFLIGHT_PARSE_FAILED",- message: "PDF inspection failed.",- diagnostics: [warning],- });- expect(destroy).toHaveBeenCalledOnce();- });-- it("preserves compiler warnings when PDF.js fails before returning a loading task", async () => {- const result = await inspectPreflightPdf(rendered, limits, () => {- throw new Error("sensitive parser setup details");- });-- expect(result).toEqual({- ok: false,- code: "STYLESHEET_PREFLIGHT_PARSE_FAILED",- message: "PDF inspection failed.",- diagnostics: [warning],- });- });-});diff --git a/apps/server/src/workers/stylesheet-preflight.ts b/apps/server/src/workers/stylesheet-preflight.tsdeleted file mode 100644index 17b2813fe..000000000--- a/apps/server/src/workers/stylesheet-preflight.ts+++ /dev/null@@ -1,90 +0,0 @@-import type {- PdfPreflightPageLimits,- PdfPreflightResult,- StylesheetPreflightInput,-} from "@reactive-resume/pdf/preflight";-import { parentPort } from "node:worker_threads";-import * as React from "react";-import { inspectPreflightPdf } from "./stylesheet-preflight-inspection";--(globalThis as typeof globalThis & { React: typeof React }).React = React;--type StylesheetPreflightWorkerLimits = PdfPreflightPageLimits & {- maxPages: number;- maxBytes: number;-};--// The worker is long-lived and reused across requests: the heavy PDF runtime is-// loaded once at startup and each preflight arrives as a message (input can no-// longer come from `workerData`, which is fixed at construction time).-type StylesheetPreflightWorkerRequest = {- type: "preflight";- requestId: number;- input: StylesheetPreflightInput;- limits: StylesheetPreflightWorkerLimits;-};--type SerializedPreflightCause = {- name: string;- message: string;- issues: readonly unknown[];-};--const sanitizeWorkerCause = (cause: unknown): string => {- if (!(cause instanceof Error)) return "The PDF preflight worker failed.";- const detail = cause.message.replace(/\s+/g, " ").trim().slice(0, 200);- if (!detail) return "The PDF preflight worker failed.";- return `The PDF preflight worker failed. (${cause.name}: ${detail})`;-};--const serializeZodCause = (cause: unknown): SerializedPreflightCause | undefined => {- if (!(cause instanceof Error) || cause.name !== "ZodError" || !("issues" in cause) || !Array.isArray(cause.issues)) {- return;- }- return { name: cause.name, message: cause.message, issues: cause.issues };-};--// Load the heavy PDF runtime once. A rejection here (missing/broken dependency in-// a pruned production install) is reported explicitly instead of becoming an-// unhandled rejection that silently kills the worker and surfaces as an opaque-// runner-side failure.-const initialization = import("@reactive-resume/pdf/preflight");--void initialization.then(- () => parentPort?.postMessage({ type: "ready" }),- (cause: unknown) => {- console.error("[stylesheet-preflight] worker runtime failed to load", cause);- parentPort?.postMessage({ type: "load_error", message: sanitizeWorkerCause(cause) });- },-);--const handle = async (request: StylesheetPreflightWorkerRequest): Promise<void> => {- try {- const { renderPreflightPdf } = await initialization;- const rendered = await renderPreflightPdf(request.input, request.limits);- const result: PdfPreflightResult = rendered.ok ? await inspectPreflightPdf(rendered, request.limits) : rendered;- parentPort?.postMessage({ type: "result", requestId: request.requestId, result });- } catch (cause) {- const serializedCause = serializeZodCause(cause);- if (serializedCause) {- parentPort?.postMessage({ type: "preflight_error", requestId: request.requestId, cause: serializedCause });- return;- }- console.error("[stylesheet-preflight]", cause);- parentPort?.postMessage({- type: "result",- requestId: request.requestId,- result: {- ok: false,- code: "STYLESHEET_PREFLIGHT_WORKER_FAILED",- message: sanitizeWorkerCause(cause),- diagnostics: [],- },- });- }-};--parentPort?.on("message", (message: StylesheetPreflightWorkerRequest) => {- if (message.type !== "preflight") return;- void handle(message);-});diff --git a/apps/server/tsdown.config.ts b/apps/server/tsdown.config.tsindex f9463e9b0..254870bc8 100644--- a/apps/server/tsdown.config.ts+++ b/apps/server/tsdown.config.ts@@ -33,10 +33,7 @@ const promptAssetsPlugin: TsdownPlugin = {};export default defineConfig({- entry: {- index: "src/index.ts",- "stylesheet-preflight-worker": "src/workers/stylesheet-preflight.ts",- },+ entry: { index: "src/index.ts" },format: "esm",platform: "node",target: "node24",diff --git a/apps/web/locales/af-ZA.po b/apps/web/locales/af-ZA.poindex edb0b99e1..849f82dfb 100644--- a/apps/web/locales/af-ZA.po+++ b/apps/web/locales/af-ZA.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Aansoeke per week gestuur (laaste 8 weke)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Aansoek gedoen"@@ -534,10 +533,6 @@ msgstr "Aansoek gedoen"msgid "Applied on"msgstr "Toegepas op"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Toegepas met waarskuwings"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arabies"@@ -1765,7 +1760,6 @@ msgstr "Voer jou wagwoord in om die opstel van twee-faktor-magtiging te bevestigmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Voer jou wagwoord in om twee-faktor-magtiging te deaktiveer. Jou rekening sal minder veilig wees sonder 2FA."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Fout"@@ -2003,6 +1997,10 @@ msgstr "Misluk om jou rugsteunkodeverifikasie te voltooi. Probeer asseblief weermsgid "Failed to verify your code. Please try again."msgstr "Misluk om jou kode te verifieer. Probeer asseblief weer."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Funksies"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Voorskou"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Voorskou en uitvoer gebruik die laaste geldige weergawe."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Lees…"msgid "Ready to activate"msgstr "Gereed om te aktiveer"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Gereed om te aktiveer met waarskuwings"@@ -3663,10 +3669,6 @@ msgstr "Herstel"msgid "Reset Password"msgstr "Herstel wagwoord"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Stel terug na toegepaste stylblad"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Herstel jou wagwoord"@@ -4195,6 +4197,10 @@ msgstr "Sommige aansoekstelsels vereis een voordat jy kan indien."msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Sommige ontleders hanteer beelde verkeerd, en foto's word in sommige streke ontmoedig."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Iets het verkeerd geloop"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Stylbladredigeerder"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Stylblad bevat foute"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Gebruikers"msgid "Uzbek"msgstr "Oezbeeks"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Geldige URL's moet met http:// of https:// begin."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel KI-toegangspoort"@@ -5411,4 +5429,3 @@ msgstr "Zoem uit"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zoeloe"-diff --git a/apps/web/locales/am-ET.po b/apps/web/locales/am-ET.poindex ba7c6d27c..8a03ebf04 100644--- a/apps/web/locales/am-ET.po+++ b/apps/web/locales/am-ET.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "በሳምንት የተላኩ ማመልከቻዎች (ያለፉት 8 ሳምንታት)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "ተመልክቷል"@@ -534,10 +533,6 @@ msgstr "ተመልክቷል"msgid "Applied on"msgstr "የተተገበረው በ"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "ከማስጠንቀቂያዎች ጋር ተተግብሯል"-#: src/libs/locale.tsmsgid "Arabic"msgstr "ዓረብኛ"@@ -1765,7 +1760,6 @@ msgstr "ሁለት-ደረጃ ማረጋገጫን ስትቆጣጠሩ የሚሆንmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "ሁለት-ደረጃ ማረጋገጫን ለማቦዘን የይለፍ ቃልዎን ያስገቡ። 2FA ባቦዘነ ጊዜ መለያዎ ያነሰ ደህንነት ይኖረዋል።"-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "ስህተት"@@ -2003,6 +1997,10 @@ msgstr "የመጠባበቂያ ኮድዎን ማረጋገጥ አልተሳካም።msgid "Failed to verify your code. Please try again."msgstr "ኮድዎን ማረጋገጥ አልተሳካም። እባክዎ እንደገና ይሞክሩ።"+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "መለያዎች"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "ቅድመ እይታ"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "ቅድመ እይታ እና ወደ ውጭ መላክ የመጨረሻውን ትክክለኛ ስሪት ይጠቀሙ።"+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "ንባብ…"msgid "Ready to activate"msgstr "ለማግበር ዝግጁ"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "ከማስጠንቀቂያዎች ጋር ለማግበር ዝግጁ"@@ -3663,10 +3669,6 @@ msgstr "ዳግም ለመጀመር"msgid "Reset Password"msgstr "የይለፍ ቃል ዳግም አስጀምር"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "ወደ ተተገበረ የቅጥ ሉህ ዳግም አስጀምር"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "የይለፍ ቃልዎን ዳግም ያስጀምሩ"@@ -4195,6 +4197,10 @@ msgstr "ከማቅረብዎ በፊት አንዳንድ የመተግበሪያ ስmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "አንዳንድ ተንታኞች ምስሎችን ያታልላሉ፣ እና ፎቶዎች በአንዳንድ ክልሎች ተስፋ ይቆርጣሉ።"+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "የሆነ ችግር ተፈጥሯል"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "የቅጥ ሉህ አርታኢ"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "የቅጥ ሉህ ስህተቶች አሉት"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "ተጠቃሚዎች"msgid "Uzbek"msgstr "ኡዝቤክኛ"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "ትክክለኛ URL በ http:// ወይም https:// መጀመር አለባቸው።"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "አጉር"#: src/libs/locale.tsmsgid "Zulu"msgstr "ዙሉ"-diff --git a/apps/web/locales/ar-SA.po b/apps/web/locales/ar-SA.poindex ba47ac675..831369fc1 100644--- a/apps/web/locales/ar-SA.po+++ b/apps/web/locales/ar-SA.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "الطلبات المرسلة أسبوعيًا (آخر 8 أسابيع)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "تم التقديم"@@ -534,10 +533,6 @@ msgstr "تم التقديم"msgid "Applied on"msgstr "تم التقديم في"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "تم استخدامه مع التحذيرات"-#: src/libs/locale.tsmsgid "Arabic"msgstr "العربية"@@ -1765,7 +1760,6 @@ msgstr "أدخِل كلمة المرور الخاصة بك لتأكيد إعداmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "أدخِل كلمة المرور الخاصة بك لتعطيل المصادقة الثنائية. سيكون حسابك أقل أمانًا بدون تمكين المصادقة الثنائية (2FA)."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "خطأ"@@ -2003,6 +1997,10 @@ msgstr "فشل التحقق من رمز النسخ الاحتياطي الخاصmsgid "Failed to verify your code. Please try again."msgstr "فشل التحقق من الرمز الخاص بك. يرجى المحاولة مرة أخرى."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "الميزات"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "معاينة"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "استخدم آخر نسخة صالحة للمعاينة والتصدير."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "قراءة…"msgid "Ready to activate"msgstr "جاهز للتفعيل"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "جاهز للتفعيل مع التحذيرات"@@ -3663,10 +3669,6 @@ msgstr "إعادة تعيين"msgid "Reset Password"msgstr "إعادة تعيين كلمة المرور"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "إعادة ضبط نمط التنسيق المُطبق"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "إعادة تعيين كلمة المرور"@@ -4195,6 +4197,10 @@ msgstr "تتطلب بعض أنظمة التقديم واحدًا قبل أن تmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "يسيء بعض المحللين التعامل مع الصور، ولا يُنصح باستخدام الصور في بعض المناطق."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "حدث خطأ ما"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "محرر أنماط CSS"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "يحتوي ملف الأنماط على أخطاء"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "المستخدمون"msgid "Uzbek"msgstr "الأوزبكية"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "يجب أن تبدأ عناوين URL الصالحة بـ http:// أو https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "بوابة فيركل للذكاء الاصطناعي"@@ -5411,4 +5429,3 @@ msgstr "تصغير"#: src/libs/locale.tsmsgid "Zulu"msgstr "الزولو"-diff --git a/apps/web/locales/az-AZ.po b/apps/web/locales/az-AZ.poindex 0881b5e8a..9322e2284 100644--- a/apps/web/locales/az-AZ.po+++ b/apps/web/locales/az-AZ.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Həftəlik göndərilən müraciətlər (son 8 həftə)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Müraciət edildi"@@ -534,10 +533,6 @@ msgstr "Müraciət edildi"msgid "Applied on"msgstr "Tətbiq edildiyi tarix"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Xəbərdarlıqlarla tətbiq olunur"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Ərəb"@@ -1765,7 +1760,6 @@ msgstr "İki mərhələli autentifikasiyanı qurmağı təsdiqləmək üçün pamsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "İki mərhələli autentifikasiyanı deaktiv etmək üçün parolunuzu daxil edin. 2FA deaktiv edildikdə, hesabınız daha az təhlükəsiz olacaq."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Xəta"@@ -2003,6 +1997,10 @@ msgstr "Ehtiyat kodunuzu təsdiqləmək mümkün olmadı. Zəhmət olmasa yenidmsgid "Failed to verify your code. Please try again."msgstr "Kodunuzu təsdiqləmək mümkün olmadı. Zəhmət olmasa yenidən cəhd edin."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Xüsusiyyətlər"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Önizləmə"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Önizləmə və ixrac üçün son etibarlı versiyadan istifadə edin."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "… oxunur"msgid "Ready to activate"msgstr "Aktivləşdirməyə hazırdır"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Xəbərdarlıqlarla aktivləşdirməyə hazırdır"@@ -3663,10 +3669,6 @@ msgstr "Sıfırla"msgid "Reset Password"msgstr "Parolu Sıfırla"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Tətbiq olunmuş stil cədvəlinə sıfırlayın"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Parolunuzu sıfırlayın"@@ -4195,6 +4197,10 @@ msgstr "Bəzi proqram sistemləri təqdim etməzdən əvvəl birini tələb edirmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Bəzi təhlilçilər şəkilləri səhv idarə edir və bəzi bölgələrdə fotoşəkillər tövsiyə edilmir."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Nəsə səhv getdi"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Stil cədvəli redaktoru"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Stil cədvəlində səhvlər var"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "İstifadəçilər"msgid "Uzbek"msgstr "Özbək"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Etibarlı URL‑lər http:// və ya https:// ilə başlamalıdır."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Qapısı"@@ -5411,4 +5429,3 @@ msgstr "Uzaqlaşdır"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/bg-BG.po b/apps/web/locales/bg-BG.poindex 6aad84d6d..039ee7484 100644--- a/apps/web/locales/bg-BG.po+++ b/apps/web/locales/bg-BG.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Изпратени кандидатури на седмица (последните 8 седмици)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Кандидатствано"@@ -534,10 +533,6 @@ msgstr "Кандидатствано"msgid "Applied on"msgstr "Приложено на"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Прилага се с предупреждения"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Арабски"@@ -1765,7 +1760,6 @@ msgstr "Въведете паролата си, за да потвърдитеmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Въведете паролата си, за да изключите двуфакторното удостоверяване. Вашият профил ще бъде по-малко защитен без активирано 2FA."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Грешка"@@ -2003,6 +1997,10 @@ msgstr "Не успяхте да проверите кода си за архиmsgid "Failed to verify your code. Please try again."msgstr "Не успяхме да проверим кода ви. Моля, опитайте отново."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Функции"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Преглед"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Прегледът и експортът използват последната валидна версия."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Четене…"msgid "Ready to activate"msgstr "Готов за активиране"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Готово за активиране с предупреждения"@@ -3663,10 +3669,6 @@ msgstr "Нулиране"msgid "Reset Password"msgstr "Нулиране на паролата"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Възстановяване към приложения стилов лист"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Нулирайте паролата си"@@ -4195,6 +4197,10 @@ msgstr "Някои системи за кандидатстване изисквmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Някои парсери обработват неправилно изображения и снимките не се препоръчват в някои региони."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Нещо се обърка"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Редактор на стилови листове"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Стилният лист съдържа грешки"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Потребители"msgid "Uzbek"msgstr "Узбекски"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Валидните URL адреси трябва да започват с http:// или https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Намаляване"#: src/libs/locale.tsmsgid "Zulu"msgstr "Зулуски"-diff --git a/apps/web/locales/bn-BD.po b/apps/web/locales/bn-BD.poindex c801f6279..072ecf1c5 100644--- a/apps/web/locales/bn-BD.po+++ b/apps/web/locales/bn-BD.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "প্রতি সপ্তাহে পাঠানো আবেদন (শেষ 8 সপ্তাহ)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "আবেদন করা হয়েছে"@@ -534,10 +533,6 @@ msgstr "আবেদন করা হয়েছে"msgid "Applied on"msgstr "প্রয়োগ করা হয়েছে"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "সতর্কতাসহ প্রয়োগ করা হয়েছে"-#: src/libs/locale.tsmsgid "Arabic"msgstr "আরবি"@@ -1765,7 +1760,6 @@ msgstr "টু‑ফ্যাক্টর প্রমাণীকরণ সেmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "টু‑ফ্যাক্টর প্রমাণীকরণ বন্ধ করতে আপনার পাসওয়ার্ড লিখুন। 2FA বন্ধ করলে আপনার অ্যাকাউন্ট কম সুরক্ষিত থাকবে।"-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "ত্রুটি"@@ -2003,6 +1997,10 @@ msgstr "আপনার ব্যাকআপ কোড যাচাই করmsgid "Failed to verify your code. Please try again."msgstr "আপনার কোড যাচাই করতে ব্যর্থ হয়েছে। অনুগ্রহ করে আবার চেষ্টা করুন।"+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "বৈশিষ্ট্যসমূহ"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "প্রিভিউ"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "প্রিভিউ এবং এক্সপোর্টের জন্য সর্বশেষ বৈধ সংস্করণটি ব্যবহার করা হয়।"+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "পড়া…"msgid "Ready to activate"msgstr "সক্রিয় করার জন্য প্রস্তুত"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "সতর্কতা সহ সক্রিয় করার জন্য প্রস্তুত"@@ -3663,10 +3669,6 @@ msgstr "রিসেট"msgid "Reset Password"msgstr "পাসওয়ার্ড রিসেট করুন"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "প্রয়োগকৃত স্টাইলশীটে রিসেট করুন"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "আপনার পাসওয়ার্ড রিসেট করুন"@@ -4195,6 +4197,10 @@ msgstr "আপনি জমা দেওয়ার আগে কিছু অmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "কিছু বিশ্লেষক চিত্রগুলিকে ভুলভাবে পরিচালনা করে এবং কিছু অঞ্চলে ফটোগুলিকে নিরুৎসাহিত করা হয়৷"+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "কিছু একটা ভুল হয়েছে"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "স্টাইলশিট সম্পাদক"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "স্টাইলশিটে ত্রুটি আছে"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "ব্যবহারকারী"msgid "Uzbek"msgstr "উজবেক"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "বৈধ URL অবশ্যই http:// বা https:// দিয়ে শুরু হতে হবে।"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "ভার্সেল এআই গেটওয়ে"@@ -5411,4 +5429,3 @@ msgstr "জুম আউট"#: src/libs/locale.tsmsgid "Zulu"msgstr "জুলু"-diff --git a/apps/web/locales/ca-ES.po b/apps/web/locales/ca-ES.poindex 432fd3782..818d7ea20 100644--- a/apps/web/locales/ca-ES.po+++ b/apps/web/locales/ca-ES.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Sol·licituds enviades per setmana (darreres 8 setmanes)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Sol·licitada"@@ -534,10 +533,6 @@ msgstr "Sol·licitada"msgid "Applied on"msgstr "Aplicat a"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Aplicat amb avisos"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Àrab"@@ -1765,7 +1760,6 @@ msgstr "Introdueix la contrasenya per confirmar la configuració de l’autenticmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Introdueix la contrasenya per desactivar l’autenticació en dos passos. El compte serà menys segur sense l’A2F activada."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Error"@@ -2003,6 +1997,10 @@ msgstr "No s'ha pogut verificar el vostre codi de recuperació. Torneu-ho a provmsgid "Failed to verify your code. Please try again."msgstr "S'ha fallat la verificació del vostre codi. Torneu-ho a provar."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Funcions"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Vista prèvia"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "La vista prèvia i l'exportació utilitzen l'última versió vàlida."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Llegint…"msgid "Ready to activate"msgstr "Llest per activar"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Llest per activar amb avisos"@@ -3663,10 +3669,6 @@ msgstr "Restableix"msgid "Reset Password"msgstr "Restableix la contrasenya"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Restableix al full d'estils aplicat"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Restableix la contrasenya"@@ -4195,6 +4197,10 @@ msgstr "Alguns sistemes de sol·licitud en requereixen un abans de poder enviar-msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Alguns analitzadors analítics gestionen malament les imatges i, en algunes regions, no es recomanen les fotos."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Alguna cosa ha anat malament"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Editor de fulls d'estil"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "El full d'estil té errors"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Usuaris"msgid "Uzbek"msgstr "Uzbek"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Les URL vàlides han de començar per http:// o https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Allunya"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulú"-diff --git a/apps/web/locales/cs-CZ.po b/apps/web/locales/cs-CZ.poindex f59bdd175..8435832e6 100644--- a/apps/web/locales/cs-CZ.po+++ b/apps/web/locales/cs-CZ.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Žádosti odeslané týdně (posledních 8 týdnů)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Podáno"@@ -534,10 +533,6 @@ msgstr "Podáno"msgid "Applied on"msgstr "Aplikováno na"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Použito s varováním"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arabština"@@ -1765,7 +1760,6 @@ msgstr "Zadejte své heslo pro potvrzení nastavení dvoufázového ověření.msgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Zadejte své heslo pro deaktivaci dvoufázového ověření. Bez aktivního 2FA bude váš účet méně zabezpečený."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Chyba"@@ -2003,6 +1997,10 @@ msgstr "Nepodařilo se ověřit váš záložní kód. Zkuste to prosím znovu."msgid "Failed to verify your code. Please try again."msgstr "Nepodařilo se ověřit váš kód. Zkuste to prosím znovu."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Funkce"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Náhled"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Náhled a export použijí poslední platnou verzi."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Čtení…"msgid "Ready to activate"msgstr "Připraveno k aktivaci"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Připraveno k aktivaci s varováními"@@ -3663,10 +3669,6 @@ msgstr "Resetovat"msgid "Reset Password"msgstr "Obnovit heslo"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Obnovit použitý stylový list"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Obnovte své heslo"@@ -4195,6 +4197,10 @@ msgstr "Některé aplikační systémy vyžadují jeden před odesláním."msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Některé analyzátory špatně zacházejí s obrázky a v některých oblastech se fotografie nedoporučuje."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Něco se pokazilo"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Editor stylů"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Stylový list obsahuje chyby"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Uživatelé"msgid "Uzbek"msgstr "Uzbečtina"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Platné URL adresy musí začínat http:// nebo https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Brána Vercel AI"@@ -5411,4 +5429,3 @@ msgstr "Oddálit"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/da-DK.po b/apps/web/locales/da-DK.poindex 5c2facb35..c790e0f73 100644--- a/apps/web/locales/da-DK.po+++ b/apps/web/locales/da-DK.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Ansøgninger sendt pr. uge (sidste 8 uger)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Ansøgt"@@ -534,10 +533,6 @@ msgstr "Ansøgt"msgid "Applied on"msgstr "Anvendt den"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Anvendt med advarsler"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arabisk"@@ -1765,7 +1760,6 @@ msgstr "Indtast din adgangskode for at bekræfte opsætning af to-faktor-godkendmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Indtast din adgangskode for at deaktivere to-faktor-godkendelse. Din konto vil være mindre sikker uden 2FA aktiveret."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Fejl"@@ -2003,6 +1997,10 @@ msgstr "Det lykkedes ikke at bekræfte din backup-kode. Prøv venligst igen."msgid "Failed to verify your code. Please try again."msgstr "Det lykkedes ikke at bekræfte din kode. Prøv venligst igen."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Funktioner"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Forhåndsvisning"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Forhåndsvisning og eksport med den seneste gyldige version."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Læsning…"msgid "Ready to activate"msgstr "Klar til aktivering"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Klar til aktivering med advarsler"@@ -3663,10 +3669,6 @@ msgstr "Nulstil"msgid "Reset Password"msgstr "Nulstil adgangskode"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Nulstil til anvendt stylesheet"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Nulstil din adgangskode"@@ -4195,6 +4197,10 @@ msgstr "Nogle ansøgningssystemer kræver et, før du kan indsende."msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Nogle parsere mishandler billeder, og fotos frarådes i nogle regioner."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Noget gik galt"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Stylesheet-editor"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Stylesheet indeholder fejl"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Brugere"msgid "Uzbek"msgstr "Usbekisk"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Gyldige URL'er skal starte med http:// eller https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Zoom ud"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/de-DE.po b/apps/web/locales/de-DE.poindex 98f346d94..dc6ef3c0b 100644--- a/apps/web/locales/de-DE.po+++ b/apps/web/locales/de-DE.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Pro Woche gesendete Bewerbungen (letzte 8 Wochen)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Beworben"@@ -534,10 +533,6 @@ msgstr "Beworben"msgid "Applied on"msgstr "Beworben am"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Mit Warnungen angewendet"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arabisch"@@ -1765,7 +1760,6 @@ msgstr "Geben Sie Ihr Passwort ein, um die Einrichtung der Zwei-Faktor-Authentifmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Geben Sie Ihr Passwort ein, um die Zwei-Faktor-Authentifizierung zu deaktivieren. Ihr Konto ist ohne 2FA weniger sicher."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Fehler"@@ -2003,6 +1997,10 @@ msgstr "Ihr Sicherungscode konnte nicht verifiziert werden. Bitte versuchen Siemsgid "Failed to verify your code. Please try again."msgstr "Ihr Code konnte nicht verifiziert werden. Bitte versuchen Sie es erneut."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Funktionen"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Vorschau"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Vorschau und Export verwenden die letzte gültige Version."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Wird gelesen…"msgid "Ready to activate"msgstr "Bereit zur Aktivierung"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Bereit zur Aktivierung mit Warnungen"@@ -3663,10 +3669,6 @@ msgstr "Zurücksetzen"msgid "Reset Password"msgstr "Passwort zurücksetzen"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Auf angewendetes Stylesheet zurücksetzen"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Setzen Sie Ihr Passwort zurück"@@ -4195,6 +4197,10 @@ msgstr "Bei einigen Bewerbungssystemen ist ein Antrag erforderlich, bevor Sie ihmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Einige Parser verarbeiten Bilder falsch, und in einigen Regionen wird von Fotos abgeraten."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Etwas ist schiefgelaufen."@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Stylesheet-Editor"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Das Stylesheet enthält Fehler."+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Nutzende"msgid "Uzbek"msgstr "Usbekisch"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Gültige URLs müssen mit http:// oder https:// beginnen."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Herauszoomen"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/el-GR.po b/apps/web/locales/el-GR.poindex 57f8b890d..a418679ec 100644--- a/apps/web/locales/el-GR.po+++ b/apps/web/locales/el-GR.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Αιτήσεις που στάλθηκαν ανά εβδομάδα (τελευταίες 8 εβδομάδες)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Υποβλήθηκε"@@ -534,10 +533,6 @@ msgstr "Υποβλήθηκε"msgid "Applied on"msgstr "Ημερομηνία αίτησης"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Εφαρμόζεται με προειδοποιήσεις"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Αραβικά"@@ -1765,7 +1760,6 @@ msgstr "Εισαγάγετε τον κωδικό πρόσβασής σας γιmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Εισαγάγετε τον κωδικό πρόσβασής σας για να απενεργοποιήσετε τον έλεγχο ταυτότητας δύο παραγόντων. Ο λογαριασμός σας θα είναι λιγότερο ασφαλής χωρίς ενεργοποιημένο 2FA."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Σφάλμα"@@ -2003,6 +1997,10 @@ msgstr "Απέτυχε η επαλήθευση του κωδικού αντιγmsgid "Failed to verify your code. Please try again."msgstr "Απέτυχε η επαλήθευση του κωδικού σας. Προσπαθήστε ξανά."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Λειτουργίες"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Πρεμιέρα"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Η προεπισκόπηση και η εξαγωγή χρησιμοποιούν την τελευταία έγκυρη έκδοση."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Ανάγνωση…"msgid "Ready to activate"msgstr "Έτοιμο για ενεργοποίηση"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Έτοιμο για ενεργοποίηση με προειδοποιήσεις"@@ -3663,10 +3669,6 @@ msgstr "Επαναφορά"msgid "Reset Password"msgstr "Επαναφορά κωδικού πρόσβασης"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Επαναφορά στο εφαρμοσμένο φύλλο στυλ"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Επαναφορά κωδικού πρόσβασης"@@ -4195,6 +4197,10 @@ msgstr "Ορισμένα συστήματα αιτήσεων απαιτούν έmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Ορισμένοι αναλυτές χειρίζονται εσφαλμένα τις εικόνες και οι φωτογραφίες αποθαρρύνονται σε ορισμένες περιοχές."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Κάτι πήγε στραβά"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Επεξεργαστής φύλλου στυλ"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Το φύλλο στυλ έχει σφάλματα"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Χρήστες"msgid "Uzbek"msgstr "Ουζμπεκικά"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Τα έγκυρα URLs πρέπει να ξεκινούν με http:// ή https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Πύλη Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Σμίκρυνση"#: src/libs/locale.tsmsgid "Zulu"msgstr "Ζουλού"-diff --git a/apps/web/locales/en-GB.po b/apps/web/locales/en-GB.poindex 0a94e21f6..7f25705a7 100644--- a/apps/web/locales/en-GB.po+++ b/apps/web/locales/en-GB.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Applications sent per week (last 8 weeks)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Applied"@@ -534,10 +533,6 @@ msgstr "Applied"msgid "Applied on"msgstr "Applied on"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Applied with warnings"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arabic"@@ -1765,7 +1760,6 @@ msgstr "Enter your password to confirm setting up two-factor authentication. Whemsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Error"@@ -2003,6 +1997,10 @@ msgstr "Failed to verify your backup code. Please try again."msgid "Failed to verify your code. Please try again."msgstr "Failed to verify your code. Please try again."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Features"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Preview"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Preview and export use the last valid version."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Reading…"msgid "Ready to activate"msgstr "Ready to activate"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Ready to activate with warnings"@@ -3663,10 +3669,6 @@ msgstr "Reset"msgid "Reset Password"msgstr "Reset Password"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Reset to applied stylesheet"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Reset your password"@@ -4195,6 +4197,10 @@ msgstr "Some application systems require one before you can submit."msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Some parsers mishandle images, and photos are discouraged in some regions."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Something went wrong"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Stylesheet editor"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Stylesheet has errors"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Users"msgid "Uzbek"msgstr "Uzbek"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Valid URLs must start with http:// or https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Zoom out"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/en-US.po b/apps/web/locales/en-US.poindex b70529fe6..da4177c12 100644--- a/apps/web/locales/en-US.po+++ b/apps/web/locales/en-US.po@@ -521,7 +521,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Applications sent per week (last 8 weeks)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Applied"@@ -529,10 +528,6 @@ msgstr "Applied"msgid "Applied on"msgstr "Applied on"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Applied with warnings"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arabic"@@ -1760,7 +1755,6 @@ msgstr "Enter your password to confirm setting up two-factor authentication. Whemsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Error"@@ -1998,6 +1992,10 @@ msgstr "Failed to verify your backup code. Please try again."msgid "Failed to verify your code. Please try again."msgstr "Failed to verify your code. Please try again."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr "Fatal error"+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Features"@@ -3415,8 +3413,12 @@ msgid "Preview"msgstr "Preview"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Preview and export use the last valid version."+msgid "Preview and export fall back to base styles."+msgstr "Preview and export fall back to base styles."++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr "Preview and export keep valid styles and ignore invalid styles."#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3537,6 +3539,10 @@ msgstr "Reading…"msgid "Ready to activate"msgstr "Ready to activate"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr "Ready to activate with errors"+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Ready to activate with warnings"@@ -3658,10 +3664,6 @@ msgstr "Reset"msgid "Reset Password"msgstr "Reset Password"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Reset to applied stylesheet"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Reset your password"@@ -4190,6 +4192,10 @@ msgstr "Some application systems require one before you can submit."msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Some parsers mishandle images, and photos are discouraged in some regions."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr "Some styles were ignored"+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Something went wrong"@@ -4333,8 +4339,8 @@ msgid "Stylesheet editor"msgstr "Stylesheet editor"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Stylesheet has errors"+msgid "Stylesheet has fatal errors"+msgstr "Stylesheet has fatal errors"#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5098,10 +5104,22 @@ msgstr "Users"msgid "Uzbek"msgstr "Uzbek"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr "Valid"+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Valid URLs must start with http:// or https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr "Valid with errors"++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr "Valid with warnings"+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"diff --git a/apps/web/locales/es-ES.po b/apps/web/locales/es-ES.poindex 475907175..6df38aaf3 100644--- a/apps/web/locales/es-ES.po+++ b/apps/web/locales/es-ES.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Candidaturas enviadas por semana (últimas 8 semanas)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Enviada"@@ -534,10 +533,6 @@ msgstr "Enviada"msgid "Applied on"msgstr "Postulado el"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Aplicado con advertencias"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Árabe"@@ -1765,7 +1760,6 @@ msgstr "Introduce tu contraseña para confirmar la configuración de la autenticmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Introduce tu contraseña para deshabilitar la autenticación de doble factor. Tu cuenta será menos segura sin 2FA habilitada."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Error"@@ -2003,6 +1997,10 @@ msgstr "No se ha podido verificar su código de copia de seguridad. Por favor, imsgid "Failed to verify your code. Please try again."msgstr "No se ha podido verificar su código. Por favor, inténtelo de nuevo."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Funciones"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Avance"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "La vista previa y la exportación utilizan la última versión válida."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Leyendo…"msgid "Ready to activate"msgstr "Listo para activar"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Listo para activarse con advertencias"@@ -3663,10 +3669,6 @@ msgstr "Restablecer"msgid "Reset Password"msgstr "Restablecer contraseña"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Restablecer a la hoja de estilos aplicada"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Restablecer tu contraseña"@@ -4195,6 +4197,10 @@ msgstr "Algunos sistemas de solicitud requieren uno antes de poder enviarlo."msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Algunos analizadores manejan mal las imágenes y en algunas regiones no se recomiendan las fotografías."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Algo salió mal"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Editor de hojas de estilo"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "La hoja de estilos tiene errores."+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Usuarios"msgid "Uzbek"msgstr "Uzbeko"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Las URL válidas deben comenzar con http:// o https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Pasarela Vercel AI"@@ -5411,4 +5429,3 @@ msgstr "Alejar"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulú"-diff --git a/apps/web/locales/fa-IR.po b/apps/web/locales/fa-IR.poindex 4bcf941c4..ae79fb93e 100644--- a/apps/web/locales/fa-IR.po+++ b/apps/web/locales/fa-IR.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "درخواستهای ارسالشده در هفته (۸ هفته گذشته)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "ارسالشده"@@ -534,10 +533,6 @@ msgstr "ارسالشده"msgid "Applied on"msgstr "تاریخ درخواست"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "با هشدارها اعمال میشود"-#: src/libs/locale.tsmsgid "Arabic"msgstr "عربی"@@ -1765,7 +1760,6 @@ msgstr "برای تأیید راهاندازی احراز هویت دو مرmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "برای غیرفعال کردن احراز هویت دو مرحلهای گذرواژهٔ خود را وارد کنید. بدون فعال بودن 2FA حساب شما امنیت کمتری خواهد داشت."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "خطا"@@ -2003,6 +1997,10 @@ msgstr "کد پشتیبان شما تأیید نشد. لطفاً دوباره تmsgid "Failed to verify your code. Please try again."msgstr "تأیید کد شما ناموفق بود. لطفاً دوباره تلاش کنید."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "امکانات"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "پیشنمایش"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "پیشنمایش و خروجی گرفتن از آخرین نسخه معتبر."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "در حال خواندن…"msgid "Ready to activate"msgstr "آماده فعال سازی"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "آماده فعال شدن با هشدارها"@@ -3663,10 +3669,6 @@ msgstr "ریست"msgid "Reset Password"msgstr "تنظیم مجدد گذرواژه"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "تنظیم مجدد به شیوهنامه اعمال شده"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "تنظیم مجدد گذرواژهٔ شما"@@ -4195,6 +4197,10 @@ msgstr "برخی سامانههای درخواست شغلی پیش از ارmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "برخی تجزیهگرها تصاویر را نادرست پردازش میکنند و در بعضی مناطق استفاده از عکس توصیه نمیشود."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "چیزی اشتباه پیش رفت"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "ویرایشگر استایلشیت"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "استایلشیت خطا دارد"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "کاربران"msgid "Uzbek"msgstr "ازبکی"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "URLهای معتبر باید با http:// یا https:// شروع شوند."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "دروازه ورچل ایآی"@@ -5411,4 +5429,3 @@ msgstr "کوچکنمایی"#: src/libs/locale.tsmsgid "Zulu"msgstr "زولو"-diff --git a/apps/web/locales/fi-FI.po b/apps/web/locales/fi-FI.poindex a593f22e2..1b296fef0 100644--- a/apps/web/locales/fi-FI.po+++ b/apps/web/locales/fi-FI.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Lähetetyt hakemukset viikoittain (viimeiset 8 viikkoa)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Haettu"@@ -534,10 +533,6 @@ msgstr "Haettu"msgid "Applied on"msgstr "Haettu"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Käytetty varoituksilla"-#: src/libs/locale.tsmsgid "Arabic"msgstr "arabia"@@ -1765,7 +1760,6 @@ msgstr "Syötä salasanasi vahvistaaksesi kaksivaiheisen todennuksen käyttöönmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Syötä salasanasi poistaaksesi kaksivaiheisen todennuksen käytöstä. Tilisi on vähemmän suojattu ilman 2FA:ta."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Virhe"@@ -2003,6 +1997,10 @@ msgstr "Varmuuskopiointikoodin vahvistaminen epäonnistui. Yritä uudelleen."msgid "Failed to verify your code. Please try again."msgstr "Koodiasi ei onnistuttu tarkistamaan. Yritä uudelleen."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Ominaisuudet"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Esikatselu"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Esikatsele ja vie käyttämällä viimeisintä kelvollista versiota."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Luetaan…"msgid "Ready to activate"msgstr "Valmis aktivoitavaksi"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Valmis aktivoitavaksi varoituksilla"@@ -3663,10 +3669,6 @@ msgstr "Palauta"msgid "Reset Password"msgstr "Palauta salasana"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Palauta käytettyyn tyylitiedostoon"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Palauta salasanasi"@@ -4195,6 +4197,10 @@ msgstr "Jotkin hakujärjestelmät vaativat sellaisen, ennen kuin voit lähettämsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Jotkut jäsentimet käsittelevät kuvia väärin, eikä valokuvia suositella joillain alueilla."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Jokin meni pieleen"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Tyylitiedostoeditori"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Tyylitiedostossa on virheitä"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Käyttäjät"msgid "Uzbek"msgstr "uzbekki"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Kelvollisten URL-osoitteiden on alettava http:// tai https:// ."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Loitonna"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/fr-FR.po b/apps/web/locales/fr-FR.poindex 6b8c2f55a..99b7597bd 100644--- a/apps/web/locales/fr-FR.po+++ b/apps/web/locales/fr-FR.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Candidatures envoyées par semaine (8 dernières semaines)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Candidature envoyée"@@ -534,10 +533,6 @@ msgstr "Candidature envoyée"msgid "Applied on"msgstr "Postulé le"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Appliqué avec avertissements"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arabe"@@ -1765,7 +1760,6 @@ msgstr "Saisissez votre mot de passe pour confirmer la configuration de l'authenmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Saisissez votre mot de passe pour désactiver l'authentification à deux facteurs. Votre compte sera moins sécurisé si l'authentification à deux facteurs n'est pas activée."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Erreur"@@ -2003,6 +1997,10 @@ msgstr "La vérification de votre code de sauvegarde a échoué. Veuillez réessmsgid "Failed to verify your code. Please try again."msgstr "La vérification de votre code a échoué. Veuillez réessayer."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Fonctionnalités"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Aperçu"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "L'aperçu et l'exportation utilisent la dernière version valide."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Lecture…"msgid "Ready to activate"msgstr "Prêt à activer"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Prêt à être activé avec avertissements"@@ -3663,10 +3669,6 @@ msgstr "Réinitialiser"msgid "Reset Password"msgstr "Réinitialiser le mot de passe"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Réinitialiser la feuille de style appliquée"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Réinitialisez votre mot de passe"@@ -4195,6 +4197,10 @@ msgstr "Certains systèmes de candidature en exigent un avant que vous puissiezmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Certains analyseurs traitent mal les images et les photos sont déconseillées dans certaines régions."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Quelque chose s'est mal passé"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Éditeur de feuilles de style"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "La feuille de style contient des erreurs"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Utilisateurs"msgid "Uzbek"msgstr "Ouzbékistanais"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Les URL valides doivent commencer par http:// ou https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Passerelle Vercel AI"@@ -5411,4 +5429,3 @@ msgstr "Zoom arrière"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zoulou"-diff --git a/apps/web/locales/he-IL.po b/apps/web/locales/he-IL.poindex 4fb054d58..9d1df1ec8 100644--- a/apps/web/locales/he-IL.po+++ b/apps/web/locales/he-IL.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "מועמדויות שנשלחו בשבוע (8 השבועות האחרונים)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "הוגש"@@ -534,10 +533,6 @@ msgstr "הוגש"msgid "Applied on"msgstr "הוגש בתאריך"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "יושם עם אזהרות"-#: src/libs/locale.tsmsgid "Arabic"msgstr "ערבית"@@ -1765,7 +1760,6 @@ msgstr "הזן את הסיסמה שלך כדי לאשר הגדרת אימות דmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "הזן את הסיסמה שלך כדי להשבית אימות דו־שלבי. החשבון שלך יהיה פחות מאובטח ללא אימות דו־שלבי."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "שְׁגִיאָה"@@ -2003,6 +1997,10 @@ msgstr "לא הצלחנו לאמת את קוד הגיבוי שלך. אנא נסmsgid "Failed to verify your code. Please try again."msgstr "לא הצלחנו לאמת את הקוד שלך. אנא נסה שוב."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "יכולות"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "תצוגה מקדימה"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "תצוגה מקדימה וייצוא משתמשים בגרסה התקינה האחרונה."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "קורא…"msgid "Ready to activate"msgstr "מוכן להפעלה"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "מוכן להפעלה עם אזהרות"@@ -3663,10 +3669,6 @@ msgstr "איפוס"msgid "Reset Password"msgstr "איפוס סיסמה"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "איפוס לגיליון הסגנונות שהוחל"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "איפוס הסיסמה שלך"@@ -4195,6 +4197,10 @@ msgstr "מערכות מועמדות מסוימות דורשות זאת לפניmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "מנתחים מסוימים מטפלים בתמונות באופן שגוי, ובאזורים מסוימים לא מומלץ להשתמש בתמונות."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "משהו השתבש"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "עורך גיליון סגנונות"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "גיליון הסגנונות מכיל שגיאות"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "משתמשים"msgid "Uzbek"msgstr "אוזבקית"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "כתובות URL חוקיות חייבות להתחיל ב־http:// או https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "התרחקות"#: src/libs/locale.tsmsgid "Zulu"msgstr "זולו"-diff --git a/apps/web/locales/hi-IN.po b/apps/web/locales/hi-IN.poindex f89affa27..da7cc1a18 100644--- a/apps/web/locales/hi-IN.po+++ b/apps/web/locales/hi-IN.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "प्रति सप्ताह भेजे गए आवेदन (पिछले 8 सप्ताह)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "आवेदन किया"@@ -534,10 +533,6 @@ msgstr "आवेदन किया"msgid "Applied on"msgstr "आवेदन की तारीख"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "चेतावनी सहित लागू"-#: src/libs/locale.tsmsgid "Arabic"msgstr "अरबी"@@ -1765,7 +1760,6 @@ msgstr "दो‑कारक प्रमाणीकरण सेटअप कmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "दो‑कारक प्रमाणीकरण अक्षम करने के लिए अपना पासवर्ड दर्ज करें। 2FA सक्षम न होने पर आपका खाता कम सुरक्षित रहेगा।"-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "गलती"@@ -2003,6 +1997,10 @@ msgstr "आपके बैकअप कोड को सत्यापितmsgid "Failed to verify your code. Please try again."msgstr "आपके कोड का सत्यापन विफल हो गया। कृपया फिर से प्रयास करें।"+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "विशेषताएँ"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "पूर्व दर्शन"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "पूर्वावलोकन और निर्यात के लिए अंतिम मान्य संस्करण का उपयोग करें।"+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "पढ़ा जा रहा है…"msgid "Ready to activate"msgstr "सक्रिय करने के लिए तैयार"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "चेतावनी सहित सक्रिय करने के लिए तैयार"@@ -3663,10 +3669,6 @@ msgstr "रीसेट"msgid "Reset Password"msgstr "पासवर्ड रीसेट करें"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "लागू स्टाइलशीट पर रीसेट करें"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "अपना पासवर्ड रीसेट करें"@@ -4195,6 +4197,10 @@ msgstr "आपके सबमिट करने से पहले कुछmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "कुछ पार्सर्स छवियों को गलत तरीके से संभालते हैं, और कुछ क्षेत्रों में फ़ोटो को हतोत्साहित किया जाता है।"+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "कुछ गलत हो गया"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "स्टाइलशीट संपादक"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "स्टाइलशीट में त्रुटियाँ हैं"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "उपयोगकर्ता"msgid "Uzbek"msgstr "उज़्बेक"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "मान्य URL http:// या https:// से शुरू होना चाहिए।"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "वर्सेल एआई गेटवे"@@ -5411,4 +5429,3 @@ msgstr "ज़ूम आउट"#: src/libs/locale.tsmsgid "Zulu"msgstr "ज़ुलु"-diff --git a/apps/web/locales/hu-HU.po b/apps/web/locales/hu-HU.poindex 5518fc124..0e2d9309d 100644--- a/apps/web/locales/hu-HU.po+++ b/apps/web/locales/hu-HU.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Hetente elküldött jelentkezések (az elmúlt 8 hét)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Jelentkezve"@@ -534,10 +533,6 @@ msgstr "Jelentkezve"msgid "Applied on"msgstr "Jelentkezés dátuma"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Figyelmeztetésekkel alkalmazva"-#: src/libs/locale.tsmsgid "Arabic"msgstr "arab"@@ -1765,7 +1760,6 @@ msgstr "Add meg a jelszavadat a kétlépcsős hitelesítés beállításának memsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Add meg a jelszavadat a kétlépcsős hitelesítés kikapcsolásához. A fiókod kevésbé lesz biztonságos 2FA nélkül."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Hiba"@@ -2003,6 +1997,10 @@ msgstr "Nem sikerült ellenőrizni a biztonsági mentés kódját. Kérjük, prmsgid "Failed to verify your code. Please try again."msgstr "Nem sikerült ellenőrizni a kódot. Kérjük, próbálja meg újra."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Funkciók"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Előnézet"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Az előnézet és az exportálás a legutóbbi érvényes verziót használja."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Olvasás…"msgid "Ready to activate"msgstr "Aktiválásra kész"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Aktiválásra kész, figyelmeztetésekkel"@@ -3663,10 +3669,6 @@ msgstr "Visszaállítás"msgid "Reset Password"msgstr "Jelszó visszaállítása"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Visszaállítás az alkalmazott stíluslapra"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Jelszó visszaállítása"@@ -4195,6 +4197,10 @@ msgstr "Egyes jelentkezési rendszereknek szüksége van egy ilyenre a benyújtmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Egyes elemzők rosszul kezelik a képeket, és egyes régiókban nem javasoljuk a fotók használatát."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Valami rosszul sült el"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Stíluslap-szerkesztő"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "A stíluslap hibákat tartalmaz"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Felhasználók"msgid "Uzbek"msgstr "üzbég"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Az érvényes URL http:// vagy https:// előtaggal kezdődik."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Kicsinyítés"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/id-ID.po b/apps/web/locales/id-ID.poindex b8f6c4f1e..3648d749b 100644--- a/apps/web/locales/id-ID.po+++ b/apps/web/locales/id-ID.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Lamaran dikirim per minggu (8 minggu terakhir)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Dilamar"@@ -534,10 +533,6 @@ msgstr "Dilamar"msgid "Applied on"msgstr "Dilamar pada"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Diterapkan dengan peringatan"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arab"@@ -1765,7 +1760,6 @@ msgstr "Masukkan kata sandi Anda untuk mengonfirmasi penyiapan autentikasi dua fmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Masukkan kata sandi Anda untuk menonaktifkan autentikasi dua faktor. Akun Anda akan menjadi kurang aman tanpa 2FA diaktifkan."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Kesalahan"@@ -2003,6 +1997,10 @@ msgstr "Gagal memverifikasi kode cadangan Anda. Silakan coba lagi."msgid "Failed to verify your code. Please try again."msgstr "Gagal memverifikasi kode Anda. Silakan coba lagi."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Fitur"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Pratinjau"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Pratinjau dan ekspor menggunakan versi valid terakhir."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Membaca…"msgid "Ready to activate"msgstr "Siap diaktifkan"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Siap diaktifkan dengan peringatan"@@ -3663,10 +3669,6 @@ msgstr "Atur Ulang"msgid "Reset Password"msgstr "Atur Ulang Kata Sandi"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Atur ulang ke stylesheet yang diterapkan"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Atur ulang kata sandi Anda"@@ -4195,6 +4197,10 @@ msgstr "Beberapa sistem lamaran memerlukannya sebelum Anda dapat mengirimkannya.msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Beberapa parser salah menangani gambar, dan foto tidak disarankan di beberapa wilayah."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Terjadi kesalahan."@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Editor lembar gaya"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Stylesheet memiliki kesalahan"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Pengguna"msgid "Uzbek"msgstr "Uzbek"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "URL yang valid harus dimulai dengan http:// atau https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Perkecil"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/it-IT.po b/apps/web/locales/it-IT.poindex 6b12a208a..778c45cb4 100644--- a/apps/web/locales/it-IT.po+++ b/apps/web/locales/it-IT.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Candidature inviate a settimana (ultime 8 settimane)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Candidatura inviata"@@ -534,10 +533,6 @@ msgstr "Candidatura inviata"msgid "Applied on"msgstr "Candidatura inviata il"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Applicato con avvertenze"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arabo"@@ -1765,7 +1760,6 @@ msgstr "Inserisci la tua password per confermare la configurazione dell'autenticmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Inserisci la tua password per disabilitare l'autenticazione a due fattori. Il tuo account sarà meno sicuro senza 2FA attiva."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Errore"@@ -2003,6 +1997,10 @@ msgstr "Impossibile verificare il suo codice di backup. Provi di nuovo."msgid "Failed to verify your code. Please try again."msgstr "Non è stato possibile verificare il suo codice. La preghiamo di riprovare."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Funzionalità"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Anteprima"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "L'anteprima e l'esportazione utilizzano l'ultima versione valida."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Lettura…"msgid "Ready to activate"msgstr "Pronto per l'attivazione"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Pronto per l'attivazione con avvisi"@@ -3663,10 +3669,6 @@ msgstr "Ripristina"msgid "Reset Password"msgstr "Reimposta password"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Ripristina il foglio di stile applicato"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Reimposta la tua password"@@ -4195,6 +4197,10 @@ msgstr "Alcuni sistemi di candidatura ne richiedono uno prima di poter inviare."msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Alcuni parser gestiscono male le immagini e le foto sono sconsigliate in alcune regioni."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Qualcosa è andato storto"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Editor di fogli di stile"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Il foglio di stile presenta degli errori"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Utenti"msgid "Uzbek"msgstr "Uzbeco"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Gli URL validi devono iniziare con http:// o https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Gateway Vercel AI"@@ -5411,4 +5429,3 @@ msgstr "Rimpicciolisci"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/ja-JP.po b/apps/web/locales/ja-JP.poindex 82fc5c81e..6f57dd280 100644--- a/apps/web/locales/ja-JP.po+++ b/apps/web/locales/ja-JP.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "週ごとの応募送信数(直近8週間)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "応募済み"@@ -534,10 +533,6 @@ msgstr "応募済み"msgid "Applied on"msgstr "応募日"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "警告付きで適用"-#: src/libs/locale.tsmsgid "Arabic"msgstr "アラビア語"@@ -1765,7 +1760,6 @@ msgstr "二要素認証を設定することを確定するために、パスワmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "二要素認証を無効にするには、パスワードを入力してください。2FA を無効化すると、アカウントのセキュリティレベルは下がります。"-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "エラー"@@ -2003,6 +1997,10 @@ msgstr "バックアップコードの検証に失敗しました。もう一度msgid "Failed to verify your code. Please try again."msgstr "コードの検証に失敗しました。もう一度やり直してください。"+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "機能"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "プレビュー"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "プレビューとエクスポートには、最新の有効なバージョンを使用してください。"+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "読み込み中…"msgid "Ready to activate"msgstr "起動準備完了"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "警告付きで有効化準備完了"@@ -3663,10 +3669,6 @@ msgstr "リセット"msgid "Reset Password"msgstr "パスワードをリセット"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "適用済みのスタイルシートにリセットします"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "パスワードをリセット"@@ -4195,6 +4197,10 @@ msgstr "一部のアプリケーション システムでは、送信する前msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "一部のパーサーは画像を誤って処理するため、一部の地域では写真の使用が推奨されません。"+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "何らかの問題が発生しました"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "スタイルシートエディタ"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "スタイルシートにエラーがあります"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "ユーザー数"msgid "Uzbek"msgstr "ウズベク語"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "有効な URL は http:// または https:// で始まる必要があります。"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "ズームアウト"#: src/libs/locale.tsmsgid "Zulu"msgstr "ズールー語"-diff --git a/apps/web/locales/km-KH.po b/apps/web/locales/km-KH.poindex 53c495043..148035708 100644--- a/apps/web/locales/km-KH.po+++ b/apps/web/locales/km-KH.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "ពាក្យសុំបានផ្ញើក្នុងមួយសប្តាហ៍ (៨ សប្តាហ៍ចុងក្រោយ)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "បានដាក់ពាក្យ"@@ -534,10 +533,6 @@ msgstr "បានដាក់ពាក្យ"msgid "Applied on"msgstr "បានដាក់ពាក្យនៅ"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "អនុវត្តជាមួយការព្រមាន"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arabic"@@ -1765,7 +1760,6 @@ msgstr "បញ្ចូលពាក្យសម្ងាត់របស់msgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "បញ្ចូលពាក្យសម្ងាត់របស់អ្នក ដើម្បីបិទការផ្ទៀងផ្ទាត់ពីរជាន់។ គណនីរបស់អ្នកនឹងកាន់តែមានហានិភ័យនៅពេលមិនបានបើក 2FA ទៀត។"-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "កំហុស"@@ -2003,6 +1997,10 @@ msgstr "បរាជ័យក្នុងការផ្ទៀងផ្ទាតmsgid "Failed to verify your code. Please try again."msgstr "បរាជ័យក្នុងការផ្ទៀងផ្ទាត់កូដរបស់អ្នក។ សូមព្យាយាមម្ដងទៀត។"+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "មុខងារ"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "មើលជាមុន"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "ការមើលជាមុន និងការនាំចេញប្រើប្រាស់កំណែដែលមានសុពលភាពចុងក្រោយ។"+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "កំពុងអាន…"msgid "Ready to activate"msgstr "រួចរាល់ដើម្បីធ្វើឱ្យសកម្ម"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "រួចរាល់ដើម្បីធ្វើឲ្យសកម្មជាមួយនឹងការព្រមាន"@@ -3663,10 +3669,6 @@ msgstr "កំណត់ឡើងវិញ"msgid "Reset Password"msgstr "កំណត់ពាក្យសម្ងាត់ឡើងវិញ"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "កំណត់ឡើងវិញទៅសន្លឹករចនាប័ទ្មដែលបានអនុវត្ត"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "កំណត់ពាក្យសម្ងាត់របស់អ្នកឡើងវិញ"@@ -4195,6 +4197,10 @@ msgstr "ប្រព័ន្ធកម្មវិធីមួយចំmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "ឧបករណ៍ញែកមួយចំនួនធ្វើឱ្យរូបភាពមិនត្រឹមត្រូវ ហើយរូបថតត្រូវបានលើកទឹកចិត្តនៅក្នុងតំបន់មួយចំនួន។"+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "មានអ្វីមួយខុសប្រក្រតី"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "កម្មវិធីនិពន្ធសន្លឹករចនាប័ទ្ម"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "សន្លឹករចនាប័ទ្មមានកំហុស"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "អ្នកប្រើ"msgid "Uzbek"msgstr "Uzbek"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "URL ត្រឹមត្រូវ ត្រូវតែចាប់ផ្តើមដោយ http:// ឬ https://។"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "បង្រួម"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/kn-IN.po b/apps/web/locales/kn-IN.poindex 9f489cdf3..d053f0b8f 100644--- a/apps/web/locales/kn-IN.po+++ b/apps/web/locales/kn-IN.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "ಪ್ರತಿ ವಾರ ಕಳುಹಿಸಿದ ಅರ್ಜಿಗಳು (ಕೊನೆಯ 8 ವಾರಗಳು)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "ಅರ್ಜಿಸಲಾಗಿದೆ"@@ -534,10 +533,6 @@ msgstr "ಅರ್ಜಿಸಲಾಗಿದೆ"msgid "Applied on"msgstr "ಅರ್ಜಿ ಸಲ್ಲಿಸಿದ ದಿನಾಂಕ"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "ಎಚ್ಚರಿಕೆಗಳೊಂದಿಗೆ ಅನ್ವಯಿಸಲಾಗಿದೆ"-#: src/libs/locale.tsmsgid "Arabic"msgstr "ಅರೇಬಿಕ್"@@ -1765,7 +1760,6 @@ msgstr "ಎರಡು ಅಂಶಗಳ ದೃಢೀಕರಣವನ್ನು ಹೊmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "ಎರಡು ಅಂಶಗಳ ದೃಢೀಕರಣವನ್ನು ನಿಷ್ಕ್ರಿಯಗೊಳಿಸಲು ನಿಮ್ಮ ಪಾಸ್ವರ್ಡ್ ಅನ್ನು ನಮೂದಿಸಿ. 2FA ಸಕ್ರಿಯಗೊಳಿಸದಿದ್ದರೆ ನಿಮ್ಮ ಖಾತೆ ಕಡಿಮೆ ಸುರಕ್ಷಿತವಾಗಿರುತ್ತದೆ."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "ದೋಷ"@@ -2003,6 +1997,10 @@ msgstr "ನಿಮ್ಮ ಬ್ಯಾಕಪ್ ಕೋಡ್ ಅನ್ನು ಪmsgid "Failed to verify your code. Please try again."msgstr "ನಿಮ್ಮ ಕೋಡ್ ಅನ್ನು ಪರಿಶೀಲಿಸಲು ವಿಫಲವಾಗಿದೆ. ದಯವಿಟ್ಟು ಮತ್ತೆ ಪ್ರಯತ್ನಿಸಿ."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "ವೈಶಿಷ್ಟ್ಯಗಳು"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "ಪೂರ್ವವೀಕ್ಷಣೆ"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "ಕೊನೆಯ ಮಾನ್ಯ ಆವೃತ್ತಿಯನ್ನು ಬಳಸಿಕೊಂಡು ಪೂರ್ವವೀಕ್ಷಣೆ ಮತ್ತು ರಫ್ತು ಮಾಡಿ."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "ಓದುತ್ತಿದೆ…"msgid "Ready to activate"msgstr "ಸಕ್ರಿಯಗೊಳಿಸಲು ಸಿದ್ಧವಾಗಿದೆ"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "ಎಚ್ಚರಿಕೆಗಳೊಂದಿಗೆ ಸಕ್ರಿಯಗೊಳಿಸಲು ಸಿದ್ಧವಾಗಿದೆ"@@ -3663,10 +3669,6 @@ msgstr "ಮರುಹೊಂದಿಸಿ"msgid "Reset Password"msgstr "ಪಾಸ್ವರ್ಡ್ ಅನ್ನು ಮರುಹೊಂದಿಸಿ"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "ಅನ್ವಯಿಸಲಾದ ಸ್ಟೈಲ್ಶೀಟ್ಗೆ ಮರುಹೊಂದಿಸಿ"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "ನಿಮ್ಮ ಪಾಸ್ವರ್ಡ್ ಅನ್ನು ಮರುಹೊಂದಿಸಿ"@@ -4195,6 +4197,10 @@ msgstr "ನೀವು ಸಲ್ಲಿಸುವ ಮೊದಲು ಕೆಲವುmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "ಕೆಲವು ಪಾರ್ಸರ್ಗಳು ಚಿತ್ರಗಳನ್ನು ತಪ್ಪಾಗಿ ನಿರ್ವಹಿಸುತ್ತವೆ ಮತ್ತು ಕೆಲವು ಪ್ರದೇಶಗಳಲ್ಲಿ ಫೋಟೋಗಳನ್ನು ನಿರುತ್ಸಾಹಗೊಳಿಸಲಾಗುತ್ತದೆ."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "ಏನೋ ತಪ್ಪಾಗಿದೆ."@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "ಸ್ಟೈಲ್ಶೀಟ್ ಸಂಪಾದಕ"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "ಸ್ಟೈಲ್ಶೀಟ್ ದೋಷಗಳನ್ನು ಹೊಂದಿದೆ."+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "ಬಳಕೆದಾರರು"msgid "Uzbek"msgstr "ಉಜ್ಬೇಕ್"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "ಮಾನ್ಯ URL ಗಳು http:// ಅಥವಾ https:// ನಿಂದ ಪ್ರಾರಂಭವಾಗಿರಬೇಕು."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "ಗಾತ್ರ ಕುಗ್ಗಿಸಿ"#: src/libs/locale.tsmsgid "Zulu"msgstr "ಜೂಲೂ"-diff --git a/apps/web/locales/ko-KR.po b/apps/web/locales/ko-KR.poindex 1c6247221..7c927559c 100644--- a/apps/web/locales/ko-KR.po+++ b/apps/web/locales/ko-KR.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "주당 보낸 지원서 (최근 8주)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "지원함"@@ -534,10 +533,6 @@ msgstr "지원함"msgid "Applied on"msgstr "지원일"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "경고와 함께 적용됨"-#: src/libs/locale.tsmsgid "Arabic"msgstr "아랍어"@@ -1765,7 +1760,6 @@ msgstr "2단계 인증을 설정하려면 비밀번호를 입력해 확인하세msgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "2단계 인증을 비활성화하려면 비밀번호를 입력하세요. 2단계 인증을 사용하지 않으면 계정 보안이 낮아집니다."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "오류"@@ -2003,6 +1997,10 @@ msgstr "백업 코드를 인증하지 못했습니다. 다시 시도해 주세msgid "Failed to verify your code. Please try again."msgstr "코드를 인증하지 못했습니다. 다시 시도해 주세요."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "기능"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "시사"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "미리보기 및 내보내기 시에는 마지막으로 유효한 버전을 사용합니다."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "읽는 중…"msgid "Ready to activate"msgstr "활성화 준비 완료"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "경고 메시지와 함께 활성화할 준비가 되었습니다."@@ -3663,10 +3669,6 @@ msgstr "초기화"msgid "Reset Password"msgstr "비밀번호 재설정"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "적용된 스타일시트로 재설정"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "비밀번호 재설정"@@ -4195,6 +4197,10 @@ msgstr "일부 지원 시스템에서는 제출하기 전에 하나의 정보가msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "일부 파서는 이미지를 잘못 처리하므로 일부 지역에서는 사진을 사용하지 않는 것이 좋습니다."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "뭔가 잘못됐어요"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "스타일시트 편집기"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "스타일시트에 오류가 있습니다"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "사용자 수"msgid "Uzbek"msgstr "우즈베크어"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "유효한 URL은 http:// 또는 https://로 시작해야 합니다."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "버셀 AI 게이트웨이"@@ -5411,4 +5429,3 @@ msgstr "축소"#: src/libs/locale.tsmsgid "Zulu"msgstr "줄루어"-diff --git a/apps/web/locales/lt-LT.po b/apps/web/locales/lt-LT.poindex a872e7005..b24ac4d86 100644--- a/apps/web/locales/lt-LT.po+++ b/apps/web/locales/lt-LT.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Per savaitę išsiųstos paraiškos (paskutinės 8 savaitės)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Pateikta"@@ -534,10 +533,6 @@ msgstr "Pateikta"msgid "Applied on"msgstr "Pateikta"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Taikoma su įspėjimais"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arabų"@@ -1765,7 +1760,6 @@ msgstr "Įveskite slaptažodį, kad patvirtintumėte dviejų veiksnių tapatumomsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Įveskite slaptažodį, kad išjungtumėte dviejų veiksnių tapatumo patvirtinimą. Be įjungto 2FA jūsų paskyra bus mažiau saugi."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Klaida"@@ -2003,6 +1997,10 @@ msgstr "Nepavyko patikrinti atsarginės kopijos kodo. Bandykite dar kartą."msgid "Failed to verify your code. Please try again."msgstr "Nepavyko patikrinti jūsų kodo. Bandykite dar kartą."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Funkcijos"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Peržiūra"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Peržiūrai ir eksportui naudokite paskutinę galiojančią versiją."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Skaitoma…"msgid "Ready to activate"msgstr "Paruošta aktyvuoti"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Paruošta aktyvuoti su įspėjimais"@@ -3663,10 +3669,6 @@ msgstr "Nustatyti iš naujo"msgid "Reset Password"msgstr "Atkurti slaptažodį"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Atkurti pritaikytą stiliaus lapą"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Atkurkite slaptažodį"@@ -4195,6 +4197,10 @@ msgstr "Kai kurioms paraiškų teikimo sistemoms reikia, kad galėtumėte pateikmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Kai kurie analizatoriai netinkamai tvarko vaizdus, o kai kuriuose regionuose nuotraukos nerekomenduojamos."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Kažkas nutiko ne taip"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Stilių lapų redaktorius"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Stiliaus lape yra klaidų"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Vartotojai"msgid "Uzbek"msgstr "Uzbekų"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Teisingi URL turi prasidėti http:// arba https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "\"Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Tolinti"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulų"-diff --git a/apps/web/locales/lv-LV.po b/apps/web/locales/lv-LV.poindex 4a2b42ef3..87f1acd3a 100644--- a/apps/web/locales/lv-LV.po+++ b/apps/web/locales/lv-LV.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Nedēļā nosūtītie pieteikumi (pēdējās 8 nedēļas)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Pieteikts"@@ -534,10 +533,6 @@ msgstr "Pieteikts"msgid "Applied on"msgstr "Pieteikts"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Pielietots ar brīdinājumiem"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arābu"@@ -1765,7 +1760,6 @@ msgstr "Ievadiet savu paroli, lai apstiprinātu divu faktoru autentifikācijas imsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Ievadiet savu paroli, lai deaktivētu divu faktoru autentifikāciju. Bez ieslēgtas 2FA jūsu konts būs mazāk drošs."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Kļūda"@@ -2003,6 +1997,10 @@ msgstr "Neizdevās pārbaudīt jūsu dublējuma kodu. Lūdzu, mēģiniet vēlreimsgid "Failed to verify your code. Please try again."msgstr "Jūsu kodu neizdevās pārbaudīt. Lūdzu, mēģiniet vēlreiz."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Funkcijas"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Priekšskatījums"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Priekšskatījumā un eksportā tiek izmantota pēdējā derīgā versija."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Lasa…"msgid "Ready to activate"msgstr "Gatavs aktivizēšanai"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Gatavs aktivizēšanai ar brīdinājumiem"@@ -3663,10 +3669,6 @@ msgstr "Atiestatīt"msgid "Reset Password"msgstr "Atiestatīt paroli"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Atiestatīt uz lietoto stila lapu"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Atiestatīt paroli"@@ -4195,6 +4197,10 @@ msgstr "Dažām pieteikumu sistēmām tas ir nepieciešams, lai to varētu iesnimsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Daži parsētāji nepareizi apstrādā attēlus, un dažos reģionos fotoattēli nav ieteicami."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Kaut kas nogāja greizi"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Stilu lapu redaktors"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Stilu lapā ir kļūdas"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Lietotāji"msgid "Uzbek"msgstr "Uzbeku"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Derīgiem URL jāsākas ar http:// vai https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI vārtejas"@@ -5411,4 +5429,3 @@ msgstr "Tālināt"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/ml-IN.po b/apps/web/locales/ml-IN.poindex 77eac7cb8..c99f997d2 100644--- a/apps/web/locales/ml-IN.po+++ b/apps/web/locales/ml-IN.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "ആഴ്ചയിൽ അയച്ച അപേക്ഷകൾ (കഴിഞ്ഞ 8 ആഴ്ച)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "അപേക്ഷിച്ചു"@@ -534,10 +533,6 @@ msgstr "അപേക്ഷിച്ചു"msgid "Applied on"msgstr "പ്രയോഗിച്ചു"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "മുന്നറിയിപ്പുകൾ ഉപയോഗിച്ച് പ്രയോഗിച്ചു"-#: src/libs/locale.tsmsgid "Arabic"msgstr "അറബിക്"@@ -1765,7 +1760,6 @@ msgstr "ടു‑ഫാക്ടർ ഓത്ന്റിക്കേഷൻmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "ടു‑ഫാക്ടർ ഓത്ന്റിക്കേഷൻ അപ്രാപ്തമാക്കാൻ നിങ്ങളുടെ പാസ്വേഡ് നൽകുക. 2FA പ്രാപ്തമാക്കിയിട്ടില്ലാത്തതിനാൽ നിങ്ങളുടെ അക്കൗണ്ട് കുറച്ച് കുറവായി സുരക്ഷിതമായിവരും."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "പിശക്"@@ -2003,6 +1997,10 @@ msgstr "നിങ്ങളുടെ ബാക്കപ്പ് കോഡ് പmsgid "Failed to verify your code. Please try again."msgstr "നിങ്ങളുടെ കോഡ് പരിശോധിക്കുന്നതിൽ പരാജയപ്പെട്ടു. ദയവായി വീണ്ടും ശ്രമിക്കുക."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "സവിശേഷതകൾ"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "പ്രിവ്യൂ"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "അവസാനത്തെ സാധുവായ പതിപ്പ് ഉപയോഗിച്ച് പ്രിവ്യൂ ചെയ്ത് എക്സ്പോർട്ട് ചെയ്യുക."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "വായിക്കുന്നു..."msgid "Ready to activate"msgstr "സജീവമാക്കാൻ തയ്യാറാണ്"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "മുന്നറിയിപ്പുകൾ നൽകി സജീവമാക്കാൻ തയ്യാറാണ്"@@ -3663,10 +3669,6 @@ msgstr "റീസെറ്റ് ചെയ്യുക"msgid "Reset Password"msgstr "പാസ്വേഡ് റീസെറ്റ് ചെയ്യുക"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "പ്രയോഗിച്ച സ്റ്റൈൽഷീറ്റിലേക്ക് പുനഃസജ്ജമാക്കുക"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "നിങ്ങളുടെ പാസ്വേഡ് റീസെറ്റ് ചെയ്യുക"@@ -4195,6 +4197,10 @@ msgstr "നിങ്ങൾ സമർപ്പിക്കുന്നതിനmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "ചില പാഴ്സർമാർ ചിത്രങ്ങൾ തെറ്റായി കൈകാര്യം ചെയ്യുന്നു, ചില പ്രദേശങ്ങളിൽ ഫോട്ടോകൾ നിരുത്സാഹപ്പെടുത്തുന്നു."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "എന്തോ കുഴപ്പം സംഭവിച്ചു."@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "സ്റ്റൈൽഷീറ്റ് എഡിറ്റർ"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "സ്റ്റൈൽഷീറ്റിൽ പിശകുകൾ ഉണ്ട്"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "യൂസർമാർ"msgid "Uzbek"msgstr "ഉസ്ബെക്ക്"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "സാധുവായ URL‑കൾ http:// അല്ലെങ്കിൽ https:// കൊണ്ട് ആരംഭിക്കണം."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "വെർസെൽ എഐ ഗേറ്റ്വേ"@@ -5411,4 +5429,3 @@ msgstr "സൂം ഔട്ട് ചെയ്യുക"#: src/libs/locale.tsmsgid "Zulu"msgstr "സൂളു"-diff --git a/apps/web/locales/mr-IN.po b/apps/web/locales/mr-IN.poindex cd0915a40..4fa675adc 100644--- a/apps/web/locales/mr-IN.po+++ b/apps/web/locales/mr-IN.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "दर आठवड्याला पाठवलेले अर्ज (मागील 8 आठवडे)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "अर्ज केला"@@ -534,10 +533,6 @@ msgstr "अर्ज केला"msgid "Applied on"msgstr "वर अर्ज केला"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "इशाऱ्यांसह लागू केले"-#: src/libs/locale.tsmsgid "Arabic"msgstr "अरबी"@@ -1765,7 +1760,6 @@ msgstr "दुहेरी घटक ओथेंटिकेशन सेटअmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "दुहेरी घटक ओथेंटिकेशन अक्षम करण्यासाठी तुमचा पासवर्ड टाका. 2FA शिवाय तुमचे खाते कमी सुरक्षित राहील."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "त्रुटी"@@ -2003,6 +1997,10 @@ msgstr "आपला बॅकअप कोड पडताळणी करणmsgid "Failed to verify your code. Please try again."msgstr "तुमचा कोड पडताळणी करण्यात अयशस्वी झाला. कृपया पुन्हा प्रयत्न करा."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "वैशिष्ट्ये"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "पूर्वावलोकन"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "पूर्वावलोकन आणि निर्यातीसाठी शेवटची वैध आवृत्ती वापरली जाते."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "वाचत आहे…"msgid "Ready to activate"msgstr "सक्रिय करण्यासाठी तयार"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "इशाऱ्यांसह सक्रिय करण्यास तयार"@@ -3663,10 +3669,6 @@ msgstr "रीसेट करा"msgid "Reset Password"msgstr "पासवर्ड रीसेट करा"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "लागू केलेल्या स्टाईलशीटवर रीसेट करा"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "तुमचा पासवर्ड रीसेट करा"@@ -4195,6 +4197,10 @@ msgstr "तुम्ही सबमिट करण्यापूर्वीmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "काही विश्लेषक प्रतिमांची चुकीची हाताळणी करतात आणि काही प्रदेशांमध्ये फोटोंना परावृत्त केले जाते."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "काहीतरी चूक झाली."@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "स्टाईलशीट संपादक"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "स्टाईलशीटमध्ये त्रुटी आहेत"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "वापरकर्ते"msgid "Uzbek"msgstr "उझबेक"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "वैध URL ची सुरुवात http:// किंवा https:// ने होणे आवश्यक आहे."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "व्हर्सेल एआय गेटवे"@@ -5411,4 +5429,3 @@ msgstr "बाहेर झूम करा"#: src/libs/locale.tsmsgid "Zulu"msgstr "झुलू"-diff --git a/apps/web/locales/ms-MY.po b/apps/web/locales/ms-MY.poindex 66b9f9a17..b463f7389 100644--- a/apps/web/locales/ms-MY.po+++ b/apps/web/locales/ms-MY.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Permohonan dihantar setiap minggu (8 minggu lepas)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Dimohon"@@ -534,10 +533,6 @@ msgstr "Dimohon"msgid "Applied on"msgstr "Digunakan pada"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Digunakan dengan amaran"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Bahasa Arab"@@ -1765,7 +1760,6 @@ msgstr "Masukkan kata laluan anda untuk mengesahkan penyediaan pengesahan dua famsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Masukkan kata laluan anda untuk melumpuhkan pengesahan dua faktor. Akaun anda akan menjadi kurang selamat tanpa 2FA diaktifkan."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Ralat"@@ -2003,6 +1997,10 @@ msgstr "Gagal mengesahkan kod sandaran anda. Sila cuba lagi."msgid "Failed to verify your code. Please try again."msgstr "Gagal mengesahkan kod anda. Sila cuba lagi."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Ciri"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Pratonton"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Pratonton dan eksport gunakan versi terakhir yang sah."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Membaca…"msgid "Ready to activate"msgstr "Bersedia untuk diaktifkan"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Bersedia untuk diaktifkan dengan amaran"@@ -3663,10 +3669,6 @@ msgstr "Tetapkan Semula"msgid "Reset Password"msgstr "Tetapkan Semula Kata Laluan"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Tetapkan semula kepada helaian gaya yang digunakan"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Tetapkan semula kata laluan anda"@@ -4195,6 +4197,10 @@ msgstr "Sesetengah sistem aplikasi memerlukan satu sebelum anda boleh menyerahkamsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Sesetengah penghurai salah mengendalikan imej, dan foto tidak digalakkan di sesetengah wilayah."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Ada yang tidak kena"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Editor helaian gaya"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Helaian gaya mempunyai ralat"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Pengguna"msgid "Uzbek"msgstr "Uzbek"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "URL yang sah mesti bermula dengan http:// atau https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Pintu Gerbang AI Vercel"@@ -5411,4 +5429,3 @@ msgstr "Zum keluar"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/ne-NP.po b/apps/web/locales/ne-NP.poindex 680581f8b..45019eba0 100644--- a/apps/web/locales/ne-NP.po+++ b/apps/web/locales/ne-NP.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "प्रति हप्ता पठाइएका आवेदनहरू (पछिल्ला 8 हप्ता)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "आवेदन गरियो"@@ -534,10 +533,6 @@ msgstr "आवेदन गरियो"msgid "Applied on"msgstr "मा लागू गरियो"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "चेतावनीहरू सहित लागू गरियो"-#: src/libs/locale.tsmsgid "Arabic"msgstr "अरबी"@@ -1765,7 +1760,6 @@ msgstr "दुई-कारक प्रमाणीकरण सेटअपmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "दुई-कारक प्रमाणीकरण अक्षम गर्न आफ्नो पासवर्ड प्रविष्ट गर्नुहोस्। २FA सक्रिय नभएको अवस्थामा तपाईंको खाता कम सुरक्षित हुनेछ।"-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "त्रुटि"@@ -2003,6 +1997,10 @@ msgstr "तपाईंको ब्याकअप कोड प्रमाणmsgid "Failed to verify your code. Please try again."msgstr "तपाईंको कोड प्रमाणित गर्न असफल भयो। कृपया फेरि प्रयास गर्नुहोस्।"+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "विशेषताहरू"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "पूर्वावलोकन"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "पूर्वावलोकन र निर्यात अन्तिम मान्य संस्करण प्रयोग गर्नुहोस्।"+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "पढ्दै…"msgid "Ready to activate"msgstr "सक्रिय गर्न तयार छ"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "चेतावनी सहित सक्रिय गर्न तयार"@@ -3663,10 +3669,6 @@ msgstr "रिसेट गर्नुहोस्"msgid "Reset Password"msgstr "पासवर्ड रिसेट गर्नुहोस्"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "लागू गरिएको शैली पानामा रिसेट गर्नुहोस्"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "तपाईंको पासवर्ड रिसेट गर्नुहोस्"@@ -4195,6 +4197,10 @@ msgstr "तपाईंले पेश गर्न सक्नु अघिmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "केही पार्सरहरूले तस्बिरहरूलाई गलत प्रयोग गर्छन्, र फोटोहरू केही क्षेत्रहरूमा निरुत्साहित हुन्छन्।"+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "केही गडबड भयो।"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "स्टाइलसिट सम्पादक"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "स्टाइलसिटमा त्रुटिहरू छन्"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "प्रयोगकर्ताहरू"msgid "Uzbek"msgstr "उज्बेक"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "मान्य URL http:// वा https:// बाट सुरु हुनुुपर्छ।"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "वर्सेल एआई गेटवे"@@ -5411,4 +5429,3 @@ msgstr "जूम आउट"#: src/libs/locale.tsmsgid "Zulu"msgstr "जुलु"-diff --git a/apps/web/locales/nl-NL.po b/apps/web/locales/nl-NL.poindex e0b7ee494..c53e88964 100644--- a/apps/web/locales/nl-NL.po+++ b/apps/web/locales/nl-NL.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Sollicitaties per week verstuurd (laatste 8 weken)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Gesolliciteerd"@@ -534,10 +533,6 @@ msgstr "Gesolliciteerd"msgid "Applied on"msgstr "Toegepast op"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Toegepast met waarschuwingen"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arabisch"@@ -1765,7 +1760,6 @@ msgstr "Voer uw wachtwoord in om het instellen van tweestapsverificatie te bevesmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Voer uw wachtwoord in om tweestapsverificatie uit te schakelen. Uw account is minder goed beveiligd zonder 2FA."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Fout"@@ -2003,6 +1997,10 @@ msgstr "Het is niet gelukt om uw back-upcode te verifiëren. Probeer het opnieuwmsgid "Failed to verify your code. Please try again."msgstr "Het is niet gelukt om uw code te verifiëren. Probeer het opnieuw."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Functies"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Voorbeeld"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Voor het bekijken en exporteren wordt de laatst geldige versie gebruikt."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Lezen…"msgid "Ready to activate"msgstr "Klaar om te activeren"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Klaar voor activering met waarschuwingen"@@ -3663,10 +3669,6 @@ msgstr "Resetten"msgid "Reset Password"msgstr "Wachtwoord resetten"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Terugzetten naar toegepaste stijlblad"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Reset uw wachtwoord"@@ -4195,6 +4197,10 @@ msgstr "Sommige parsers verwerken afbeeldingen verkeerd en foto’s worden in somsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Wissel de begin- en einddatum om."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Er is iets misgegaan."@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Stijlpagina-editor"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Het stylesheet bevat fouten."+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Gebruikers"msgid "Uzbek"msgstr "Oezbeeks"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Geldige URL's moeten beginnen met http:// of https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Uitzoomen"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/no-NO.po b/apps/web/locales/no-NO.poindex 56c9acdb1..a455df9c8 100644--- a/apps/web/locales/no-NO.po+++ b/apps/web/locales/no-NO.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Søknader sendt per uke (siste 8 uker)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Søkt"@@ -534,10 +533,6 @@ msgstr "Søkt"msgid "Applied on"msgstr "Påført på"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Brukes med advarsler"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arabisk"@@ -1765,7 +1760,6 @@ msgstr "Skriv inn passordet ditt for å bekrefte at du vil sette opp tofaktorautmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Skriv inn passordet ditt for å deaktivere tofaktorautentisering. Kontoen din vil være mindre sikker uten aktivert 2FA."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Feil"@@ -2003,6 +1997,10 @@ msgstr "Kunne ikke bekrefte reservekoden din. Prøv igjen."msgid "Failed to verify your code. Please try again."msgstr "Kunne ikke bekrefte koden din. Prøv igjen."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Funksjoner"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Forhåndsvisning"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Forhåndsvisning og eksport med den siste gyldige versjonen."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Leser …"msgid "Ready to activate"msgstr "Klar til å aktiveres"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Klar til aktivering med advarsler"@@ -3663,10 +3669,6 @@ msgstr "Tilbakestill"msgid "Reset Password"msgstr "Tilbakestill passord"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Tilbakestill til brukt stilark"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Tilbakestill passordet ditt"@@ -4195,6 +4197,10 @@ msgstr "Noen søknadssystemer krever dette før du kan sende inn."msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Noen parsere håndterer bilder dårlig, og bilder frarådes i enkelte regioner."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Noe gikk galt"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Stilarkredigeringsprogram"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Stilarket inneholder feil"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Brukere"msgid "Uzbek"msgstr "Usbekisk"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Gyldige URL-er må starte med http:// eller https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Zoom ut"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/or-IN.po b/apps/web/locales/or-IN.poindex e4a12d7ba..2e815717a 100644--- a/apps/web/locales/or-IN.po+++ b/apps/web/locales/or-IN.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "ପ୍ରତି ସପ୍ତାହରେ ପଠାଯାଇଥିବା ଆବେଦନ (ଗତ 8 ସପ୍ତାହ)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "ଆବେଦନ କରାଯାଇଛି"@@ -534,10 +533,6 @@ msgstr "ଆବେଦନ କରାଯାଇଛି"msgid "Applied on"msgstr "ପ୍ରୟୋଗ ହୋଇଛି |"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "ଚେତାବନୀ ସହିତ ଲାଗୁ କରାଯାଇଛି"-#: src/libs/locale.tsmsgid "Arabic"msgstr "ଆରବୀ"@@ -1765,7 +1760,6 @@ msgstr "ଦ୍ୱି-ଘଟକ ପରିଚୟ ପ୍ରମାଣିକରଣmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "ଦ୍ୱି-ଘଟକ ପରିଚୟ ପ୍ରମାଣିକରଣ ଅସକ୍ରିୟ କରିବା ପାଇଁ ଆପଣଙ୍କ ପାସୱାର୍ଡ ପ୍ରବେଶ କରନ୍ତୁ। 2FA ସକ୍ରିୟ ନ ଥିଲେ ଆପଣଙ୍କ ଆକାଉଣ୍ଟ କମ୍ ସୁରକ୍ଷିତ ହେବ।"-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "ତ୍ରୁଟି"@@ -2003,6 +1997,10 @@ msgstr "ଆପଣଙ୍କ ବ୍ୟାକଅପ୍ କୋଡ୍ ସତ୍ୟାmsgid "Failed to verify your code. Please try again."msgstr "ଆପଣଙ୍କ କୋଡ୍ ସତ୍ୟାପନ କରିବାରେ ବିଫଳ ହେଲା। ଦୟାକରି ପୁଣି ଚେଷ୍ଟା କରନ୍ତୁ।"+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "ବିଶେଷତାଗୁଡିକ"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "ପୂର୍ବାବଲୋକନ"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "ପୂର୍ବାବଲୋକନ ଏବଂ ରପ୍ତାନି ଶେଷ ବୈଧ ସଂସ୍କରଣ ବ୍ୟବହାର କରନ୍ତୁ।"+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "ପ Reading ିବା…"msgid "Ready to activate"msgstr "ସକ୍ରିୟ କରିବାକୁ ପ୍ରସ୍ତୁତ"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "ଚେତାବନୀ ସହିତ ସକ୍ରିୟ କରିବାକୁ ପ୍ରସ୍ତୁତ"@@ -3663,10 +3669,6 @@ msgstr "ରିସେଟ୍ କରନ୍ତୁ"msgid "Reset Password"msgstr "ପାସୱାର୍ଡ ରିସେଟ୍ କରନ୍ତୁ"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "ଲାଗୁ ହୋଇଥିବା ଷ୍ଟାଇଲସିଟକୁ ରିସେଟ୍ କରନ୍ତୁ"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "ଆପଣଙ୍କ ପାସୱାର୍ଡ ରିସେଟ୍ କରନ୍ତୁ"@@ -4195,6 +4197,10 @@ msgstr "କିଛି ଆବେଦନ ସିଷ୍ଟମ୍ରେ ଦାଖଲmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "କିଛି ପାର୍ସର୍ ଚିତ୍ରକୁ ଠିକ୍ଭାବେ ପ୍ରକ୍ରିୟା କରିପାରେ ନାହିଁ, ଏବଂ କିଛି ଅଞ୍ଚଳରେ ଫଟୋ ନିରୁତ୍ସାହିତ କରାଯାଏ।"+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "କିଛି ତ୍ରୁଟି ହୋଇଗଲା"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "ଷ୍ଟାଇଲସିଟ୍ ଏଡିଟର୍"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "ଷ୍ଟାଇଲସିଟରେ ତ୍ରୁଟି ଅଛି"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "ଉପଯୋଗକର୍ତ୍ତାମାନେ"msgid "Uzbek"msgstr "ଉଜବେକ୍"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "ବୈଧ URL http:// କିମ୍ବା https:// ସହ ଆରମ୍ଭ ହେବା ଉଚିତ।"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "ଜୁମ୍ ଆଉଟ୍ କରନ୍ତୁ"#: src/libs/locale.tsmsgid "Zulu"msgstr "ଜୁଲୁ"-diff --git a/apps/web/locales/pl-PL.po b/apps/web/locales/pl-PL.poindex c131d2b4a..0e5aa4a1d 100644--- a/apps/web/locales/pl-PL.po+++ b/apps/web/locales/pl-PL.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Aplikacje wysłane tygodniowo (ostatnie 8 tygodni)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Złożono aplikację"@@ -534,10 +533,6 @@ msgstr "Złożono aplikację"msgid "Applied on"msgstr "Zastosowano"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Zastosowano z ostrzeżeniami"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arabski"@@ -1765,7 +1760,6 @@ msgstr "Wprowadź hasło, aby potwierdzić konfigurację uwierzytelniania dwuskmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Wprowadź hasło, aby wyłączyć uwierzytelnianie dwuskładnikowe. Twoje konto będzie mniej bezpieczne bez włączonego 2FA."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Błąd"@@ -2003,6 +1997,10 @@ msgstr "Nie udało się zweryfikować kodu kopii zapasowej. Proszę spróbowaćmsgid "Failed to verify your code. Please try again."msgstr "Nie udało się zweryfikować kodu. Proszę spróbować ponownie."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Funkcje"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Zapowiedź"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Podczas podglądu i eksportu użyj ostatniej ważnej wersji."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Czytanie…"msgid "Ready to activate"msgstr "Gotowy do aktywacji"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Gotowy do aktywacji z ostrzeżeniami"@@ -3663,10 +3669,6 @@ msgstr "Zresetuj"msgid "Reset Password"msgstr "Zresetuj hasło"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Resetuj do zastosowanego arkusza stylów"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Zresetuj swoje hasło"@@ -4195,6 +4197,10 @@ msgstr "Niektóre systemy rekrutacyjne wymagają go przed wysłaniem zgłoszeniamsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Niektóre parsery nieprawidłowo obsługują obrazy, a w niektórych regionach odradza się dodawanie zdjęć."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Coś poszło nie tak"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Edytor arkuszy stylów"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Arkusz stylów zawiera błędy"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Użytkownicy"msgid "Uzbek"msgstr "Uzbecki"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Prawidłowe adresy URL muszą zaczynać się od http:// lub https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Pomniejsz"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/pt-BR.po b/apps/web/locales/pt-BR.poindex 5e558cb13..230a06a22 100644--- a/apps/web/locales/pt-BR.po+++ b/apps/web/locales/pt-BR.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Candidaturas enviadas por semana (últimas 8 semanas)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Aplicado"@@ -534,10 +533,6 @@ msgstr "Aplicado"msgid "Applied on"msgstr "Aplicado em"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Aplicado com ressalvas."-#: src/libs/locale.tsmsgid "Arabic"msgstr "Árabe"@@ -1765,7 +1760,6 @@ msgstr "Digite sua senha para confirmar a configuração da autenticação de domsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Digite sua senha para desativar a autenticação de dois fatores. Sua conta ficará menos segura sem o 2FA ativado."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Erro"@@ -2003,6 +1997,10 @@ msgstr "Falha ao verificar seu código de backup. Tente novamente."msgid "Failed to verify your code. Please try again."msgstr "Falha ao verificar seu código. Por favor, tente novamente."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Recursos"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Pré-visualização"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "A pré-visualização e a exportação utilizam a última versão válida."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Lendo…"msgid "Ready to activate"msgstr "Pronto para ativar"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Pronto para ativar com avisos"@@ -3663,10 +3669,6 @@ msgstr "Redefinir"msgid "Reset Password"msgstr "Redefinir senha"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Redefinir para a folha de estilo aplicada"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Redefinir a sua senha"@@ -4195,6 +4197,10 @@ msgstr "Alguns sistemas de candidatura exigem um número de telefone antes que vmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Alguns analisadores lidam mal com imagens, e fotos são desencorajadas em algumas regiões."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Algo deu errado"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Editor de folhas de estilo"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "A folha de estilo contém erros."+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Usuários"msgid "Uzbek"msgstr "Uzbeque"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "URLs válidos devem começar com http:// ou https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Gateway de IA da Vercel"@@ -5411,4 +5429,3 @@ msgstr "Diminuir zoom"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/pt-PT.po b/apps/web/locales/pt-PT.poindex 725ba3b0d..6c3450d21 100644--- a/apps/web/locales/pt-PT.po+++ b/apps/web/locales/pt-PT.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Candidaturas enviadas por semana (últimas 8 semanas)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Candidatura enviada"@@ -534,10 +533,6 @@ msgstr "Candidatura enviada"msgid "Applied on"msgstr "Aplicado em"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Aplicado com reservas."-#: src/libs/locale.tsmsgid "Arabic"msgstr "Árabe"@@ -1765,7 +1760,6 @@ msgstr "Introduza a sua senha para confirmar a configuração da autenticaçãomsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Introduza a sua senha para desativar a autenticação de dois fatores. A sua conta ficará menos segura sem a 2FA ativada."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Erro"@@ -2003,6 +1997,10 @@ msgstr "Não foi possível verificar o seu código de cópia de segurança. Tentmsgid "Failed to verify your code. Please try again."msgstr "Não foi possível verificar o seu código. Por favor, tente novamente."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Funcionalidades"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Pré-visualização"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "A pré-visualização e a exportação utilizam a última versão válida."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Leitura…"msgid "Ready to activate"msgstr "Pronto para ativar"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Pronto para ativar com avisos"@@ -3663,10 +3669,6 @@ msgstr "Repor"msgid "Reset Password"msgstr "Repor senha"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Repor para a folha de estilo aplicada"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Repor a sua senha"@@ -4195,6 +4197,10 @@ msgstr "Alguns sistemas de inscrição exigem um antes que você possa enviar."msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Alguns analisadores manipulam imagens incorretamente e as fotos são desencorajadas em algumas regiões."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Algo correu mal"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Editor de folhas de estilo"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "A folha de estilos contém erros."+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Utilizadores"msgid "Uzbek"msgstr "Uzbeque"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "URLs válidos devem começar por http:// ou https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Afastar"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/ro-RO.po b/apps/web/locales/ro-RO.poindex ab643f700..e40aba55f 100644--- a/apps/web/locales/ro-RO.po+++ b/apps/web/locales/ro-RO.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Candidaturi trimise pe săptămână (ultimele 8 săptămâni)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Candidatură trimisă"@@ -534,10 +533,6 @@ msgstr "Candidatură trimisă"msgid "Applied on"msgstr "Aplicat pe"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Aplicat cu avertismente"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arabă"@@ -1765,7 +1760,6 @@ msgstr "Introduceți parola pentru a confirma configurarea autentificării cu domsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Introduceți parola pentru a dezactiva autentificarea cu doi factori. Contul va fi mai puțin sigur fără 2FA activat."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Eroare"@@ -2003,6 +1997,10 @@ msgstr "Nu s-a reușit verificarea codului dvs. de rezervă. Vă rugăm să încmsgid "Failed to verify your code. Please try again."msgstr "Nu s-a reușit verificarea codului dvs. Vă rugăm să încercați din nou."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Funcționalități"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Previzualizare"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Previzualizarea și exportarea utilizează ultima versiune validă."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Lectură…"msgid "Ready to activate"msgstr "Gata de activare"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Gata de activare cu avertismente"@@ -3663,10 +3669,6 @@ msgstr "Resetează"msgid "Reset Password"msgstr "Resetați parola"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Resetare la foaia de stil aplicată"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Resetați-vă parola"@@ -4195,6 +4197,10 @@ msgstr "Unele sisteme de aplicații necesită unul înainte de a putea trimite."msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Unii analizatori gestionează greșit imaginile, iar fotografiile sunt descurajate în unele regiuni."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Ceva nu a mers bine"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Editor de foi de stil"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Foaia de stil conține erori"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Utilizatori"msgid "Uzbek"msgstr "Uzbecă"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "URL-urile valide trebuie să înceapă cu http:// sau https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Micșorează"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/ru-RU.po b/apps/web/locales/ru-RU.poindex 2a82c74a8..3c2a1a2ec 100644--- a/apps/web/locales/ru-RU.po+++ b/apps/web/locales/ru-RU.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Заявки, отправленные за неделю (последние 8 недель)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Отклик отправлен"@@ -534,10 +533,6 @@ msgstr "Отклик отправлен"msgid "Applied on"msgstr "Применяется на"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Применяется с предупреждениями."-#: src/libs/locale.tsmsgid "Arabic"msgstr "Арабский"@@ -1765,7 +1760,6 @@ msgstr "Введите пароль, чтобы подтвердить настmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Введите пароль, чтобы отключить двухфакторную аутентификацию. Без 2FA ваша учетная запись будет менее защищена."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Ошибка"@@ -2003,6 +1997,10 @@ msgstr "Не удалось проверить Ваш код резервногmsgid "Failed to verify your code. Please try again."msgstr "Не удалось проверить Ваш код. Пожалуйста, попробуйте еще раз."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Возможности"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Предварительный просмотр"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Для предварительного просмотра и экспорта используется последняя действующая версия."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Чтение…"msgid "Ready to activate"msgstr "Готово к активации"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Готов к активации с предупреждениями."@@ -3663,10 +3669,6 @@ msgstr "Сброс"msgid "Reset Password"msgstr "Сбросить пароль"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Сбросить до примененной таблицы стилей"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Сбросить пароль"@@ -4195,6 +4197,10 @@ msgstr "Некоторые системы подачи заявок требуюmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Некоторые парсеры неправильно обрабатывают изображения, а в некоторых регионах фотографии не рекомендуются."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Что-то пошло не так."@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Редактор таблиц стилей"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "В таблице стилей обнаружены ошибки."+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Пользователи"msgid "Uzbek"msgstr "Узбекский"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Корректные URL должны начинаться с http:// или https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Уменьшить"#: src/libs/locale.tsmsgid "Zulu"msgstr "Зулу"-diff --git a/apps/web/locales/sk-SK.po b/apps/web/locales/sk-SK.poindex 51620f298..d5ac82d33 100644--- a/apps/web/locales/sk-SK.po+++ b/apps/web/locales/sk-SK.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Žiadosti odoslané za týždeň (posledných 8 týždňov)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Odoslané"@@ -534,10 +533,6 @@ msgstr "Odoslané"msgid "Applied on"msgstr "Aplikované dňa"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Použité s upozorneniami"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arabčina"@@ -1765,7 +1760,6 @@ msgstr "Zadaj svoje heslo na potvrdenie nastavenia dvojfaktorového overenia. Pomsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Zadaj svoje heslo na vypnutie dvojfaktorového overenia. Bez zapnutého 2FA bude tvoj účet menej zabezpečený."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Chyba"@@ -2003,6 +1997,10 @@ msgstr "Nepodarilo sa overiť váš záložný kód. Skúste to prosím znova."msgid "Failed to verify your code. Please try again."msgstr "Nepodarilo sa overiť váš kód. Skúste to prosím znova."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Funkcie"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Náhľad"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Pri ukážke a exporte sa použije posledná platná verzia."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Číta sa…"msgid "Ready to activate"msgstr "Pripravené na aktiváciu"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Pripravené na aktiváciu s upozorneniami"@@ -3663,10 +3669,6 @@ msgstr "Resetovať"msgid "Reset Password"msgstr "Obnoviť heslo"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Obnoviť na použitý štýlový hárok"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Obnov svoje heslo"@@ -4195,6 +4197,10 @@ msgstr "Niektoré aplikačné systémy vyžadujú pred odoslaním žiadosť."msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Niektoré analyzátory nesprávne narábajú s obrázkami a v niektorých regiónoch sa fotografie neodporúčajú."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Niečo sa pokazilo"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Editor štýlov"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Štýlový hárok obsahuje chyby"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Používatelia"msgid "Uzbek"msgstr "Uzbečtina"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Platné URL adresy musia začínať http:// alebo https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Brána Vercel AI"@@ -5411,4 +5429,3 @@ msgstr "Oddialiť"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/sl-SI.po b/apps/web/locales/sl-SI.poindex 70a1a5f9a..51767bf28 100644--- a/apps/web/locales/sl-SI.po+++ b/apps/web/locales/sl-SI.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Prijave, poslane na teden (zadnjih 8 tednov)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Prijavljeno"@@ -534,10 +533,6 @@ msgstr "Prijavljeno"msgid "Applied on"msgstr "Uporabljeno na"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Uporabljeno z opozorili"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arabščina"@@ -1765,7 +1760,6 @@ msgstr "Vnesite svoje geslo, da potrdite nastavitev dvostopenjskega preverjanjamsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Vnesite svoje geslo za onemogočanje dvostopenjskega preverjanja pristnosti. Vaš račun bo brez omogočenega 2FA manj varen."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Napaka"@@ -2003,6 +1997,10 @@ msgstr "Varnostne kode ni uspelo preveriti. Poskusite znova."msgid "Failed to verify your code. Please try again."msgstr "Ni uspelo preveriti vaše kode. Poskusite znova."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Funkcionalnosti"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Predogled"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Predogled in izvoz uporabljata zadnjo veljavno različico."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Branje ..."msgid "Ready to activate"msgstr "Pripravljeno za aktivacijo"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Pripravljeno za aktivacijo z opozorili"@@ -3663,10 +3669,6 @@ msgstr "Ponastavi"msgid "Reset Password"msgstr "Ponastavi geslo"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Ponastavi na uporabljeno slogovno predlogo"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Ponastavite svoje geslo"@@ -4195,6 +4197,10 @@ msgstr "Nekateri sistemi prijav zahtevajo, da jo lahko oddate."msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Nekateri razčlenjevalniki napačno obravnavajo slike, zato fotografije v nekaterih regijah odsvetujejo."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Nekaj je šlo narobe"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Urejevalnik slogovnih predlog"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Slogovna predloga vsebuje napake"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Uporabniki"msgid "Uzbek"msgstr "uzbeščina"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Veljavni URL-ji se morajo začeti z http:// ali https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Oddalji"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zuluščina"-diff --git a/apps/web/locales/sq-AL.po b/apps/web/locales/sq-AL.poindex 5a154907c..23953a193 100644--- a/apps/web/locales/sq-AL.po+++ b/apps/web/locales/sq-AL.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Aplikimet e dërguara për javë (8 javët e fundit)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Aplikuar"@@ -534,10 +533,6 @@ msgstr "Aplikuar"msgid "Applied on"msgstr "Aplikuar në"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Zbatuar me paralajmërime"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arabisht"@@ -1765,7 +1760,6 @@ msgstr "Shkruani fjalëkalimin tuaj për të konfirmuar konfigurimin e vërtetimmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Shkruani fjalëkalimin tuaj për të çaktivizuar vërtetimin me dy faktorë. Llogaria juaj do të jetë më pak e sigurt pa 2FA të aktivizuar."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Gabim"@@ -2003,6 +1997,10 @@ msgstr "Dështoi verifikimi i kodit tuaj të rezervës. Ju lutemi provoni përsmsgid "Failed to verify your code. Please try again."msgstr "Dështoi verifikimi i kodit tuaj. Ju lutemi provoni përsëri."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Veçori"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Pamje paraprake"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Parapamja dhe eksportimi përdorin versionin e fundit të vlefshëm."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Duke lexuar…"msgid "Ready to activate"msgstr "Gati për t'u aktivizuar"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Gati për t'u aktivizuar me paralajmërime"@@ -3663,10 +3669,6 @@ msgstr "Rivendos"msgid "Reset Password"msgstr "Rivendos fjalëkalimin"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Rivendos në fletën e stilit të aplikuar"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Rivendosni fjalëkalimin tuaj"@@ -4195,6 +4197,10 @@ msgstr "Disa sisteme aplikimi kërkojnë një para se të mund të dorëzoni."msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Disa analizues i keqpërdorin imazhet dhe fotot dekurajohen në disa rajone."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Diçka shkoi keq"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Redaktuesi i fletës së stilit"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Fleta e stilit ka gabime"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Përdorues"msgid "Uzbek"msgstr "Uzbeke"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "URL-të e vlefshme duhet të fillojnë me http:// ose https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Porta Vercel AI"@@ -5411,4 +5429,3 @@ msgstr "Zvogëlo"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/sr-SP.po b/apps/web/locales/sr-SP.poindex 0ecc9dcf5..89b31c654 100644--- a/apps/web/locales/sr-SP.po+++ b/apps/web/locales/sr-SP.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Пријаве послате недељно (последњих 8 недеља)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Пријављено"@@ -534,10 +533,6 @@ msgstr "Пријављено"msgid "Applied on"msgstr "Примењено на"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Примењено са упозорењима"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Арапски"@@ -1765,7 +1760,6 @@ msgstr "Унесите своју лозинку да потврдите подmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Унесите своју лозинку да бисте онемогућили двофакторску аутентификацију. Ваш налог ће бити мање безбедан без омогућеног 2FA."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Грешка"@@ -2003,6 +1997,10 @@ msgstr "Није успело да се потврди ваш резервниmsgid "Failed to verify your code. Please try again."msgstr "Није успело да се потврди ваш код. Молимо покушајте поново."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Функције"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Преглед"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Преглед и извоз користе последњу важећу верзију."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Читање…"msgid "Ready to activate"msgstr "Спремно за активирање"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Спремно за активирање са упозорењима"@@ -3663,10 +3669,6 @@ msgstr "Ресетуј"msgid "Reset Password"msgstr "Ресетуј лозинку"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Врати на примењени стилски лист"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Ресетујте своју лозинку"@@ -4195,6 +4197,10 @@ msgstr "Неки системи апликација захтевају једаmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Неки парсери погрешно рукују сликама, а фотографије су обесхрабрене у неким регионима."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Нешто је пошло наопако"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Уређивач стилских листова"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Стилски лист садржи грешке"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Корисници"msgid "Uzbek"msgstr "Узбечки"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Важећи URL-ови морају да почињу са http:// или https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Версел АИ Гејтвеј"@@ -5411,4 +5429,3 @@ msgstr "Умањи"#: src/libs/locale.tsmsgid "Zulu"msgstr "Зулу"-diff --git a/apps/web/locales/sv-SE.po b/apps/web/locales/sv-SE.poindex 63c9f480d..7a08cea78 100644--- a/apps/web/locales/sv-SE.po+++ b/apps/web/locales/sv-SE.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Ansökningar skickade per vecka (senaste 8 veckorna)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Ansökt"@@ -534,10 +533,6 @@ msgstr "Ansökt"msgid "Applied on"msgstr "Tillämpas på"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Tillämpas med varningar"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arabiska"@@ -1765,7 +1760,6 @@ msgstr "Ange ditt lösenord för att bekräfta att du vill ställa in tvåfaktormsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Ange ditt lösenord för att inaktivera tvåfaktorsautentisering. Ditt konto blir mindre säkert utan aktiverad 2FA."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Fel"@@ -2003,6 +1997,10 @@ msgstr "Det gick inte att verifiera din säkerhetskopieringskod. Vänligen försmsgid "Failed to verify your code. Please try again."msgstr "Det gick inte att verifiera din kod. Vänligen försök igen."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Funktioner"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Förhandsvisning"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Förhandsgranska och exportera med den senast giltiga versionen."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Läsning…"msgid "Ready to activate"msgstr "Klar att aktiveras"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Klar att aktiveras med varningar"@@ -3663,10 +3669,6 @@ msgstr "Återställ"msgid "Reset Password"msgstr "Återställ lösenord"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Återställ till tillämpat formatmall"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Återställ ditt lösenord"@@ -4195,6 +4197,10 @@ msgstr "Vissa ansökningssystem kräver ett innan du kan skicka in."msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Vissa tolkar hanterar bilder felaktigt och foton avråds från vissa regioner."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Något gick fel"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Stilarksredigerare"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Stilarket innehåller fel"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Användare"msgid "Uzbek"msgstr "Uzbekiska"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Giltiga URL:er måste börja med http:// eller https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Zooma ut"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/ta-IN.po b/apps/web/locales/ta-IN.poindex 358faa576..9a7c147e8 100644--- a/apps/web/locales/ta-IN.po+++ b/apps/web/locales/ta-IN.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "வாரத்திற்கு அனுப்பப்பட்ட விண்ணப்பங்கள் (கடைசி 8 வாரங்கள்)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "விண்ணப்பிக்கப்பட்டது"@@ -534,10 +533,6 @@ msgstr "விண்ணப்பிக்கப்பட்டது"msgid "Applied on"msgstr "அன்று விண்ணப்பித்தது"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "எச்சரிக்கைகளுடன் கூடிய அறிவு"-#: src/libs/locale.tsmsgid "Arabic"msgstr "அரபிக்"@@ -1765,7 +1760,6 @@ msgstr "இரண்டு நிலை அங்கீகாரத்தை அmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "இரண்டு நிலை அங்கீகாரத்தை முடக்க உங்கள் கடவுச்சொல்லை உள்ளிடவும். 2FA இயங்காவிட்டால் உங்கள் கணக்கு குறைந்த பாதுகாப்புடன் இருக்கும்."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "பிழை"@@ -2003,6 +1997,10 @@ msgstr "உங்கள் காப்புக் குறியீட்டmsgid "Failed to verify your code. Please try again."msgstr "உங்கள் குறியீட்டைச் சரிபார்க்கத் தவறியது. மீண்டும் முயற்சிக்கவும்."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "அம்சங்கள்"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "முன்னோட்டம்"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "முன்னோட்டம் மற்றும் ஏற்றுமதிக்கு, கடைசியாகச் செல்லுபடியாகும் பதிப்பைப் பயன்படுத்தவும்."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "படிக்கிறது…"msgid "Ready to activate"msgstr "செயல்படுத்தத் தயார்"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "எச்சரிக்கைகளுடன் செயல்படுத்தத் தயார்"@@ -3663,10 +3669,6 @@ msgstr "மீட்டமை"msgid "Reset Password"msgstr "கடவுச்சொல்லை மீட்டமைக்கவும்"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "பயன்படுத்தப்பட்ட பாணித் தாளுக்கு மீட்டமைக்கவும்"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "உங்கள் கடவுச்சொல்லை மீட்டமைக்கவும்"@@ -4195,6 +4197,10 @@ msgstr "நீங்கள் சமர்ப்பிக்கும் முmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "சில பாகுபடுத்துபவர்கள் படங்களை தவறாகக் கையாளுகின்றனர், மேலும் சில பகுதிகளில் புகைப்படங்கள் ஊக்கமளிக்கவில்லை."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "ஏதோ தவறு நடந்துவிட்டது"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "ஸ்டைல்ஷீட் எடிட்டர்"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "ஸ்டைல்ஷீட்டில் பிழைகள் உள்ளன"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "பயனர்கள்"msgid "Uzbek"msgstr "உஸ்பெக்"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "சரியான URL-கள் http:// அல்லது https:// கொண்டு தொடங்க வேண்டும்."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "வெர்சல் ஏஐ கேட்வே"@@ -5411,4 +5429,3 @@ msgstr "சிறிதாக்கு"#: src/libs/locale.tsmsgid "Zulu"msgstr "ஜூலு"-diff --git a/apps/web/locales/te-IN.po b/apps/web/locales/te-IN.poindex d6e745551..84105ae02 100644--- a/apps/web/locales/te-IN.po+++ b/apps/web/locales/te-IN.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "వారానికి పంపిన దరఖాస్తులు (చివరి 8 వారాలు)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "దరఖాస్తు చేశారు"@@ -534,10 +533,6 @@ msgstr "దరఖాస్తు చేశారు"msgid "Applied on"msgstr "దరఖాస్తు చేసిన తేదీ"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "హెచ్చరికలతో వర్తింపజేయబడింది"-#: src/libs/locale.tsmsgid "Arabic"msgstr "అరబిక్"@@ -1765,7 +1760,6 @@ msgstr "రెండు దశల ధృవీకరణ ఏర్పాటునmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "రెండు దశల ధృవీకరణను నిలిపివేయడానికి మీ పాస్వర్డ్ని నమోదు చేయండి. 2FA ప్రారంభించబడకుండా ఉంటే మీ ఖాతా తక్కువ భద్రతగా ఉంటుంది."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "లోపం"@@ -2003,6 +1997,10 @@ msgstr "మీ బ్యాకప్ కోడ్ను ధృవీకరిmsgid "Failed to verify your code. Please try again."msgstr "మీ కోడ్ను ధృవీకరించడంలో విఫలమయ్యాము. దయచేసి మళ్ళీ ప్రయత్నించండి."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "ఫీచర్లు"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "ప్రివ్యూ"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "ప్రివ్యూ మరియు ఎక్స్పోర్ట్ చివరి చెల్లుబాటు అయ్యే వెర్షన్ను ఉపయోగిస్తాయి."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "చదువుతోంది…"msgid "Ready to activate"msgstr "యాక్టివేట్ చేయడానికి సిద్ధంగా ఉంది"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "హెచ్చరికలతో యాక్టివేట్ చేయడానికి సిద్ధంగా ఉంది"@@ -3663,10 +3669,6 @@ msgstr "రీసెట్ చేయండి"msgid "Reset Password"msgstr "పాస్వర్డ్ రీసెట్ చేయండి"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "వర్తింపజేసిన స్టైల్షీట్కు రీసెట్ చేయండి"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "మీ పాస్వర్డ్ను రీసెట్ చేయండి"@@ -4195,6 +4197,10 @@ msgstr "మీరు సమర్పించే ముందు కొన్నmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "కొంతమంది పార్సర్లు చిత్రాలను తప్పుగా నిర్వహిస్తారు మరియు కొన్ని ప్రాంతాలలో ఫోటోలు నిరుత్సాహపరుస్తాయి."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "ఏదో తప్పు జరిగింది"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "స్టైల్షీట్ ఎడిటర్"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "స్టైల్షీట్లో లోపాలు ఉన్నాయి"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "వినియోగదారులు"msgid "Uzbek"msgstr "ఉజ్బెక్"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "చెల్లే URLలు తప్పనిసరిగా http:// లేదా https://తో ప్రారంభించాలి."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "వర్సెల్ AI గేట్వే"@@ -5411,4 +5429,3 @@ msgstr "జూమ్ అవుట్ చేయండి"#: src/libs/locale.tsmsgid "Zulu"msgstr "జులు"-diff --git a/apps/web/locales/th-TH.po b/apps/web/locales/th-TH.poindex f9763ff8a..48891023b 100644--- a/apps/web/locales/th-TH.po+++ b/apps/web/locales/th-TH.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "ใบสมัครที่ส่งต่อสัปดาห์ (8 สัปดาห์ล่าสุด)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "สมัครแล้ว"@@ -534,10 +533,6 @@ msgstr "สมัครแล้ว"msgid "Applied on"msgstr "สมัครเมื่อ"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "ใช้งานโดยมีคำเตือน"-#: src/libs/locale.tsmsgid "Arabic"msgstr "อารบิก"@@ -1765,7 +1760,6 @@ msgstr "กรอกรหัสผ่านของคุณเพื่อยmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "กรอกรหัสผ่านของคุณเพื่อปิดการใช้งานการยืนยันตัวตนสองขั้นตอน บัญชีของคุณจะไม่ปลอดภัยเท่าเดิมหากไม่ได้เปิดใช้งาน 2FA"-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "ข้อผิดพลาด"@@ -2003,6 +1997,10 @@ msgstr "ไม่สามารถยืนยันรหัสสำรองmsgid "Failed to verify your code. Please try again."msgstr "ไม่สามารถยืนยันรหัสของคุณได้ กรุณาลองอีกครั้ง"+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "คุณสมบัติ"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "ตัวอย่าง"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "ให้ใช้เวอร์ชันล่าสุดที่ถูกต้องในการแสดงตัวอย่างและการส่งออก"+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "กำลังอ่าน…"msgid "Ready to activate"msgstr "พร้อมใช้งานแล้ว"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "พร้อมใช้งานพร้อมคำเตือน"@@ -3663,10 +3669,6 @@ msgstr "รีเซ็ต"msgid "Reset Password"msgstr "รีเซ็ตรหัสผ่าน"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "รีเซ็ตเป็นสไตล์ชีตที่ใช้งานอยู่"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "รีเซ็ตรหัสผ่านของคุณ"@@ -4195,6 +4197,10 @@ msgstr "ระบบการสมัครบางระบบจำเป็msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "โปรแกรมแยกวิเคราะห์บางคนจัดการรูปภาพในทางที่ผิด และรูปภาพไม่ได้รับการสนับสนุนในบางภูมิภาค"+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "เกิดข้อผิดพลาดบางอย่าง"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "ตัวแก้ไขสไตล์ชีต"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "ไฟล์สไตล์ชีตมีข้อผิดพลาด"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "ผู้ใช้"msgid "Uzbek"msgstr "อุซเบก"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "URL ที่ถูกต้องต้องขึ้นต้นด้วย http:// หรือ https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "เกตเวย์ AI ของ Vercel"@@ -5411,4 +5429,3 @@ msgstr "ซูมออก"#: src/libs/locale.tsmsgid "Zulu"msgstr "ซูลู"-diff --git a/apps/web/locales/tr-TR.po b/apps/web/locales/tr-TR.poindex 195932ff5..0899d21ee 100644--- a/apps/web/locales/tr-TR.po+++ b/apps/web/locales/tr-TR.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Haftalık gönderilen başvurular (son 8 hafta)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Başvuruldu"@@ -534,10 +533,6 @@ msgstr "Başvuruldu"msgid "Applied on"msgstr "Başvuru tarihi"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Uyarılarla birlikte uygulandı."-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arapça"@@ -1765,7 +1760,6 @@ msgstr "İki faktörlü kimlik doğrulamayı kurmayı onaylamak için şifrenizimsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "İki faktörlü kimlik doğrulamayı devre dışı bırakmak için şifrenizi girin. 2FA etkin olmadığında hesabınız daha az güvenli olur."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Hata"@@ -2003,6 +1997,10 @@ msgstr "Yedekleme kodunuz doğrulanamadı. Lütfen tekrar deneyin."msgid "Failed to verify your code. Please try again."msgstr "Kodunuz doğrulanamadı. Lütfen tekrar deneyin."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Özellikler"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Önizleme"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Önizleme ve dışa aktarma işlemleri için en son geçerli sürüm kullanılır."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Okunuyor…"msgid "Ready to activate"msgstr "Etkinleştirmeye hazır"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Uyarılarla birlikte etkinleştirmeye hazır."@@ -3663,10 +3669,6 @@ msgstr "Sıfırla"msgid "Reset Password"msgstr "Şifreyi Sıfırla"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Uygulanan stil sayfasına sıfırla"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Şifrenizi sıfırlayın"@@ -4195,6 +4197,10 @@ msgstr "Bazı başvuru sistemleri, gönderebilmeniz için bir başvuru gerektirimsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Bazı ayrıştırıcılar görüntüleri yanlış kullanıyor ve bazı bölgelerde fotoğraf kullanılması önerilmez."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Bir şeyler ters gitti."@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Stil sayfası düzenleyici"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Stil dosyasında hatalar var."+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Kullanıcılar"msgid "Uzbek"msgstr "Özbekçe"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Geçerli URL'ler http:// veya https:// ile başlamalıdır."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Ağ Geçidi"@@ -5411,4 +5429,3 @@ msgstr "Uzaklaştır"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/uk-UA.po b/apps/web/locales/uk-UA.poindex a1da5bd45..4a2b71e63 100644--- a/apps/web/locales/uk-UA.po+++ b/apps/web/locales/uk-UA.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Заявки, надіслані за тиждень (останні 8 тижнів)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Подано"@@ -534,10 +533,6 @@ msgstr "Подано"msgid "Applied on"msgstr "Подано"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Застосовується з попередженнями"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Арабська"@@ -1765,7 +1760,6 @@ msgstr "Введіть пароль для підтвердження налашmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Введіть свій пароль для вимикання двофакторної автентифікації. Ваш профіль буде менш захищений без увімкненого 2FA."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Помилка"@@ -2003,6 +1997,10 @@ msgstr "Не вдалося підтвердити код резервної кmsgid "Failed to verify your code. Please try again."msgstr "Не вдалося підтвердити ваш код. Спробуйте ще раз."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Функції"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Попередній перегляд"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Для попереднього перегляду та експорту використовується остання дійсна версія."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Читання…"msgid "Ready to activate"msgstr "Готовий до активації"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Готовий до активації з попередженнями"@@ -3663,10 +3669,6 @@ msgstr "Скинути"msgid "Reset Password"msgstr "Скинути пароль"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Скинути до застосованого таблиці стилів"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Скинути пароль"@@ -4195,6 +4197,10 @@ msgstr "Деякі системи заявок вимагають її, першmsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Деякі аналізатори неправильно обробляють зображення, тому в деяких регіонах фотографії не рекомендуються."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Щось пішло не так"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Редактор таблиць стилів"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Таблиця стилів містить помилки"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Користувачі"msgid "Uzbek"msgstr "Узбецька"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Дійсні URL-адреси мають починатися з http:// або https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Шлюз штучного інтелекту Vercel"@@ -5411,4 +5429,3 @@ msgstr "Зменшити"#: src/libs/locale.tsmsgid "Zulu"msgstr "Зулу"-diff --git a/apps/web/locales/uz-UZ.po b/apps/web/locales/uz-UZ.poindex 5cc3acff8..c12c31a8d 100644--- a/apps/web/locales/uz-UZ.po+++ b/apps/web/locales/uz-UZ.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Haftasiga yuborilgan arizalar (so‘nggi 8 hafta)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Topshirildi"@@ -534,10 +533,6 @@ msgstr "Topshirildi"msgid "Applied on"msgstr "Ariza sanasi"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Ogohlantirishlar bilan qo'llanildi"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Arab tili"@@ -1765,7 +1760,6 @@ msgstr "Ikki bosqichli autentifikatsiyani yoqishni tasdiqlash uchun parolingiznimsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Ikki bosqichli autentifikatsiyani o‘chirishni tasdiqlash uchun parolingizni kiriting. 2BShT yoqilmagan holda hisobingiz kamroq xavfsiz boʻladi."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Xato"@@ -2003,6 +1997,10 @@ msgstr "Zaxira kodingizni tasdiqlash muvaffaqiyatsiz bo'ldi. Iltimos, yana urinimsgid "Failed to verify your code. Please try again."msgstr "Kodingizni tekshirish muvaffaqiyatsiz bo'ldi. Iltimos, yana urinib ko'ring."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Xususiyatlar"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Oldindan ko'rish"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Oldindan ko'rish va eksport qilish uchun oxirgi amaldagi versiyadan foydalaning."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "O'qilmoqda…"msgid "Ready to activate"msgstr "Faollashtirishga tayyor"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Ogohlantirishlar bilan faollashtirishga tayyor"@@ -3663,10 +3669,6 @@ msgstr "Tiklash"msgid "Reset Password"msgstr "Parolni tiklash"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Qo'llanilgan uslublar jadvaliga qayta o'rnatish"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Parolingizni tiklang"@@ -4195,6 +4197,10 @@ msgstr "Ba'zi dastur tizimlari siz yuborishingizdan oldin uni talab qiladi."msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Ba'zi tahlilchilar tasvirlarni noto'g'ri ishlatishadi va ba'zi hududlarda fotosuratlar tavsiya etilmaydi."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Nimadir noto'g'ri ketdi"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Uslublar jadvali muharriri"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Uslublar jadvalida xatolar mavjud"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Foydalanuvchilar"msgid "Uzbek"msgstr "O'zbek tili"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "Toʻgʻri URL http:// yoki https:// bilan boshlanishi kerak."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "Kichraytirish"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/vi-VN.po b/apps/web/locales/vi-VN.poindex def969191..5707f1fae 100644--- a/apps/web/locales/vi-VN.po+++ b/apps/web/locales/vi-VN.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "Đơn ứng tuyển đã gửi mỗi tuần (8 tuần gần nhất)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "Đã ứng tuyển"@@ -534,10 +533,6 @@ msgstr "Đã ứng tuyển"msgid "Applied on"msgstr "Đã ứng tuyển vào"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "Được áp dụng kèm theo cảnh báo"-#: src/libs/locale.tsmsgid "Arabic"msgstr "Tiếng Ả Rập"@@ -1765,7 +1760,6 @@ msgstr "Nhập mật khẩu của bạn để xác nhận thiết lập xác thmsgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "Nhập mật khẩu của bạn để tắt xác thực hai yếu tố. Tài khoản của bạn sẽ kém an toàn hơn nếu không bật 2FA."-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "Lỗi"@@ -2003,6 +1997,10 @@ msgstr "Không thể xác minh mã dự phòng của bạn. Vui lòng thử lạmsgid "Failed to verify your code. Please try again."msgstr "Không thể xác minh mã của bạn. Vui lòng thử lại."+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "Tính năng"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "Xem trước"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "Chức năng xem trước và xuất khẩu sử dụng phiên bản hợp lệ mới nhất."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "Đang đọc…"msgid "Ready to activate"msgstr "Sẵn sàng kích hoạt"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "Sẵn sàng kích hoạt kèm cảnh báo"@@ -3663,10 +3669,6 @@ msgstr "Thiết lập lại"msgid "Reset Password"msgstr "Đặt mật khẩu mới"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "Đặt lại về kiểu định dạng đã áp dụng"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "Đặt lại mật khẩu"@@ -4195,6 +4197,10 @@ msgstr "Một số hệ thống ứng dụng yêu cầu phải có trước khimsgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "Một số trình phân tích cú pháp xử lý sai hình ảnh và ảnh không được khuyến khích ở một số vùng."+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "Đã xảy ra lỗi"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "Trình chỉnh sửa bảng định kiểu"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "Tệp định kiểu có lỗi"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "Người dùng"msgid "Uzbek"msgstr "Uzbek"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "URL hợp lệ phải bắt đầu với http:// hoặc https://."+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Cổng AI Vercel"@@ -5411,4 +5429,3 @@ msgstr "Thu nhỏ"#: src/libs/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/apps/web/locales/zh-CN.po b/apps/web/locales/zh-CN.poindex d0e35844a..84f846798 100644--- a/apps/web/locales/zh-CN.po+++ b/apps/web/locales/zh-CN.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "每周发送的申请(最近 8 周)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "已申请"@@ -534,10 +533,6 @@ msgstr "已申请"msgid "Applied on"msgstr "申请日期"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "附带警告"-#: src/libs/locale.tsmsgid "Arabic"msgstr "阿拉伯语"@@ -1765,7 +1760,6 @@ msgstr "请输入你的密码以确认设置双重身份验证。启用后,你msgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "请输入你的密码以禁用双重身份验证。关闭 2FA 后,你的账号将不再那么安全。"-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "错误"@@ -2003,6 +1997,10 @@ msgstr "验证备份代码失败。请重试。"msgid "Failed to verify your code. Please try again."msgstr "验证您的代码失败。请重试。"+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "功能"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "预览"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "预览和导出时请使用最新有效版本。"+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "正在读取…"msgid "Ready to activate"msgstr "准备激活"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "准备激活并发出警告"@@ -3663,10 +3669,6 @@ msgstr "重置"msgid "Reset Password"msgstr "重置密码"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "重置为已应用的样式表"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "重置密码"@@ -4195,6 +4197,10 @@ msgstr "有些申请系统需要先有一个,然后才能提交。”"msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "一些解析器错误地处理图像,并且在某些地区不鼓励使用照片。”"+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "出问题了"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "样式表编辑器"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "样式表存在错误"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "用户数"msgid "Uzbek"msgstr "乌兹别克语"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "有效的 URL 必须以 http:// 或 https:// 开头。"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel 人工智能网关"@@ -5411,4 +5429,3 @@ msgstr "缩小"#: src/libs/locale.tsmsgid "Zulu"msgstr "祖鲁语"-diff --git a/apps/web/locales/zh-TW.po b/apps/web/locales/zh-TW.poindex ad3eb39b4..700ab09e6 100644--- a/apps/web/locales/zh-TW.po+++ b/apps/web/locales/zh-TW.po@@ -526,7 +526,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr "每週送出的申請(最近 8 週)"#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr "已申請"@@ -534,10 +533,6 @@ msgstr "已申請"msgid "Applied on"msgstr "應徵日期"-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr "附帶警告"-#: src/libs/locale.tsmsgid "Arabic"msgstr "阿拉伯文"@@ -1765,7 +1760,6 @@ msgstr "請輸入您的密碼以確認設定雙因子驗證。啟用後,每次msgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr "請輸入您的密碼以停用雙因子驗證。停用後,您的帳戶將會比較不安全。"-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr "錯誤"@@ -2003,6 +1997,10 @@ msgstr "驗證您的備份碼失敗。請再試一次。"msgid "Failed to verify your code. Please try again."msgstr "驗證您的驗證碼失敗。請再試一次。"+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr "功能"@@ -3420,8 +3418,12 @@ msgid "Preview"msgstr "預覽"#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."-msgstr "預覽和匯出時請使用最新有效版本。"+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."+msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxmsgid "Primary Color"@@ -3542,6 +3544,10 @@ msgstr "正在讀取…"msgid "Ready to activate"msgstr "準備啟用"+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr "準備啟動並發出警告"@@ -3663,10 +3669,6 @@ msgstr "重置"msgid "Reset Password"msgstr "重設密碼"-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr "重設為已套用的樣式表"-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr "重設您的密碼"@@ -4195,6 +4197,10 @@ msgstr "有些申請系統需要先有一個,然後再提交。 」"msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr "有些解析器錯誤地處理圖像,並且在某些地區不鼓勵使用照片。 」"+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr "出問題了"@@ -4338,8 +4344,8 @@ msgid "Stylesheet editor"msgstr "樣式表編輯器"#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"-msgstr "樣式表存在錯誤"+msgid "Stylesheet has fatal errors"+msgstr ""#: src/routes/_home/-sections/footer.tsxmsgid "Subreddit"@@ -5103,10 +5109,22 @@ msgstr "使用者"msgid "Uzbek"msgstr "烏茲別克語"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr "有效的 URL 必須以 http:// 或 https:// 開頭。"+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr "Vercel AI Gateway"@@ -5411,4 +5429,3 @@ msgstr "縮小"#: src/libs/locale.tsmsgid "Zulu"msgstr "祖魯語"-diff --git a/apps/web/locales/zu-ZA.po b/apps/web/locales/zu-ZA.poindex c615fca7e..8f89378ef 100644--- a/apps/web/locales/zu-ZA.po+++ b/apps/web/locales/zu-ZA.po@@ -521,7 +521,6 @@ msgid "Applications sent per week (last 8 weeks)"msgstr ""#: src/features/applications/components/table-view.tsx-#: src/features/resume/stylesheet/status.tsxmsgid "Applied"msgstr ""@@ -529,10 +528,6 @@ msgstr ""msgid "Applied on"msgstr ""-#: src/features/resume/stylesheet/status.tsx-msgid "Applied with warnings"-msgstr ""-#: src/libs/locale.tsmsgid "Arabic"msgstr ""@@ -1760,7 +1755,6 @@ msgstr ""msgid "Enter your password to disable two-factor authentication. Your account will be less secure without 2FA enabled."msgstr ""-#: src/features/resume/stylesheet/status.tsx#: src/routes/builder/$resumeId/-sidebar/right/sections/ats-check.tsxmsgid "Error"msgstr ""@@ -1998,6 +1992,10 @@ msgstr ""msgid "Failed to verify your code. Please try again."msgstr ""+#: src/features/resume/stylesheet/status.tsx+msgid "Fatal error"+msgstr ""+#: src/routes/_home/-sections/features.tsxmsgid "Features"msgstr ""@@ -3415,7 +3413,11 @@ msgid "Preview"msgstr ""#: src/features/resume/stylesheet/status.tsx-msgid "Preview and export use the last valid version."+msgid "Preview and export fall back to base styles."+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Preview and export keep valid styles and ignore invalid styles."msgstr ""#: src/routes/builder/$resumeId/-sidebar/right/sections/design.tsx@@ -3537,6 +3539,10 @@ msgstr ""msgid "Ready to activate"msgstr ""+#: src/features/resume/stylesheet/status.tsx+msgid "Ready to activate with errors"+msgstr ""+#: src/features/resume/stylesheet/status.tsxmsgid "Ready to activate with warnings"msgstr ""@@ -3658,10 +3664,6 @@ msgstr ""msgid "Reset Password"msgstr ""-#: src/features/resume/stylesheet/toolbar.tsx-msgid "Reset to applied stylesheet"-msgstr ""-#: src/features/auth/pages/reset-password.tsxmsgid "Reset your password"msgstr ""@@ -4190,6 +4192,10 @@ msgstr ""msgid "Some parsers mishandle images, and photos are discouraged in some regions."msgstr ""+#: src/features/resume/stylesheet/status.tsx+msgid "Some styles were ignored"+msgstr ""+#: src/components/layout/error-screen.tsxmsgid "Something went wrong"msgstr ""@@ -4333,7 +4339,7 @@ msgid "Stylesheet editor"msgstr ""#: src/features/resume/stylesheet/status.tsx-msgid "Stylesheet has errors"+msgid "Stylesheet has fatal errors"msgstr ""#: src/routes/_home/-sections/footer.tsx@@ -5098,10 +5104,22 @@ msgstr ""msgid "Uzbek"msgstr ""+#: src/features/resume/stylesheet/status.tsx+msgid "Valid"+msgstr ""+#: src/components/input/rich-input.tsxmsgid "Valid URLs must start with http:// or https://."msgstr ""+#: src/features/resume/stylesheet/status.tsx+msgid "Valid with errors"+msgstr ""++#: src/features/resume/stylesheet/status.tsx+msgid "Valid with warnings"+msgstr ""+#: src/features/settings/integrations/components/ai-section.tsxmsgid "Vercel AI Gateway"msgstr ""diff --git a/apps/web/src/features/resume/builder/draft.test.ts b/apps/web/src/features/resume/builder/draft.test.tsindex 2afee237e..30e4eb985 100644--- a/apps/web/src/features/resume/builder/draft.test.ts+++ b/apps/web/src/features/resume/builder/draft.test.ts@@ -35,10 +35,6 @@ const toastMocks = vi.hoisted(() => ({error: vi.fn(() => "sync-error-toast"),}));-const stylesheetMocks = vi.hoisted(() => ({- refresh: vi.fn(),-}));-vi.mock("@orpc/client", () => ({consumeEventIterator: consumeEventIteratorMock,}));@@ -81,10 +77,6 @@ vi.mock("sonner", () => ({toast: toastMocks,}));-vi.mock("@/features/resume/stylesheet/store", () => ({- refreshStylesheetStore: stylesheetMocks.refresh,-}));-function cloneResumeData(data: ResumeData): ResumeData {return structuredClone(data);}@@ -135,7 +127,6 @@ describe("builder resume autosave", () => {i18n.loadAndActivate({ locale: "en-US", messages: {} });toastMocks.dismiss.mockClear();toastMocks.error.mockClear();- stylesheetMocks.refresh.mockReset();useResumeStore.getState().reset();});@@ -169,6 +160,26 @@ describe("builder resume autosave", () => {expect(orpcMocks.patchResume).not.toHaveBeenCalled();});+ it("autosaves stylesheet source through the ordinary full-data update", async () => {+ const initial = makeResume("resume-stylesheet-autosave");+ const source = { languageVersion: 1, text: "@version 1;\nname { color: blue; }\n" };+ const updated = makeResume(initial.id);+ updated.data.metadata.stylesheet = { mode: "semantic", source };+ orpcMocks.updateResume.mockResolvedValue(updated);+ useResumeStore.getState().initialize(initial);++ useResumeStore.getState().updateResumeData((draft) => {+ draft.metadata.stylesheet = { mode: "semantic", source };+ });+ vi.advanceTimersByTime(500);+ await flushMicrotasks();++ expect(orpcMocks.updateResume).toHaveBeenCalledWith(+ { id: initial.id, data: updated.data },+ expect.objectContaining({ signal: expect.any(AbortSignal) }),+ );+ });+it("saves the latest pending snapshot after an in-flight save resolves", async () => {const initial = makeResume("resume-in-flight");const first = withBasicsName(initial, "First Name");@@ -507,25 +518,13 @@ describe("resume update stream subscription", () => {expect(useResumeStore.getState().resume?.data.basics.name).toBe("Local Name");});- it("refetches canonical stylesheet state for stylesheet SSE events", async () => {+ it("applies stylesheet source from the ordinary resume SSE flow", async () => {const initial = makeResume("resume-stylesheet");- consumeEventIteratorMock.mockReturnValue(vi.fn().mockResolvedValue(undefined));- routerParamsMock.value = { resumeId: initial.id };- useResumeStore.getState().initialize(initial);-- renderHook(() => useBuilderResumeUpdateSubscription());- const handlers = consumeEventIteratorMock.mock.calls[0]?.[1] as {- onEvent: (event: { mutation: string }) => Promise<void>;+ const remote = makeResume("resume-stylesheet");+ remote.data.metadata.stylesheet = {+ mode: "semantic",+ source: { languageVersion: 1, text: "@version 1;\nname { color: blue; }\n" },};- await act(async () => handlers.onEvent({ mutation: "stylesheet" }));-- expect(stylesheetMocks.refresh).toHaveBeenCalledWith(initial.id);- expect(orpcMocks.getResumeById).not.toHaveBeenCalled();- });-- it("refreshes the render-data version after content SSE events", async () => {- const initial = makeResume("resume-content");- const remote = withBasicsName(initial, "Remote");consumeEventIteratorMock.mockReturnValue(vi.fn().mockResolvedValue(undefined));orpcMocks.getResumeById.mockResolvedValue(remote);routerParamsMock.value = { resumeId: initial.id };@@ -537,6 +536,7 @@ describe("resume update stream subscription", () => {};await act(async () => handlers.onEvent({ mutation: "update" }));- expect(stylesheetMocks.refresh).toHaveBeenCalledWith(initial.id, remote.data);+ expect(orpcMocks.getResumeById).toHaveBeenCalledWith({ id: initial.id });+ expect(useResumeStore.getState().resume?.data.metadata.stylesheet).toEqual(remote.data.metadata.stylesheet);});});diff --git a/apps/web/src/features/resume/builder/draft.ts b/apps/web/src/features/resume/builder/draft.tsindex 3ab474c31..7416f9f63 100644--- a/apps/web/src/features/resume/builder/draft.ts+++ b/apps/web/src/features/resume/builder/draft.ts@@ -10,7 +10,6 @@ import { useCallback, useEffect, useState } from "react";import { toast } from "sonner";import { immer } from "zustand/middleware/immer";import { create } from "zustand/react";-import { refreshStylesheetStore } from "@/features/resume/stylesheet/store";import { orpc, streamClient } from "@/libs/orpc/client";export type Resume = {@@ -26,7 +25,7 @@ export type Resume = {};// Mirrors the server-side ResumeUpdatedEvent discriminator (packages/api resume/events.ts).-type ResumeUpdateMutation = "sync" | "create" | "update" | "patch" | "lock" | "password" | "delete" | "stylesheet";+type ResumeUpdateMutation = "sync" | "create" | "update" | "patch" | "lock" | "password" | "delete";type ResumeUpdateEvent = { mutation: ResumeUpdateMutation };type SaveStatus = "idle" | "saving" | "saved" | "error";@@ -616,14 +615,9 @@ export function useBuilderResumeUpdateSubscription() {if (!resumeId) return;bindRuntimeQueryClient(resumeId, queryClient);- if (event.mutation === "stylesheet") {- await refreshStylesheetStore(resumeId);- return;- }const resume = (await orpc.resume.getById.call({ id: resumeId })) as Resume;queryClient.setQueryData(getResumeQueryKey(resumeId), resume);- await refreshStylesheetStore(resumeId, resume.data);if (hasPendingLocalChanges(resumeId)) {useResumeStore.getState().mergeResumeMetadata(resume);diff --git a/apps/web/src/features/resume/export/pdf-document.tsx b/apps/web/src/features/resume/export/pdf-document.tsxindex 3bcebfa3c..195a7c280 100644--- a/apps/web/src/features/resume/export/pdf-document.tsx+++ b/apps/web/src/features/resume/export/pdf-document.tsx@@ -1,6 +1,4 @@-import type { PublicStyleProjection } from "@reactive-resume/pdf/public-projection";import type { ResumeData } from "@reactive-resume/schema/resume/data";-import type { SemanticStylesheet, StylesheetSource } from "@reactive-resume/schema/resume/stylesheet";import type { Template } from "@reactive-resume/schema/templates";import { useMemo } from "react";import { createResumePdfBlob as createPdfBlob } from "@reactive-resume/pdf/browser";@@ -11,22 +9,6 @@ type ResumePdfRenderOptions = {includeCoverLetterHeader?: boolean;};-export type ResumePdfPresentation =- | { stylesheet: Pick<SemanticStylesheet, "mode"> & { applied: StylesheetSource } }- | { publicStyleProjection: PublicStyleProjection };--const withAppliedStylesheet = (data: ResumeData, presentation?: ResumePdfPresentation): ResumeData => {- if (!presentation || !("stylesheet" in presentation)) return data;- const { mode, applied } = presentation.stylesheet;- return {- ...data,- metadata: {- ...data.metadata,- stylesheet: { mode, source: applied, applied },- },- };-};-export const useLocalizedResumeDocument = (data?: ResumeData, template?: Template) => {const sectionTitleResolver = useSectionTitleResolver(data?.metadata.page.locale);@@ -47,17 +29,13 @@ export const createResumePdfBlob = async (data: ResumeData,template?: Template,renderOptions?: ResumePdfRenderOptions,- presentation?: ResumePdfPresentation,) => {const sectionTitleResolver = await createSectionTitleResolverForLocale(data.metadata.page.locale);return createPdfBlob({- data: withAppliedStylesheet(data, presentation),+ data,template,...(renderOptions ? { renderOptions } : {}),- ...(presentation && "publicStyleProjection" in presentation- ? { publicStyleProjection: presentation.publicStyleProjection }- : {}),resolveSectionTitle: sectionTitleResolver,});};diff --git a/apps/web/src/features/resume/export/use-resume-export.test.tsx b/apps/web/src/features/resume/export/use-resume-export.test.tsxindex d0614be7d..45af2e192 100644--- a/apps/web/src/features/resume/export/use-resume-export.test.tsx+++ b/apps/web/src/features/resume/export/use-resume-export.test.tsx@@ -3,7 +3,6 @@import { act, renderHook } from "@testing-library/react";import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";import { i18n } from "@lingui/core";-import { createPublicStyleProjection } from "@reactive-resume/pdf/public-projection";import { sampleResumeData } from "@reactive-resume/schema/resume/sample";import { useResumeExport } from "./use-resume-export";@@ -14,22 +13,13 @@ const mocks = vi.hoisted(() => ({toastError: vi.fn(),}));-vi.mock("./pdf-document", () => ({+vi.mock("@/features/resume/export/pdf-document", () => ({createResumePdfBlob: mocks.createResumePdfBlob,}));vi.mock("@reactive-resume/utils/file", () => ({downloadWithAnchor: mocks.downloadWithAnchor,generateFilename: (name: string, extension: string) => `${name}.${extension}`,}));-vi.mock("@/features/resume/stylesheet/store", () => ({- useStylesheetStore: (selector: (state: object) => unknown) =>- selector({- resumeId: undefined,- mode: "legacy",- source: { languageVersion: 1, text: "@version 1;\n" },- applied: { languageVersion: 1, text: "@version 1;\n" },- }),-}));vi.mock("sonner", () => ({toast: {loading: vi.fn(() => "toast"),@@ -49,21 +39,16 @@ beforeEach(() => {});describe("useResumeExport public PDF", () => {- it("downloads the authorized server blob after one mismatched-projection refetch", async () => {+ it("downloads the authorized server blob after public browser rendering rejects", async () => {const semanticData = structuredClone(sampleResumeData);const source = { languageVersion: 1, text: "@version 1;\nname { color: #123456; }\n" };- semanticData.metadata.stylesheet = { mode: "semantic", source, applied: source };- const projection = await createPublicStyleProjection({ data: semanticData });- const mismatchedProjection = { ...projection, renderDataHash: "0".repeat(64) };- const refetchStyleProjection = vi.fn(async () => mismatchedProjection);+ semanticData.metadata.stylesheet = { mode: "semantic", source };+ mocks.createResumePdfBlob.mockRejectedValueOnce(new Error("browser renderer failed"));const { result } = renderHook(() =>useResumeExport(- { name: "Sample", slug: "sample", data: sampleResumeData },+ { name: "Sample", slug: "sample", data: semanticData },{publicResumePdf: {- stylesheetMode: "semantic",- styleProjection: mismatchedProjection,- refetchStyleProjection,publicResume: { username: "amruth", slug: "sample" },},},@@ -72,19 +57,14 @@ describe("useResumeExport public PDF", () => {await act(() => result.current.onDownloadPDF());- expect(refetchStyleProjection).toHaveBeenCalledTimes(1);+ expect(mocks.createResumePdfBlob).toHaveBeenCalledWith(semanticData);expect(mocks.fetch).toHaveBeenCalledTimes(1);- expect(mocks.createResumePdfBlob).not.toHaveBeenCalled();const blob = mocks.downloadWithAnchor.mock.calls[0]?.[0] as Blob;expect(await blob.text()).toBe("server");});- it("does not download an unstyled PDF when semantic rendering rejects", async () => {- mocks.createResumePdfBlob.mockRejectedValueOnce(- new Error("The semantic stylesheet could not be rendered.", {- cause: [{ code: "RESOURCE_LIMIT", severity: "error" }],- }),- );+ it("does not download a PDF when the renderer rejects", async () => {+ mocks.createResumePdfBlob.mockRejectedValueOnce(new Error("PDF renderer failed"));const { result } = renderHook(() => useResumeExport({ name: "Sample", slug: "sample", data: sampleResumeData }));await act(() => result.current.onDownloadPDF());diff --git a/apps/web/src/features/resume/export/use-resume-export.ts b/apps/web/src/features/resume/export/use-resume-export.tsindex 4ea302916..fbcb27a79 100644--- a/apps/web/src/features/resume/export/use-resume-export.ts+++ b/apps/web/src/features/resume/export/use-resume-export.ts@@ -1,10 +1,8 @@import type { ResumeExportTarget } from "@reactive-resume/resume/export-sections";import type { ResumeData } from "@reactive-resume/schema/resume/data";-import type { SemanticStylesheet } from "@reactive-resume/schema/resume/stylesheet";import type { PublicResumePdfOptions } from "@/features/resume/public/public-pdf";-import type { ResumePdfPresentation } from "./pdf-document";import { t } from "@lingui/core/macro";-import { useCallback, useMemo, useState } from "react";+import { useCallback, useState } from "react";import { toast } from "sonner";import { buildDocx } from "@reactive-resume/docx";import { getResumeSectionTitle } from "@reactive-resume/pdf/section-title";@@ -12,7 +10,6 @@ import { getResumeExportData, resumeHasCoverLetter } from "@reactive-resume/resuimport { buildMarkdown } from "@reactive-resume/resume/markdown";import { downloadWithAnchor, generateFilename } from "@reactive-resume/utils/file";import { resolvePublicResumePdfBlob } from "@/features/resume/public/public-pdf";-import { useStylesheetStore } from "@/features/resume/stylesheet/store";import { createSectionTitleResolverForLocale } from "@/libs/resume/section-title-locale";import { createResumePdfBlob } from "./pdf-document";@@ -54,43 +51,12 @@ type DownloadPdfOptions = {export function useResumeExport(resume: ExportableResume | undefined, exportOptions: UseResumeExportOptions = {}) {const [isExporting, setIsExporting] = useState(false);const hasCoverLetter = resume ? resumeHasCoverLetter(resume.data) : false;- const stylesheetResumeId = useStylesheetStore((state) => state.resumeId);- const stylesheetMode = useStylesheetStore((state) => state.mode);- const stylesheetSource = useStylesheetStore((state) => state.source);- const stylesheetApplied = useStylesheetStore((state) => state.applied);- const canonicalStylesheet = useMemo<SemanticStylesheet | undefined>(- () =>- resume?.id && resume.id === stylesheetResumeId- ? {- mode: stylesheetMode,- source: stylesheetSource,- applied: stylesheetApplied,- }- : undefined,- [resume?.id, stylesheetApplied, stylesheetMode, stylesheetResumeId, stylesheetSource],- );- const pdfPresentation = useMemo<ResumePdfPresentation | undefined>(- () =>- canonicalStylesheet- ? { stylesheet: { mode: canonicalStylesheet.mode, applied: canonicalStylesheet.applied } }- : undefined,- [canonicalStylesheet],- );const onDownloadJSON = useCallback(() => {if (!resume) return;- const data = canonicalStylesheet- ? {- ...resume.data,- metadata: {- ...resume.data.metadata,- stylesheet: canonicalStylesheet,- },- }- : resume.data;- const blob = new Blob([JSON.stringify(data, null, 2)], { type: "application/json" });+ const blob = new Blob([JSON.stringify(resume.data, null, 2)], { type: "application/json" });downloadWithAnchor(blob, generateFilename(getExportName(resume), "json"));- }, [canonicalStylesheet, resume]);+ }, [resume]);const onDownloadMarkdown = useCallback(async (target: ResumeExportTarget = "resume") => {@@ -136,7 +102,6 @@ export function useResumeExport(resume: ExportableResume | undefined, exportOptitarget === "cover-letter"? { includeCoverLetterHeader: downloadOptions?.includeCoverLetterHeader }: undefined,- pdfPresentation,);downloadWithAnchor(blob, generateFilename(getTargetExportName(resume, target), "pdf"));} catch {@@ -146,7 +111,7 @@ export function useResumeExport(resume: ExportableResume | undefined, exportOptitoast.dismiss(toastId);}},- [exportOptions.publicResumePdf, pdfPresentation, resume],+ [exportOptions.publicResumePdf, resume],);const onPrint = useCallback(async () => {@@ -156,7 +121,7 @@ export function useResumeExport(resume: ExportableResume | undefined, exportOptitry {const blob = exportOptions.publicResumePdf? await resolvePublicResumePdfBlob({ data: resume.data, ...exportOptions.publicResumePdf })- : await createResumePdfBlob(resume.data, undefined, undefined, pdfPresentation);+ : await createResumePdfBlob(resume.data);const url = URL.createObjectURL(blob);// ponytail: print the generated PDF via a hidden iframe (reliable in Chromium). If the browser// blocks iframe printing, fall back to opening the PDF in a new tab so the user can print manually.@@ -182,7 +147,7 @@ export function useResumeExport(resume: ExportableResume | undefined, exportOptisetIsExporting(false);toast.dismiss(toastId);}- }, [exportOptions.publicResumePdf, pdfPresentation, resume]);+ }, [exportOptions.publicResumePdf, resume]);return { onDownloadJSON, onDownloadMarkdown, onDownloadDOCX, onDownloadPDF, onPrint, isExporting, hasCoverLetter };}diff --git a/apps/web/src/features/resume/preview/preview.browser.test.tsx b/apps/web/src/features/resume/preview/preview.browser.test.tsxindex 7ac9d60da..945374ef9 100644--- a/apps/web/src/features/resume/preview/preview.browser.test.tsx+++ b/apps/web/src/features/resume/preview/preview.browser.test.tsx@@ -8,14 +8,7 @@ import { sampleResumeData } from "@reactive-resume/schema/resume/sample";import { ResumePreviewClient } from "./preview.browser";const previewMock = vi.hoisted(() => ({- builderResumeId: undefined as string | undefined,builderResumeData: undefined as ResumeData | undefined,- stylesheet: {- resumeId: undefined as string | undefined,- mode: "legacy" as "legacy" | "semantic",- source: { languageVersion: 1, text: "@version 1;\n" },- applied: { languageVersion: 1, text: "@version 1;\n" },- },toastError: vi.fn(),toBlob: vi.fn(async () => new Blob(["%PDF"], { type: "application/pdf" })),}));@@ -53,22 +46,9 @@ vi.mock("sonner", () => ({vi.mock("../builder/draft", () => ({useResumeData: () => previewMock.builderResumeData,- useResumeStore: (selector: (state: { resumeId?: string }) => unknown) =>- selector({ resumeId: previewMock.builderResumeId }),usePreviewPausedStore: (selector: (state: { paused: boolean }) => unknown) => selector({ paused: false }),}));-vi.mock("@/features/resume/stylesheet/store", () => ({- useStylesheetStore: (- selector: (state: {- resumeId?: string;- mode: "legacy" | "semantic";- source: { languageVersion: number; text: string };- applied: { languageVersion: number; text: string };- }) => unknown,- ) => selector(previewMock.stylesheet),-}));-vi.mock("./pdf-canvas", async () => {const React = await import("react");const pdfDocument = { numPages: 1 };@@ -102,14 +82,7 @@ describe("ResumePreviewClient", () => {});beforeEach(() => {- previewMock.builderResumeId = undefined;previewMock.builderResumeData = undefined;- previewMock.stylesheet = {- resumeId: undefined,- mode: "legacy",- source: { languageVersion: 1, text: "@version 1;\n" },- applied: { languageVersion: 1, text: "@version 1;\n" },- };previewMock.toBlob.mockReset();previewMock.toBlob.mockImplementation(async () => new Blob(["%PDF"], { type: "application/pdf" }));previewMock.toastError.mockReset();@@ -135,7 +108,7 @@ describe("ResumePreviewClient", () => {expect(previewMock.toBlob).toHaveBeenCalledTimes(1);});- expect(previewMock.toBlob).toHaveBeenCalledWith(sampleResumeData, undefined, undefined, undefined);+ expect(previewMock.toBlob).toHaveBeenCalledWith(sampleResumeData);});it("keeps the rendered template identity on the active layer while its replacement renders", async () => {@@ -159,47 +132,39 @@ describe("ResumePreviewClient", () => {expect(activeLayer?.getAttribute("data-resume-preview-template")).toBe("azurill");});- it("renders the canonical applied stylesheet and ignores invalid editable source", async () => {- const validApplied = { languageVersion: 1, text: "@version 1;\nname { color: #123456; }\n" };- previewMock.builderResumeId = "resume-1";- previewMock.builderResumeData = sampleResumeData;- previewMock.stylesheet = {- resumeId: "resume-1",- mode: "semantic",- source: { languageVersion: 1, text: "section {" },- applied: validApplied,+ it("renders the current stylesheet source from the ordinary builder draft", async () => {+ const source = { languageVersion: 1, text: "section {" };+ previewMock.builderResumeData = {+ ...sampleResumeData,+ metadata: {+ ...sampleResumeData.metadata,+ stylesheet: { mode: "semantic", source },+ },};render(<ResumePreviewClient pageLayout="vertical" pageScale={1.25} showPageNumbers={false} />);await waitFor(() => expect(previewMock.toBlob).toHaveBeenCalledTimes(1));- expect(previewMock.toBlob).toHaveBeenCalledWith(sampleResumeData, undefined, undefined, {- stylesheet: { mode: "semantic", applied: validApplied },- });+ expect(previewMock.toBlob).toHaveBeenCalledWith(previewMock.builderResumeData);expect(previewMock.toBlob).toHaveBeenCalledTimes(1);});- it("keeps the active PDF visible and reports later semantic render diagnostics", async () => {- previewMock.builderResumeId = "resume-1";+ it("keeps the active PDF visible and reports a later renderer failure", async () => {previewMock.builderResumeData = sampleResumeData;- previewMock.stylesheet = {- resumeId: "resume-1",- mode: "semantic",- source: { languageVersion: 1, text: "@version 1;\n" },- applied: { languageVersion: 1, text: "@version 1;\nname { color: #123456; }\n" },- };const view = render(<ResumePreviewClient pageLayout="vertical" pageScale={1.25} showPageNumbers={false} />);expect(await screen.findByRole("img", { name: "Resume page 1 of 1" })).toBeTruthy();- previewMock.toBlob.mockRejectedValueOnce(- new Error("The semantic stylesheet could not be rendered.", {- cause: [{ code: "RESOURCE_LIMIT", severity: "error" }],- }),- );- previewMock.stylesheet.applied = {- languageVersion: 1,- text: "@version 1;\nname { color: #654321; }\n",+ previewMock.toBlob.mockRejectedValueOnce(new Error("PDF renderer failed"));+ previewMock.builderResumeData = {+ ...sampleResumeData,+ metadata: {+ ...sampleResumeData.metadata,+ stylesheet: {+ mode: "semantic",+ source: { languageVersion: 1, text: "@version 1;\nname { color: #654321; }\n" },+ },+ },};view.rerender(<ResumePreviewClient pageLayout="vertical" pageScale={1.25} showPageNumbers={false} />);diff --git a/apps/web/src/features/resume/preview/preview.browser.tsx b/apps/web/src/features/resume/preview/preview.browser.tsxindex f4e8fb9d0..576b49c98 100644--- a/apps/web/src/features/resume/preview/preview.browser.tsx+++ b/apps/web/src/features/resume/preview/preview.browser.tsx@@ -4,13 +4,12 @@ import type { ResolvedResumePreviewProps } from "./preview.shared";import type { PreviewPageSize } from "./preview.shared.utils";import { t } from "@lingui/core/macro";import { AnimatePresence, m } from "motion/react";-import { useEffect, useMemo, useRef, useState } from "react";+import { useEffect, useRef, useState } from "react";import { toast } from "sonner";import { isRTL } from "@reactive-resume/utils/locale";import { cn } from "@reactive-resume/utils/style";import { createResumePdfBlob } from "@/features/resume/export/pdf-document";-import { useStylesheetStore } from "@/features/resume/stylesheet/store";-import { usePreviewPausedStore, useResumeData, useResumeStore } from "../builder/draft";+import { usePreviewPausedStore, useResumeData } from "../builder/draft";import { PdfCanvasDocument, PdfCanvasPage } from "./pdf-canvas";import { ResumePreviewLoader } from "./preview.shared";import { getResumePreviewGapValue, getResumePreviewPageCount } from "./preview.shared.utils";@@ -102,17 +101,6 @@ export function ResumePreviewClient({}: ResolvedResumePreviewProps) {const builderResumeData = useResumeData();const resumeData = data ?? builderResumeData;- const builderResumeId = useResumeStore((state) => state.resumeId);- const stylesheetResumeId = useStylesheetStore((state) => state.resumeId);- const mode = useStylesheetStore((state) => state.mode);- const applied = useStylesheetStore((state) => state.applied);- const presentation = useMemo(- () =>- data === undefined && builderResumeId !== undefined && stylesheetResumeId === builderResumeId- ? { stylesheet: { mode, applied } }- : undefined,- [applied, builderResumeId, data, mode, stylesheetResumeId],- );const paused = usePreviewPausedStore((state) => state.paused);const [previewLayers, setPreviewLayers] = useState<PreviewPdf[]>([]);@@ -133,7 +121,7 @@ export function ResumePreviewClient({const generatePdfPreview = async () => {try {if (cancelled || requestId !== requestIdRef.current) return;- const blob = await createResumePdfBlob(resumeData, undefined, undefined, presentation);+ const blob = await createResumePdfBlob(resumeData);if (!cancelled && requestId === requestIdRef.current) {const nextPdf = createPreviewPdf(@@ -162,7 +150,7 @@ export function ResumePreviewClient({cancelled = true;window.clearTimeout(timeoutId);};- }, [paused, presentation, resumeData]);+ }, [paused, resumeData]);if (!resumeData) return null;diff --git a/apps/web/src/features/resume/public/pdf-viewer.test.tsx b/apps/web/src/features/resume/public/pdf-viewer.test.tsxindex 67a0a8ca8..ec021275c 100644--- a/apps/web/src/features/resume/public/pdf-viewer.test.tsx+++ b/apps/web/src/features/resume/public/pdf-viewer.test.tsx@@ -2,7 +2,6 @@import { render, waitFor } from "@testing-library/react";import { beforeEach, describe, expect, it, vi } from "vitest";-import { createPublicStyleProjection } from "@reactive-resume/pdf/public-projection";import { sampleResumeData } from "@reactive-resume/schema/resume/sample";const pdfViewerMock = vi.hoisted(() => {@@ -120,67 +119,25 @@ describe("PdfViewer", () => {expect(pdfViewerMock.loadingTask.destroy).toHaveBeenCalledTimes(1);});- it("renders a valid public projection through the shared PDF entrypoint", async () => {+ it("renders exposed semantic source through the shared PDF entrypoint", async () => {const semanticData = structuredClone(sampleResumeData);- const applied = { languageVersion: 1, text: "@version 1;\nname { color: #123456; }\n" };- semanticData.metadata.stylesheet = { mode: "semantic", source: applied, applied };- const projection = await createPublicStyleProjection({ data: semanticData });- const refetchStyleProjection = vi.fn();-- render(- <PdfViewer- data={sampleResumeData}- stylesheetMode="semantic"- styleProjection={projection}- refetchStyleProjection={refetchStyleProjection}- publicResume={{ username: "amruth", slug: "sample" }}- />,- );-- await waitFor(() =>- expect(pdfViewerMock.createResumePdfBlob).toHaveBeenCalledWith(sampleResumeData, undefined, undefined, {- publicStyleProjection: projection,- }),- );- expect(refetchStyleProjection).not.toHaveBeenCalled();+ semanticData.metadata.stylesheet = {+ mode: "semantic",+ source: { languageVersion: 1, text: "@version 1;\nname { color: #123456; }\n" },+ };++ render(<PdfViewer data={semanticData} publicResume={{ username: "amruth", slug: "sample" }} />);++ await waitFor(() => expect(pdfViewerMock.createResumePdfBlob).toHaveBeenCalledWith(semanticData));expect(pdfViewerMock.fetch).not.toHaveBeenCalled();});- it("refetches a mismatched projection once before using the authorized PDF fallback", async () => {- const semanticData = structuredClone(sampleResumeData);- const applied = { languageVersion: 1, text: "@version 1;\nname { color: #123456; }\n" };- semanticData.metadata.stylesheet = { mode: "semantic", source: applied, applied };- const projection = await createPublicStyleProjection({ data: semanticData });- const mismatchedProjection = { ...projection, renderDataHash: "0".repeat(64) };- const refetchStyleProjection = vi.fn(async () => mismatchedProjection);-- const view = render(- <PdfViewer- data={sampleResumeData}- stylesheetMode="semantic"- styleProjection={mismatchedProjection}- refetchStyleProjection={refetchStyleProjection}- publicResume={{ username: "amruth", slug: "sample" }}- />,- );-- await waitFor(() => expect(refetchStyleProjection).toHaveBeenCalledTimes(1));+ it("uses the authorized PDF fallback after browser generation rejects", async () => {+ pdfViewerMock.createResumePdfBlob.mockRejectedValueOnce(new Error("browser renderer failed"));++ render(<PdfViewer data={sampleResumeData} publicResume={{ username: "amruth", slug: "sample" }} />);+await waitFor(() => expect(pdfViewerMock.fetch).toHaveBeenCalledTimes(1));- expect(String(pdfViewerMock.fetch.mock.calls[0]?.[0])).toContain("/api/resumes/amruth/sample/pdf");- expect(String(pdfViewerMock.fetch.mock.calls[0]?.[0])).toContain("reason=render-data-hash");- expect(pdfViewerMock.createResumePdfBlob).not.toHaveBeenCalled();-- view.rerender(- <PdfViewer- data={sampleResumeData}- stylesheetMode="semantic"- styleProjection={{ ...mismatchedProjection, renderDataHash: "1".repeat(64) }}- refetchStyleProjection={refetchStyleProjection}- publicResume={{ username: "amruth", slug: "sample" }}- />,- );-- await waitFor(() => expect(pdfViewerMock.fetch).toHaveBeenCalledTimes(2));- expect(refetchStyleProjection).toHaveBeenCalledTimes(1);+ expect(pdfViewerMock.fetch).toHaveBeenCalledWith("/api/resumes/amruth/sample/pdf", { credentials: "include" });});});diff --git a/apps/web/src/features/resume/public/pdf-viewer.tsx b/apps/web/src/features/resume/public/pdf-viewer.tsxindex 53b0039c2..f67f82c3f 100644--- a/apps/web/src/features/resume/public/pdf-viewer.tsx+++ b/apps/web/src/features/resume/public/pdf-viewer.tsx@@ -1,6 +1,4 @@-import type { PublicStyleProjection } from "@reactive-resume/pdf/public-projection";import type { ResumeData } from "@reactive-resume/schema/resume/data";-import type { SemanticStylesheet } from "@reactive-resume/schema/resume/stylesheet";import type { PDFDocumentLoadingTask, PDFDocumentProxy } from "pdfjs-dist/legacy/build/pdf.mjs";import { AnnotationMode, GlobalWorkerOptions, getDocument } from "pdfjs-dist/legacy/build/pdf.mjs";import { EventBus, LinkTarget, PDFLinkService, PDFViewer } from "pdfjs-dist/legacy/web/pdf_viewer.mjs";@@ -17,9 +15,6 @@ GlobalWorkerOptions.workerSrc = new URL("pdfjs-dist/legacy/build/pdf.worker.min.type PdfViewerProps = {className?: string;data: ResumeData;- stylesheetMode?: SemanticStylesheet["mode"];- styleProjection?: PublicStyleProjection;- refetchStyleProjection?: () => Promise<PublicStyleProjection | undefined>;publicResume?: {username: string;slug: string;@@ -77,21 +72,11 @@ function pdfViewerReducer(state: PdfViewerState, action: PdfViewerAction): PdfVi}}-export function PdfViewer({- className,- data,- stylesheetMode,- styleProjection,- refetchStyleProjection,- publicResume,-}: PdfViewerProps) {+export function PdfViewer({ className, data, publicResume }: PdfViewerProps) {const rootRef = useRef<HTMLDivElement>(null);const containerRef = useRef<HTMLDivElement>(null);const viewerRef = useRef<HTMLDivElement>(null);const fileRef = useRef<Blob | null>(null);- const projectionRetryRef = useRef<{ data?: ResumeData; publicKey?: string; retried: boolean }>({- retried: false,- });const [{ error, fileVersion, isReady, viewerHeight }, dispatch] = useReducer(pdfViewerReducer,INITIAL_PDF_VIEWER_STATE,@@ -103,27 +88,8 @@ export function PdfViewer({fileRef.current = null;dispatch({ type: "resetForData" });- const createPdf = () => {- if (!stylesheetMode || !publicResume) return createResumePdfBlob(data);- const publicKey = `${publicResume.username}/${publicResume.slug}`;- if (projectionRetryRef.current.data !== data || projectionRetryRef.current.publicKey !== publicKey) {- projectionRetryRef.current = { data, publicKey, retried: false };- }- const retryProjection =- refetchStyleProjection && !projectionRetryRef.current.retried- ? () => {- projectionRetryRef.current.retried = true;- return refetchStyleProjection();- }- : undefined;- return resolvePublicResumePdfBlob({- data,- stylesheetMode,- publicResume,- ...(styleProjection ? { styleProjection } : {}),- ...(retryProjection ? { refetchStyleProjection: retryProjection } : {}),- });- };+ const createPdf = () =>+ publicResume ? resolvePublicResumePdfBlob({ data, publicResume }) : createResumePdfBlob(data);void createPdf().then((blob) => {@@ -142,7 +108,7 @@ export function PdfViewer({return () => {isCancelled = true;};- }, [data, publicResume, refetchStyleProjection, styleProjection, stylesheetMode]);+ }, [data, publicResume]);useEffect(() => {void fileVersion;diff --git a/apps/web/src/features/resume/public/public-pdf.test.ts b/apps/web/src/features/resume/public/public-pdf.test.tsindex 657275afc..74b2c93c9 100644--- a/apps/web/src/features/resume/public/public-pdf.test.ts+++ b/apps/web/src/features/resume/public/public-pdf.test.ts@@ -1,5 +1,4 @@import { beforeEach, describe, expect, it, vi } from "vitest";-import { createPublicStyleProjection } from "@reactive-resume/pdf/public-projection";import { sampleResumeData } from "@reactive-resume/schema/resume/sample";import { resolvePublicResumePdfBlob } from "./public-pdf";@@ -15,58 +14,35 @@ vi.mock("@/features/resume/export/pdf-document", () => ({const publicResume = { username: "amruth", slug: "sample" };beforeEach(() => {- mocks.createResumePdfBlob.mockClear();- mocks.fetch.mockClear();+ mocks.createResumePdfBlob.mockReset();+ mocks.createResumePdfBlob.mockResolvedValue(new Blob(["local"], { type: "application/pdf" }));+ mocks.fetch.mockReset();+ mocks.fetch.mockResolvedValue(new Response(new Blob(["server"], { type: "application/pdf" })));vi.stubGlobal("fetch", mocks.fetch);});describe("resolvePublicResumePdfBlob", () => {- it("keeps legitimate legacy resumes on the local PDF path", async () => {- await resolvePublicResumePdfBlob({- data: sampleResumeData,- stylesheetMode: "legacy",- publicResume,- });+ it("renders the exposed stylesheet source directly in the browser", async () => {+ const data = structuredClone(sampleResumeData);+ data.metadata.stylesheet = {+ mode: "semantic",+ source: { languageVersion: 1, text: "@version 1;\nname { color: #123456; }\n" },+ };- expect(mocks.createResumePdfBlob).toHaveBeenCalledWith(sampleResumeData);- expect(mocks.fetch).not.toHaveBeenCalled();- });-- it("uses the authorized server fallback when a semantic projection is unavailable", async () => {- const refetchStyleProjection = vi.fn().mockRejectedValue(new Error("projection unavailable"));+ const blob = await resolvePublicResumePdfBlob({ data, publicResume });- await resolvePublicResumePdfBlob({- data: sampleResumeData,- stylesheetMode: "semantic",- publicResume,- refetchStyleProjection,- });-- expect(refetchStyleProjection).toHaveBeenCalledTimes(1);- expect(String(mocks.fetch.mock.calls[0]?.[0])).toContain("/api/resumes/amruth/sample/pdf");- expect(String(mocks.fetch.mock.calls[0]?.[0])).toContain("reason=missing-projection");- expect(mocks.createResumePdfBlob).not.toHaveBeenCalled();+ expect(mocks.createResumePdfBlob).toHaveBeenCalledWith(data);+ expect(mocks.fetch).not.toHaveBeenCalled();+ expect(await blob.text()).toBe("local");});- it("refetches a mismatched projection once before returning the authorized server blob", async () => {- const semanticData = structuredClone(sampleResumeData);- const source = { languageVersion: 1, text: "@version 1;\nname { color: #123456; }\n" };- semanticData.metadata.stylesheet = { mode: "semantic", source, applied: source };- const projection = await createPublicStyleProjection({ data: semanticData });- const mismatchedProjection = { ...projection, renderDataHash: "0".repeat(64) };- const refetchStyleProjection = vi.fn(async () => mismatchedProjection);+ it("fetches the server PDF only after browser rendering rejects", async () => {+ mocks.createResumePdfBlob.mockRejectedValue(new Error("browser renderer failed"));- const blob = await resolvePublicResumePdfBlob({- data: sampleResumeData,- stylesheetMode: "semantic",- styleProjection: mismatchedProjection,- publicResume,- refetchStyleProjection,- });+ const blob = await resolvePublicResumePdfBlob({ data: sampleResumeData, publicResume });- expect(refetchStyleProjection).toHaveBeenCalledTimes(1);- expect(mocks.fetch).toHaveBeenCalledTimes(1);+ expect(mocks.createResumePdfBlob).toHaveBeenCalledWith(sampleResumeData);+ expect(mocks.fetch).toHaveBeenCalledWith("/api/resumes/amruth/sample/pdf", { credentials: "include" });expect(await blob.text()).toBe("server");- expect(mocks.createResumePdfBlob).not.toHaveBeenCalled();});});diff --git a/apps/web/src/features/resume/public/public-pdf.ts b/apps/web/src/features/resume/public/public-pdf.tsindex da2dd4c88..86f2dbcc4 100644--- a/apps/web/src/features/resume/public/public-pdf.ts+++ b/apps/web/src/features/resume/public/public-pdf.ts@@ -1,97 +1,28 @@-import type { PublicStyleProjection } from "@reactive-resume/pdf/public-projection";import type { ResumeData } from "@reactive-resume/schema/resume/data";-import type { SemanticStylesheet } from "@reactive-resume/schema/resume/stylesheet";-import {- getPublicStyleProjectionFingerprints,- PUBLIC_STYLE_PROJECTION_FORMAT_VERSION,- SEMANTIC_TREE_VERSION,- validatePublicStyleProjection,-} from "@reactive-resume/pdf/public-projection";import { createResumePdfBlob } from "@/features/resume/export/pdf-document";export type PublicResumePdfOptions = {- stylesheetMode: SemanticStylesheet["mode"];- styleProjection?: PublicStyleProjection;- refetchStyleProjection?: () => Promise<PublicStyleProjection | undefined>;publicResume: {username: string;slug: string;};};-type ProjectionMismatchReason =- | "format-version"- | "language-version"- | "semantic-tree-version"- | "registry-fingerprint"- | "adapter-fingerprint"- | "render-data-hash"- | "invalid-projection";--const projectionMismatchReason = async (- data: ResumeData,- projection: PublicStyleProjection,-): Promise<ProjectionMismatchReason | null> => {- if (projection.formatVersion !== PUBLIC_STYLE_PROJECTION_FORMAT_VERSION) return "format-version";- if (projection.languageVersion !== 1) return "language-version";- if (projection.semanticTreeVersion !== SEMANTIC_TREE_VERSION) return "semantic-tree-version";- const fingerprints = await getPublicStyleProjectionFingerprints();- if (projection.registryFingerprint !== fingerprints.registryFingerprint) return "registry-fingerprint";- if (projection.adapterFingerprint !== fingerprints.adapterFingerprint) return "adapter-fingerprint";- return (await validatePublicStyleProjection(data, projection)) ? null : "render-data-hash";-};--const fetchPublicResumePdf = async (- publicResume: PublicResumePdfOptions["publicResume"],- reason: ProjectionMismatchReason | "missing-projection",- projection?: PublicStyleProjection,-) => {- const search = new URLSearchParams({- reason,- ...(projection- ? {- registryFingerprint: projection.registryFingerprint,- adapterFingerprint: projection.adapterFingerprint,- }- : {}),+const fetchPublicResumePdf = async ({ username, slug }: PublicResumePdfOptions["publicResume"]) => {+ const response = await fetch(`/api/resumes/${encodeURIComponent(username)}/${encodeURIComponent(slug)}/pdf`, {+ credentials: "include",});- const response = await fetch(- `/api/resumes/${encodeURIComponent(publicResume.username)}/${encodeURIComponent(publicResume.slug)}/pdf?${search}`,- { credentials: "include" },- );if (!response.ok) throw new Error(`Public PDF fallback failed with ${response.status}`);return response.blob();};export async function resolvePublicResumePdfBlob({data,- ...options+ publicResume,}: PublicResumePdfOptions & { data: ResumeData }): Promise<Blob> {- if (options.stylesheetMode === "legacy") return createResumePdfBlob(data);-- let projection = options.styleProjection;- let refetched = false;- const refetch = async () => {- if (!options.refetchStyleProjection || refetched) return;- refetched = true;- try {- projection = await options.refetchStyleProjection();- } catch {- projection = undefined;- }- };-- if (!projection) await refetch();- if (!projection) return fetchPublicResumePdf(options.publicResume, "missing-projection");-- let reason = await projectionMismatchReason(data, projection).catch(() => "invalid-projection" as const);- if (reason) {- await refetch();- if (!projection) return fetchPublicResumePdf(options.publicResume, "missing-projection");- reason = await projectionMismatchReason(data, projection).catch(() => "invalid-projection" as const);+ try {+ return await createResumePdfBlob(data);+ } catch {+ return fetchPublicResumePdf(publicResume);}-- return reason- ? fetchPublicResumePdf(options.publicResume, reason, projection)- : createResumePdfBlob(data, undefined, undefined, { publicStyleProjection: projection });}diff --git a/apps/web/src/features/resume/public/public-resume.test.tsx b/apps/web/src/features/resume/public/public-resume.test.tsxindex eb3be8454..b7f46f73b 100644--- a/apps/web/src/features/resume/public/public-resume.test.tsx+++ b/apps/web/src/features/resume/public/public-resume.test.tsx@@ -1,6 +1,5 @@// @vitest-environment happy-dom-import type { PublicStyleProjection } from "@reactive-resume/pdf/public-projection";import type { ResumeData } from "@reactive-resume/schema/resume/data";import type { ReactNode } from "react";import { render, screen } from "@testing-library/react";@@ -12,30 +11,12 @@ import { sampleResumeData } from "@reactive-resume/schema/resume/sample";type PdfViewerProps = {className?: string;data: ResumeData;- stylesheetMode?: "legacy" | "semantic";- styleProjection?: PublicStyleProjection;- refetchStyleProjection?: () => Promise<PublicStyleProjection | undefined>;publicResume?: { username: string; slug: string };};const publicResumeMock = vi.hoisted(() => ({onDownloadPDF: vi.fn(),PdfViewer: vi.fn<(_props: PdfViewerProps) => ReactNode>(() => null),- projection: {- formatVersion: 1,- languageVersion: 1,- semanticTreeVersion: 1,- registryFingerprint: "1".repeat(64),- adapterFingerprint: "2".repeat(64),- renderDataHash: "3".repeat(64),- nodes: { resume: {} },- } as PublicStyleProjection,- refetchProjection: vi.fn(),- projectionResult: {- data: undefined as PublicStyleProjection | undefined,- isError: false,- isPending: false,- },useResumeExport: vi.fn(),resume: undefined as| undefined@@ -43,61 +24,28 @@ const publicResumeMock = vi.hoisted(() => ({data: ResumeData;name: string;slug: string;- stylesheetMode: "legacy" | "semantic";},}));-vi.mock("@tanstack/react-query", () => ({- useQuery: (options: { query: "resume" | "projection" }) =>- options.query === "resume"- ? { data: publicResumeMock.resume }- : { ...publicResumeMock.projectionResult, refetch: publicResumeMock.refetchProjection },-}));-+vi.mock("@tanstack/react-query", () => ({ useQuery: () => ({ data: publicResumeMock.resume }) }));vi.mock("@tanstack/react-router", () => ({- getRouteApi: () => ({- useParams: () => ({ username: "amruth", slug: "sample" }),- }),-}));--vi.mock("./pdf-viewer", () => ({- PdfViewer: publicResumeMock.PdfViewer,+ getRouteApi: () => ({ useParams: () => ({ username: "amruth", slug: "sample" }) }),}));-+vi.mock("./pdf-viewer", () => ({ PdfViewer: publicResumeMock.PdfViewer }));vi.mock("@/libs/orpc/client", () => ({- orpc: {- resume: {- getBySlug: { queryOptions: () => ({ query: "resume" }) },- getStyleProjection: { queryOptions: () => ({ query: "projection" }) },- },- },+ orpc: { resume: { getBySlug: { queryOptions: () => ({ query: "resume" }) } } },}));-vi.mock("@/features/resume/export/use-resume-export", () => ({useResumeExport: publicResumeMock.useResumeExport,}));const { PublicResumeRoute } = await import("./public-resume");-beforeAll(() => {- i18n.loadAndActivate({ locale: "en", messages: {} });-});+beforeAll(() => i18n.loadAndActivate({ locale: "en", messages: {} }));beforeEach(() => {- publicResumeMock.resume = {- data: sampleResumeData,- name: "Sample Resume",- slug: "sample",- stylesheetMode: "semantic",- };- publicResumeMock.projectionResult = {- data: publicResumeMock.projection,- isError: false,- isPending: false,- };+ publicResumeMock.resume = { data: sampleResumeData, name: "Sample Resume", slug: "sample" };publicResumeMock.PdfViewer.mockClear();- publicResumeMock.refetchProjection.mockReset();- publicResumeMock.refetchProjection.mockResolvedValue({ data: publicResumeMock.projection });publicResumeMock.useResumeExport.mockReset();publicResumeMock.useResumeExport.mockReturnValue({onDownloadPDF: publicResumeMock.onDownloadPDF,@@ -116,70 +64,19 @@ const renderPublicResumeRoute = () =>);describe("PublicResumeRoute", () => {- it("renders the public resume through the route-local PDF.js viewer", () => {- renderPublicResumeRoute();-- expect(screen.getByTestId("pdf-viewer")).toHaveClass("block", "w-full");- expect(publicResumeMock.PdfViewer).toHaveBeenCalledWith(- expect.objectContaining({ data: sampleResumeData }),- undefined,- );- expect(publicResumeMock.useResumeExport).toHaveBeenCalledWith(publicResumeMock.resume, {- publicResumePdf: expect.objectContaining({- stylesheetMode: "semantic",- styleProjection: publicResumeMock.projection,- publicResume: { username: "amruth", slug: "sample" },- }),- });- });-- it("routes a missing semantic projection to the shared fallback seam", () => {- publicResumeMock.projectionResult = { data: undefined, isError: true, isPending: false };-+ it("passes exposed source data directly to the browser viewer and export fallback", () => {renderPublicResumeRoute();expect(publicResumeMock.PdfViewer).toHaveBeenCalledWith(expect.objectContaining({- stylesheetMode: "semantic",- styleProjection: undefined,- refetchStyleProjection: expect.any(Function),- publicResume: { username: "amruth", slug: "sample" },- }),- undefined,- );- expect(publicResumeMock.useResumeExport).toHaveBeenCalledWith(- publicResumeMock.resume,- expect.objectContaining({- publicResumePdf: expect.objectContaining({- stylesheetMode: "semantic",- }),- }),- );- });-- it("keeps missing legacy projections on the local rendering path", () => {- if (publicResumeMock.resume) publicResumeMock.resume.stylesheetMode = "legacy";- publicResumeMock.projectionResult = { data: undefined, isError: false, isPending: false };-- renderPublicResumeRoute();-- expect(publicResumeMock.PdfViewer).toHaveBeenCalledWith(- expect.objectContaining({ stylesheetMode: "legacy", styleProjection: undefined }),- undefined,- );- });-- it("loads the public projection and passes it to the shared viewer", () => {- renderPublicResumeRoute();-- expect(publicResumeMock.PdfViewer).toHaveBeenCalledWith(- expect.objectContaining({- styleProjection: publicResumeMock.projection,- refetchStyleProjection: expect.any(Function),+ data: sampleResumeData,publicResume: { username: "amruth", slug: "sample" },}),undefined,);+ expect(publicResumeMock.useResumeExport).toHaveBeenCalledWith(publicResumeMock.resume, {+ publicResumePdf: { publicResume: { username: "amruth", slug: "sample" } },+ });});it("lets the public resume page grow to the full PDF length", () => {@@ -187,7 +84,6 @@ describe("PublicResumeRoute", () => {const viewerFrame = screen.getByTestId("pdf-viewer").parentElement;const page = viewerFrame?.parentElement;-expect(page).not.toHaveClass("min-h-svh", "h-svh", "max-h-svh", "overflow-hidden");expect(viewerFrame).not.toHaveClass("min-h-0", "flex-1", "overflow-hidden");});diff --git a/apps/web/src/features/resume/public/public-resume.tsx b/apps/web/src/features/resume/public/public-resume.tsxindex b9347d53d..a5a43d949 100644--- a/apps/web/src/features/resume/public/public-resume.tsx+++ b/apps/web/src/features/resume/public/public-resume.tsx@@ -3,7 +3,7 @@ import { Trans } from "@lingui/react/macro";import { CircleNotchIcon, DownloadSimpleIcon } from "@phosphor-icons/react";import { useQuery } from "@tanstack/react-query";import { getRouteApi } from "@tanstack/react-router";-import { useCallback, useMemo } from "react";+import { useMemo } from "react";import { BrandIcon } from "@reactive-resume/ui/components/brand-icon";import { Button } from "@reactive-resume/ui/components/button";import { LoadingScreen } from "@/components/layout/loading-screen";@@ -17,30 +17,12 @@ export function PublicResumeRoute() {const { username, slug } = publicResumeRoute.useParams();const { data: resume } = useQuery(orpc.resume.getBySlug.queryOptions({ input: { username, slug } }));- const projectionQuery = useQuery(- orpc.resume.getStyleProjection.queryOptions({ input: { username, slug }, enabled: resume !== undefined }),- );- const styleProjection =- projectionQuery.data && Object.keys(projectionQuery.data.nodes).length > 0 ? projectionQuery.data : undefined;const publicResume = useMemo(() => ({ username, slug }), [slug, username]);- const refetchStyleProjection = useCallback(async () => {- const result = await projectionQuery.refetch();- return result.data;- }, [projectionQuery.refetch]);const { onDownloadPDF, isExporting } = useResumeExport(resume, {- ...(resume- ? {- publicResumePdf: {- stylesheetMode: resume.stylesheetMode,- publicResume,- refetchStyleProjection,- ...(styleProjection ? { styleProjection } : {}),- },- }- : {}),+ ...(resume ? { publicResumePdf: { publicResume } } : {}),});- if (!resume || projectionQuery.isPending) return <LoadingScreen />;+ if (!resume) return <LoadingScreen />;const { basics, picture } = resume.data;@@ -66,14 +48,7 @@ export function PublicResumeRoute() {</header><main className="w-full max-w-5xl bg-white print:max-w-full">- <PdfViewer- data={resume.data}- className="block w-full"- stylesheetMode={resume.stylesheetMode}- styleProjection={styleProjection}- publicResume={publicResume}- refetchStyleProjection={refetchStyleProjection}- />+ <PdfViewer data={resume.data} className="block w-full" publicResume={publicResume} /></main><footer className="flex justify-center print:hidden">diff --git a/apps/web/src/features/resume/stylesheet/editor.test.tsx b/apps/web/src/features/resume/stylesheet/editor.test.tsxindex e2c2e6fc2..02a8d313f 100644--- a/apps/web/src/features/resume/stylesheet/editor.test.tsx+++ b/apps/web/src/features/resume/stylesheet/editor.test.tsx@@ -1,18 +1,30 @@// @vitest-environment happy-dom-import type { SemanticCssDiagnostic } from "@reactive-resume/resume/stylesheet";-import { fireEvent, render, screen, waitFor, within } from "@testing-library/react";-import { beforeAll, describe, expect, it, vi } from "vitest";+import type { SemanticCssDiagnostic, StyleProgram } from "@reactive-resume/resume/stylesheet";+import { act, fireEvent, render, screen, waitFor, within } from "@testing-library/react";+import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";import { EditorView } from "@codemirror/view";import { i18n } from "@lingui/core";import { I18nProvider } from "@lingui/react";+import { defaultResumeData } from "@reactive-resume/schema/resume/default";import { TooltipProvider } from "@reactive-resume/ui/components/tooltip";import StylesheetEditorShell, { StylesheetCodeEditor } from "./editor";import { LegacyStylesheetBanner } from "./legacy-banner";import { StylesheetStatus } from "./status";-import { useStylesheetStore } from "./store";const media = vi.hoisted(() => ({ mobile: false }));+const compileWorker = vi.hoisted(() => ({+ program: { languageVersion: 1, rules: [] } as StyleProgram | null,+ diagnostics: [] as SemanticCssDiagnostic[],+}));+const builder = vi.hoisted(() => ({+ canUndo: false,+ canRedo: false,+ data: undefined as typeof defaultResumeData | undefined,+ isLocked: false,+ undo: vi.fn(),+ redo: vi.fn(),+}));vi.mock("usehooks-ts", async (importOriginal) => ({...(await importOriginal<typeof import("usehooks-ts")>()),@@ -23,16 +35,52 @@ vi.mock("@/features/theme/provider", () => ({useTheme: () => ({ theme: "light" }),}));-const error: SemanticCssDiagnostic = {- code: "SEMANTIC_CSS_UNKNOWN_PROPERTY",+vi.mock("@/features/resume/builder/draft", () => ({+ useResumeData: () => builder.data,+ useIsResumeLocked: () => builder.isLocked,+ useUpdateResumeData: () => (update: (draft: typeof defaultResumeData) => void) => {+ if (builder.data) update(builder.data);+ },+ useResumeStore: (selector: (state: object) => unknown) =>+ selector({ canUndo: builder.canUndo, canRedo: builder.canRedo, undo: builder.undo, redo: builder.redo }),+}));++vi.mock("./worker-client", () => ({+ createCompileWorkerClient: () => ({+ compile: vi.fn(async ({ editGeneration }: { editGeneration: number }) => ({+ type: "compile_result",+ requestId: editGeneration,+ editGeneration,+ program: compileWorker.program,+ diagnostics: compileWorker.diagnostics,+ colorTokens: [],+ })),+ destroy: vi.fn(),+ }),+}));++const recoverableError: SemanticCssDiagnostic = {+ code: "INVALID_VALUE",severity: "error",- message: "Unknown property",+ message: "Invalid value",range: {start: { line: 2, column: 3, offset: 17 },end: { line: 2, column: 9, offset: 23 },},};+const fatalError: SemanticCssDiagnostic = {+ ...recoverableError,+ code: "VERSION_MISMATCH",+ message: "Version mismatch",+};++const resolutionError: SemanticCssDiagnostic = {+ ...recoverableError,+ code: "UNRESOLVED_VARIABLE",+ message: "Undefined variable --missing",+};+const guideName = /read the applying custom styles guide.*opens in new tab/i;const expectGuideLink = (root: HTMLElement) => {@@ -47,28 +95,48 @@ beforeAll(() => {Object.defineProperty(Element.prototype, "getAnimations", { configurable: true, value: () => [] });});+beforeEach(() => {+ media.mobile = false;+ builder.data = structuredClone(defaultResumeData);+ builder.isLocked = false;+ builder.canUndo = false;+ builder.canRedo = false;+ builder.undo.mockReset();+ builder.redo.mockReset();+ compileWorker.program = { languageVersion: 1, rules: [] };+ compileWorker.diagnostics = [];+});+const renderWithI18n = (element: React.ReactNode) => render(<I18nProvider i18n={i18n}>{element}</I18nProvider>);describe("stylesheet editor status", () => {- it("shows that invalid source keeps the last valid preview", () => {- renderWithI18n(<StylesheetStatus mode="semantic" status="error" diagnostics={[error]} />);+ it("explains that fatal source falls back to base styles", () => {+ renderWithI18n(<StylesheetStatus mode="semantic" status="idle" diagnostics={[fatalError]} />);++ expect(screen.getByText(/preview and export fall back to base styles/i)).toBeInTheDocument();+ expect(screen.getByText("Version mismatch")).toBeInTheDocument();+ });++ it("explains that recoverable errors preserve valid styles", () => {+ renderWithI18n(<StylesheetStatus mode="semantic" status="idle" diagnostics={[recoverableError]} />);- expect(screen.getByText(/preview and export use the last valid version/i)).toBeInTheDocument();- expect(screen.getByText("Unknown property")).toBeInTheDocument();+ expect(screen.getByText("Valid with errors")).toBeInTheDocument();+ expect(screen.getByText(/preview and export keep valid styles/i)).toBeInTheDocument();+ expect(screen.queryByText(/fall back to base styles/i)).not.toBeInTheDocument();});it("labels a valid legacy draft as ready to activate", () => {renderWithI18n(<StylesheetStatus mode="legacy" status="idle" diagnostics={[]} />);expect(screen.getByText("Ready to activate")).toBeInTheDocument();- expect(screen.queryByText("Applied")).not.toBeInTheDocument();});- it("labels legacy warnings without claiming they are applied", () => {- renderWithI18n(<StylesheetStatus mode="legacy" status="idle" diagnostics={[{ ...error, severity: "warning" }]} />);+ it("labels a legacy draft with warnings as ready to activate", () => {+ renderWithI18n(+ <StylesheetStatus mode="legacy" status="idle" diagnostics={[{ ...recoverableError, severity: "warning" }]} />,+ );expect(screen.getByText("Ready to activate with warnings")).toBeInTheDocument();- expect(screen.queryByText("Applied with warnings")).not.toBeInTheDocument();});it("disables activation while the converted draft has errors", () => {@@ -113,7 +181,7 @@ describe("StylesheetCodeEditor", () => {<StylesheetCodeEditorvalue={"@version 1;\nsection { color: red; }\n"}{...props}- diagnostics={[error]}+ diagnostics={[recoverableError]}theme="dark"readOnly/>@@ -173,18 +241,105 @@ describe("StylesheetEditorShell", () => {expectGuideLink(container);});- it("makes the editor and mutation controls read-only while a restore is pending", () => {- media.mobile = false;- useStylesheetStore.setState({- mode: "legacy",+ it("has no apply or save action for an already-semantic stylesheet", async () => {+ if (!builder.data) throw new Error("Missing resume fixture");+ builder.data.metadata.stylesheet = {+ mode: "semantic",+ source: { languageVersion: 1, text: "@version 1;\n" },+ };++ render(+ <I18nProvider i18n={i18n}>+ <TooltipProvider>+ <StylesheetEditorShell />+ </TooltipProvider>+ </I18nProvider>,+ );++ await screen.findByText("Valid");+ expect(screen.queryByRole("button", { name: /activate semantic css/i })).not.toBeInTheDocument();+ expect(screen.queryByRole("button", { name: /save|apply/i })).not.toBeInTheDocument();+ });++ it("writes semantic edits into the ordinary resume draft immediately", () => {+ if (!builder.data) throw new Error("Missing resume fixture");+ builder.data.metadata.stylesheet = {+ mode: "semantic",+ source: { languageVersion: 1, text: "@version 1;\n" },+ };++ render(+ <I18nProvider i18n={i18n}>+ <TooltipProvider>+ <StylesheetEditorShell />+ </TooltipProvider>+ </I18nProvider>,+ );+ const textbox = screen.getByRole("textbox", { name: "Semantic CSS stylesheet" });+ const view = EditorView.findFromDOM(textbox);+ if (!view) throw new Error("Missing editor view");++ act(() => view.dispatch({ changes: { from: view.state.doc.length, insert: "name { color: blue; }\n" } }));++ expect(builder.data.metadata.stylesheet.source.text).toBe("@version 1;\nname { color: blue; }\n");+ });++ it("switches a converted legacy draft through the ordinary resume update", async () => {+ render(+ <I18nProvider i18n={i18n}>+ <TooltipProvider>+ <StylesheetEditorShell />+ </TooltipProvider>+ </I18nProvider>,+ );++ const activate = await screen.findByRole("button", { name: "Activate Semantic CSS" });+ await waitFor(() => expect(activate).toBeEnabled());+ fireEvent.click(activate);++ expect(builder.data?.metadata.stylesheet).toEqual({+ mode: "semantic",source: { languageVersion: 1, text: "@version 1;\n" },- applied: { languageVersion: 1, text: "@version 1;\n" },- diagnostics: [],- status: "idle",- canUndo: true,- canRedo: true,- restoreLocked: true,});+ });++ it("allows a converted legacy draft with recoverable errors to activate", async () => {+ compileWorker.diagnostics = [resolutionError];++ render(+ <I18nProvider i18n={i18n}>+ <TooltipProvider>+ <StylesheetEditorShell />+ </TooltipProvider>+ </I18nProvider>,+ );++ const activate = await screen.findByRole("button", { name: "Activate Semantic CSS" });+ await waitFor(() => expect(activate).toBeEnabled());+ fireEvent.click(activate);++ expect(builder.data?.metadata.stylesheet?.mode).toBe("semantic");+ });++ it("keeps legacy activation disabled for fatal diagnostics", async () => {+ compileWorker.diagnostics = [fatalError];++ render(+ <I18nProvider i18n={i18n}>+ <TooltipProvider>+ <StylesheetEditorShell />+ </TooltipProvider>+ </I18nProvider>,+ );++ await screen.findByText("Fatal error");+ expect(screen.getByRole("button", { name: "Activate Semantic CSS" })).toBeDisabled();+ });++ it("makes editor mutation controls read-only while the resume is locked", () => {+ builder.isLocked = true;+ builder.canUndo = true;+ builder.canRedo = true;render(<I18nProvider i18n={i18n}>@@ -202,19 +357,10 @@ describe("StylesheetEditorShell", () => {expect(screen.getByRole("button", { name: "Undo stylesheet edit" })).toBeDisabled();expect(screen.getByRole("button", { name: "Redo stylesheet edit" })).toBeDisabled();expect(screen.getByRole("button", { name: "Format stylesheet" })).toBeDisabled();- expect(screen.getByRole("button", { name: "Reset to applied stylesheet" })).toBeDisabled();});it("moves the only visible editor into a titled mobile sheet", async () => {media.mobile = true;- useStylesheetStore.setState({- mode: "legacy",- source: { languageVersion: 1, text: "@version 1;\n" },- applied: { languageVersion: 1, text: "@version 1;\n" },- diagnostics: [{ ...error, severity: "warning" }],- status: "idle",- restoreLocked: false,- });const { container } = render(<I18nProvider i18n={i18n}>@@ -231,8 +377,7 @@ describe("StylesheetEditorShell", () => {expect(within(sheet).getByRole("heading", { name: "Semantic CSS stylesheet" })).toBeInTheDocument();expect(within(sheet).getByRole("button", { name: "Activate Semantic CSS" })).toBeInTheDocument();expect(within(sheet).getByRole("toolbar", { name: "Stylesheet editor" })).toBeInTheDocument();- expect(within(sheet).getByText("Ready to activate with warnings")).toBeInTheDocument();- expect(within(sheet).getByText("Unknown property")).toBeInTheDocument();+ await within(sheet).findByText("Ready to activate");expectGuideLink(sheet);expect(document.querySelectorAll(".cm-editor")).toHaveLength(1);media.mobile = false;diff --git a/apps/web/src/features/resume/stylesheet/editor.tsx b/apps/web/src/features/resume/stylesheet/editor.tsxindex e4335383f..c286485ad 100644--- a/apps/web/src/features/resume/stylesheet/editor.tsx+++ b/apps/web/src/features/resume/stylesheet/editor.tsx@@ -1,5 +1,7 @@import type { Extension } from "@codemirror/state";-import type { SemanticCssDiagnostic } from "@reactive-resume/resume/stylesheet";+import type { SemanticCssDiagnostic, SemanticNode } from "@reactive-resume/resume/stylesheet";+import type { ResumeData } from "@reactive-resume/schema/resume/data";+import type { StylesheetSource } from "@reactive-resume/schema/resume/stylesheet";import type { SemanticCssColorToken } from "./color-tokens";import type { SemanticCssEditorMetadata } from "./protocol";import { defaultKeymap, indentWithTab } from "@codemirror/commands";@@ -17,11 +19,20 @@ import {import { t } from "@lingui/core/macro";import { Trans } from "@lingui/react/macro";import { BookOpenIcon } from "@phosphor-icons/react";-import { useCallback, useEffect, useRef, useState } from "react";+import { useCallback, useEffect, useMemo, useRef, useState } from "react";import { useMediaQuery } from "usehooks-ts";+import { convertLegacyStyleRules } from "@reactive-resume/pdf/semantic-legacy";+import {+ buildSemanticTree,+ getTemplateSemanticManifest,+ semanticNodeKeys,+ shouldShowResumeHeader,+} from "@reactive-resume/pdf/semantic-tree";+import { isFatalStylesheetDiagnostic } from "@reactive-resume/resume/stylesheet";import { PopoverTrigger } from "@reactive-resume/ui/components/popover";import { Sheet, SheetContent, SheetTitle } from "@reactive-resume/ui/components/sheet";import { ColorPicker } from "@/components/input/color-picker";+import { useIsResumeLocked, useResumeData, useResumeStore, useUpdateResumeData } from "@/features/resume/builder/draft";import { useTheme } from "@/features/theme/provider";import { useBuilderSidebarStore } from "@/routes/builder/$resumeId/-store/sidebar";import { compositionAwareDocumentListener, createSemanticCssEditorExtensions } from "./editor-extensions";@@ -29,8 +40,8 @@ import { enterStylesheetFocusMode } from "./focus-mode";import { formatEditorDocument } from "./formatter";import { LegacyStylesheetBanner } from "./legacy-banner";import { StylesheetStatus } from "./status";-import { useStylesheetStore } from "./store";import { StylesheetToolbar } from "./toolbar";+import { createCompileWorkerClient } from "./worker-client";const externalReplacement = Annotation.define<boolean>();const emptyMetadata: SemanticCssEditorMetadata = {@@ -314,30 +325,78 @@ type StylesheetEditorShellProps = {readOnly?: boolean;};+const pageDimensions = (data: ResumeData) => {+ const size = data.metadata.page.format === "letter" ? { width: 612, height: 792 } : { width: 595.28, height: 841.89 };+ return data.metadata.layout.pages.map((_page, index) => ({+ pageKey: semanticNodeKeys.page(index + 1),+ ...size,+ }));+};++const createEditorMetadata = (data: ResumeData): SemanticCssEditorMetadata => {+ const pages = data.metadata.layout.pages.map((page, index) =>+ buildSemanticTree({+ data,+ template: data.metadata.template,+ page,+ pageNumber: index + 1,+ showHeader: shouldShowResumeHeader(data, index),+ }),+ );+ const semanticTree: SemanticNode = {+ key: semanticNodeKeys.resume(),+ kind: "resume",+ attributes: { template: data.metadata.template },+ roles: [],+ children: pages.flatMap(({ children }) => children),+ };+ return {+ semanticTree,+ templateParts: getTemplateSemanticManifest(data.metadata.template).parts.map(({ name }) => name),+ };+};+function StylesheetEditorShell({ readOnly = false }: StylesheetEditorShellProps) {const { theme } = useTheme();const isMobile = useMediaQuery("(max-width: 767px)", { initializeWithValue: false });const [focusOpen, setFocusOpen] = useState(false);+ const [diagnostics, setDiagnostics] = useState<readonly SemanticCssDiagnostic[]>([]);+ const [colorTokens, setColorTokens] = useState<readonly SemanticCssColorToken[]>([]);+ const [status, setStatus] = useState<"idle" | "compiling" | "error">("compiling");+ const [compiler, setCompiler] = useState<ReturnType<typeof createCompileWorkerClient>>();const restoreDesktopRef = useRef<(() => void) | null>(null);- const mode = useStylesheetStore((state) => state.mode);- const source = useStylesheetStore((state) => state.source.text);- const applied = useStylesheetStore((state) => state.applied.text);- const diagnostics = useStylesheetStore((state) => state.diagnostics);- const colorTokens = useStylesheetStore((state) => state.colorTokens);- const metadata = useStylesheetStore((state) => state.editorMetadata);- const status = useStylesheetStore((state) => state.status);- const restoreLocked = useStylesheetStore((state) => state.restoreLocked);- const canUndo = useStylesheetStore((state) => state.canUndo);- const canRedo = useStylesheetStore((state) => state.canRedo);- const setSourceText = useStylesheetStore((state) => state.setSourceText);- const setFocused = useStylesheetStore((state) => state.setFocused);- const activate = useStylesheetStore((state) => state.activate);- const undo = useStylesheetStore((state) => state.undo);- const redo = useStylesheetStore((state) => state.redo);- const refreshIntelligence = useStylesheetStore((state) => state.refreshIntelligence);+ const data = useResumeData();+ const updateResumeData = useUpdateResumeData();+ const isLocked = useIsResumeLocked();+ const canUndo = useResumeStore((state) => state.canUndo);+ const canRedo = useResumeStore((state) => state.canRedo);+ const undo = useResumeStore((state) => state.undo);+ const redo = useResumeStore((state) => state.redo);const editorViewRef = useRef<EditorView | null>(null);- const hasErrors = status === "error" || diagnostics.some(({ severity }) => severity === "error");- const isChecking = status === "compiling" || status === "preflighting" || status === "saving";+ const compileGenerationRef = useRef(0);+ useEffect(() => {+ const client = createCompileWorkerClient(+ () =>+ new Worker(new URL("./stylesheet.worker.ts", import.meta.url), {+ type: "module",+ name: "semantic-css-compiler",+ }),+ );+ setCompiler(client);+ return () => client.destroy();+ }, []);+ const stylesheet = data?.metadata.stylesheet;+ const mode = stylesheet?.mode ?? "legacy";+ const source = useMemo<StylesheetSource>(+ () =>+ stylesheet?.source ??+ (data ? convertLegacyStyleRules(data).source : { languageVersion: 1, text: "@version 1;\n" }),+ [data, stylesheet],+ );+ const metadata = useMemo(() => (data ? createEditorMetadata(data) : emptyMetadata), [data]);+ const hasFatalErrors = status === "error" || diagnostics.some(isFatalStylesheetDiagnostic);+ const isChecking = status === "compiling";+ const disabled = readOnly || isLocked;useEffect(() => () => {@@ -347,8 +406,59 @@ function StylesheetEditorShell({ readOnly = false }: StylesheetEditorShellProps));useEffect(() => {- refreshIntelligence();- }, [refreshIntelligence]);+ if (!compiler || !data) return;+ let cancelled = false;+ const editGeneration = ++compileGenerationRef.current;+ setStatus("compiling");+ setColorTokens([]);+ const timer = window.setTimeout(() => {+ void compiler+ .compile({+ editGeneration,+ source,+ semanticTree: metadata.semanticTree,+ baseSettings: {+ picture: data.picture,+ template: data.metadata.template,+ design: data.metadata.design,+ typography: data.metadata.typography,+ page: data.metadata.page,+ layout: { sidebarWidth: data.metadata.layout.sidebarWidth },+ },+ pages: pageDimensions(data),+ })+ .then((result) => {+ if (cancelled || result.editGeneration !== compileGenerationRef.current) return;+ setDiagnostics(result.diagnostics);+ setColorTokens(result.colorTokens ?? []);+ setStatus(result.program && !result.diagnostics.some(isFatalStylesheetDiagnostic) ? "idle" : "error");+ })+ .catch(() => {+ if (!cancelled && editGeneration === compileGenerationRef.current) setStatus("error");+ });+ }, 180);++ return () => {+ cancelled = true;+ window.clearTimeout(timer);+ };+ }, [compiler, data, metadata, source]);++ if (!data) return null;++ const setSourceText = (text: string) => {+ if (disabled || text === source.text) return;+ updateResumeData((draft) => {+ draft.metadata.stylesheet = { mode, source: { ...source, text } };+ });+ };++ const activate = () => {+ if (disabled || mode === "semantic" || hasFatalErrors || isChecking) return;+ updateResumeData((draft) => {+ draft.metadata.stylesheet = { mode: "semantic", source };+ });+ };const toggleFocus = () => {if (isMobile) {@@ -374,15 +484,14 @@ function StylesheetEditorShell({ readOnly = false }: StylesheetEditorShellProps)const editor = (<StylesheetCodeEditor- value={source}+ value={source.text}diagnostics={diagnostics}colorTokens={colorTokens}metadata={metadata}theme={theme}- readOnly={readOnly || restoreLocked}+ readOnly={disabled}label={t`Semantic CSS stylesheet`}onChange={setSourceText}- onFocusChange={setFocused}onReady={(view) => {editorViewRef.current = view;}}@@ -393,22 +502,21 @@ function StylesheetEditorShell({ readOnly = false }: StylesheetEditorShellProps)const editorChrome = (<div className="space-y-3">{mode === "legacy" && (- <LegacyStylesheetBanner disabled={restoreLocked || hasErrors || isChecking} onActivate={activate} />+ <LegacyStylesheetBanner disabled={disabled || hasFatalErrors || isChecking} onActivate={activate} />)}<StylesheetToolbar- source={source}+ source={source.text}canUndo={canUndo}canRedo={canRedo}focused={focusOpen}- disabled={restoreLocked}+ disabled={disabled}onUndo={undo}onRedo={redo}onFormat={() => {const view = editorViewRef.current;if (view) void formatEditorDocument(view).catch(() => undefined);}}- onReset={() => setSourceText(applied)}onFocusToggle={toggleFocus}/>diff --git a/apps/web/src/features/resume/stylesheet/pdf-inspection.test.ts b/apps/web/src/features/resume/stylesheet/pdf-inspection.test.tsdeleted file mode 100644index e65029c25..000000000--- a/apps/web/src/features/resume/stylesheet/pdf-inspection.test.ts+++ /dev/null@@ -1,62 +0,0 @@-import { beforeEach, describe, expect, it, vi } from "vitest";-import { inspectPdfPageCount } from "./pdf-inspection";--const mocks = vi.hoisted(() => ({- workerDestroy: vi.fn(),- getDocument: vi.fn(),-}));--vi.mock("pdfjs-dist/legacy/build/pdf.mjs", () => ({- PDFWorker: class {- destroy = mocks.workerDestroy;- },- getDocument: mocks.getDocument,-}));--describe("inspectPdfPageCount", () => {- beforeEach(() => {- vi.clearAllMocks();- });-- it("inspects a copy through a nested worker without detaching the result buffer", async () => {- const destroy = vi.fn();- const nestedWorker = { terminate: vi.fn() } as unknown as Worker;- mocks.getDocument.mockReturnValue({ promise: Promise.resolve({ numPages: 3 }), destroy });- const pdf = Uint8Array.of(1, 2, 3, 4).buffer;-- await expect(inspectPdfPageCount(pdf, () => nestedWorker)).resolves.toBe(3);-- expect(mocks.getDocument).toHaveBeenCalledWith(- expect.objectContaining({ data: expect.any(ArrayBuffer), worker: expect.any(Object) }),- );- const inspectedPdf = mocks.getDocument.mock.calls[0]?.[0].data as ArrayBuffer;- expect(inspectedPdf).not.toBe(pdf);- expect(Array.from(new Uint8Array(inspectedPdf))).toEqual([1, 2, 3, 4]);- expect(Array.from(new Uint8Array(pdf))).toEqual([1, 2, 3, 4]);- expect(destroy).toHaveBeenCalledOnce();- expect(nestedWorker.terminate).toHaveBeenCalledOnce();- });-- it("destroys the loading task and nested worker when parsing fails", async () => {- const destroy = vi.fn();- const nestedWorker = { terminate: vi.fn() } as unknown as Worker;- mocks.getDocument.mockReturnValue({ promise: Promise.reject(new Error("invalid PDF")), destroy });-- await expect(inspectPdfPageCount(new ArrayBuffer(4), () => nestedWorker)).rejects.toThrow("invalid PDF");-- expect(destroy).toHaveBeenCalledOnce();- expect(nestedWorker.terminate).toHaveBeenCalledOnce();- });-- it("terminates the nested worker even when loading-task cleanup fails", async () => {- const nestedWorker = { terminate: vi.fn() } as unknown as Worker;- mocks.getDocument.mockReturnValue({- promise: Promise.resolve({ numPages: 1 }),- destroy: vi.fn().mockRejectedValue(new Error("cleanup failed")),- });-- await expect(inspectPdfPageCount(new ArrayBuffer(4), () => nestedWorker)).rejects.toThrow("cleanup failed");-- expect(nestedWorker.terminate).toHaveBeenCalledOnce();- });-});diff --git a/apps/web/src/features/resume/stylesheet/pdf-inspection.ts b/apps/web/src/features/resume/stylesheet/pdf-inspection.tsdeleted file mode 100644index cf40c99c9..000000000--- a/apps/web/src/features/resume/stylesheet/pdf-inspection.ts+++ /dev/null@@ -1,39 +0,0 @@-let pdfModule: Promise<typeof import("pdfjs-dist/legacy/build/pdf.mjs")>;--const loadPdfModule = () => (pdfModule ??= import("pdfjs-dist/legacy/build/pdf.mjs"));--const createNestedWorker = () =>- new Worker(new URL("pdfjs-dist/legacy/build/pdf.worker.min.mjs", import.meta.url), {- type: "module",- name: "semantic-css-pdfjs",- });--export async function initializePdfInspection(): Promise<void> {- await loadPdfModule();-}--export async function inspectPdfPageCount(- pdf: ArrayBuffer,- createWorker: () => Worker = createNestedWorker,-): Promise<number> {- const { PDFWorker, getDocument } = await loadPdfModule();- const nestedWorker = createWorker();- const WorkerWithPort = PDFWorker as unknown as new (options: { port: Worker }) => InstanceType<typeof PDFWorker>;- const worker = new WorkerWithPort({ port: nestedWorker });- let loadingTask: ReturnType<typeof getDocument> | undefined;-- try {- // PDF.js transfers its input to the nested worker and detaches the buffer.- // Keep the caller's buffer intact so preflight can return those same bytes.- loadingTask = getDocument({ data: pdf.slice(0), worker });- const document = await loadingTask.promise;- return document.numPages;- } finally {- try {- if (loadingTask) await loadingTask.destroy();- else worker.destroy();- } finally {- nestedWorker.terminate();- }- }-}diff --git a/apps/web/src/features/resume/stylesheet/preflight.worker.test.ts b/apps/web/src/features/resume/stylesheet/preflight.worker.test.tsdeleted file mode 100644index f6ab7a53c..000000000--- a/apps/web/src/features/resume/stylesheet/preflight.worker.test.ts+++ /dev/null@@ -1,96 +0,0 @@-import type { PreflightWorkerRequest } from "./protocol";-import { afterEach, describe, expect, it, vi } from "vitest";--const mocks = vi.hoisted(() => ({- renderPreflightPdf: vi.fn(),- initializePdfInspection: vi.fn(async () => undefined),- inspectPdfPageCount: vi.fn(),-}));--vi.mock("@reactive-resume/pdf/preflight", () => ({- renderPreflightPdf: mocks.renderPreflightPdf,-}));--vi.mock("./pdf-inspection", () => ({- initializePdfInspection: mocks.initializePdfInspection,- inspectPdfPageCount: mocks.inspectPdfPageCount,-}));--describe("stylesheet preflight worker", () => {- afterEach(() => {- vi.unstubAllGlobals();- vi.clearAllMocks();- });-- it("serializes schema errors into a correlated preflight error packet", async () => {- let handler: ((event: MessageEvent<PreflightWorkerRequest>) => Promise<void>) | undefined;- const postMessage = vi.fn();- vi.stubGlobal("self", {- postMessage,- addEventListener: vi.fn((_type, listener) => {- handler = listener as typeof handler;- }),- });- const issues = [{ path: ["customSections", 0, "items", 0, "company"] }];- mocks.renderPreflightPdf.mockRejectedValueOnce(- Object.assign(new Error("Invalid resume data"), { name: "ZodError", issues }),- );- vi.resetModules();- await import("./preflight.worker");-- await handler?.({- data: {- type: "preflight",- requestId: 7,- editGeneration: 3,- input: {} as never,- limits: {} as never,- },- } as unknown as MessageEvent<PreflightWorkerRequest>);-- expect(postMessage).toHaveBeenCalledWith({- type: "preflight_error",- requestId: 7,- editGeneration: 3,- cause: { name: "ZodError", message: "Invalid resume data", issues },- });- });-- it("includes a sanitized cause when PDF preflight throws an unexpected error", async () => {- let handler: ((event: MessageEvent<PreflightWorkerRequest>) => Promise<void>) | undefined;- const postMessage = vi.fn();- vi.stubGlobal("self", {- postMessage,- addEventListener: vi.fn((_type, listener) => {- handler = listener as typeof handler;- }),- });- mocks.renderPreflightPdf.mockRejectedValueOnce(new Error("Canvas is already closed"));- vi.resetModules();- await import("./preflight.worker");-- await handler?.({- data: {- type: "preflight",- requestId: 8,- editGeneration: 4,- input: {} as never,- limits: {} as never,- },- } as unknown as MessageEvent<PreflightWorkerRequest>);-- expect(postMessage).toHaveBeenCalledWith(- expect.objectContaining({- type: "preflight_result",- requestId: 8,- editGeneration: 4,- result: expect.objectContaining({- ok: false,- code: "STYLESHEET_PREFLIGHT_WORKER_FAILED",- message: expect.stringContaining("Canvas is already closed"),- diagnostics: [],- }),- }),- );- });-});diff --git a/apps/web/src/features/resume/stylesheet/preflight.worker.ts b/apps/web/src/features/resume/stylesheet/preflight.worker.tsdeleted file mode 100644index 89e3bf799..000000000--- a/apps/web/src/features/resume/stylesheet/preflight.worker.ts+++ /dev/null@@ -1,101 +0,0 @@-/// <reference lib="webworker" />--import type { PdfPreflightFailure } from "@reactive-resume/pdf/preflight";-import type {- PreflightWorkerError,- PreflightWorkerRequest,- PreflightWorkerResponse,- SerializedPreflightCause,-} from "./protocol";-import { Buffer } from "buffer";-import { initializePdfInspection, inspectPdfPageCount } from "./pdf-inspection";-import { getPreflightTransferables } from "./protocol";--Object.assign(globalThis, { Buffer });--const failure = (code: PdfPreflightFailure["code"], message: string): PdfPreflightFailure => ({- ok: false,- code,- message,- diagnostics: [],-});--const sanitizeWorkerCause = (cause: unknown): string => {- if (!(cause instanceof Error)) return "The PDF preflight worker failed.";- const detail = cause.message.replace(/\s+/g, " ").trim().slice(0, 200);- if (!detail) return "The PDF preflight worker failed.";- return `The PDF preflight worker failed. (${cause.name}: ${detail})`;-};--const serializeZodCause = (cause: unknown): SerializedPreflightCause | undefined => {- if (!(cause instanceof Error) || cause.name !== "ZodError" || !("issues" in cause) || !Array.isArray(cause.issues)) {- return;- }- return { name: cause.name, message: cause.message, issues: cause.issues };-};--const initialization = Promise.all([import("@reactive-resume/pdf/preflight"), initializePdfInspection()] as const);-void initialization.then(() => self.postMessage({ type: "preflight_ready" }));--self.addEventListener("message", async ({ data }: MessageEvent<PreflightWorkerRequest>) => {- if (data.type !== "preflight") return;- const [{ renderPreflightPdf }] = await initialization;- let rendered: Awaited<ReturnType<typeof renderPreflightPdf>>;-- try {- rendered = await renderPreflightPdf(data.input, data.limits);- } catch (cause) {- const serializedCause = serializeZodCause(cause);- if (serializedCause) {- const response: PreflightWorkerError = {- type: "preflight_error",- requestId: data.requestId,- editGeneration: data.editGeneration,- cause: serializedCause,- };- self.postMessage(response);- return;- }- const result = failure("STYLESHEET_PREFLIGHT_WORKER_FAILED", sanitizeWorkerCause(cause));- const response: PreflightWorkerResponse = {- type: "preflight_result",- requestId: data.requestId,- editGeneration: data.editGeneration,- result,- };- self.postMessage(response);- return;- }-- let result: PreflightWorkerResponse["result"];- if (!rendered.ok) {- result = rendered;- } else if (rendered.bytes.byteLength > data.limits.maxBytes) {- result = failure("STYLESHEET_PREFLIGHT_BYTE_LIMIT", "The PDF exceeds the preflight byte limit.");- } else {- try {- const pdf = Uint8Array.from(rendered.bytes).buffer;- const pageCount = await inspectPdfPageCount(pdf);- result =- pageCount > data.limits.maxPages- ? failure("STYLESHEET_PREFLIGHT_PAGE_LIMIT", "The PDF exceeds the preflight page limit.")- : {- ok: true,- pageCount,- byteCount: pdf.byteLength,- diagnostics: rendered.diagnostics,- pdf,- };- } catch {- result = failure("STYLESHEET_PREFLIGHT_PARSE_FAILED", "The generated PDF could not be inspected.");- }- }-- const response: PreflightWorkerResponse = {- type: "preflight_result",- requestId: data.requestId,- editGeneration: data.editGeneration,- result,- };- self.postMessage(response, { transfer: getPreflightTransferables(response) });-});diff --git a/apps/web/src/features/resume/stylesheet/protocol.ts b/apps/web/src/features/resume/stylesheet/protocol.tsindex 9a99db796..2493812cd 100644--- a/apps/web/src/features/resume/stylesheet/protocol.ts+++ b/apps/web/src/features/resume/stylesheet/protocol.ts@@ -1,8 +1,3 @@-import type {- BrowserPdfPreflightResult,- PdfPreflightPageLimits,- StylesheetPreflightInput,-} from "@reactive-resume/pdf/preflight";import type {AuthoredPageContext,BaseSettingsSnapshot,@@ -39,47 +34,3 @@ export type CompileWorkerResponse = {diagnostics: readonly SemanticCssDiagnostic[];colorTokens?: readonly SemanticCssColorToken[];};--type PreflightLimits = PdfPreflightPageLimits & {- maxPages: number;- maxBytes: number;-};--export type PreflightWorkerInput = {- editGeneration: number;- input: StylesheetPreflightInput;- limits: PreflightLimits;-};--export type PreflightWorkerRequest = PreflightWorkerInput & {- type: "preflight";- requestId: number;-};--export type PreflightWorkerResponse = {- type: "preflight_result";- requestId: number;- editGeneration: number;- result: BrowserPdfPreflightResult;-};--export type SerializedPreflightCause = {- name: string;- message: string;- issues: readonly unknown[];-};--export type PreflightWorkerError = {- type: "preflight_error";- requestId: number;- editGeneration: number;- cause: SerializedPreflightCause;-};--export type PreflightWorkerReady = {- type: "preflight_ready";-};--export function getPreflightTransferables(response: PreflightWorkerResponse): Transferable[] {- return response.result.ok ? [response.result.pdf] : [];-}diff --git a/apps/web/src/features/resume/stylesheet/reinitialize.test.ts b/apps/web/src/features/resume/stylesheet/reinitialize.test.tsdeleted file mode 100644index 29223bcb8..000000000--- a/apps/web/src/features/resume/stylesheet/reinitialize.test.ts+++ /dev/null@@ -1,155 +0,0 @@-// @vitest-environment happy-dom--import type { SemanticStylesheet } from "@reactive-resume/schema/resume/stylesheet";-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import { defaultResumeData } from "@reactive-resume/schema/resume/default";--const mocks = vi.hoisted(() => ({- getState: vi.fn(),- workers: [] as FakeWorker[],-}));--class FakeWorker {- terminated = false;-- constructor() {- mocks.workers.push(this);- }-- postMessage() {}- addEventListener() {}- removeEventListener() {}- terminate() {- this.terminated = true;- }-}--vi.mock("@/libs/orpc/client", () => ({- orpc: {- resume: {- stylesheet: {- getState: { call: mocks.getState },- mutate: { call: vi.fn() },- },- },- },-}));--const stylesheet = (text: string): SemanticStylesheet => {- const source = { languageVersion: 1, text };- return { mode: "semantic", source, applied: source };-};--describe("stylesheet store reinitialization", () => {- beforeEach(() => {- mocks.workers.length = 0;- vi.stubGlobal("Worker", FakeWorker);- });-- afterEach(() => vi.unstubAllGlobals());-- it("suspends edits while a delayed restore is pending, then atomically installs the restored state", async () => {- const storeModule = await import("./store");- const cleanup = storeModule.initializeStylesheetStore({- resumeId: "resume-1",- initial: { stylesheet: stylesheet("old"), revision: 3, renderDataVersion: 7 },- resumeData: defaultResumeData,- });- let finishRestore: (() => void) | undefined;- const delayedRestore = new Promise<void>((resolve) => {- finishRestore = resolve;- });- const restore = async () => {- const token = storeModule.lockStylesheetStoreForRestore("resume-1");- await delayedRestore;- return storeModule.replaceStylesheetStoreAfterRestore({- resumeId: "resume-1",- resumeData: defaultResumeData,- initial: { stylesheet: stylesheet("restored"), revision: 9, renderDataVersion: 12 },- token,- });- };-- const pendingRestore = restore();- expect(storeModule.useStylesheetStore.getState().restoreLocked).toBe(true);- const editGeneration = storeModule.useStylesheetStore.getState().editGeneration;- storeModule.useStylesheetStore.getState().setSourceText("edit while restoring");- storeModule.useStylesheetStore.getState().deactivate();- storeModule.useStylesheetStore.getState().undo();- expect(storeModule.useStylesheetStore.getState().source.text).toBe("old");- expect(storeModule.useStylesheetStore.getState().editGeneration).toBe(editGeneration);- finishRestore?.();- const replaced = await pendingRestore;- expect(replaced).toBe(true);- expect(mocks.getState).not.toHaveBeenCalled();- expect(storeModule.useStylesheetStore.getState()).toMatchObject({- resumeId: "resume-1",- source: { text: "restored" },- applied: { text: "restored" },- revision: 9,- renderDataVersion: 12,- restoreLocked: false,- });- storeModule.useStylesheetStore.getState().setSourceText("later edit");- expect(storeModule.useStylesheetStore.getState().source.text).toBe("later edit");- expect(mocks.workers).toHaveLength(4);- expect(mocks.workers.slice(0, 2).every((worker) => worker.terminated)).toBe(true);-- cleanup();-- expect(mocks.workers.slice(2).every((worker) => worker.terminated)).toBe(true);- expect(storeModule.useStylesheetStore.getState().resumeId).toBeUndefined();- });-- it("unlocks interaction after a restore request fails", async () => {- const storeModule = await import("./store");- const cleanup = storeModule.initializeStylesheetStore({- resumeId: "resume-1",- initial: { stylesheet: stylesheet("old"), revision: 3, renderDataVersion: 7 },- resumeData: defaultResumeData,- });-- const token = storeModule.lockStylesheetStoreForRestore("resume-1");- expect(storeModule.useStylesheetStore.getState().restoreLocked).toBe(true);- expect(storeModule.unlockStylesheetStoreAfterRestore(token)).toBe(true);- expect(storeModule.useStylesheetStore.getState().restoreLocked).toBe(false);-- storeModule.useStylesheetStore.getState().setSourceText("edit after failure");- expect(storeModule.useStylesheetStore.getState().source.text).toBe("edit after failure");-- cleanup();- });-- it("ignores a stale same-resume restore completion after away-and-back runtime replacement", async () => {- const storeModule = await import("./store");- const cleanupFirst = storeModule.initializeStylesheetStore({- resumeId: "resume-1",- initial: { stylesheet: stylesheet("first"), revision: 1, renderDataVersion: 1 },- resumeData: defaultResumeData,- });- const staleToken = storeModule.lockStylesheetStoreForRestore("resume-1");-- cleanupFirst();- const cleanupSecond = storeModule.initializeStylesheetStore({- resumeId: "resume-1",- initial: { stylesheet: stylesheet("second"), revision: 2, renderDataVersion: 2 },- resumeData: defaultResumeData,- });-- const replaced = storeModule.replaceStylesheetStoreAfterRestore({- resumeId: "resume-1",- resumeData: defaultResumeData,- initial: { stylesheet: stylesheet("stale restore"), revision: 3, renderDataVersion: 3 },- token: staleToken,- });-- expect(replaced).toBe(false);- expect(storeModule.useStylesheetStore.getState()).toMatchObject({- source: { text: "second" },- revision: 2,- renderDataVersion: 2,- });-- cleanupSecond();- });-});diff --git a/apps/web/src/features/resume/stylesheet/status.tsx b/apps/web/src/features/resume/stylesheet/status.tsxindex da4848638..3632680bd 100644--- a/apps/web/src/features/resume/stylesheet/status.tsx+++ b/apps/web/src/features/resume/stylesheet/status.tsx@@ -1,50 +1,67 @@import type { SemanticCssDiagnostic } from "@reactive-resume/resume/stylesheet";import { Trans } from "@lingui/react/macro";import { WarningCircleIcon, WarningIcon } from "@phosphor-icons/react";+import { isFatalStylesheetDiagnostic } from "@reactive-resume/resume/stylesheet";import { Alert, AlertDescription, AlertTitle } from "@reactive-resume/ui/components/alert";import { Badge } from "@reactive-resume/ui/components/badge";import { ScrollArea } from "@reactive-resume/ui/components/scroll-area";export type StylesheetStatusProps = {mode: "legacy" | "semantic";- status: "idle" | "compiling" | "preflighting" | "saving" | "applied" | "error";+ status: "idle" | "compiling" | "error";diagnostics: readonly SemanticCssDiagnostic[];};export function StylesheetStatus({ mode, status, diagnostics }: StylesheetStatusProps) {const errors = diagnostics.filter(({ severity }) => severity === "error");const warnings = diagnostics.filter(({ severity }) => severity === "warning");- const hasErrors = status === "error" || errors.length > 0;- const isPending = status === "compiling" || status === "preflighting" || status === "saving";+ const hasFatalErrors = status === "error" || diagnostics.some(isFatalStylesheetDiagnostic);+ const hasRecoverableErrors = !hasFatalErrors && errors.length > 0;+ const isPending = status === "compiling";return (<div className="space-y-2" aria-live="polite">- {hasErrors ? (+ {hasFatalErrors ? (<Badge variant="destructive"><WarningCircleIcon data-icon="inline-start" />- <Trans>Error</Trans>+ <Trans>Fatal error</Trans></Badge>) : isPending ? (<Badge variant="outline">{mode === "legacy" ? <Trans>Checking draft</Trans> : <Trans>Checking</Trans>}</Badge>+ ) : hasRecoverableErrors ? (+ <Badge variant="secondary">+ <WarningCircleIcon data-icon="inline-start" />+ {mode === "legacy" ? <Trans>Ready to activate with errors</Trans> : <Trans>Valid with errors</Trans>}+ </Badge>) : warnings.length > 0 ? (<Badge variant="secondary"><WarningIcon data-icon="inline-start" />- {mode === "legacy" ? <Trans>Ready to activate with warnings</Trans> : <Trans>Applied with warnings</Trans>}+ {mode === "legacy" ? <Trans>Ready to activate with warnings</Trans> : <Trans>Valid with warnings</Trans>}</Badge>) : (- <Badge variant="secondary">- {mode === "legacy" ? <Trans>Ready to activate</Trans> : <Trans>Applied</Trans>}- </Badge>+ <Badge variant="secondary">{mode === "legacy" ? <Trans>Ready to activate</Trans> : <Trans>Valid</Trans>}</Badge>)}- {hasErrors && (+ {hasFatalErrors && (<Alert variant="destructive"><WarningCircleIcon /><AlertTitle>- <Trans>Stylesheet has errors</Trans>+ <Trans>Stylesheet has fatal errors</Trans>+ </AlertTitle>+ <AlertDescription>+ <Trans>Preview and export fall back to base styles.</Trans>+ </AlertDescription>+ </Alert>+ )}++ {hasRecoverableErrors && (+ <Alert>+ <WarningCircleIcon />+ <AlertTitle>+ <Trans>Some styles were ignored</Trans></AlertTitle><AlertDescription>- <Trans>Preview and export use the last valid version.</Trans>+ <Trans>Preview and export keep valid styles and ignore invalid styles.</Trans></AlertDescription></Alert>)}diff --git a/apps/web/src/features/resume/stylesheet/store.test.ts b/apps/web/src/features/resume/stylesheet/store.test.tsdeleted file mode 100644index 13d79cb64..000000000--- a/apps/web/src/features/resume/stylesheet/store.test.ts+++ /dev/null@@ -1,940 +0,0 @@-import type { SemanticStylesheet, StylesheetSource } from "@reactive-resume/schema/resume/stylesheet";-import { beforeEach, describe, expect, it, vi } from "vitest";-import { defaultResumeData } from "@reactive-resume/schema/resume/default";-import { createStylesheetStoreRuntime } from "./store";--const source = (text: string): StylesheetSource => ({ languageVersion: 1, text });-const stylesheet = (text: string): SemanticStylesheet => ({- mode: "semantic",- source: source(text),- applied: source(text),-});--const initial = {- stylesheet: stylesheet("generation zero"),- revision: 3,- renderDataVersion: 7,-};--type MutationResult = {- stylesheet: SemanticStylesheet;- revision: number;- renderDataVersion: number;- editGeneration: number;- diagnostics: [];-};--describe("stylesheet store runtime", () => {- beforeEach(() => vi.useFakeTimers());-- it("clears compiler-confirmed color tokens synchronously when same-length source text changes", () => {- const runtime = createStylesheetStoreRuntime({- resumeId: "resume-1",- initial: { ...initial, stylesheet: stylesheet("section { color: red; }") },- resumeData: defaultResumeData,- debounceMs: 1_000_000,- compile: vi.fn(),- preflight: vi.fn(),- mutate: vi.fn(),- });- runtime.store.setState({ colorTokens: [{ from: 17, to: 20, value: "red" }] });-- runtime.store.getState().setSourceText("section { color: var; }");-- expect(runtime.store.getState().source.text).toBe("section { color: var; }");- expect(runtime.store.getState().colorTokens).toEqual([]);- });-- it("rejects delayed editor intelligence for a canonically replaced source", async () => {- let resolveCompile!: (value: {- type: "compile_result";- requestId: number;- editGeneration: number;- program: { languageVersion: number; rules: [] };- diagnostics: [- {- code: string;- severity: "error";- message: string;- range: {- start: { line: number; column: number; offset: number };- end: { line: number; column: number; offset: number };- };- },- ];- colorTokens: [{ from: number; to: number; value: string }];- }) => void;- const runtime = createStylesheetStoreRuntime({- resumeId: "resume-1",- initial: { ...initial, stylesheet: stylesheet("section { color: red; }") },- resumeData: defaultResumeData,- compile: () => new Promise((resolve) => (resolveCompile = resolve)),- preflight: vi.fn(),- mutate: vi.fn(),- });-- runtime.store.getState().refreshIntelligence();- runtime.rebaseCanonical({- stylesheet: stylesheet("section { color: blue; }"),- revision: 4,- renderDataVersion: 7,- });- resolveCompile({- type: "compile_result",- requestId: 1,- editGeneration: 0,- program: { languageVersion: 1, rules: [] },- diagnostics: [- {- code: "OLD_SOURCE",- severity: "error",- message: "Old source diagnostic",- range: {- start: { line: 1, column: 1, offset: 0 },- end: { line: 1, column: 2, offset: 1 },- },- },- ],- colorTokens: [{ from: 17, to: 20, value: "red" }],- });- await Promise.resolve();- await Promise.resolve();-- expect(runtime.store.getState()).toMatchObject({- source: source("section { color: blue; }"),- diagnostics: [],- colorTokens: [],- });- });-- it("consumes stale acknowledgements before saving the replaceable pending edit", async () => {- const resolvers: Array<(value: MutationResult) => void> = [];- const mutate = vi.fn(- (_input: unknown) =>- new Promise<MutationResult>((resolve) => {- resolvers.push((value) => resolve(value));- }),- );- const runtime = createStylesheetStoreRuntime({- resumeId: "resume-1",- initial,- resumeData: defaultResumeData,- debounceMs: 0,- compile: async ({ editGeneration }) => ({- type: "compile_result",- requestId: editGeneration,- editGeneration,- program: { languageVersion: 1, rules: [] },- diagnostics: [],- }),- preflight: async ({ editGeneration }) => ({- type: "preflight_result",- requestId: editGeneration,- editGeneration,- result: { ok: true, pageCount: 1, byteCount: 4, diagnostics: [], pdf: new ArrayBuffer(4) },- }),- mutate,- });-- runtime.store.getState().setSourceText("generation one");- await vi.runAllTimersAsync();- runtime.store.getState().setSourceText("generation two");- await vi.runAllTimersAsync();-- resolvers[0]?.({- stylesheet: stylesheet("generation one"),- revision: 4,- renderDataVersion: 8,- editGeneration: 1,- diagnostics: [],- });- await vi.runAllTimersAsync();-- expect(runtime.store.getState()).toMatchObject({- revision: 4,- renderDataVersion: 8,- source: source("generation two"),- applied: source("generation zero"),- });- expect(mutate).toHaveBeenCalledTimes(2);- expect(mutate.mock.calls[1]?.[0]).toMatchObject({- expectedRevision: 4,- expectedRenderDataVersion: 8,- editGeneration: 2,- });- });-- it("rebases conflicts without dropping the focused local draft", async () => {- const mutate = vi- .fn()- .mockRejectedValueOnce({- code: "STYLESHEET_REVISION_CONFLICT",- data: {- state: { stylesheet: stylesheet("remote"), revision: 8, renderDataVersion: 11 },- },- })- .mockResolvedValueOnce({- stylesheet: stylesheet("local unsaved source"),- revision: 9,- renderDataVersion: 11,- editGeneration: 1,- diagnostics: [],- });- const runtime = createStylesheetStoreRuntime({- resumeId: "resume-1",- initial,- resumeData: defaultResumeData,- debounceMs: 0,- compile: async ({ editGeneration }) => ({- type: "compile_result",- requestId: editGeneration,- editGeneration,- program: { languageVersion: 1, rules: [] },- diagnostics: [],- }),- preflight: async ({ editGeneration }) => ({- type: "preflight_result",- requestId: editGeneration,- editGeneration,- result: { ok: true, pageCount: 1, byteCount: 1, diagnostics: [], pdf: new ArrayBuffer(1) },- }),- mutate,- });-- runtime.store.getState().setFocused(true);- runtime.store.getState().setSourceText("local unsaved source");- await vi.runAllTimersAsync();-- expect(runtime.store.getState()).toMatchObject({- revision: 9,- renderDataVersion: 11,- source: source("local unsaved source"),- });- expect(mutate.mock.calls[1]?.[0]).toMatchObject({ expectedRevision: 8, expectedRenderDataVersion: 11 });- });-- it("keeps the newer pending edit when an older request conflicts", async () => {- let rejectFirst!: (error: unknown) => void;- const mutate = vi- .fn()- .mockReturnValueOnce(- new Promise((_resolve, reject) => {- rejectFirst = reject;- }),- )- .mockResolvedValueOnce({- stylesheet: stylesheet("newer"),- revision: 9,- renderDataVersion: 11,- editGeneration: 2,- diagnostics: [],- });- const runtime = createStylesheetStoreRuntime({- resumeId: "resume-1",- initial,- resumeData: defaultResumeData,- debounceMs: 0,- compile: async ({ editGeneration }) => ({- type: "compile_result",- requestId: editGeneration,- editGeneration,- program: { languageVersion: 1, rules: [] },- diagnostics: [],- }),- preflight: async ({ editGeneration }) => ({- type: "preflight_result",- requestId: editGeneration,- editGeneration,- result: { ok: true, pageCount: 1, byteCount: 1, diagnostics: [], pdf: new ArrayBuffer(1) },- }),- mutate,- });-- runtime.store.getState().setSourceText("older");- await vi.runAllTimersAsync();- runtime.store.getState().setSourceText("newer");- await vi.runAllTimersAsync();- rejectFirst({- code: "STYLESHEET_REVISION_CONFLICT",- data: { state: { stylesheet: stylesheet("remote"), revision: 8, renderDataVersion: 11 } },- });- await vi.runAllTimersAsync();-- expect(mutate.mock.calls[1]?.[0]).toMatchObject({- transition: "edit_source",- editGeneration: 2,- source: source("newer"),- });- });-- it("invalidates pending preflight eligibility on content changes and keeps versions monotonic", async () => {- let resolveMutation!: (result: MutationResult) => void;- let resolveRepreflight!: (result: {- type: "preflight_result";- requestId: number;- editGeneration: number;- result: {- ok: true;- pageCount: number;- byteCount: number;- diagnostics: [];- pdf: ArrayBuffer;- };- }) => void;- const mutate = vi- .fn()- .mockReturnValueOnce(new Promise<MutationResult>((resolve) => (resolveMutation = resolve)))- .mockResolvedValueOnce({- stylesheet: stylesheet("newer"),- revision: 11,- renderDataVersion: 20,- editGeneration: 2,- diagnostics: [],- });- const preflight = vi- .fn()- .mockImplementationOnce(async ({ editGeneration }) => ({- type: "preflight_result",- requestId: editGeneration,- editGeneration,- result: { ok: true, pageCount: 1, byteCount: 1, diagnostics: [], pdf: new ArrayBuffer(1) },- }))- .mockImplementationOnce(async ({ editGeneration }) => ({- type: "preflight_result",- requestId: editGeneration,- editGeneration,- result: { ok: true, pageCount: 1, byteCount: 1, diagnostics: [], pdf: new ArrayBuffer(1) },- }))- .mockImplementationOnce(- () =>- new Promise((resolve) => {- resolveRepreflight = resolve;- }),- );- const runtime = createStylesheetStoreRuntime({- resumeId: "resume-1",- initial,- resumeData: defaultResumeData,- debounceMs: 0,- compile: async ({ editGeneration }) => ({- type: "compile_result",- requestId: editGeneration,- editGeneration,- program: { languageVersion: 1, rules: [] },- diagnostics: [],- }),- preflight,- mutate,- });-- runtime.store.getState().setSourceText("older");- await vi.runAllTimersAsync();- runtime.store.getState().setSourceText("newer");- await vi.runAllTimersAsync();- expect(mutate).toHaveBeenCalledTimes(1);-- runtime.replaceResumeSnapshot(defaultResumeData, {- stylesheet: stylesheet("remote"),- revision: 10,- renderDataVersion: 20,- });- await vi.runAllTimersAsync();- expect(preflight).toHaveBeenCalledTimes(3);-- resolveMutation({- stylesheet: stylesheet("older"),- revision: 4,- renderDataVersion: 7,- editGeneration: 1,- diagnostics: [],- });- await Promise.resolve();- await Promise.resolve();- expect(runtime.store.getState()).toMatchObject({ revision: 10, renderDataVersion: 20 });- expect(mutate).toHaveBeenCalledTimes(1);-- resolveRepreflight({- type: "preflight_result",- requestId: 3,- editGeneration: 2,- result: { ok: true, pageCount: 1, byteCount: 1, diagnostics: [], pdf: new ArrayBuffer(1) },- });- await vi.runAllTimersAsync();- expect(mutate.mock.calls[1]?.[0]).toMatchObject({- source: source("newer"),- expectedRevision: 10,- expectedRenderDataVersion: 20,- });- });-- it("does not requeue an invalidated in-flight candidate after conflict", async () => {- let rejectMutation!: (error: unknown) => void;- let resolveRepreflight!: (result: {- type: "preflight_result";- requestId: number;- editGeneration: number;- result: {- ok: true;- pageCount: number;- byteCount: number;- diagnostics: [];- pdf: ArrayBuffer;- };- }) => void;- const mutate = vi- .fn()- .mockReturnValueOnce(new Promise<MutationResult>((_resolve, reject) => (rejectMutation = reject)))- .mockResolvedValueOnce({- stylesheet: stylesheet("newer"),- revision: 11,- renderDataVersion: 20,- editGeneration: 2,- diagnostics: [],- });- const preflight = vi- .fn()- .mockImplementationOnce(async ({ editGeneration }) => ({- type: "preflight_result",- requestId: editGeneration,- editGeneration,- result: { ok: true, pageCount: 1, byteCount: 1, diagnostics: [], pdf: new ArrayBuffer(1) },- }))- .mockImplementationOnce(async ({ editGeneration }) => ({- type: "preflight_result",- requestId: editGeneration,- editGeneration,- result: { ok: true, pageCount: 1, byteCount: 1, diagnostics: [], pdf: new ArrayBuffer(1) },- }))- .mockImplementationOnce(- () =>- new Promise((resolve) => {- resolveRepreflight = resolve;- }),- );- const runtime = createStylesheetStoreRuntime({- resumeId: "resume-1",- initial,- resumeData: defaultResumeData,- debounceMs: 0,- compile: async ({ editGeneration }) => ({- type: "compile_result",- requestId: editGeneration,- editGeneration,- program: { languageVersion: 1, rules: [] },- diagnostics: [],- }),- preflight,- mutate,- });-- runtime.store.getState().setSourceText("older");- await vi.runAllTimersAsync();- runtime.store.getState().setSourceText("newer");- await vi.runAllTimersAsync();- runtime.replaceResumeSnapshot(defaultResumeData, {- stylesheet: stylesheet("remote"),- revision: 10,- renderDataVersion: 20,- });- await vi.runAllTimersAsync();-- rejectMutation({- code: "STYLESHEET_REVISION_CONFLICT",- data: { state: { stylesheet: stylesheet("remote"), revision: 10, renderDataVersion: 20 } },- });- await Promise.resolve();- await Promise.resolve();- await Promise.resolve();- expect(mutate).toHaveBeenCalledTimes(1);-- resolveRepreflight({- type: "preflight_result",- requestId: 3,- editGeneration: 2,- result: { ok: true, pageCount: 1, byteCount: 1, diagnostics: [], pdf: new ArrayBuffer(1) },- });- await vi.runAllTimersAsync();- expect(mutate.mock.calls[1]?.[0]).toMatchObject({- source: source("newer"),- expectedRevision: 10,- expectedRenderDataVersion: 20,- });- });-- it("reconciles a deferred focused canonical source on blur", () => {- const runtime = createStylesheetStoreRuntime({- resumeId: "resume-1",- initial,- resumeData: defaultResumeData,- compile: vi.fn(),- preflight: vi.fn(),- mutate: vi.fn(),- });-- runtime.store.getState().setFocused(true);- runtime.rebaseCanonical({- stylesheet: stylesheet("remote"),- revision: 8,- renderDataVersion: 11,- });-- expect(runtime.store.getState()).toMatchObject({- source: source("generation zero"),- applied: source("remote"),- revision: 8,- renderDataVersion: 11,- });-- runtime.store.getState().setFocused(false);- expect(runtime.store.getState()).toMatchObject({- source: source("remote"),- applied: source("remote"),- });- });-- it("persists invalid source while preserving applied and restores stylesheet history separately", async () => {- const mutate = vi- .fn()- .mockResolvedValueOnce({- stylesheet: {- mode: "semantic",- source: source("invalid {"),- applied: source("generation zero"),- },- revision: 4,- renderDataVersion: 7,- editGeneration: 1,- diagnostics: [- {- code: "PARSE_ERROR",- severity: "error",- message: "Invalid",- range: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 1, offset: 0 } },- },- ],- })- .mockResolvedValueOnce({- stylesheet: stylesheet("generation zero"),- revision: 5,- renderDataVersion: 7,- editGeneration: 2,- diagnostics: [],- });- const runtime = createStylesheetStoreRuntime({- resumeId: "resume-1",- initial,- resumeData: defaultResumeData,- debounceMs: 0,- compile: async ({ editGeneration, source: candidate }) => ({- type: "compile_result",- requestId: editGeneration,- editGeneration,- program: candidate.text === "invalid {" ? null : { languageVersion: 1, rules: [] },- diagnostics: [],- }),- preflight: async ({ editGeneration }) => ({- type: "preflight_result",- requestId: editGeneration,- editGeneration,- result: { ok: true, pageCount: 1, byteCount: 1, diagnostics: [], pdf: new ArrayBuffer(1) },- }),- mutate,- });-- runtime.store.getState().setSourceText("invalid {");- await vi.runAllTimersAsync();- expect(runtime.store.getState()).toMatchObject({- source: source("invalid {"),- applied: source("generation zero"),- });- expect(mutate.mock.calls[0]?.[0]).toMatchObject({ transition: "edit_source", source: source("invalid {") });-- runtime.store.getState().undo();- await vi.runAllTimersAsync();- expect(mutate.mock.calls[1]?.[0]).toMatchObject({- transition: "restore_history",- restore: stylesheet("generation zero"),- });- });-- it("does not publish historical applied state before restore acknowledgement", async () => {- const mutate = vi.fn(() => new Promise<MutationResult>(() => {}));- const runtime = createStylesheetStoreRuntime({- resumeId: "resume-1",- initial: { ...initial, stylesheet: stylesheet("current applied") },- resumeData: defaultResumeData,- debounceMs: 0,- compile: async ({ editGeneration }) => ({- type: "compile_result",- requestId: editGeneration,- editGeneration,- program: { languageVersion: 1, rules: [] },- diagnostics: [],- }),- preflight: async ({ editGeneration }) => ({- type: "preflight_result",- requestId: editGeneration,- editGeneration,- result: { ok: true, pageCount: 1, byteCount: 1, diagnostics: [], pdf: new ArrayBuffer(1) },- }),- mutate,- });- runtime.store.setState({- source: source("local invalid"),- applied: source("current applied"),- undoStack: [stylesheet("historical")],- canUndo: true,- });-- runtime.store.getState().undo();- await vi.runAllTimersAsync();-- expect(runtime.store.getState().source).toEqual(source("historical"));- expect(runtime.store.getState().applied).toEqual(source("current applied"));- expect(mutate).toHaveBeenCalledWith(- expect.objectContaining({ transition: "restore_history", restore: stylesheet("historical") }),- expect.any(AbortSignal),- );- });-- it("retries the focused draft against a newer content render-data version", async () => {- const mutate = vi.fn().mockResolvedValue({- stylesheet: stylesheet("local"),- revision: 4,- renderDataVersion: 12,- editGeneration: 1,- diagnostics: [],- });- const runtime = createStylesheetStoreRuntime({- resumeId: "resume-1",- initial,- resumeData: defaultResumeData,- debounceMs: 0,- compile: async ({ editGeneration }) => ({- type: "compile_result",- requestId: editGeneration,- editGeneration,- program: { languageVersion: 1, rules: [] },- diagnostics: [],- }),- preflight: async ({ editGeneration }) => ({- type: "preflight_result",- requestId: editGeneration,- editGeneration,- result: { ok: true, pageCount: 1, byteCount: 1, diagnostics: [], pdf: new ArrayBuffer(1) },- }),- mutate,- });-- runtime.store.getState().setFocused(true);- runtime.store.getState().setSourceText("local");- runtime.replaceResumeSnapshot(defaultResumeData, {- stylesheet: stylesheet("remote"),- revision: 9,- renderDataVersion: 12,- });- await vi.runAllTimersAsync();-- expect(runtime.store.getState().source).toEqual(source("local"));- expect(mutate).toHaveBeenLastCalledWith(- expect.objectContaining({ expectedRevision: 9, expectedRenderDataVersion: 12, source: source("local") }),- expect.any(AbortSignal),- );- });-- it("keeps a queued draft when content changes after editor blur", async () => {- const mutate = vi.fn().mockResolvedValue({- stylesheet: stylesheet("local"),- revision: 10,- renderDataVersion: 12,- editGeneration: 1,- diagnostics: [],- });- const runtime = createStylesheetStoreRuntime({- resumeId: "resume-1",- initial,- resumeData: defaultResumeData,- debounceMs: 0,- compile: async ({ editGeneration }) => ({- type: "compile_result",- requestId: editGeneration,- editGeneration,- program: { languageVersion: 1, rules: [] },- diagnostics: [],- }),- preflight: async ({ editGeneration }) => ({- type: "preflight_result",- requestId: editGeneration,- editGeneration,- result: { ok: true, pageCount: 1, byteCount: 1, diagnostics: [], pdf: new ArrayBuffer(1) },- }),- mutate,- });-- runtime.store.getState().setSourceText("local");- runtime.replaceResumeSnapshot(defaultResumeData, {- stylesheet: stylesheet("remote"),- revision: 9,- renderDataVersion: 12,- });- await vi.runAllTimersAsync();-- expect(runtime.store.getState().source).toEqual(source("local"));- expect(mutate).toHaveBeenLastCalledWith(- expect.objectContaining({ expectedRevision: 9, expectedRenderDataVersion: 12, source: source("local") }),- expect.any(AbortSignal),- );- });-- it("queues activation only after browser preflight succeeds", async () => {- const mutate = vi.fn().mockResolvedValue({- stylesheet: stylesheet("generation zero"),- revision: 4,- renderDataVersion: 7,- editGeneration: 2,- diagnostics: [],- });- const preflight = vi- .fn()- .mockResolvedValueOnce({- type: "preflight_result",- requestId: 1,- editGeneration: 1,- result: {- ok: false,- code: "STYLESHEET_PREFLIGHT_RENDER_FAILED",- message: "failed",- diagnostics: [],- },- })- .mockResolvedValueOnce({- type: "preflight_result",- requestId: 2,- editGeneration: 2,- result: { ok: true, pageCount: 1, byteCount: 1, diagnostics: [], pdf: new ArrayBuffer(1) },- });- const runtime = createStylesheetStoreRuntime({- resumeId: "resume-1",- initial: { ...initial, stylesheet: { ...initial.stylesheet, mode: "legacy" } },- resumeData: defaultResumeData,- debounceMs: 0,- compile: async ({ editGeneration }) => ({- type: "compile_result",- requestId: editGeneration,- editGeneration,- program: { languageVersion: 1, rules: [] },- diagnostics: [],- }),- preflight,- mutate,- });-- runtime.store.getState().activate();- await vi.runAllTimersAsync();- expect(mutate).not.toHaveBeenCalled();-- runtime.store.getState().activate();- await vi.runAllTimersAsync();- expect(mutate).toHaveBeenCalledWith(- expect.objectContaining({ transition: "activate", source: source("generation zero") }),- expect.any(AbortSignal),- );- });-- it("does not leave Checking stuck when compile rejects for the current edit", async () => {- const runtime = createStylesheetStoreRuntime({- resumeId: "resume-1",- initial,- resumeData: defaultResumeData,- debounceMs: 0,- compile: () => Promise.reject(new Error("Discarded stale stylesheet compiler result.")),- preflight: vi.fn(),- mutate: vi.fn(),- });-- runtime.store.getState().setSourceText("edited source");- await vi.runAllTimersAsync();-- expect(runtime.store.getState().status).not.toBe("compiling");- expect(runtime.store.getState().status).toBe("error");- });-- it("surfaces browser preflight failures as diagnostics when the worker returns an empty list", async () => {- let resolveMutate!: (value: MutationResult & { diagnostics: never[] }) => void;- const mutate = vi.fn(- () =>- new Promise<MutationResult & { diagnostics: never[] }>((resolve) => {- resolveMutate = resolve;- }),- );- const runtime = createStylesheetStoreRuntime({- resumeId: "resume-1",- initial,- resumeData: defaultResumeData,- debounceMs: 0,- compile: async ({ editGeneration }) => ({- type: "compile_result",- requestId: editGeneration,- editGeneration,- program: { languageVersion: 1, rules: [] },- diagnostics: [],- }),- preflight: async ({ editGeneration }) => ({- type: "preflight_result",- requestId: editGeneration,- editGeneration,- result: {- ok: false,- code: "STYLESHEET_PREFLIGHT_WORKER_FAILED",- message: "The PDF preflight worker failed.",- diagnostics: [],- },- }),- mutate,- });-- runtime.store.getState().setSourceText("@version 1;\nsection { color: teal; }");- await vi.runAllTimersAsync();-- expect(runtime.store.getState().diagnostics).toEqual([- expect.objectContaining({- code: "STYLESHEET_PREFLIGHT_WORKER_FAILED",- severity: "error",- message: "The PDF preflight worker failed.",- range: {- start: { line: 1, column: 1, offset: 0 },- end: { line: 1, column: 1, offset: 0 },- },- }),- ]);- expect(runtime.store.getState().diagnostics.some(({ severity }) => severity === "error")).toBe(true);- expect(mutate).toHaveBeenCalled();- resolveMutate({- stylesheet: stylesheet("@version 1;\n"),- revision: 4,- renderDataVersion: 7,- editGeneration: 1,- diagnostics: [],- });- await Promise.resolve();- });-- it("finishes an edit when refreshIntelligence interleaves through the shared compile client", async () => {- const { createCompileWorkerClient } = await import("./worker-client");- const listeners = new Map<string, Set<EventListener>>();- const fake = {- postMessage: vi.fn(),- terminate: vi.fn(),- addEventListener: vi.fn((type: string, listener: EventListener) => {- const bucket = listeners.get(type) ?? new Set();- bucket.add(listener);- listeners.set(type, bucket);- }),- removeEventListener: vi.fn((type: string, listener: EventListener) => {- listeners.get(type)?.delete(listener);- }),- emit(data: unknown) {- for (const listener of listeners.get("message") ?? []) {- (listener as (event: MessageEvent) => void)(new MessageEvent("message", { data }));- }- },- };- const client = createCompileWorkerClient(() => fake);- const runtime = createStylesheetStoreRuntime({- resumeId: "resume-1",- initial,- resumeData: defaultResumeData,- debounceMs: 0,- compile: client.compile,- preflight: async ({ editGeneration }) => ({- type: "preflight_result",- requestId: editGeneration,- editGeneration,- result: { ok: true, pageCount: 1, byteCount: 1, diagnostics: [], pdf: new ArrayBuffer(1) },- }),- mutate: async ({ editGeneration }) => ({- stylesheet: stylesheet("edited source"),- revision: 4,- renderDataVersion: 7,- editGeneration,- diagnostics: [],- }),- });-- runtime.store.getState().setSourceText("edited source");- await vi.runAllTimersAsync();- expect(runtime.store.getState().status).toBe("compiling");- expect(fake.postMessage).toHaveBeenCalledTimes(1);-- // Mobile Design remount / accordion reopen refreshes intelligence while the edit is compiling.- runtime.store.getState().refreshIntelligence();- expect(fake.postMessage).toHaveBeenCalledTimes(2);-- fake.emit({- type: "compile_result",- requestId: 1,- editGeneration: 1,- program: { languageVersion: 1, rules: [] },- diagnostics: [],- colorTokens: [],- });- fake.emit({- type: "compile_result",- requestId: 2,- editGeneration: 1,- program: { languageVersion: 1, rules: [] },- diagnostics: [],- colorTokens: [],- });- await vi.runAllTimersAsync();-- expect(runtime.store.getState().status).toBe("applied");- expect(runtime.store.getState().applied.text).toBe("edited source");- });-- it("terminates both worker clients and clears the store on cleanup", () => {- const destroy = vi.fn();- let mutationSignal: AbortSignal | undefined;- const runtime = createStylesheetStoreRuntime({- resumeId: "resume-1",- initial,- resumeData: defaultResumeData,- compile: vi.fn(),- preflight: vi.fn(),- mutate: vi.fn((_input: unknown, signal: AbortSignal) => {- mutationSignal = signal;- return new Promise<MutationResult>(() => {});- }),- destroy,- });-- runtime.store.getState().deactivate();- runtime.destroy();-- expect(destroy).toHaveBeenCalledOnce();- expect(mutationSignal?.aborted).toBe(true);- expect(runtime.store.getState().resumeId).toBeUndefined();- });-- it("coalesces rapid source edits and bounds stylesheet history", () => {- const runtime = createStylesheetStoreRuntime({- resumeId: "resume-1",- initial,- resumeData: defaultResumeData,- debounceMs: 1_000_000,- compile: vi.fn(),- preflight: vi.fn(),- mutate: vi.fn(),- });-- for (let index = 0; index < 10; index++) runtime.store.getState().setSourceText(`rapid ${index}`);- expect(runtime.store.getState().undoStack).toHaveLength(1);- expect(runtime.store.getState().undoStack[0]).toEqual(stylesheet("generation zero"));-- for (let index = 0; index < 60; index++) {- vi.advanceTimersByTime(501);- runtime.store.getState().setSourceText(`separate ${index}`);- }- expect(runtime.store.getState().undoStack).toHaveLength(50);- });-});diff --git a/apps/web/src/features/resume/stylesheet/store.ts b/apps/web/src/features/resume/stylesheet/store.tsdeleted file mode 100644index 874f36470..000000000--- a/apps/web/src/features/resume/stylesheet/store.ts+++ /dev/null@@ -1,699 +0,0 @@-import type { SemanticCssDiagnostic, SemanticNode } from "@reactive-resume/resume/stylesheet";-import type { ResumeData } from "@reactive-resume/schema/resume/data";-import type { SemanticStylesheet, StylesheetSource } from "@reactive-resume/schema/resume/stylesheet";-import type { StoreApi } from "zustand/vanilla";-import type { SemanticCssColorToken } from "./color-tokens";-import type {- CompileWorkerInput,- CompileWorkerResponse,- PreflightWorkerInput,- PreflightWorkerResponse,- SemanticCssEditorMetadata,-} from "./protocol";-import { create } from "zustand/react";-import { createStore } from "zustand/vanilla";-import {- buildSemanticTree,- getTemplateSemanticManifest,- semanticNodeKeys,- shouldShowResumeHeader,-} from "@reactive-resume/pdf/semantic-tree";-import { orpc } from "@/libs/orpc/client";-import { createCompileWorkerClient, createPreflightWorkerClient } from "./worker-client";--export type StylesheetCanonicalState = {- stylesheet: SemanticStylesheet;- revision: number;- renderDataVersion: number;-};--type StylesheetMutationResult = StylesheetCanonicalState & {- editGeneration: number;- diagnostics: readonly SemanticCssDiagnostic[];-};--type EditMutation = {- id: string;- expectedRevision: number;- expectedRenderDataVersion: number;- editGeneration: number;- transition: "edit_source";- source: StylesheetSource;-};--type RestoreMutation = {- id: string;- expectedRevision: number;- expectedRenderDataVersion: number;- editGeneration: number;- transition: "restore_history";- restore: SemanticStylesheet;-};--type ActivateMutation = Omit<EditMutation, "transition"> & { transition: "activate" };-type DeactivateMutation = Omit<EditMutation, "transition" | "source"> & { transition: "deactivate" };-type StylesheetMutation = EditMutation | RestoreMutation | ActivateMutation | DeactivateMutation;--type Candidate =- | { generation: number; transition: "edit_source"; source: StylesheetSource }- | { generation: number; transition: "restore_history"; restore: SemanticStylesheet }- | { generation: number; transition: "activate"; source: StylesheetSource }- | { generation: number; transition: "deactivate" };--export type StylesheetStoreState = {- resumeId?: string;- mode: SemanticStylesheet["mode"];- source: StylesheetSource;- applied: StylesheetSource;- revision: number;- renderDataVersion: number;- editGeneration: number;- diagnostics: readonly SemanticCssDiagnostic[];- colorTokens: readonly SemanticCssColorToken[];- editorMetadata: SemanticCssEditorMetadata;- status: "idle" | "compiling" | "preflighting" | "saving" | "applied" | "error";- restoreLocked: boolean;- focused: boolean;- canUndo: boolean;- canRedo: boolean;- undoStack: SemanticStylesheet[];- redoStack: SemanticStylesheet[];- setSourceText(text: string): void;- setFocused(focused: boolean): void;- activate(): void;- deactivate(): void;- undo(): void;- redo(): void;- refreshIntelligence(): void;-};--type RuntimeDependencies = {- compile(input: CompileWorkerInput): Promise<CompileWorkerResponse>;- preflight(input: PreflightWorkerInput): Promise<PreflightWorkerResponse>;- mutate(input: StylesheetMutation, signal: AbortSignal): Promise<StylesheetMutationResult>;- destroy?(): void;-};--type CreateStylesheetStoreRuntimeOptions = RuntimeDependencies & {- resumeId: string;- initial: StylesheetCanonicalState;- resumeData: ResumeData;- debounceMs?: number;- store?: StoreApi<StylesheetStoreState>;-};--const emptySource = (): StylesheetSource => ({ languageVersion: 1, text: "@version 1;\n" });-const emptySemanticTree = (): SemanticNode => ({- key: "resume",- kind: "resume",- attributes: {},- roles: [],- children: [],-});-const HISTORY_COALESCE_MS = 500;-const MAX_HISTORY_ENTRIES = 50;--const preflightFailureDiagnostic = (- result: Extract<PreflightWorkerResponse["result"], { ok: false }>,-): SemanticCssDiagnostic => ({- code: result.code,- severity: "error",- message: result.message,- range: {- start: { line: 1, column: 1, offset: 0 },- end: { line: 1, column: 1, offset: 0 },- },-});--const inactiveState = (): Omit<- StylesheetStoreState,- "setSourceText" | "setFocused" | "activate" | "deactivate" | "undo" | "redo" | "refreshIntelligence"-> => ({- resumeId: undefined,- mode: "legacy",- source: emptySource(),- applied: emptySource(),- revision: 0,- renderDataVersion: 0,- editGeneration: 0,- diagnostics: [],- colorTokens: [],- editorMetadata: { semanticTree: emptySemanticTree(), templateParts: [] },- status: "idle",- restoreLocked: false,- focused: false,- canUndo: false,- canRedo: false,- undoStack: [],- redoStack: [],-});--const sourceFromText = (source: StylesheetSource, text: string): StylesheetSource => ({ ...source, text });-const sourcesEqual = (left: StylesheetSource, right: StylesheetSource) =>- left.languageVersion === right.languageVersion && left.text === right.text;-const isEditorFocused = () =>- typeof document !== "undefined" && document.activeElement instanceof HTMLElement- ? document.activeElement.closest(".cm-editor") !== null- : false;-const currentStylesheet = (state: StylesheetStoreState): SemanticStylesheet => ({- mode: state.mode,- source: structuredClone(state.source),- applied: structuredClone(state.applied),-});-const appendHistory = (stack: SemanticStylesheet[], value: SemanticStylesheet) =>- [...stack, value].slice(-MAX_HISTORY_ENTRIES);--const pageDimensions = (data: ResumeData) => {- const format = data.metadata.page.format;- const size = format === "letter" ? { width: 612, height: 792 } : { width: 595.28, height: 841.89 };- return data.metadata.layout.pages.map((_page, index) => ({- pageKey: semanticNodeKeys.page(index + 1),- ...size,- }));-};--const createEditorMetadata = (data: ResumeData): SemanticCssEditorMetadata => {- const pages = data.metadata.layout.pages.map((page, index) =>- buildSemanticTree({- data,- template: data.metadata.template,- page,- pageNumber: index + 1,- showHeader: shouldShowResumeHeader(data, index),- }),- );- const semanticTree: SemanticNode = {- key: semanticNodeKeys.resume(),- kind: "resume",- attributes: { template: data.metadata.template },- roles: [],- children: pages.flatMap(({ children }) => children),- };- return {- semanticTree,- templateParts: getTemplateSemanticManifest(data.metadata.template).parts.map(({ name }) => name),- };-};--const compileInput = (- data: ResumeData,- source: StylesheetSource,- editGeneration: number,- semanticTree: SemanticNode,-): CompileWorkerInput => {- return {- editGeneration,- source,- semanticTree,- baseSettings: {- picture: data.picture,- template: data.metadata.template,- design: data.metadata.design,- typography: data.metadata.typography,- page: data.metadata.page,- layout: { sidebarWidth: data.metadata.layout.sidebarWidth },- },- pages: pageDimensions(data),- };-};--const conflictState = (error: unknown): StylesheetCanonicalState | undefined => {- if (!error || typeof error !== "object") return;- const value = error as { code?: string; data?: { state?: StylesheetCanonicalState } };- return value.code === "STYLESHEET_REVISION_CONFLICT" ? value.data?.state : undefined;-};--export function createStylesheetStoreRuntime(options: CreateStylesheetStoreRuntimeOptions) {- let resumeData = structuredClone(options.resumeData);- let timer: ReturnType<typeof setTimeout> | undefined;- let inFlight: Candidate | undefined;- let pending: Candidate | undefined;- let latestCandidate: Candidate | undefined;- let deferredCanonical: StylesheetCanonicalState | undefined;- let validationEpoch = 0;- let intelligenceEpoch = 0;- let historyLastEditAt = 0;- let historyCanCoalesce = false;- let destroyed = false;- const abortController = new AbortController();- const debounceMs = options.debounceMs ?? 180;- const initial = options.initial.stylesheet;- let editorMetadata = createEditorMetadata(resumeData);- const store =- options.store ??- createStore<StylesheetStoreState>(() => ({- ...inactiveState(),- setSourceText: () => {},- setFocused: () => {},- activate: () => {},- deactivate: () => {},- undo: () => {},- redo: () => {},- refreshIntelligence: () => {},- }));-- const patch = (next: Partial<StylesheetStoreState>) => store.setState(next);- const replaceCanonical = (canonical: StylesheetCanonicalState, preserveSource: boolean) => {- const state = store.getState();- const next: Partial<StylesheetStoreState> = {- revision: Math.max(state.revision, canonical.revision),- renderDataVersion: Math.max(state.renderDataVersion, canonical.renderDataVersion),- };- if (canonical.revision >= state.revision) {- next.mode = canonical.stylesheet.mode;- const nextSource = preserveSource ? state.source : canonical.stylesheet.source;- next.source = nextSource;- next.applied = canonical.stylesheet.applied;- if (!sourcesEqual(nextSource, state.source)) {- intelligenceEpoch += 1;- next.colorTokens = [];- }- }- patch(next);- };- const resetHistoryCoalescing = () => {- historyLastEditAt = 0;- historyCanCoalesce = false;- };-- const startNext = () => {- if (destroyed || inFlight || !pending) return;- const candidate = pending;- pending = undefined;- inFlight = candidate;- const requestValidationEpoch = validationEpoch;- const state = store.getState();- const common = {- id: options.resumeId,- expectedRevision: state.revision,- expectedRenderDataVersion: state.renderDataVersion,- editGeneration: candidate.generation,- };- let input: StylesheetMutation;- if (candidate.transition === "edit_source" || candidate.transition === "activate") {- input = { ...common, transition: candidate.transition, source: candidate.source };- } else if (candidate.transition === "restore_history") {- input = { ...common, transition: "restore_history", restore: candidate.restore };- } else {- input = { ...common, transition: "deactivate" };- }- patch({ status: "saving" });-- void options- .mutate(input, abortController.signal)- .then((result) => {- if (destroyed) return;- const state = store.getState();- const staleStylesheet = result.revision < state.revision;- patch({- revision: Math.max(state.revision, result.revision),- renderDataVersion: Math.max(state.renderDataVersion, result.renderDataVersion),- });- if (result.editGeneration !== store.getState().editGeneration) return;- if (staleStylesheet) return;- const sourceChanged = !sourcesEqual(result.stylesheet.source, state.source);- if (sourceChanged) intelligenceEpoch += 1;- patch({- mode: result.stylesheet.mode,- source: result.stylesheet.source,- applied: result.stylesheet.applied,- diagnostics: result.diagnostics,- colorTokens: sourceChanged ? [] : state.colorTokens,- status: result.diagnostics.some(({ severity }) => severity === "error") ? "error" : "applied",- });- if (latestCandidate?.generation === result.editGeneration) latestCandidate = undefined;- if (deferredCanonical && result.revision >= deferredCanonical.revision) deferredCanonical = undefined;- })- .catch((error: unknown) => {- if (destroyed) return;- const canonical = conflictState(error);- if (!canonical) {- patch({ status: "error" });- return;- }- replaceCanonical(canonical, true);- if (requestValidationEpoch === validationEpoch) pending ??= candidate;- })- .finally(() => {- inFlight = undefined;- startNext();- });- };-- const queue = (candidate: Candidate) => {- latestCandidate = candidate;- pending = candidate;- startNext();- };-- const processCandidate = async (candidate: Candidate) => {- if (destroyed || candidate.generation !== store.getState().editGeneration) return;- const candidateValidationEpoch = validationEpoch;- if (candidate.transition === "deactivate") {- queue(candidate);- return;- }- const source = candidate.transition === "restore_history" ? candidate.restore.applied : candidate.source;- patch({ status: "compiling" });- let compiled: CompileWorkerResponse;- try {- compiled = await options.compile(- compileInput(resumeData, source, candidate.generation, editorMetadata.semanticTree),- );- } catch {- if (candidateValidationEpoch !== validationEpoch) return;- if (destroyed || candidate.generation !== store.getState().editGeneration) return;- patch({ status: "error" });- return;- }- if (candidateValidationEpoch !== validationEpoch) return;- if (destroyed || compiled.editGeneration !== store.getState().editGeneration) return;- patch({ diagnostics: compiled.diagnostics, colorTokens: compiled.colorTokens ?? [] });-- if (!compiled.program) {- if (candidate.transition === "edit_source") queue(candidate);- else patch({ status: "error" });- return;- }-- if (compiled.program) {- patch({ status: "preflighting" });- let preflight: PreflightWorkerResponse;- try {- preflight = await options.preflight({- editGeneration: candidate.generation,- input: { data: resumeData, template: resumeData.metadata.template, stylesheet: source },- limits: {- maxPages: 20,- maxBytes: 10_000_000,- maxPageWidthPt: 2_000,- maxPageHeightPt: 20_000,- maxPageAreaPt2: 20_000_000,- },- });- } catch {- if (candidateValidationEpoch !== validationEpoch) return;- if (candidate.generation !== store.getState().editGeneration) return;- patch({ status: "error" });- if (candidate.transition === "edit_source") queue(candidate);- return;- }- if (candidateValidationEpoch !== validationEpoch) return;- if (destroyed || preflight.editGeneration !== store.getState().editGeneration) return;- if (!preflight.result.ok) {- patch({- diagnostics: [- ...compiled.diagnostics,- ...preflight.result.diagnostics,- preflightFailureDiagnostic(preflight.result),- ],- status: "error",- });- if (candidate.transition !== "edit_source") return;- }- }-- queue(candidate);- };-- const schedule = (candidate: Candidate) => {- if (timer) clearTimeout(timer);- latestCandidate = candidate;- timer = setTimeout(() => {- timer = undefined;- void processCandidate(candidate);- }, debounceMs);- };-- const restore = (target: SemanticStylesheet, opposite: "undoStack" | "redoStack") => {- const state = store.getState();- const stack = opposite === "undoStack" ? state.undoStack : state.redoStack;- const previous = stack.at(-1);- if (!previous) return;- const generation = state.editGeneration + 1;- const other = opposite === "undoStack" ? "redoStack" : "undoStack";- resetHistoryCoalescing();- patch({- source: previous.source,- editGeneration: generation,- colorTokens: [],- [opposite]: stack.slice(0, -1),- [other]: appendHistory(state[other], target),- canUndo: opposite === "redoStack" || stack.length > 1,- canRedo: opposite === "undoStack" || stack.length > 1,- });- schedule({ generation, transition: "restore_history", restore: previous });- };-- store.setState({- resumeId: options.resumeId,- mode: initial.mode,- source: structuredClone(initial.source),- applied: structuredClone(initial.applied),- revision: options.initial.revision,- renderDataVersion: options.initial.renderDataVersion,- editGeneration: 0,- diagnostics: [],- colorTokens: [],- editorMetadata,- status: "idle",- restoreLocked: false,- focused: false,- undoStack: [],- redoStack: [],- canUndo: false,- canRedo: false,- setSourceText(text) {- const state = store.getState();- if (state.restoreLocked || text === state.source.text) return;- const generation = state.editGeneration + 1;- const nextSource = sourceFromText(state.source, text);- const now = Date.now();- const undoStack =- historyCanCoalesce && now - historyLastEditAt <= HISTORY_COALESCE_MS- ? state.undoStack- : appendHistory(state.undoStack, currentStylesheet(state));- historyLastEditAt = now;- historyCanCoalesce = true;- patch({- source: nextSource,- editGeneration: generation,- colorTokens: [],- undoStack,- redoStack: [],- canUndo: true,- canRedo: false,- });- schedule({ generation, transition: "edit_source", source: nextSource });- },- setFocused(focused) {- patch({ focused });- if (focused || !deferredCanonical) return;- const canonical = deferredCanonical;- deferredCanonical = undefined;- const candidate = latestCandidate;- const hasLocalDraft =- candidate !== undefined && store.getState().source.text !== canonical.stylesheet.source.text;- replaceCanonical(canonical, hasLocalDraft);- if (hasLocalDraft && candidate) schedule(candidate);- else resetHistoryCoalescing();- },- activate() {- const state = store.getState();- if (state.restoreLocked || state.mode === "semantic") return;- const generation = state.editGeneration + 1;- resetHistoryCoalescing();- patch({- editGeneration: generation,- colorTokens: [],- undoStack: appendHistory(state.undoStack, currentStylesheet(state)),- redoStack: [],- canUndo: true,- canRedo: false,- });- schedule({ generation, transition: "activate", source: state.source });- },- deactivate() {- const state = store.getState();- if (state.restoreLocked || state.mode === "legacy") return;- const generation = state.editGeneration + 1;- resetHistoryCoalescing();- patch({- editGeneration: generation,- colorTokens: [],- undoStack: appendHistory(state.undoStack, currentStylesheet(state)),- redoStack: [],- canUndo: true,- canRedo: false,- });- queue({ generation, transition: "deactivate" });- },- undo() {- if (store.getState().restoreLocked) return;- restore(currentStylesheet(store.getState()), "undoStack");- },- redo() {- if (store.getState().restoreLocked) return;- restore(currentStylesheet(store.getState()), "redoStack");- },- refreshIntelligence() {- const state = store.getState();- const generation = state.editGeneration;- const source = structuredClone(state.source);- const requestEpoch = ++intelligenceEpoch;- void options- .compile(compileInput(resumeData, source, generation, editorMetadata.semanticTree))- .then((compiled) => {- const current = store.getState();- if (- destroyed ||- requestEpoch !== intelligenceEpoch ||- current.editGeneration !== generation ||- !sourcesEqual(current.source, source)- ) {- return;- }- patch({ diagnostics: compiled.diagnostics, colorTokens: compiled.colorTokens ?? [] });- });- },- });-- return {- store,- replaceResumeSnapshot(data: ResumeData, canonical: StylesheetCanonicalState) {- const candidate = latestCandidate;- resumeData = structuredClone(data);- editorMetadata = createEditorMetadata(resumeData);- patch({ editorMetadata });- const renderDataChanged = canonical.renderDataVersion > store.getState().renderDataVersion;- const preserveSource = store.getState().focused || isEditorFocused() || candidate !== undefined;- replaceCanonical(canonical, preserveSource);- if (renderDataChanged) {- validationEpoch += 1;- pending = undefined;- if (candidate) schedule(candidate);- }- },- rebaseCanonical(canonical: StylesheetCanonicalState) {- const candidate = latestCandidate;- const hasLocalDraft =- candidate !== undefined && store.getState().source.text !== canonical.stylesheet.source.text;- const focused = store.getState().focused || isEditorFocused();- const sourceChanged = store.getState().source.text !== canonical.stylesheet.source.text;- if (focused && sourceChanged && canonical.revision >= store.getState().revision) deferredCanonical = canonical;- const preserveSource = (focused && sourceChanged) || hasLocalDraft;- replaceCanonical(canonical, preserveSource);- if (hasLocalDraft && candidate) schedule(candidate);- else if (!preserveSource) resetHistoryCoalescing();- },- destroy() {- destroyed = true;- abortController.abort();- if (timer) clearTimeout(timer);- timer = undefined;- pending = undefined;- latestCandidate = undefined;- deferredCanonical = undefined;- options.destroy?.();- store.setState(inactiveState());- },- };-}--export const useStylesheetStore = create<StylesheetStoreState>(() => ({- ...inactiveState(),- setSourceText: () => {},- setFocused: () => {},- activate: () => {},- deactivate: () => {},- undo: () => {},- redo: () => {},- refreshIntelligence: () => {},-}));--let activeRuntime: ReturnType<typeof createStylesheetStoreRuntime> | undefined;-declare const stylesheetRuntimeTokenBrand: unique symbol;-export type StylesheetRuntimeToken = Readonly<{ [stylesheetRuntimeTokenBrand]: true }>;-let activeRuntimeToken: StylesheetRuntimeToken | undefined;--const compilerClient = () =>- createCompileWorkerClient(- () =>- new Worker(new URL("./stylesheet.worker.ts", import.meta.url), { type: "module", name: "semantic-css-compiler" }),- );-const preflightClient = () =>- createPreflightWorkerClient(- () =>- new Worker(new URL("./preflight.worker.ts", import.meta.url), { type: "module", name: "semantic-css-preflight" }),- 5_000,- );--export function initializeStylesheetStore(input: {- resumeId: string;- initial: StylesheetCanonicalState;- resumeData: ResumeData;-}) {- activeRuntime?.destroy();- const compiler = compilerClient();- const preflight = preflightClient();- preflight.warmup();- const runtime = createStylesheetStoreRuntime({- ...input,- store: useStylesheetStore,- compile: compiler.compile,- preflight: preflight.preflight,- mutate: (mutation, signal) => orpc.resume.stylesheet.mutate.call(mutation, { signal }),- destroy: () => {- compiler.destroy();- preflight.destroy();- },- });- activeRuntime = runtime;- activeRuntimeToken = {} as StylesheetRuntimeToken;- return () => {- if (activeRuntime?.store.getState().resumeId !== input.resumeId) return;- activeRuntime.destroy();- activeRuntime = undefined;- activeRuntimeToken = undefined;- };-}--export function lockStylesheetStoreForRestore(resumeId: string): StylesheetRuntimeToken | undefined {- if (!activeRuntime || !activeRuntimeToken) return;- const state = activeRuntime.store.getState();- if (state.resumeId !== resumeId || state.restoreLocked) return;- activeRuntime.store.setState({ restoreLocked: true });- return activeRuntimeToken;-}--export function unlockStylesheetStoreAfterRestore(token: StylesheetRuntimeToken | undefined): boolean {- if (!activeRuntime || !token || activeRuntimeToken !== token) return false;- activeRuntime.store.setState({ restoreLocked: false });- return true;-}--export function replaceStylesheetStoreAfterRestore(input: {- resumeId: string;- initial: StylesheetCanonicalState;- resumeData: ResumeData;- token: StylesheetRuntimeToken | undefined;-}): boolean {- if (- !activeRuntime ||- !input.token ||- activeRuntimeToken !== input.token ||- activeRuntime.store.getState().resumeId !== input.resumeId ||- !activeRuntime.store.getState().restoreLocked- ) {- return false;- }- initializeStylesheetStore(input);- return true;-}--export async function refreshStylesheetStore(resumeId: string, resumeData?: ResumeData) {- if (!activeRuntime || activeRuntime.store.getState().resumeId !== resumeId) return;- const canonical = await orpc.resume.stylesheet.getState.call({ id: resumeId });- if (resumeData) activeRuntime.replaceResumeSnapshot(resumeData, canonical);- else activeRuntime.rebaseCanonical(canonical);-}diff --git a/apps/web/src/features/resume/stylesheet/stylesheet.worker.test.ts b/apps/web/src/features/resume/stylesheet/stylesheet.worker.test.tsnew file mode 100644index 000000000..1beee6d5a--- /dev/null+++ b/apps/web/src/features/resume/stylesheet/stylesheet.worker.test.ts@@ -0,0 +1,72 @@+// @vitest-environment happy-dom++import type { CompileWorkerRequest, CompileWorkerResponse } from "./protocol";+import { beforeEach, describe, expect, it, vi } from "vitest";+import { defaultResumeData } from "@reactive-resume/schema/resume/default";++function request(source: string): CompileWorkerRequest {+ return {+ type: "compile",+ requestId: 1,+ editGeneration: 1,+ source: { languageVersion: 1, text: source },+ semanticTree: {+ key: "resume",+ kind: "resume",+ attributes: {},+ roles: [],+ children: [{ key: "name", kind: "name", attributes: {}, roles: [], children: [] }],+ },+ baseSettings: {+ picture: defaultResumeData.picture,+ template: defaultResumeData.metadata.template,+ design: defaultResumeData.metadata.design,+ typography: defaultResumeData.metadata.typography,+ page: defaultResumeData.metadata.page,+ layout: { sidebarWidth: defaultResumeData.metadata.layout.sidebarWidth },+ },+ pages: [{ pageKey: "page-1", width: 595.28, height: 841.89 }],+ };+}++describe("stylesheet worker", () => {+ let handleMessage: ((event: MessageEvent<CompileWorkerRequest>) => void) | undefined;+ const postMessage = vi.fn();++ beforeEach(async () => {+ handleMessage = undefined;+ postMessage.mockReset();+ vi.resetModules();+ vi.stubGlobal("self", {+ addEventListener: vi.fn((type: string, listener: (event: MessageEvent<CompileWorkerRequest>) => void) => {+ if (type === "message") handleMessage = listener;+ }),+ postMessage,+ });+ await import("./stylesheet.worker");+ });++ it("returns diagnostics from variable resolution", () => {+ handleMessage?.(+ new MessageEvent("message", {+ data: request("@version 1;\nname { color: var(--missing); }\n"),+ }),+ );++ const response = postMessage.mock.calls[0]?.[0] as CompileWorkerResponse | undefined;+ expect(response?.diagnostics).toEqual(+ expect.arrayContaining([expect.objectContaining({ code: "UNRESOLVED_VARIABLE", severity: "error" })]),+ );+ });++ it("returns overlapping semantic diagnostics once", () => {+ handleMessage?.(+ new MessageEvent("message", {+ data: request('@version 1;\nsection[type="education"] { color: red; }\n'),+ }),+ );++ const response = postMessage.mock.calls[0]?.[0] as CompileWorkerResponse | undefined;+ expect(response?.diagnostics.filter(({ code }) => code === "SELECTOR_NO_MATCH")).toHaveLength(1);+ });+});diff --git a/apps/web/src/features/resume/stylesheet/stylesheet.worker.ts b/apps/web/src/features/resume/stylesheet/stylesheet.worker.tsindex fc6a2c7e7..13865895c 100644--- a/apps/web/src/features/resume/stylesheet/stylesheet.worker.ts+++ b/apps/web/src/features/resume/stylesheet/stylesheet.worker.ts@@ -1,14 +1,21 @@/// <reference lib="webworker" />import type { CompileWorkerRequest, CompileWorkerResponse } from "./protocol";-import { analyzeStylesheet, compileStylesheet } from "@reactive-resume/resume/stylesheet";+import { compileStylesheet, resolveStylesheet } from "@reactive-resume/resume/stylesheet";import { collectCompiledColorTokens } from "./color-tokens";self.addEventListener("message", ({ data }: MessageEvent<CompileWorkerRequest>) => {if (data.type !== "compile") return;const compiled = compileStylesheet(data.source);const diagnostics = compiled.program- ? [...compiled.diagnostics, ...analyzeStylesheet(compiled.program, data.semanticTree)]+ ? [+ ...compiled.diagnostics,+ ...resolveStylesheet(compiled.program, data.semanticTree, {+ baseStyles: {},+ baseSettings: data.baseSettings,+ pages: data.pages,+ }).diagnostics,+ ]: compiled.diagnostics;const response: CompileWorkerResponse = {type: "compile_result",diff --git a/apps/web/src/features/resume/stylesheet/toolbar.tsx b/apps/web/src/features/resume/stylesheet/toolbar.tsxindex 401e94216..daffa3a1f 100644--- a/apps/web/src/features/resume/stylesheet/toolbar.tsx+++ b/apps/web/src/features/resume/stylesheet/toolbar.tsx@@ -1,6 +1,5 @@import { t } from "@lingui/core/macro";import {- ArrowCounterClockwiseIcon,ArrowsInIcon,ArrowsOutIcon,ArrowUUpLeftIcon,@@ -43,7 +42,6 @@ export type StylesheetToolbarProps = {onUndo(): void;onRedo(): void;onFormat(): void;- onReset(): void;onFocusToggle(): void;};@@ -56,7 +54,6 @@ export function StylesheetToolbar({onUndo,onRedo,onFormat,- onReset,onFocusToggle,}: StylesheetToolbarProps) {return (@@ -73,9 +70,6 @@ export function StylesheetToolbar({<ToolbarButton label={t`Format stylesheet`} disabled={disabled} onClick={onFormat}><MagicWandIcon data-icon="inline-start" /></ToolbarButton>- <ToolbarButton label={t`Reset to applied stylesheet`} disabled={disabled} onClick={onReset}>- <ArrowCounterClockwiseIcon data-icon="inline-start" />- </ToolbarButton><ToolbarButton label={focused ? t`Exit focus mode` : t`Open focus mode`} onClick={onFocusToggle}>{focused ? <ArrowsInIcon data-icon="inline-start" /> : <ArrowsOutIcon data-icon="inline-start" />}</ToolbarButton>diff --git a/apps/web/src/features/resume/stylesheet/worker-client.test.ts b/apps/web/src/features/resume/stylesheet/worker-client.test.tsindex 681f1b703..984e7035c 100644--- a/apps/web/src/features/resume/stylesheet/worker-client.test.ts+++ b/apps/web/src/features/resume/stylesheet/worker-client.test.ts@@ -1,6 +1,5 @@import { describe, expect, it, vi } from "vitest";-import { getPreflightTransferables } from "./protocol";-import { createCompileWorkerClient, createPreflightWorkerClient } from "./worker-client";+import { createCompileWorkerClient } from "./worker-client";type Listener = (event: MessageEvent) => void;@@ -23,15 +22,13 @@ function worker() {}},emitError(event: ErrorEvent) {- for (const listener of listeners.get("error") ?? []) {- listener(event);- }+ for (const listener of listeners.get("error") ?? []) listener(event);},};}-describe("stylesheet worker clients", () => {- it("resolves older compiler results so callers can generation-check without aborting", async () => {+describe("stylesheet compiler worker client", () => {+ it("resolves every compiler result so the editor can generation-check", async () => {const fake = worker();const client = createCompileWorkerClient(() => fake);const first = client.compile({ editGeneration: 1 } as never);@@ -54,181 +51,14 @@ describe("stylesheet worker clients", () => {await expect(pending).rejects.toThrow("Failed to load compiler worker");});- it("terminates and recreates a timed-out preflight worker", async () => {- vi.useFakeTimers();- const first = worker();- const replacement = worker();- const createWorker = vi.fn().mockReturnValueOnce(first).mockReturnValueOnce(replacement);- const client = createPreflightWorkerClient(createWorker, 10);-- const timedOut = client.preflight({ editGeneration: 1 } as never);- first.emit({ type: "preflight_ready" });- await vi.advanceTimersByTimeAsync(10);-- await expect(timedOut).resolves.toMatchObject({- result: { ok: false, code: "STYLESHEET_PREFLIGHT_TIMEOUT" },- });- expect(first.terminate).toHaveBeenCalledOnce();-- const next = client.preflight({ editGeneration: 2 } as never);- replacement.emit({ type: "preflight_ready" });- await vi.advanceTimersByTimeAsync(0);- replacement.emit({- type: "preflight_result",- requestId: 2,- editGeneration: 2,- result: { ok: true, pageCount: 1, byteCount: 4, diagnostics: [], pdf: new ArrayBuffer(4) },- });- await expect(next).resolves.toMatchObject({ requestId: 2 });- vi.useRealTimers();- });-- it("warms the preflight worker before a request starts its deadline", () => {+ it("terminates the compiler worker and rejects pending work on destroy", async () => {const fake = worker();- const createWorker = vi.fn(() => fake);- const client = createPreflightWorkerClient(createWorker, 5_000);-- client.warmup();-- expect(createWorker).toHaveBeenCalledOnce();- expect(fake.addEventListener).toHaveBeenCalledTimes(2);- expect(fake.addEventListener).toHaveBeenCalledWith("message", expect.any(Function));- expect(fake.addEventListener).toHaveBeenCalledWith("error", expect.any(Function));- expect(fake.postMessage).not.toHaveBeenCalled();- });-- it("waits for readiness without consuming the request deadline", async () => {- vi.useFakeTimers();- const fake = worker();- const client = createPreflightWorkerClient(() => fake, 5, 20);- const result = client.preflight({ editGeneration: 1 } as never);-- await vi.advanceTimersByTimeAsync(5);- expect(fake.terminate).not.toHaveBeenCalled();- expect(fake.postMessage).not.toHaveBeenCalled();-- fake.emit({ type: "preflight_ready" });- await vi.advanceTimersByTimeAsync(0);- expect(fake.postMessage).toHaveBeenCalledOnce();- await vi.advanceTimersByTimeAsync(5);- await expect(result).resolves.toMatchObject({ result: { code: "STYLESHEET_PREFLIGHT_TIMEOUT" } });- vi.useRealTimers();- });-- it("rejects pending preflight work when the worker emits an error event", async () => {- const fake = worker();- const client = createPreflightWorkerClient(() => fake, 5_000);- const pending = client.preflight({ editGeneration: 1 } as never);- const outcome = pending.catch((error: unknown) => error);-- fake.emit({ type: "preflight_ready" });- await Promise.resolve();- fake.emitError({ message: "Worker crashed" } as ErrorEvent);-- expect(await outcome).toMatchObject({ message: "Worker crashed" });- expect(fake.terminate).toHaveBeenCalled();- });-- it("rejects structured resume-data failures without waiting for the timeout", async () => {- vi.useFakeTimers();- const fake = worker();- const client = createPreflightWorkerClient(() => fake, 5_000);- const pending = client.preflight({ editGeneration: 1 } as never);- const outcome = pending.catch((error: unknown) => error);-- fake.emit({ type: "preflight_ready" });- await vi.advanceTimersByTimeAsync(0);- fake.emit({- type: "preflight_error",- requestId: 1,- editGeneration: 1,- cause: {- name: "ZodError",- message: "Invalid resume data",- issues: [{ path: ["customSections", 0, "items", 0, "company"] }],- },- });-- expect(await outcome).toMatchObject({- name: "ZodError",- issues: [{ path: ["customSections", 0, "items", 0, "company"] }],- });- await vi.advanceTimersByTimeAsync(5_000);- expect(fake.terminate).not.toHaveBeenCalled();- vi.useRealTimers();- });-- it("bounds readiness, recreates once, and rejects after the retry also times out", async () => {- vi.useFakeTimers();- const first = worker();- const replacement = worker();- const client = createPreflightWorkerClient(- vi.fn().mockReturnValueOnce(first).mockReturnValueOnce(replacement),- 5,- 10,- );- const result = client.preflight({ editGeneration: 1 } as never);- const rejection = expect(result).rejects.toThrow("did not become ready");-- await vi.advanceTimersByTimeAsync(10);- expect(first.terminate).toHaveBeenCalledOnce();- await vi.advanceTimersByTimeAsync(10);-- await rejection;- expect(replacement.terminate).toHaveBeenCalledOnce();- vi.useRealTimers();- });-- it("does not recreate a warming worker after destroy", async () => {- vi.useFakeTimers();- const fake = worker();- const createWorker = vi.fn(() => fake);- const client = createPreflightWorkerClient(createWorker, 5, 10);- client.warmup();+ const client = createCompileWorkerClient(() => fake);+ const pending = client.compile({ editGeneration: 1 } as never);client.destroy();- await vi.runAllTimersAsync();- expect(createWorker).toHaveBeenCalledOnce();expect(fake.terminate).toHaveBeenCalledOnce();- vi.useRealTimers();- });-- it("terminates stale preflight work when a newer request starts", async () => {- const first = worker();- const replacement = worker();- const client = createPreflightWorkerClient(- vi.fn().mockReturnValueOnce(first).mockReturnValueOnce(replacement),- 1_000,- );- const stale = client.preflight({ editGeneration: 1 } as never);- first.emit({ type: "preflight_ready" });- await Promise.resolve();- const staleOutcome = stale.catch((error: unknown) => error);- const current = client.preflight({ editGeneration: 2 } as never);-- expect(first.terminate).toHaveBeenCalledOnce();- replacement.emit({ type: "preflight_ready" });- await Promise.resolve();- replacement.emit({- type: "preflight_result",- requestId: 2,- editGeneration: 2,- result: { ok: true, pageCount: 1, byteCount: 4, diagnostics: [], pdf: new ArrayBuffer(4) },- });- expect(await staleOutcome).toEqual(expect.objectContaining({ message: expect.stringContaining("stale") }));- await expect(current).resolves.toMatchObject({ requestId: 2 });- });-- it("transfers the generated PDF buffer", () => {- const pdf = new ArrayBuffer(4);- expect(- getPreflightTransferables({- type: "preflight_result",- requestId: 1,- editGeneration: 1,- result: { ok: true, pageCount: 1, byteCount: 4, diagnostics: [], pdf },- }),- ).toEqual([pdf]);+ await expect(pending).rejects.toThrow("terminated");});});diff --git a/apps/web/src/features/resume/stylesheet/worker-client.ts b/apps/web/src/features/resume/stylesheet/worker-client.tsindex bc1b2dd4c..46c8566e1 100644--- a/apps/web/src/features/resume/stylesheet/worker-client.ts+++ b/apps/web/src/features/resume/stylesheet/worker-client.ts@@ -1,13 +1,4 @@-import type {- CompileWorkerInput,- CompileWorkerRequest,- CompileWorkerResponse,- PreflightWorkerError,- PreflightWorkerInput,- PreflightWorkerReady,- PreflightWorkerRequest,- PreflightWorkerResponse,-} from "./protocol";+import type { CompileWorkerInput, CompileWorkerRequest, CompileWorkerResponse } from "./protocol";type WorkerListener = (event: MessageEvent<unknown>) => void;type WorkerErrorListener = (event: ErrorEvent) => void;@@ -67,164 +58,3 @@ export function createCompileWorkerClient(createWorker: () => StylesheetWorker)},};}--const timeoutResult = (request: PreflightWorkerRequest): PreflightWorkerResponse => ({- type: "preflight_result",- requestId: request.requestId,- editGeneration: request.editGeneration,- result: {- ok: false,- code: "STYLESHEET_PREFLIGHT_TIMEOUT",- message: "The PDF preflight exceeded its deadline.",- diagnostics: [],- },-});--export function createPreflightWorkerClient(- createWorker: () => StylesheetWorker,- timeoutMs: number,- readinessTimeoutMs = 10_000,-) {- let worker: StylesheetWorker | undefined;- let requestId = 0;- let ready = false;- let destroyed = false;- let readiness:- | (Pending<StylesheetWorker> & {- promise: Promise<StylesheetWorker>;- timer: ReturnType<typeof setTimeout>;- })- | undefined;- const pending = new Map<number, Pending<PreflightWorkerResponse> & { timer?: ReturnType<typeof setTimeout> }>();-- const onMessage: WorkerListener = ({ data }) => {- if ((data as PreflightWorkerReady)?.type === "preflight_ready") {- if (!worker || !readiness) return;- clearTimeout(readiness.timer);- ready = true;- readiness.resolve(worker);- readiness = undefined;- return;- }- const workerError = data as PreflightWorkerError;- if (workerError?.type === "preflight_error") {- const request = pending.get(workerError.requestId);- if (!request) return;- if (request.timer) clearTimeout(request.timer);- pending.delete(workerError.requestId);- request.reject(- Object.assign(new Error(workerError.cause.message), {- name: workerError.cause.name,- issues: workerError.cause.issues,- }),- );- return;- }- const response = data as PreflightWorkerResponse;- if (response?.type !== "preflight_result") return;- const request = pending.get(response.requestId);- if (!request) return;- if (request.timer) clearTimeout(request.timer);- pending.delete(response.requestId);- request.resolve(response);- };- const failPending = (error: Error) => {- for (const request of pending.values()) {- if (request.timer) clearTimeout(request.timer);- request.reject(error);- }- pending.clear();- };-- const onError: WorkerErrorListener = (event) => {- const error = new Error(event.message || "Stylesheet preflight worker failed.");- terminate();- failPending(error);- };-- const terminate = () => {- if (!worker) return;- worker.removeEventListener("message", onMessage);- worker.removeEventListener("error", onError);- worker.terminate();- worker = undefined;- ready = false;- if (readiness) {- clearTimeout(readiness.timer);- readiness.reject(new Error("Stylesheet preflight worker did not become ready."));- readiness = undefined;- }- };-- const getReadyWorker = () => {- if (destroyed) return Promise.reject(new Error("Stylesheet preflight worker was terminated."));- if (worker && ready) return Promise.resolve(worker);- if (readiness) return readiness.promise;- worker = createWorker();- worker.addEventListener("message", onMessage);- worker.addEventListener("error", onError);- let resolve!: (value: StylesheetWorker) => void;- let reject!: (error: Error) => void;- const promise = new Promise<StylesheetWorker>((resolvePromise, rejectPromise) => {- resolve = resolvePromise;- reject = rejectPromise;- });- const timer = setTimeout(() => terminate(), readinessTimeoutMs);- readiness = { promise, resolve, reject, timer };- return promise;- };-- const waitUntilReady = async () => {- try {- return await getReadyWorker();- } catch {- return await getReadyWorker();- }- };-- return {- warmup() {- void waitUntilReady().catch(() => {});- },- preflight(input: PreflightWorkerInput): Promise<PreflightWorkerResponse> {- if (pending.size > 0) {- terminate();- for (const stale of pending.values()) {- if (stale.timer) clearTimeout(stale.timer);- stale.reject(new Error("Discarded stale stylesheet preflight result."));- }- pending.clear();- }- const request: PreflightWorkerRequest = { ...input, type: "preflight", requestId: ++requestId };- return new Promise((resolve, reject) => {- pending.set(request.requestId, { resolve, reject });- void waitUntilReady()- .then((readyWorker) => {- const current = pending.get(request.requestId);- if (!current) return;- current.timer = setTimeout(() => {- pending.delete(request.requestId);- terminate();- resolve(timeoutResult(request));- }, timeoutMs);- readyWorker.postMessage(request);- })- .catch((error: unknown) => {- const current = pending.get(request.requestId);- if (!current) return;- pending.delete(request.requestId);- reject(error instanceof Error ? error : new Error("Stylesheet preflight worker failed to start."));- });- });- },- destroy() {- destroyed = true;- terminate();- for (const request of pending.values()) {- if (request.timer) clearTimeout(request.timer);- request.reject(new Error("Stylesheet preflight worker was terminated."));- }- pending.clear();- },- };-}diff --git a/apps/web/src/routes/builder/$resumeId/-components/version-history.tsx b/apps/web/src/routes/builder/$resumeId/-components/version-history.tsxindex 7b8d5153c..24cb5b5fc 100644--- a/apps/web/src/routes/builder/$resumeId/-components/version-history.tsx+++ b/apps/web/src/routes/builder/$resumeId/-components/version-history.tsx@@ -17,11 +17,6 @@ import {DropdownMenuTrigger,} from "@reactive-resume/ui/components/dropdown-menu";import { useResumeStore } from "@/features/resume/builder/draft";-import {- lockStylesheetStoreForRestore,- replaceStylesheetStoreAfterRestore,- unlockStylesheetStoreAfterRestore,-} from "@/features/resume/stylesheet/store";import { useConfirm } from "@/hooks/use-confirm";import { getResumeErrorMessage } from "@/libs/error-message";import { formatRelativeTime } from "@/libs/locale";@@ -53,26 +48,13 @@ export function BuilderVersionHistory({ resumeId }: BuilderVersionHistoryProps)if (!confirmed) return;- const token = lockStylesheetStoreForRestore(resumeId);- if (!token) return;try {const restored = await restoreVersion({ resumeId, versionId });- const applied = replaceStylesheetStoreAfterRestore({- resumeId,- resumeData: restored.resume.data,- initial: restored.stylesheetState,- token,- });- if (!applied) {- unlockStylesheetStoreAfterRestore(token);- return;- }- replaceResumeFromServer(restored.resume as Resume);- queryClient.setQueryData(orpc.resume.getById.queryOptions({ input: { id: resumeId } }).queryKey, restored.resume);+ replaceResumeFromServer(restored as Resume);+ queryClient.setQueryData(orpc.resume.getById.queryOptions({ input: { id: resumeId } }).queryKey, restored);void queryClient.invalidateQueries({ queryKey: orpc.resume.listVersions.queryKey({ input: { resumeId } }) });toast.success(t`Your resume has been restored to the selected version.`);} catch (error) {- unlockStylesheetStoreAfterRestore(token);toast.error(getResumeErrorMessage(error));}};diff --git a/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/export.test.tsx b/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/export.test.tsxindex 1a4153fde..7d192a770 100644--- a/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/export.test.tsx+++ b/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/export.test.tsx@@ -1,5 +1,6 @@// @vitest-environment happy-dom+import type { ResumeData } from "@reactive-resume/schema/resume/data";import { fireEvent, render, screen, waitFor } from "@testing-library/react";import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";import { i18n } from "@lingui/core";@@ -17,16 +18,8 @@ const resumeMock = vi.hoisted(() => ({id: string;name: string;slug: string;- data: typeof defaultResumeData;+ data: ResumeData;},- stylesheet: {- resumeId: "r1" as string | undefined,- mode: "semantic" as "legacy" | "semantic",- source: { languageVersion: 1, text: "@version 1;\nname {" },- applied: { languageVersion: 1, text: "@version 1;\nname { color: #123456; }\n" },- revision: 42,- renderDataVersion: 7,- },}));type SectionBaseProps = {@@ -50,9 +43,6 @@ vi.mock("@/libs/resume/section-title-locale", () => ({vi.mock("@/features/resume/builder/draft", () => ({useResume: () => resumeMock.resume,}));-vi.mock("@/features/resume/stylesheet/store", () => ({- useStylesheetStore: (selector: (state: typeof resumeMock.stylesheet) => unknown) => selector(resumeMock.stylesheet),-}));const { ExportSectionBuilder } = await import("./export");@@ -61,15 +51,12 @@ beforeAll(() => {});beforeEach(() => {- resumeMock.resume = { id: "r1", name: "My Resume", slug: "my-resume", data: defaultResumeData };- resumeMock.stylesheet = {- resumeId: "r1",+ const data = structuredClone(defaultResumeData);+ data.metadata.stylesheet = {mode: "semantic",source: { languageVersion: 1, text: "@version 1;\nname {" },- applied: { languageVersion: 1, text: "@version 1;\nname { color: #123456; }\n" },- revision: 42,- renderDataVersion: 7,};+ resumeMock.resume = { id: "r1", name: "My Resume", slug: "my-resume", data };});afterEach(() => {@@ -115,7 +102,7 @@ describe("ExportSectionBuilder", () => {expect(filename).toBe("My Resume.md");});- it("downloads canonical stylesheet content in JSON without concurrency metadata", async () => {+ it("downloads the current stylesheet source in JSON", async () => {renderExport();openDialog();fireEvent.click(screen.getByRole("button", { name: "Download JSON" }));@@ -127,13 +114,7 @@ describe("ExportSectionBuilder", () => {expect((blob as Blob).type).toBe("application/json");expect(filename).toBe("My Resume.json");const exported = JSON.parse(await (blob as Blob).text());- expect(exported.metadata.stylesheet).toEqual({- mode: "semantic",- source: resumeMock.stylesheet.source,- applied: resumeMock.stylesheet.applied,- });- expect(JSON.stringify(exported)).not.toContain("revision");- expect(JSON.stringify(exported)).not.toContain("renderDataVersion");+ expect(exported.metadata.stylesheet).toEqual(resumeMock.resume?.data.metadata.stylesheet);});it("calls buildDocx and downloads the resulting blob when DOCX is clicked", async () => {@@ -155,12 +136,7 @@ describe("ExportSectionBuilder", () => {await Promise.resolve();expect(createResumePdfBlob).toHaveBeenCalledTimes(1);- expect(createResumePdfBlob).toHaveBeenCalledWith(defaultResumeData, undefined, undefined, {- stylesheet: {- mode: "semantic",- applied: resumeMock.stylesheet.applied,- },- });+ expect(createResumePdfBlob).toHaveBeenCalledWith(resumeMock.resume?.data, undefined, undefined);expect(downloadWithAnchor).toHaveBeenCalledTimes(1);expect(downloadWithAnchor.mock.calls[0]?.[1]).toBe("My Resume.pdf");});diff --git a/apps/web/src/routes/builder/$resumeId/route.tsx b/apps/web/src/routes/builder/$resumeId/route.tsxindex 4f388bc35..a6c89b58f 100644--- a/apps/web/src/routes/builder/$resumeId/route.tsx+++ b/apps/web/src/routes/builder/$resumeId/route.tsx@@ -1,10 +1,9 @@import type { BuilderLayout } from "./-store/sidebar";import { useSuspenseQuery } from "@tanstack/react-query";import { createFileRoute, redirect } from "@tanstack/react-router";-import { useEffect, useRef } from "react";+import { useEffect } from "react";import { useMediaQuery } from "usehooks-ts";import { useBuilderResumeUpdateSubscription, useResumeCleanup, useResumeStore } from "@/features/resume/builder/draft";-import { initializeStylesheetStore, useStylesheetStore } from "@/features/resume/stylesheet/store";import { orpc } from "@/libs/orpc/client";import { createNoindexFollowMeta } from "@/libs/seo";import { DesktopBuilderShell } from "./-components/desktop-builder-shell";@@ -21,9 +20,6 @@ export const Route = createFileRoute("/builder/$resumeId")({const [layout, resume] = await Promise.all([getBuilderLayout(),context.queryClient.ensureQueryData(orpc.resume.getById.queryOptions({ input: { id: params.resumeId } })),- context.queryClient.ensureQueryData(- orpc.resume.stylesheet.getState.queryOptions({ input: { id: params.resumeId } }),- ),]);return { layout, name: resume.name };@@ -40,17 +36,11 @@ function RouteComponent() {const { resumeId } = Route.useParams();const { data: resume } = useSuspenseQuery(orpc.resume.getById.queryOptions({ input: { id: resumeId } }));- const { data: stylesheet } = useSuspenseQuery(- orpc.resume.stylesheet.getState.queryOptions({ input: { id: resumeId } }),- );const initializeResumeStore = useResumeStore((state) => state.initialize);const mergeResumeMetadata = useResumeStore((state) => state.mergeResumeMetadata);const isReady = useResumeStore((state) => state.isReady);const initializedResumeId = useResumeStore((state) => state.resumeId);const isInitialized = isReady && initializedResumeId === resumeId;- const isStylesheetInitialized = useStylesheetStore((state) => state.resumeId === resumeId);- const stylesheetInitialization = useRef({ resume, stylesheet });- stylesheetInitialization.current = { resume, stylesheet };useResumeCleanup();useBuilderResumeUpdateSubscription();@@ -60,16 +50,6 @@ function RouteComponent() {initializeResumeStore(resume);}, [initializeResumeStore, isInitialized, resume]);- useEffect(() => {- if (!isInitialized) return;- const initial = stylesheetInitialization.current;- return initializeStylesheetStore({- resumeId,- initial: initial.stylesheet,- resumeData: initial.resume.data,- });- }, [isInitialized, resumeId]);-useEffect(() => {mergeResumeMetadata(resume);}, [@@ -85,7 +65,7 @@ function RouteComponent() {resume,]);- if (!isInitialized || !isStylesheetInitialized) return null;+ if (!isInitialized) return null;return <BuilderLayoutShell initialLayout={initialLayout} />;}diff --git a/docs/applying-custom-styles.mdx b/docs/applying-custom-styles.mdxindex 6434a18c9..bee1c6aa0 100644--- a/docs/applying-custom-styles.mdx+++ b/docs/applying-custom-styles.mdx@@ -50,12 +50,12 @@ every stylesheet.<Step title="Paste one focused rule">Add the stylesheet to the editor. Start with one visual change so it is easy to review in the preview.</Step>- <Step title="Wait for Applied">- Reactive Resume checks the source and the PDF result. When the status changes to **Applied**, compare the preview- and export if you are ready to share the resume.+ <Step title="Wait for Valid">+ Reactive Resume checks the source in the browser. When the status changes to **Valid**, compare the preview and+ export if you are ready to share the resume.</Step><Step title="Build on the working rule">- Add one related change at a time. The editor keeps your draft, undo history, and last valid stylesheet separately.+ Add one related change at a time. Your changes use the normal resume autosave and undo history.</Step></Steps>@@ -300,19 +300,19 @@ browser viewport.Supported media features are `width`, `min-width`, `max-width`, `height`, `min-height`, `max-height`, and`orientation: portrait` or `orientation: landscape`.-## Apply, diagnose, and recover safely+## Diagnose and recover safely-The editor saves your draft even when it has an error. The preview and PDF export continue using the last stylesheet-that compiled and passed PDF checks, so a mistake does not replace a working result.+The editor saves the current source even when it has an error. A recoverable error ignores only the invalid declaration,+value, selector, or rule; valid parts still appear in preview and PDF export. A fatal version or resource-limit error+ignores the whole stylesheet and renders the resume with its base styles until you fix the source.If a rule does not work:1. Read the status below the editor. Errors include a line and column number when available.2. Check the selector's spelling, attribute value, placement, and template guard. A **selector matches nothing**warning usually means the resume does not contain that semantic node.-3. Simplify the rule to one selector and one declaration, then wait for **Applied** before adding more.-4. Use **Reset to applied stylesheet** to discard the current draft, or use the stylesheet undo and redo controls to- restore an earlier source and applied pair.+3. Simplify the rule to one selector and one declaration, then wait for **Valid** before adding more.+4. Use the stylesheet undo and redo controls to restore an earlier source.Select **Open focus mode** when you need a taller editor. On mobile, it opens a full-width sheet; switch to**Preview** to inspect the result.@@ -331,7 +331,7 @@ starting point. Exact IDs and template parts are intentionally specific to a res2. Open **Design -> Custom Styles** in the destination resume.3. Paste the stylesheet and review any warnings.4. Replace or remove exact IDs and template-part rules that do not apply.-5. Wait for **Applied**, then compare the preview and exported PDF.+5. Wait for **Valid**, then compare the preview and exported PDF.Semantic CSS does not support classes, pseudo-elements, CSS Grid, arbitrary at-rules, `@import`, `@font-face`, `url()`,browser APIs, animations, filters, gradients, general box shadows, or external assets. Use the normal builder settingsdiff --git a/docs/guides/json-resume-schema.mdx b/docs/guides/json-resume-schema.mdxindex f0a072ea0..40f8ba45d 100644--- a/docs/guides/json-resume-schema.mdx+++ b/docs/guides/json-resume-schema.mdx@@ -3629,30 +3629,11 @@ Below is the complete JSON Schema for Reactive Resume. You can also fetch the la"text"],"additionalProperties": false- },- "applied": {- "type": "object",- "properties": {- "languageVersion": {- "type": "integer",- "exclusiveMinimum": 0,- "maximum": 9007199254740991- },- "text": {- "type": "string"- }- },- "required": [- "languageVersion",- "text"- ],- "additionalProperties": false}},"required": ["mode",- "source",- "applied"+ "source"],"additionalProperties": false}diff --git a/docs/spec.json b/docs/spec.jsonindex 3079622b8..8add37dff 100644--- a/docs/spec.json+++ b/docs/spec.json@@ -3511,30 +3511,11 @@"text"],"additionalProperties": false- },- "applied": {- "type": "object",- "properties": {- "languageVersion": {- "type": "integer",- "exclusiveMinimum": 0,- "maximum": 9007199254740991- },- "text": {- "type": "string"- }- },- "required": [- "languageVersion",- "text"- ],- "additionalProperties": false}},"required": ["mode",- "source",- "applied"+ "source"],"additionalProperties": false}@@ -10353,106 +10334,109 @@}}},- "/resumes/{id}/stylesheet": {+ "/resumes": {"get": {- "operationId": "getResumeStylesheetState",- "summary": "Get resume stylesheet state",- "description": "Returns the owner-only canonical semantic stylesheet state and concurrency versions.",+ "operationId": "listResumes",+ "summary": "List all resumes",+ "description": "Returns a list of all resumes belonging to the authenticated user. Results can be filtered by tags and sorted by last updated date, creation date, or name. Resume data is not included in the response for performance; use the get endpoint to fetch full resume data. Requires authentication.","tags": ["Resumes"],"parameters": [{- "name": "id",- "in": "path",- "required": true,+ "name": "tags",+ "in": "query",+ "schema": {+ "type": "array",+ "items": {+ "type": "string"+ },+ "default": []+ },+ "style": "deepObject",+ "explode": true,+ "allowEmptyValue": true,+ "allowReserved": true+ },+ {+ "name": "sort",+ "in": "query","schema": {+ "enum": [+ "lastUpdatedAt",+ "createdAt",+ "name"+ ],"type": "string",- "description": "The ID of the resume."- }+ "default": "lastUpdatedAt"+ },+ "allowEmptyValue": true,+ "allowReserved": true}],"responses": {"200": {- "description": "The canonical stylesheet state.",+ "description": "A list of resumes with their metadata (without full resume data).","content": {"application/json": {"schema": {- "type": "object",- "properties": {- "stylesheet": {- "type": "object",- "properties": {- "mode": {- "enum": [- "legacy",- "semantic"- ],+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The ID of the resume."+ },+ "name": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the resume."+ },+ "slug": {+ "type": "string",+ "minLength": 1,+ "description": "The slug of the resume."+ },+ "tags": {+ "type": "array",+ "items": {"type": "string"},- "source": {- "type": "object",- "properties": {- "languageVersion": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "text": {- "type": "string"- }- },- "required": [- "languageVersion",- "text"- ],- "additionalProperties": false- },- "applied": {- "type": "object",- "properties": {- "languageVersion": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "text": {- "type": "string"- }- },- "required": [- "languageVersion",- "text"- ],- "additionalProperties": false- }+ "description": "The tags of the resume."},- "required": [- "mode",- "source",- "applied"- ],- "additionalProperties": false- },- "revision": {- "type": "integer",- "minimum": 0,- "maximum": 9007199254740991+ "isPublic": {+ "type": "boolean",+ "description": "Whether the resume is public."+ },+ "isLocked": {+ "type": "boolean",+ "description": "Whether the resume is locked."+ },+ "createdAt": {+ "type": "string",+ "format": "date-time",+ "x-native-type": "date",+ "description": "The date and time the resume was created."+ },+ "updatedAt": {+ "type": "string",+ "format": "date-time",+ "x-native-type": "date",+ "description": "The date and time the resume was last updated."+ }},- "renderDataVersion": {- "type": "integer",- "minimum": 0,- "maximum": 9007199254740991- }- },- "required": [- "stylesheet",- "revision",- "renderDataVersion"- ],- "additionalProperties": false+ "required": [+ "id",+ "name",+ "slug",+ "tags",+ "isPublic",+ "isLocked",+ "createdAt",+ "updatedAt"+ ]+ }}}}@@ -10460,23 +10444,12 @@}},"post": {- "operationId": "mutateResumeStylesheet",- "summary": "Mutate resume stylesheet state",- "description": "Applies one revisioned semantic stylesheet transition after validation and PDF preflight.",+ "operationId": "createResume",+ "summary": "Create a new resume",+ "description": "Creates a new resume with the given name, slug, and tags. Optionally initializes the resume with sample data by setting withSampleData to true. The slug must be unique across the user's resumes. Returns the ID of the newly created resume. Requires authentication.","tags": ["Resumes"],- "parameters": [- {- "name": "id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "description": "The ID of the resume."- }- }- ],"requestBody": {"required": true,"content": {@@ -10484,118 +10457,32 @@"schema": {"type": "object","properties": {- "expectedRevision": {- "type": "integer",- "minimum": 0,- "maximum": 9007199254740991- },- "expectedRenderDataVersion": {- "type": "integer",- "minimum": 0,- "maximum": 9007199254740991- },- "editGeneration": {- "type": "integer",- "minimum": 0,- "maximum": 9007199254740991+ "name": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the resume."},- "transition": {- "anyOf": [- {- "const": "edit_source"- },- {- "const": "activate"- },- {- "const": "deactivate"- },- {- "const": "restore_history"- }- ]+ "slug": {+ "type": "string",+ "minLength": 1,+ "description": "The slug of the resume."},- "source": {- "type": "object",- "properties": {- "languageVersion": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "text": {- "type": "string"- }+ "tags": {+ "type": "array",+ "items": {+ "type": "string"},- "required": [- "languageVersion",- "text"- ],- "additionalProperties": false+ "description": "The tags of the resume."},- "restore": {- "type": "object",- "properties": {- "mode": {- "enum": [- "legacy",- "semantic"- ],- "type": "string"- },- "source": {- "type": "object",- "properties": {- "languageVersion": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "text": {- "type": "string"- }- },- "required": [- "languageVersion",- "text"- ],- "additionalProperties": false- },- "applied": {- "type": "object",- "properties": {- "languageVersion": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "text": {- "type": "string"- }- },- "required": [- "languageVersion",- "text"- ],- "additionalProperties": false- }- },- "required": [- "mode",- "source",- "applied"- ],- "additionalProperties": false+ "withSampleData": {+ "type": "boolean",+ "default": false}},"required": [- "expectedRevision",- "expectedRenderDataVersion",- "editGeneration",- "transition"+ "name",+ "slug",+ "tags"]}}@@ -10603,322 +10490,45 @@},"responses": {"200": {- "description": "The committed canonical stylesheet state.",+ "description": "The ID of the newly created resume.","content": {"application/json": {"schema": {- "type": "object",- "properties": {- "stylesheet": {- "type": "object",- "properties": {- "mode": {- "enum": [- "legacy",- "semantic"- ],- "type": "string"- },- "source": {- "type": "object",- "properties": {- "languageVersion": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "text": {- "type": "string"- }- },- "required": [- "languageVersion",- "text"- ],- "additionalProperties": false- },- "applied": {- "type": "object",- "properties": {- "languageVersion": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "text": {- "type": "string"- }- },- "required": [- "languageVersion",- "text"- ],- "additionalProperties": false- }- },- "required": [- "mode",- "source",- "applied"- ],- "additionalProperties": false- },- "revision": {- "type": "integer",- "minimum": 0,- "maximum": 9007199254740991- },- "renderDataVersion": {- "type": "integer",- "minimum": 0,- "maximum": 9007199254740991- },- "editGeneration": {- "type": "integer",- "minimum": 0,- "maximum": 9007199254740991- },- "diagnostics": {- "type": "array",- "items": {- "type": "object",- "properties": {- "code": {- "type": "string"- },- "severity": {- "enum": [- "error",- "warning"- ],- "type": "string"- },- "message": {- "type": "string"- },- "range": {- "type": "object",- "properties": {- "start": {- "type": "object",- "properties": {- "line": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "column": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "offset": {- "type": "integer",- "minimum": 0,- "maximum": 9007199254740991- }- },- "required": [- "line",- "column",- "offset"- ],- "additionalProperties": false- },- "end": {- "type": "object",- "properties": {- "line": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "column": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "offset": {- "type": "integer",- "minimum": 0,- "maximum": 9007199254740991- }- },- "required": [- "line",- "column",- "offset"- ],- "additionalProperties": false- }- },- "required": [- "start",- "end"- ],- "additionalProperties": false- }- },- "required": [- "code",- "severity",- "message",- "range"- ],- "additionalProperties": false- }- }- },- "required": [- "stylesheet",- "revision",- "renderDataVersion",- "editGeneration",- "diagnostics"- ],- "additionalProperties": false- }- }- }- },- "400": {- "description": "400",- "content": {- "application/json": {- "schema": {- "oneOf": [- {+ "type": "string",+ "description": "The ID of the created resume."+ }+ }+ }+ },+ "400": {+ "description": "400",+ "content": {+ "application/json": {+ "schema": {+ "oneOf": [+ {"type": "object","properties": {"defined": {"const": true},"code": {- "const": "STYLESHEET_VALIDATION_FAILED"+ "const": "RESUME_SLUG_ALREADY_EXISTS"},"status": {"const": 400},"message": {"type": "string",- "default": "The stylesheet failed validation."+ "default": "A resume with this slug already exists."},- "data": {- "type": "object",- "properties": {- "diagnostics": {- "type": "array",- "items": {- "type": "object",- "properties": {- "code": {- "type": "string"- },- "severity": {- "enum": [- "error",- "warning"- ],- "type": "string"- },- "message": {- "type": "string"- },- "range": {- "type": "object",- "properties": {- "start": {- "type": "object",- "properties": {- "line": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "column": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "offset": {- "type": "integer",- "minimum": 0,- "maximum": 9007199254740991- }- },- "required": [- "line",- "column",- "offset"- ],- "additionalProperties": false- },- "end": {- "type": "object",- "properties": {- "line": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "column": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "offset": {- "type": "integer",- "minimum": 0,- "maximum": 9007199254740991- }- },- "required": [- "line",- "column",- "offset"- ],- "additionalProperties": false- }- },- "required": [- "start",- "end"- ],- "additionalProperties": false- }- },- "required": [- "code",- "severity",- "message",- "range"- ],- "additionalProperties": false- }- }- },- "required": [- "diagnostics"- ],- "additionalProperties": false- }+ "data": {}},"required": ["defined","code","status",- "message",- "data"+ "message"]},{@@ -10949,700 +10559,265 @@}}}- },- "409": {- "description": "409",+ }+ }+ }+ },+ "/resumes/{id}": {+ "get": {+ "operationId": "getResume",+ "summary": "Get resume by ID",+ "description": "Returns a single resume with its full data, identified by its unique ID. Only resumes belonging to the authenticated user can be retrieved. Requires authentication.",+ "tags": [+ "Resumes"+ ],+ "parameters": [+ {+ "name": "id",+ "in": "path",+ "required": true,+ "schema": {+ "type": "string",+ "description": "The ID of the resume."+ }+ }+ ],+ "responses": {+ "200": {+ "description": "The resume with its full data.","content": {"application/json": {"schema": {- "oneOf": [- {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The ID of the resume."+ },+ "name": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the resume."+ },+ "slug": {+ "type": "string",+ "minLength": 1,+ "description": "The slug of the resume."+ },+ "tags": {+ "type": "array",+ "items": {+ "type": "string"+ },+ "description": "The tags of the resume."+ },+ "isPublic": {+ "type": "boolean",+ "description": "Whether the resume is public."+ },+ "isLocked": {+ "type": "boolean",+ "description": "Whether the resume is locked."+ },+ "data": {"type": "object","properties": {- "defined": {- "const": true- },- "code": {- "const": "STYLESHEET_REVISION_CONFLICT"- },- "status": {- "const": 409- },- "message": {- "type": "string",- "default": "The resume or stylesheet changed while the candidate was being validated."- },- "data": {+ "picture": {"type": "object","properties": {- "state": {- "type": "object",- "properties": {- "stylesheet": {- "type": "object",- "properties": {- "mode": {- "enum": [- "legacy",- "semantic"- ],- "type": "string"- },- "source": {- "type": "object",- "properties": {- "languageVersion": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "text": {- "type": "string"- }- },- "required": [- "languageVersion",- "text"- ],- "additionalProperties": false- },- "applied": {- "type": "object",- "properties": {- "languageVersion": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "text": {- "type": "string"- }- },- "required": [- "languageVersion",- "text"- ],- "additionalProperties": false- }- },- "required": [- "mode",- "source",- "applied"- ],- "additionalProperties": false- },- "revision": {- "type": "integer",- "minimum": 0,- "maximum": 9007199254740991+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the picture from the resume."+ },+ "url": {+ "type": "string",+ "description": "The URL to the picture to display on the resume. Prefer local app-served paths (for example /uploads/...) populated via upload."+ },+ "size": {+ "type": "number",+ "minimum": 32,+ "maximum": 512,+ "description": "The size of the picture to display on the resume, defined in points (pt)."+ },+ "rotation": {+ "type": "number",+ "minimum": 0,+ "maximum": 360,+ "description": "The rotation of the picture to display on the resume, defined in degrees (°)."+ },+ "aspectRatio": {+ "type": "number",+ "minimum": 0.5,+ "maximum": 2.5,+ "description": "The aspect ratio of the picture to display on the resume, defined as width / height (e.g. 1.5 for 1.5:1 or 0.5 for 1:2)."+ },+ "borderRadius": {+ "type": "number",+ "minimum": 0,+ "maximum": 100,+ "description": "The border radius of the picture to display on the resume, defined in points (pt)."+ },+ "borderColor": {+ "type": "string",+ "description": "The color of the border of the picture to display on the resume, defined as rgba(r, g, b, a)."+ },+ "borderWidth": {+ "type": "number",+ "minimum": 0,+ "description": "The width of the border of the picture to display on the resume, defined in points (pt)."+ },+ "shadowColor": {+ "type": "string",+ "description": "The color of the shadow of the picture to display on the resume, defined as rgba(r, g, b, a)."+ },+ "shadowWidth": {+ "type": "number",+ "minimum": 0,+ "description": "The width of the shadow of the picture to display on the resume, defined in points (pt)."+ }+ },+ "required": [+ "hidden",+ "url",+ "size",+ "rotation",+ "aspectRatio",+ "borderRadius",+ "borderColor",+ "borderWidth",+ "shadowColor",+ "shadowWidth"+ ],+ "description": "Configuration for photograph displayed on the resume"+ },+ "basics": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string",+ "description": "The full name of the author of the resume."+ },+ "headline": {+ "type": "string",+ "description": "The headline of the author of the resume."+ },+ "email": {+ "type": "string",+ "description": "The email address of the author of the resume."+ },+ "phone": {+ "type": "string",+ "description": "The phone number of the author of the resume."+ },+ "location": {+ "type": "string",+ "description": "The location of the author of the resume."+ },+ "website": {+ "type": "object",+ "properties": {+ "url": {+ "type": "string",+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},- "renderDataVersion": {- "type": "integer",- "minimum": 0,- "maximum": 9007199254740991+ "label": {+ "type": "string",+ "description": "The label to display for the URL. Leave blank to display the URL as-is."}},"required": [- "stylesheet",- "revision",- "renderDataVersion"+ "url",+ "label"],- "additionalProperties": false+ "description": "The website of the author of the resume."+ },+ "customFields": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the custom field. Usually generated as a UUID."+ },+ "icon": {+ "type": "string",+ "description": "The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."+ },+ "text": {+ "type": "string",+ "description": "The text to display for the custom field."+ },+ "link": {+ "type": "string",+ "description": "If the custom field should be a link, the URL to link to."+ }+ },+ "required": [+ "id",+ "icon",+ "text",+ "link"+ ]+ },+ "description": "The custom fields to display on the resume."}},"required": [- "state"+ "name",+ "headline",+ "email",+ "phone",+ "location",+ "website",+ "customFields"],- "additionalProperties": false- }- },- "required": [- "defined",- "code",- "status",- "message",- "data"- ]- },- {- "type": "object",- "properties": {- "defined": {- "const": false- },- "code": {- "type": "string"- },- "status": {- "type": "number"- },- "message": {- "type": "string"- },- "data": {}- },- "required": [- "defined",- "code",- "status",- "message"- ]- }- ]- }- }- }- },- "503": {- "description": "503",- "content": {- "application/json": {- "schema": {- "oneOf": [- {- "type": "object",- "properties": {- "defined": {- "const": true- },- "code": {- "const": "SEMANTIC_STYLESHEET_UNAVAILABLE"- },- "status": {- "const": 503- },- "message": {- "type": "string",- "default": "Semantic stylesheet PDF preflight is unavailable."- },- "data": {}- },- "required": [- "defined",- "code",- "status",- "message"- ]- },- {- "type": "object",- "properties": {- "defined": {- "const": false+ "description": "Basic information about the author, such as name, email, phone, location, and website"},- "code": {- "type": "string"- },- "status": {- "type": "number"- },- "message": {- "type": "string"- },- "data": {}- },- "required": [- "defined",- "code",- "status",- "message"- ]- }- ]- }- }- }- }- }- }- },- "/resumes": {- "get": {- "operationId": "listResumes",- "summary": "List all resumes",- "description": "Returns a list of all resumes belonging to the authenticated user. Results can be filtered by tags and sorted by last updated date, creation date, or name. Resume data is not included in the response for performance; use the get endpoint to fetch full resume data. Requires authentication.",- "tags": [- "Resumes"- ],- "parameters": [- {- "name": "tags",- "in": "query",- "schema": {- "type": "array",- "items": {- "type": "string"- },- "default": []- },- "style": "deepObject",- "explode": true,- "allowEmptyValue": true,- "allowReserved": true- },- {- "name": "sort",- "in": "query",- "schema": {- "enum": [- "lastUpdatedAt",- "createdAt",- "name"- ],- "type": "string",- "default": "lastUpdatedAt"- },- "allowEmptyValue": true,- "allowReserved": true- }- ],- "responses": {- "200": {- "description": "A list of resumes with their metadata (without full resume data).",- "content": {- "application/json": {- "schema": {- "type": "array",- "items": {- "type": "object",- "properties": {- "id": {- "type": "string",- "description": "The ID of the resume."- },- "name": {- "type": "string",- "minLength": 1,- "description": "The name of the resume."- },- "slug": {- "type": "string",- "minLength": 1,- "description": "The slug of the resume."- },- "tags": {- "type": "array",- "items": {- "type": "string"- },- "description": "The tags of the resume."- },- "isPublic": {- "type": "boolean",- "description": "Whether the resume is public."- },- "isLocked": {- "type": "boolean",- "description": "Whether the resume is locked."- },- "createdAt": {- "type": "string",- "format": "date-time",- "x-native-type": "date",- "description": "The date and time the resume was created."- },- "updatedAt": {- "type": "string",- "format": "date-time",- "x-native-type": "date",- "description": "The date and time the resume was last updated."- }- },- "required": [- "id",- "name",- "slug",- "tags",- "isPublic",- "isLocked",- "createdAt",- "updatedAt"- ]- }- }- }- }- }- }- },- "post": {- "operationId": "createResume",- "summary": "Create a new resume",- "description": "Creates a new resume with the given name, slug, and tags. Optionally initializes the resume with sample data by setting withSampleData to true. The slug must be unique across the user's resumes. Returns the ID of the newly created resume. Requires authentication.",- "tags": [- "Resumes"- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "type": "object",- "properties": {- "name": {- "type": "string",- "minLength": 1,- "description": "The name of the resume."- },- "slug": {- "type": "string",- "minLength": 1,- "description": "The slug of the resume."- },- "tags": {- "type": "array",- "items": {- "type": "string"- },- "description": "The tags of the resume."- },- "withSampleData": {- "type": "boolean",- "default": false- }- },- "required": [- "name",- "slug",- "tags"- ]- }- }- }- },- "responses": {- "200": {- "description": "The ID of the newly created resume.",- "content": {- "application/json": {- "schema": {- "type": "string",- "description": "The ID of the created resume."- }- }- }- },- "400": {- "description": "400",- "content": {- "application/json": {- "schema": {- "oneOf": [- {- "type": "object",- "properties": {- "defined": {- "const": true- },- "code": {- "const": "RESUME_SLUG_ALREADY_EXISTS"- },- "status": {- "const": 400- },- "message": {- "type": "string",- "default": "A resume with this slug already exists."- },- "data": {}- },- "required": [- "defined",- "code",- "status",- "message"- ]- },- {- "type": "object",- "properties": {- "defined": {- "const": false- },- "code": {- "type": "string"- },- "status": {- "type": "number"- },- "message": {- "type": "string"- },- "data": {}- },- "required": [- "defined",- "code",- "status",- "message"- ]- }- ]- }- }- }- }- }- }- },- "/resumes/{id}": {- "get": {- "operationId": "getResume",- "summary": "Get resume by ID",- "description": "Returns a single resume with its full data, identified by its unique ID. Only resumes belonging to the authenticated user can be retrieved. Requires authentication.",- "tags": [- "Resumes"- ],- "parameters": [- {- "name": "id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "description": "The ID of the resume."- }- }- ],- "responses": {- "200": {- "description": "The resume with its full data.",- "content": {- "application/json": {- "schema": {- "type": "object",- "properties": {- "id": {- "type": "string",- "description": "The ID of the resume."- },- "name": {- "type": "string",- "minLength": 1,- "description": "The name of the resume."- },- "slug": {- "type": "string",- "minLength": 1,- "description": "The slug of the resume."- },- "tags": {- "type": "array",- "items": {- "type": "string"- },- "description": "The tags of the resume."- },- "isPublic": {- "type": "boolean",- "description": "Whether the resume is public."- },- "isLocked": {- "type": "boolean",- "description": "Whether the resume is locked."- },- "data": {- "type": "object",- "properties": {- "picture": {- "type": "object",- "properties": {- "hidden": {- "type": "boolean",- "description": "Whether to hide the picture from the resume."- },- "url": {- "type": "string",- "description": "The URL to the picture to display on the resume. Prefer local app-served paths (for example /uploads/...) populated via upload."- },- "size": {- "type": "number",- "minimum": 32,- "maximum": 512,- "description": "The size of the picture to display on the resume, defined in points (pt)."- },- "rotation": {- "type": "number",- "minimum": 0,- "maximum": 360,- "description": "The rotation of the picture to display on the resume, defined in degrees (°)."- },- "aspectRatio": {- "type": "number",- "minimum": 0.5,- "maximum": 2.5,- "description": "The aspect ratio of the picture to display on the resume, defined as width / height (e.g. 1.5 for 1.5:1 or 0.5 for 1:2)."- },- "borderRadius": {- "type": "number",- "minimum": 0,- "maximum": 100,- "description": "The border radius of the picture to display on the resume, defined in points (pt)."- },- "borderColor": {- "type": "string",- "description": "The color of the border of the picture to display on the resume, defined as rgba(r, g, b, a)."- },- "borderWidth": {- "type": "number",- "minimum": 0,- "description": "The width of the border of the picture to display on the resume, defined in points (pt)."- },- "shadowColor": {- "type": "string",- "description": "The color of the shadow of the picture to display on the resume, defined as rgba(r, g, b, a)."- },- "shadowWidth": {- "type": "number",- "minimum": 0,- "description": "The width of the shadow of the picture to display on the resume, defined in points (pt)."- }- },- "required": [- "hidden",- "url",- "size",- "rotation",- "aspectRatio",- "borderRadius",- "borderColor",- "borderWidth",- "shadowColor",- "shadowWidth"- ],- "description": "Configuration for photograph displayed on the resume"- },- "basics": {- "type": "object",- "properties": {- "name": {- "type": "string",- "description": "The full name of the author of the resume."- },- "headline": {- "type": "string",- "description": "The headline of the author of the resume."- },- "email": {- "type": "string",- "description": "The email address of the author of the resume."- },- "phone": {- "type": "string",- "description": "The phone number of the author of the resume."- },- "location": {- "type": "string",- "description": "The location of the author of the resume."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- }- },- "required": [- "url",- "label"- ],- "description": "The website of the author of the resume."- },- "customFields": {- "type": "array",- "items": {- "type": "object",- "properties": {- "id": {- "type": "string",- "description": "The unique identifier for the custom field. Usually generated as a UUID."- },- "icon": {- "type": "string",- "description": "The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."- },- "text": {- "type": "string",- "description": "The text to display for the custom field."- },- "link": {- "type": "string",- "description": "If the custom field should be a link, the URL to link to."- }- },- "required": [- "id",- "icon",- "text",- "link"- ]- },- "description": "The custom fields to display on the resume."- }- },- "required": [- "name",- "headline",- "email",- "phone",- "location",- "website",- "customFields"- ],- "description": "Basic information about the author, such as name, email, phone, location, and website"- },- "summary": {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the summary of the resume."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the summary section title in the PDF output. Empty string uses the default summary icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the summary should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the summary from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the summary is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the summary always begins on a new page."- },- "content": {- "type": "string",- "description": "The content of the summary of the resume. This should be a HTML-formatted string."- }- },- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "content"- ],- "description": "Summary section of the resume, useful for a short bio or introduction"+ "summary": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the summary of the resume."+ },+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the summary section title in the PDF output. Empty string uses the default summary icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the summary should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the summary from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the summary is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the summary always begins on a new page."+ },+ "content": {+ "type": "string",+ "description": "The content of the summary of the resume. This should be a HTML-formatted string."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "content"+ ],+ "description": "Summary section of the resume, useful for a short bio or introduction"},"sections": {"type": "object",@@ -14830,31 +14005,11 @@"text"],"additionalProperties": false- },- "applied": {- "type": "object",- "properties": {- "languageVersion": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "text": {- "type": "string"- }- },- "required": [- "languageVersion",- "text"- ],- "additionalProperties": false}},"required": ["mode",- "source",- "applied"+ "source"],"additionalProperties": false}@@ -18383,31 +17538,11 @@"text"],"additionalProperties": false- },- "applied": {- "type": "object",- "properties": {- "languageVersion": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "text": {- "type": "string"- }- },- "required": [- "languageVersion",- "text"- ],- "additionalProperties": false}},"required": ["mode",- "source",- "applied"+ "source"],"additionalProperties": false}@@ -22092,31 +21227,11 @@"text"],"additionalProperties": false- },- "applied": {- "type": "object",- "properties": {- "languageVersion": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "text": {- "type": "string"- }- },- "required": [- "languageVersion",- "text"- ],- "additionalProperties": false}},"required": ["mode",- "source",- "applied"+ "source"],"additionalProperties": false}@@ -25741,39 +24856,20 @@"type": "string","description": "Personal notes for the resume. Can be used to add any additional information or instructions for the resume. These notes are not displayed on the resume, they are only visible to the author of the resume when editing the resume. This should be a HTML-formatted string."},- "styleRules": {- "description": "Structured style rules that target semantic resume sections and slots for React PDF rendering."- },- "stylesheet": {- "type": "object",- "properties": {- "mode": {- "enum": [- "legacy",- "semantic"- ],- "type": "string"- },- "source": {- "type": "object",- "properties": {- "languageVersion": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "text": {- "type": "string"- }- },- "required": [- "languageVersion",- "text"+ "styleRules": {+ "description": "Structured style rules that target semantic resume sections and slots for React PDF rendering."+ },+ "stylesheet": {+ "type": "object",+ "properties": {+ "mode": {+ "enum": [+ "legacy",+ "semantic"],- "additionalProperties": false+ "type": "string"},- "applied": {+ "source": {"type": "object","properties": {"languageVersion": {@@ -25795,8 +24891,7 @@},"required": ["mode",- "source",- "applied"+ "source"],"additionalProperties": false}@@ -25816,324 +24911,72 @@"picture","basics","summary",- "sections",- "customSections",- "metadata"- ],- "additionalProperties": {}- },- "name": {- "type": "string"- },- "stylesheetMode": {- "enum": [- "legacy",- "semantic"- ],- "type": "string"- }- },- "required": [- "id",- "slug",- "tags",- "isPublic",- "isLocked",- "data",- "name",- "stylesheetMode"- ]- }- }- }- }- }- }- },- "/resumes/{username}/{slug}/style-projection": {- "get": {- "operationId": "getResumeStyleProjection",- "summary": "Get public resume style projection",- "description": "Returns the source-free resolved semantic PDF style projection after applying public, private-owner, and password access rules.",- "tags": [- "Resume Sharing"- ],- "parameters": [- {- "name": "username",- "in": "path",- "required": true,- "schema": {- "type": "string"- }- },- {- "name": "slug",- "in": "path",- "required": true,- "schema": {- "type": "string"- }- }- ],- "responses": {- "200": {- "description": "The validated public style projection.",- "content": {- "application/json": {- "schema": {- "type": "object",- "properties": {- "formatVersion": {- "const": 1- },- "languageVersion": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "semanticTreeVersion": {- "const": 1- },- "registryFingerprint": {- "type": "string",- "pattern": "^[a-f0-9]{64}$"- },- "adapterFingerprint": {- "type": "string",- "pattern": "^[a-f0-9]{64}$"- },- "renderDataHash": {- "type": "string",- "pattern": "^[a-f0-9]{64}$"- },- "nodes": {- "type": "object",- "propertyNames": {- "type": "string"- },- "additionalProperties": {- "type": "object",- "properties": {- "style": {- "type": "object",- "propertyNames": {- "type": "string"- },- "additionalProperties": {- "anyOf": [- {- "type": "string"- },- {- "type": "number"- },- {- "type": "null"- }- ]- }- },- "size": {- "anyOf": [- {- "enum": [- "A4",- "LETTER"- ],- "type": "string"- },- {- "type": "object",- "properties": {- "width": {- "type": "number"- },- "height": {- "type": "number"- }- },- "required": [- "width"- ],- "additionalProperties": false- }- ]- },- "break": {- "type": "boolean"- },- "wrap": {- "type": "boolean"- },- "fixed": {- "type": "boolean"- },- "minPresenceAhead": {- "type": "number"- },- "orphans": {- "type": "number"- },- "widows": {- "type": "number"- },- "hidden": {- "type": "boolean"- },- "order": {- "type": "integer",- "minimum": 0,- "maximum": 9007199254740991- }- },- "additionalProperties": false- }- }- },- "required": [- "formatVersion",- "languageVersion",- "semanticTreeVersion",- "registryFingerprint",- "adapterFingerprint",- "renderDataHash",- "nodes"- ],- "additionalProperties": false- }- }- }- }- }- }- },- "/resumes/import": {- "post": {- "operationId": "importResume",- "summary": "Import a resume",- "description": "Creates a new resume from an existing ResumeData object (e.g. from a previously exported JSON file). A random name and slug are generated automatically. Returns the ID of the imported resume. Requires authentication.",- "tags": [- "Resumes"- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "type": "object",- "properties": {- "data": {- "$ref": "#/components/schemas/ResumeData"- }- },- "required": [- "data"- ]- }- }- }- },- "responses": {- "200": {- "description": "The ID of the imported resume.",- "content": {- "application/json": {- "schema": {- "type": "string",- "description": "The ID of the imported resume."- }- }- }- },- "400": {- "description": "400",- "content": {- "application/json": {- "schema": {- "oneOf": [- {- "type": "object",- "properties": {- "defined": {- "const": true- },- "code": {- "const": "RESUME_SLUG_ALREADY_EXISTS"- },- "status": {- "const": 400- },- "message": {- "type": "string",- "default": "A resume with this slug already exists."- },- "data": {}- },- "required": [- "defined",- "code",- "status",- "message"- ]- },- {- "type": "object",- "properties": {- "defined": {- "const": true- },- "code": {- "const": "STYLESHEET_VALIDATION_FAILED"- },- "status": {- "const": 400- },- "message": {- "type": "string",- "default": "The imported stylesheet failed validation."- },- "data": {}- },- "required": [- "defined",- "code",- "status",- "message"- ]- },- {- "type": "object",- "properties": {- "defined": {- "const": false- },- "code": {- "type": "string"- },- "status": {- "type": "number"- },- "message": {- "type": "string"- },- "data": {}- },- "required": [- "defined",- "code",- "status",- "message"- ]+ "sections",+ "customSections",+ "metadata"+ ],+ "additionalProperties": {}+ },+ "name": {+ "type": "string"}+ },+ "required": [+ "id",+ "slug",+ "tags",+ "isPublic",+ "isLocked",+ "data",+ "name"]}}}+ }+ }+ }+ },+ "/resumes/import": {+ "post": {+ "operationId": "importResume",+ "summary": "Import a resume",+ "description": "Creates a new resume from an existing ResumeData object (e.g. from a previously exported JSON file). A random name and slug are generated automatically. Returns the ID of the imported resume. Requires authentication.",+ "tags": [+ "Resumes"+ ],+ "requestBody": {+ "required": true,+ "content": {+ "application/json": {+ "schema": {+ "type": "object",+ "properties": {+ "data": {+ "$ref": "#/components/schemas/ResumeData"+ }+ },+ "required": [+ "data"+ ]+ }+ }+ }+ },+ "responses": {+ "200": {+ "description": "The ID of the imported resume.",+ "content": {+ "application/json": {+ "schema": {+ "type": "string",+ "description": "The ID of the imported resume."+ }+ }+ }},- "503": {- "description": "503",+ "400": {+ "description": "400","content": {"application/json": {"schema": {@@ -26145,14 +24988,14 @@"const": true},"code": {- "const": "SEMANTIC_STYLESHEET_UNAVAILABLE"+ "const": "RESUME_SLUG_ALREADY_EXISTS"},"status": {- "const": 503+ "const": 400},"message": {"type": "string",- "default": "Semantic stylesheet PDF preflight is unavailable."+ "default": "A resume with this slug already exists."},"data": {}},@@ -26577,3698 +25420,3471 @@"schema": {"type": "object","properties": {- "resume": {+ "id": {+ "type": "string",+ "description": "The ID of the resume."+ },+ "name": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the resume."+ },+ "slug": {+ "type": "string",+ "minLength": 1,+ "description": "The slug of the resume."+ },+ "tags": {+ "type": "array",+ "items": {+ "type": "string"+ },+ "description": "The tags of the resume."+ },+ "isPublic": {+ "type": "boolean",+ "description": "Whether the resume is public."+ },+ "isLocked": {+ "type": "boolean",+ "description": "Whether the resume is locked."+ },+ "data": {"type": "object","properties": {- "id": {- "type": "string",- "description": "The ID of the resume."- },- "name": {- "type": "string",- "minLength": 1,- "description": "The name of the resume."- },- "slug": {- "type": "string",- "minLength": 1,- "description": "The slug of the resume."- },- "tags": {- "type": "array",- "items": {- "type": "string"+ "picture": {+ "type": "object",+ "properties": {+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the picture from the resume."+ },+ "url": {+ "type": "string",+ "description": "The URL to the picture to display on the resume. Prefer local app-served paths (for example /uploads/...) populated via upload."+ },+ "size": {+ "type": "number",+ "minimum": 32,+ "maximum": 512,+ "description": "The size of the picture to display on the resume, defined in points (pt)."+ },+ "rotation": {+ "type": "number",+ "minimum": 0,+ "maximum": 360,+ "description": "The rotation of the picture to display on the resume, defined in degrees (°)."+ },+ "aspectRatio": {+ "type": "number",+ "minimum": 0.5,+ "maximum": 2.5,+ "description": "The aspect ratio of the picture to display on the resume, defined as width / height (e.g. 1.5 for 1.5:1 or 0.5 for 1:2)."+ },+ "borderRadius": {+ "type": "number",+ "minimum": 0,+ "maximum": 100,+ "description": "The border radius of the picture to display on the resume, defined in points (pt)."+ },+ "borderColor": {+ "type": "string",+ "description": "The color of the border of the picture to display on the resume, defined as rgba(r, g, b, a)."+ },+ "borderWidth": {+ "type": "number",+ "minimum": 0,+ "description": "The width of the border of the picture to display on the resume, defined in points (pt)."+ },+ "shadowColor": {+ "type": "string",+ "description": "The color of the shadow of the picture to display on the resume, defined as rgba(r, g, b, a)."+ },+ "shadowWidth": {+ "type": "number",+ "minimum": 0,+ "description": "The width of the shadow of the picture to display on the resume, defined in points (pt)."+ }},- "description": "The tags of the resume."+ "required": [+ "hidden",+ "url",+ "size",+ "rotation",+ "aspectRatio",+ "borderRadius",+ "borderColor",+ "borderWidth",+ "shadowColor",+ "shadowWidth"+ ],+ "description": "Configuration for photograph displayed on the resume"},- "isPublic": {- "type": "boolean",- "description": "Whether the resume is public."+ "basics": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string",+ "description": "The full name of the author of the resume."+ },+ "headline": {+ "type": "string",+ "description": "The headline of the author of the resume."+ },+ "email": {+ "type": "string",+ "description": "The email address of the author of the resume."+ },+ "phone": {+ "type": "string",+ "description": "The phone number of the author of the resume."+ },+ "location": {+ "type": "string",+ "description": "The location of the author of the resume."+ },+ "website": {+ "type": "object",+ "properties": {+ "url": {+ "type": "string",+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."+ },+ "label": {+ "type": "string",+ "description": "The label to display for the URL. Leave blank to display the URL as-is."+ }+ },+ "required": [+ "url",+ "label"+ ],+ "description": "The website of the author of the resume."+ },+ "customFields": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the custom field. Usually generated as a UUID."+ },+ "icon": {+ "type": "string",+ "description": "The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."+ },+ "text": {+ "type": "string",+ "description": "The text to display for the custom field."+ },+ "link": {+ "type": "string",+ "description": "If the custom field should be a link, the URL to link to."+ }+ },+ "required": [+ "id",+ "icon",+ "text",+ "link"+ ]+ },+ "description": "The custom fields to display on the resume."+ }+ },+ "required": [+ "name",+ "headline",+ "email",+ "phone",+ "location",+ "website",+ "customFields"+ ],+ "description": "Basic information about the author, such as name, email, phone, location, and website"},- "isLocked": {- "type": "boolean",- "description": "Whether the resume is locked."+ "summary": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the summary of the resume."+ },+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the summary section title in the PDF output. Empty string uses the default summary icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the summary should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the summary from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the summary is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the summary always begins on a new page."+ },+ "content": {+ "type": "string",+ "description": "The content of the summary of the resume. This should be a HTML-formatted string."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "content"+ ],+ "description": "Summary section of the resume, useful for a short bio or introduction"},- "data": {+ "sections": {"type": "object","properties": {- "picture": {+ "profiles": {"type": "object","properties": {- "hidden": {- "type": "boolean",- "description": "Whether to hide the picture from the resume."- },- "url": {+ "title": {"type": "string",- "description": "The URL to the picture to display on the resume. Prefer local app-served paths (for example /uploads/...) populated via upload."- },- "size": {- "type": "number",- "minimum": 32,- "maximum": 512,- "description": "The size of the picture to display on the resume, defined in points (pt)."- },- "rotation": {- "type": "number",- "minimum": 0,- "maximum": 360,- "description": "The rotation of the picture to display on the resume, defined in degrees (°)."+ "description": "The title of the section."},- "aspectRatio": {- "type": "number",- "minimum": 0.5,- "maximum": 2.5,- "description": "The aspect ratio of the picture to display on the resume, defined as width / height (e.g. 1.5 for 1.5:1 or 0.5 for 1:2)."+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."},- "borderRadius": {- "type": "number",- "minimum": 0,- "maximum": 100,- "description": "The border radius of the picture to display on the resume, defined in points (pt)."+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."},- "borderColor": {- "type": "string",- "description": "The color of the border of the picture to display on the resume, defined as rgba(r, g, b, a)."+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."},- "borderWidth": {- "type": "number",- "minimum": 0,- "description": "The width of the border of the picture to display on the resume, defined in points (pt)."+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."},- "shadowColor": {- "type": "string",- "description": "The color of the shadow of the picture to display on the resume, defined as rgba(r, g, b, a)."+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."},- "shadowWidth": {- "type": "number",- "minimum": 0,- "description": "The width of the shadow of the picture to display on the resume, defined in points (pt)."+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "icon": {+ "type": "string",+ "description": "The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."+ },+ "iconColor": {+ "type": "string",+ "description": "Custom color for the icon, defined as rgba(r, g, b, a). Leave blank to use the template default icon color."+ },+ "network": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the network or platform."+ },+ "username": {+ "type": "string",+ "description": "The username of the author on the network or platform."+ },+ "website": {+ "type": "object",+ "properties": {+ "url": {+ "type": "string",+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."+ },+ "label": {+ "type": "string",+ "description": "The label to display for the URL. Leave blank to display the URL as-is."+ },+ "inlineLink": {+ "type": "boolean",+ "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."+ }+ },+ "required": [+ "url",+ "label",+ "inlineLink"+ ],+ "description": "The link to the profile of the author on the network or platform, if any."+ }+ },+ "required": [+ "id",+ "hidden",+ "icon",+ "iconColor",+ "network",+ "username",+ "website"+ ]+ },+ "description": "The items to display in the profiles section."}},"required": [+ "title",+ "icon",+ "columns","hidden",- "url",- "size",- "rotation",- "aspectRatio",- "borderRadius",- "borderColor",- "borderWidth",- "shadowColor",- "shadowWidth"+ "keepTogether",+ "startOnNewPage",+ "items"],- "description": "Configuration for photograph displayed on the resume"+ "description": "The section to display the profiles of the author."},- "basics": {+ "experience": {"type": "object","properties": {- "name": {+ "title": {"type": "string",- "description": "The full name of the author of the resume."+ "description": "The title of the section."},- "headline": {+ "icon": {"type": "string",- "description": "The headline of the author of the resume."+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."},- "email": {- "type": "string",- "description": "The email address of the author of the resume."+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."},- "phone": {- "type": "string",- "description": "The phone number of the author of the resume."+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."},- "location": {- "type": "string",- "description": "The location of the author of the resume."+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."},- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- }- },- "required": [- "url",- "label"- ],- "description": "The website of the author of the resume."+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."},- "customFields": {+ "items": {"type": "array","items": {"type": "object","properties": {"id": {"type": "string",- "description": "The unique identifier for the custom field. Usually generated as a UUID."+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "company": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the company or organization."+ },+ "position": {+ "type": "string",+ "description": "The position held at the company or organization. Used when there is only a single role. If multiple roles are provided in the 'roles' field, this serves as a summary title or can be left blank."},- "icon": {+ "location": {"type": "string",- "description": "The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."+ "description": "The location of the company or organization."},- "text": {+ "period": {"type": "string",- "description": "The text to display for the custom field."+ "description": "The overall period of time at the company. When multiple roles are used, this should reflect the total tenure."+ },+ "website": {+ "type": "object",+ "properties": {+ "url": {+ "type": "string",+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."+ },+ "label": {+ "type": "string",+ "description": "The label to display for the URL. Leave blank to display the URL as-is."+ },+ "inlineLink": {+ "type": "boolean",+ "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."+ }+ },+ "required": [+ "url",+ "label",+ "inlineLink"+ ],+ "description": "The website of the company or organization, if any."},- "link": {+ "description": {"type": "string",- "description": "If the custom field should be a link, the URL to link to."+ "description": "The description of the experience. This should be a HTML-formatted string."+ },+ "roles": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the role. Usually generated as a UUID."+ },+ "position": {+ "type": "string",+ "description": "The position or job title for this role."+ },+ "period": {+ "type": "string",+ "description": "The period of time this role was held."+ },+ "description": {+ "type": "string",+ "description": "The description of this specific role. This should be a HTML-formatted string."+ }+ },+ "required": [+ "id",+ "position",+ "period",+ "description"+ ]+ },+ "description": "List of individual roles held at this company to show career progression."}},"required": ["id",- "icon",- "text",- "link"+ "hidden",+ "company",+ "position",+ "location",+ "period",+ "website",+ "description",+ "roles"]},- "description": "The custom fields to display on the resume."+ "description": "The items to display in the experience section."}},"required": [- "name",- "headline",- "email",- "phone",- "location",- "website",- "customFields"+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "items"],- "description": "Basic information about the author, such as name, email, phone, location, and website"+ "description": "The section to display the experience of the author."},- "summary": {+ "education": {"type": "object","properties": {"title": {"type": "string",- "description": "The title of the summary of the resume."+ "description": "The title of the section."},"icon": {"type": "string",- "description": "Phosphor icon name to display before the summary section title in the PDF output. Empty string uses the default summary icon; 'none' hides the icon."+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."},"columns": {"type": "integer","minimum": 1,"maximum": 6,- "description": "The number of columns the summary should span across."+ "description": "The number of columns the section should span across."},"hidden": {"type": "boolean",- "description": "Whether to hide the summary from the resume."+ "description": "Whether to hide the section from the resume."},"keepTogether": {"type": "boolean",- "description": "If true, the summary is kept on a single page instead of splitting across a page break."+ "description": "If true, the section is kept on a single page instead of splitting across a page break."},"startOnNewPage": {"type": "boolean",- "description": "If true, the summary always begins on a new page."- },- "content": {- "type": "string",- "description": "The content of the summary of the resume. This should be a HTML-formatted string."- }- },- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "content"- ],- "description": "Summary section of the resume, useful for a short bio or introduction"- },- "sections": {- "type": "object",- "properties": {- "profiles": {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "items": {- "type": "array",- "items": {- "type": "object",- "properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "icon": {- "type": "string",- "description": "The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."- },- "iconColor": {- "type": "string",- "description": "Custom color for the icon, defined as rgba(r, g, b, a). Leave blank to use the template default icon color."- },- "network": {- "type": "string",- "minLength": 1,- "description": "The name of the network or platform."- },- "username": {- "type": "string",- "description": "The username of the author on the network or platform."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- },- "inlineLink": {- "type": "boolean",- "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."- }- },- "required": [- "url",- "label",- "inlineLink"- ],- "description": "The link to the profile of the author on the network or platform, if any."- }- },- "required": [- "id",- "hidden",- "icon",- "iconColor",- "network",- "username",- "website"- ]- },- "description": "The items to display in the profiles section."- }- },- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "items"- ],- "description": "The section to display the profiles of the author."- },- "experience": {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "items": {- "type": "array",- "items": {- "type": "object",- "properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "company": {- "type": "string",- "minLength": 1,- "description": "The name of the company or organization."- },- "position": {- "type": "string",- "description": "The position held at the company or organization. Used when there is only a single role. If multiple roles are provided in the 'roles' field, this serves as a summary title or can be left blank."- },- "location": {- "type": "string",- "description": "The location of the company or organization."- },- "period": {- "type": "string",- "description": "The overall period of time at the company. When multiple roles are used, this should reflect the total tenure."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- },- "inlineLink": {- "type": "boolean",- "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."- }- },- "required": [- "url",- "label",- "inlineLink"- ],- "description": "The website of the company or organization, if any."- },- "description": {- "type": "string",- "description": "The description of the experience. This should be a HTML-formatted string."- },- "roles": {- "type": "array",- "items": {- "type": "object",- "properties": {- "id": {- "type": "string",- "description": "The unique identifier for the role. Usually generated as a UUID."- },- "position": {- "type": "string",- "description": "The position or job title for this role."- },- "period": {- "type": "string",- "description": "The period of time this role was held."- },- "description": {- "type": "string",- "description": "The description of this specific role. This should be a HTML-formatted string."- }- },- "required": [- "id",- "position",- "period",- "description"- ]- },- "description": "List of individual roles held at this company to show career progression."- }- },- "required": [- "id",- "hidden",- "company",- "position",- "location",- "period",- "website",- "description",- "roles"- ]- },- "description": "The items to display in the experience section."- }- },- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "items"- ],- "description": "The section to display the experience of the author."- },- "education": {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "items": {- "type": "array",- "items": {- "type": "object",- "properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "school": {- "type": "string",- "minLength": 1,- "description": "The name of the school or institution."- },- "degree": {- "type": "string",- "description": "The degree or qualification obtained."- },- "area": {- "type": "string",- "description": "The area of study or specialization."- },- "grade": {- "type": "string",- "description": "The grade or score achieved."- },- "location": {- "type": "string",- "description": "The location of the school or institution."- },- "period": {- "type": "string",- "description": "The period of time the education was obtained over."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- },- "inlineLink": {- "type": "boolean",- "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."- }- },- "required": [- "url",- "label",- "inlineLink"- ],- "description": "The website of the school or institution, if any."- },- "description": {- "type": "string",- "description": "The description of the education. This should be a HTML-formatted string."- }- },- "required": [- "id",- "hidden",- "school",- "degree",- "area",- "grade",- "location",- "period",- "website",- "description"- ]- },- "description": "The items to display in the education section."- }- },- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "items"- ],- "description": "The section to display the education of the author."+ "description": "If true, the section always begins on a new page."},- "projects": {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "items": {- "type": "array",- "items": {+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "school": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the school or institution."+ },+ "degree": {+ "type": "string",+ "description": "The degree or qualification obtained."+ },+ "area": {+ "type": "string",+ "description": "The area of study or specialization."+ },+ "grade": {+ "type": "string",+ "description": "The grade or score achieved."+ },+ "location": {+ "type": "string",+ "description": "The location of the school or institution."+ },+ "period": {+ "type": "string",+ "description": "The period of time the education was obtained over."+ },+ "website": {"type": "object","properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "name": {+ "url": {"type": "string",- "minLength": 1,- "description": "The name of the project."+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},- "period": {+ "label": {"type": "string",- "description": "The period of time the project was worked on."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- },- "inlineLink": {- "type": "boolean",- "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."- }- },- "required": [- "url",- "label",- "inlineLink"- ],- "description": "The link to the project, if any."+ "description": "The label to display for the URL. Leave blank to display the URL as-is."},- "description": {- "type": "string",- "description": "The description of the project. This should be a HTML-formatted string."+ "inlineLink": {+ "type": "boolean",+ "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required": [- "id",- "hidden",- "name",- "period",- "website",- "description"- ]- },- "description": "The items to display in the projects section."- }+ "url",+ "label",+ "inlineLink"+ ],+ "description": "The website of the school or institution, if any."+ },+ "description": {+ "type": "string",+ "description": "The description of the education. This should be a HTML-formatted string."+ }+ },+ "required": [+ "id",+ "hidden",+ "school",+ "degree",+ "area",+ "grade",+ "location",+ "period",+ "website",+ "description"+ ]},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "items"- ],- "description": "The section to display the projects of the author."+ "description": "The items to display in the education section."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "items"+ ],+ "description": "The section to display the education of the author."+ },+ "projects": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."},- "skills": {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "items": {- "type": "array",- "items": {+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "name": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the project."+ },+ "period": {+ "type": "string",+ "description": "The period of time the project was worked on."+ },+ "website": {"type": "object","properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "icon": {- "type": "string",- "description": "The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."- },- "iconColor": {- "type": "string",- "description": "Custom color for the icon, defined as rgba(r, g, b, a). Leave blank to use the template default icon color."- },- "name": {+ "url": {"type": "string",- "minLength": 1,- "description": "The name of the skill."+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},- "proficiency": {+ "label": {"type": "string",- "description": "The proficiency level of the skill. Can be any text, such as 'Beginner', 'Intermediate', 'Advanced', etc."- },- "level": {- "type": "number",- "minimum": 0,- "maximum": 5,- "description": "The proficiency level of the skill, defined as a number between 0 and 5. If set to 0, the icons displaying the level will be hidden."+ "description": "The label to display for the URL. Leave blank to display the URL as-is."},- "keywords": {- "type": "array",- "items": {- "type": "string"- },- "description": "The keywords associated with the skill, if any. These are displayed as tags below the name."+ "inlineLink": {+ "type": "boolean",+ "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required": [- "id",- "hidden",- "icon",- "iconColor",- "name",- "proficiency",- "level",- "keywords"- ]- },- "description": "The items to display in the skills section."- }+ "url",+ "label",+ "inlineLink"+ ],+ "description": "The link to the project, if any."+ },+ "description": {+ "type": "string",+ "description": "The description of the project. This should be a HTML-formatted string."+ }+ },+ "required": [+ "id",+ "hidden",+ "name",+ "period",+ "website",+ "description"+ ]},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "items"- ],- "description": "The section to display the skills of the author."+ "description": "The items to display in the projects section."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "items"+ ],+ "description": "The section to display the projects of the author."+ },+ "skills": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."},- "languages": {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "items": {- "type": "array",- "items": {- "type": "object",- "properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "language": {- "type": "string",- "minLength": 1,- "description": "The name of the language the author knows."- },- "fluency": {- "type": "string",- "description": "The fluency level of the language. Can be any text, such as 'Native', 'Fluent', 'Conversational', etc. or can also be a CEFR level (A1, A2, B1, B2, C1, C2)."- },- "level": {- "type": "number",- "minimum": 0,- "maximum": 5,- "description": "The proficiency level of the language, defined as a number between 0 and 5. If set to 0, the icons displaying the level will be hidden."- }+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "icon": {+ "type": "string",+ "description": "The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."+ },+ "iconColor": {+ "type": "string",+ "description": "Custom color for the icon, defined as rgba(r, g, b, a). Leave blank to use the template default icon color."+ },+ "name": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the skill."+ },+ "proficiency": {+ "type": "string",+ "description": "The proficiency level of the skill. Can be any text, such as 'Beginner', 'Intermediate', 'Advanced', etc."+ },+ "level": {+ "type": "number",+ "minimum": 0,+ "maximum": 5,+ "description": "The proficiency level of the skill, defined as a number between 0 and 5. If set to 0, the icons displaying the level will be hidden."+ },+ "keywords": {+ "type": "array",+ "items": {+ "type": "string"},- "required": [- "id",- "hidden",- "language",- "fluency",- "level"- ]- },- "description": "The items to display in the languages section."- }+ "description": "The keywords associated with the skill, if any. These are displayed as tags below the name."+ }+ },+ "required": [+ "id",+ "hidden",+ "icon",+ "iconColor",+ "name",+ "proficiency",+ "level",+ "keywords"+ ]},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "items"- ],- "description": "The section to display the languages of the author."+ "description": "The items to display in the skills section."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "items"+ ],+ "description": "The section to display the skills of the author."+ },+ "languages": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."},- "interests": {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "language": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the language the author knows."+ },+ "fluency": {+ "type": "string",+ "description": "The fluency level of the language. Can be any text, such as 'Native', 'Fluent', 'Conversational', etc. or can also be a CEFR level (A1, A2, B1, B2, C1, C2)."+ },+ "level": {+ "type": "number",+ "minimum": 0,+ "maximum": 5,+ "description": "The proficiency level of the language, defined as a number between 0 and 5. If set to 0, the icons displaying the level will be hidden."+ }},- "items": {- "type": "array",- "items": {- "type": "object",- "properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "icon": {- "type": "string",- "description": "The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."- },- "iconColor": {- "type": "string",- "description": "Custom color for the icon, defined as rgba(r, g, b, a). Leave blank to use the template default icon color."- },- "name": {- "type": "string",- "minLength": 1,- "description": "The name of the interest/hobby."- },- "keywords": {- "type": "array",- "items": {- "type": "string"- },- "description": "The keywords associated with the interest/hobby, if any. These are displayed as tags below the name."- }- },- "required": [- "id",- "hidden",- "icon",- "iconColor",- "name",- "keywords"- ]- },- "description": "The items to display in the interests section."- }+ "required": [+ "id",+ "hidden",+ "language",+ "fluency",+ "level"+ ]},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "items"- ],- "description": "The section to display the interests of the author."+ "description": "The items to display in the languages section."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "items"+ ],+ "description": "The section to display the languages of the author."+ },+ "interests": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."},- "awards": {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "items": {- "type": "array",- "items": {- "type": "object",- "properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "title": {- "type": "string",- "minLength": 1,- "description": "The title of the award."- },- "awarder": {- "type": "string",- "description": "The awarder of the award."- },- "date": {- "type": "string",- "description": "The date when the award was received."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- },- "inlineLink": {- "type": "boolean",- "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."- }- },- "required": [- "url",- "label",- "inlineLink"- ],- "description": "The website of the award, if any."- },- "description": {- "type": "string",- "description": "The description of the award. This should be a HTML-formatted string."- }+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "icon": {+ "type": "string",+ "description": "The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."+ },+ "iconColor": {+ "type": "string",+ "description": "Custom color for the icon, defined as rgba(r, g, b, a). Leave blank to use the template default icon color."+ },+ "name": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the interest/hobby."+ },+ "keywords": {+ "type": "array",+ "items": {+ "type": "string"},- "required": [- "id",- "hidden",- "title",- "awarder",- "date",- "website",- "description"- ]- },- "description": "The items to display in the awards section."- }+ "description": "The keywords associated with the interest/hobby, if any. These are displayed as tags below the name."+ }+ },+ "required": [+ "id",+ "hidden",+ "icon",+ "iconColor",+ "name",+ "keywords"+ ]},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "items"- ],- "description": "The section to display the awards of the author."+ "description": "The items to display in the interests section."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "items"+ ],+ "description": "The section to display the interests of the author."+ },+ "awards": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."},- "certifications": {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "items": {- "type": "array",- "items": {+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "title": {+ "type": "string",+ "minLength": 1,+ "description": "The title of the award."+ },+ "awarder": {+ "type": "string",+ "description": "The awarder of the award."+ },+ "date": {+ "type": "string",+ "description": "The date when the award was received."+ },+ "website": {"type": "object","properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "title": {- "type": "string",- "minLength": 1,- "description": "The title of the certification."- },- "issuer": {+ "url": {"type": "string",- "description": "The issuer of the certification."+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},- "date": {+ "label": {"type": "string",- "description": "The date when the certification was received."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- },- "inlineLink": {- "type": "boolean",- "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."- }- },- "required": [- "url",- "label",- "inlineLink"- ],- "description": "The website of the certification, if any."+ "description": "The label to display for the URL. Leave blank to display the URL as-is."},- "description": {- "type": "string",- "description": "The description of the certification. This should be a HTML-formatted string."+ "inlineLink": {+ "type": "boolean",+ "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required": [- "id",- "hidden",- "title",- "issuer",- "date",- "website",- "description"- ]- },- "description": "The items to display in the certifications section."- }+ "url",+ "label",+ "inlineLink"+ ],+ "description": "The website of the award, if any."+ },+ "description": {+ "type": "string",+ "description": "The description of the award. This should be a HTML-formatted string."+ }+ },+ "required": [+ "id",+ "hidden",+ "title",+ "awarder",+ "date",+ "website",+ "description"+ ]},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "items"- ],- "description": "The section to display the certifications of the author."+ "description": "The items to display in the awards section."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "items"+ ],+ "description": "The section to display the awards of the author."+ },+ "certifications": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."},- "publications": {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "items": {- "type": "array",- "items": {+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "title": {+ "type": "string",+ "minLength": 1,+ "description": "The title of the certification."+ },+ "issuer": {+ "type": "string",+ "description": "The issuer of the certification."+ },+ "date": {+ "type": "string",+ "description": "The date when the certification was received."+ },+ "website": {"type": "object","properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "title": {- "type": "string",- "minLength": 1,- "description": "The title of the publication."- },- "publisher": {- "type": "string",- "description": "The publisher of the publication."- },- "date": {- "type": "string",- "description": "The date when the publication was published."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- },- "inlineLink": {- "type": "boolean",- "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."- }- },- "required": [- "url",- "label",- "inlineLink"- ],- "description": "The link to the publication, if any."+ "url": {+ "type": "string",+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},- "description": {+ "label": {"type": "string",- "description": "The description of the publication. This should be a HTML-formatted string."+ "description": "The label to display for the URL. Leave blank to display the URL as-is."+ },+ "inlineLink": {+ "type": "boolean",+ "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required": [- "id",- "hidden",- "title",- "publisher",- "date",- "website",- "description"- ]- },- "description": "The items to display in the publications section."- }+ "url",+ "label",+ "inlineLink"+ ],+ "description": "The website of the certification, if any."+ },+ "description": {+ "type": "string",+ "description": "The description of the certification. This should be a HTML-formatted string."+ }+ },+ "required": [+ "id",+ "hidden",+ "title",+ "issuer",+ "date",+ "website",+ "description"+ ]},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "items"- ],- "description": "The section to display the publications of the author."+ "description": "The items to display in the certifications section."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "items"+ ],+ "description": "The section to display the certifications of the author."+ },+ "publications": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."},- "volunteer": {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "items": {- "type": "array",- "items": {+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "title": {+ "type": "string",+ "minLength": 1,+ "description": "The title of the publication."+ },+ "publisher": {+ "type": "string",+ "description": "The publisher of the publication."+ },+ "date": {+ "type": "string",+ "description": "The date when the publication was published."+ },+ "website": {"type": "object","properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "organization": {- "type": "string",- "minLength": 1,- "description": "The name of the organization or company."- },- "location": {+ "url": {"type": "string",- "description": "The location of the organization or company."+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},- "period": {+ "label": {"type": "string",- "description": "The period of time the author was volunteered at the organization or company."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- },- "inlineLink": {- "type": "boolean",- "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."- }- },- "required": [- "url",- "label",- "inlineLink"- ],- "description": "The link to the organization or company, if any."+ "description": "The label to display for the URL. Leave blank to display the URL as-is."},- "description": {- "type": "string",- "description": "The description of the volunteer experience. This should be a HTML-formatted string."+ "inlineLink": {+ "type": "boolean",+ "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required": [- "id",- "hidden",- "organization",- "location",- "period",- "website",- "description"- ]- },- "description": "The items to display in the volunteer section."- }+ "url",+ "label",+ "inlineLink"+ ],+ "description": "The link to the publication, if any."+ },+ "description": {+ "type": "string",+ "description": "The description of the publication. This should be a HTML-formatted string."+ }+ },+ "required": [+ "id",+ "hidden",+ "title",+ "publisher",+ "date",+ "website",+ "description"+ ]},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "items"- ],- "description": "The section to display the volunteer experience of the author."+ "description": "The items to display in the publications section."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "items"+ ],+ "description": "The section to display the publications of the author."+ },+ "volunteer": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."},- "references": {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "items": {- "type": "array",- "items": {- "type": "object",- "properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "name": {- "type": "string",- "minLength": 1,- "description": "The name of the reference, or a note such as 'Available upon request'."- },- "position": {+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "organization": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the organization or company."+ },+ "location": {+ "type": "string",+ "description": "The location of the organization or company."+ },+ "period": {+ "type": "string",+ "description": "The period of time the author was volunteered at the organization or company."+ },+ "website": {+ "type": "object",+ "properties": {+ "url": {"type": "string",- "description": "The position or job title of the reference."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- },- "inlineLink": {- "type": "boolean",- "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."- }- },- "required": [- "url",- "label",- "inlineLink"- ],- "description": "The website or LinkedIn profile of the reference, if any."+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},- "phone": {+ "label": {"type": "string",- "description": "The phone number of the reference."+ "description": "The label to display for the URL. Leave blank to display the URL as-is."},- "description": {- "type": "string",- "description": "The description of the reference. Can be used to display a quote, a testimonial, etc. This should be a HTML-formatted string."+ "inlineLink": {+ "type": "boolean",+ "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required": [- "id",- "hidden",- "name",- "position",- "website",- "phone",- "description"- ]- },- "description": "The items to display in the references section."- }+ "url",+ "label",+ "inlineLink"+ ],+ "description": "The link to the organization or company, if any."+ },+ "description": {+ "type": "string",+ "description": "The description of the volunteer experience. This should be a HTML-formatted string."+ }+ },+ "required": [+ "id",+ "hidden",+ "organization",+ "location",+ "period",+ "website",+ "description"+ ]},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "items"- ],- "description": "The section to display the references of the author."+ "description": "The items to display in the volunteer section."}},"required": [- "profiles",- "experience",- "education",- "projects",- "skills",- "languages",- "interests",- "awards",- "certifications",- "publications",- "volunteer",- "references"+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "items"],- "description": "Various sections of the resume, such as experience, education, projects, etc."+ "description": "The section to display the volunteer experience of the author."},- "customSections": {- "type": "array",- "items": {- "anyOf": [- {+ "references": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."+ },+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "items": {+ "type": "array",+ "items": {"type": "object","properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {+ "id": {"type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."+ "description": "The unique identifier for the item. Usually generated as a UUID."},"hidden": {"type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."+ "description": "Whether to hide the item from the resume."},- "id": {+ "name": {"type": "string",- "description": "The unique identifier for the custom section. Usually generated as a UUID."+ "minLength": 1,+ "description": "The name of the reference, or a note such as 'Available upon request'."},- "type": {- "const": "cover-letter",- "description": "The type of items this custom section contains. Determines which item schema and form fields to use."+ "position": {+ "type": "string",+ "description": "The position or job title of the reference."},- "items": {- "type": "array",- "items": {- "type": "object",- "properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "recipient": {- "type": "string",- "description": "The recipient's address block as HTML (name, title, company, address, email)."- },- "content": {- "type": "string",- "description": "The cover letter body as HTML (salutation, paragraphs, closing, signature)."- }+ "website": {+ "type": "object",+ "properties": {+ "url": {+ "type": "string",+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},- "required": [- "id",- "hidden",- "recipient",- "content"- ],- "additionalProperties": {}+ "label": {+ "type": "string",+ "description": "The label to display for the URL. Leave blank to display the URL as-is."+ },+ "inlineLink": {+ "type": "boolean",+ "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."+ }},- "description": "The items to display in the custom section. Items follow the schema of the section type."+ "required": [+ "url",+ "label",+ "inlineLink"+ ],+ "description": "The website or LinkedIn profile of the reference, if any."+ },+ "phone": {+ "type": "string",+ "description": "The phone number of the reference."+ },+ "description": {+ "type": "string",+ "description": "The description of the reference. Can be used to display a quote, a testimonial, etc. This should be a HTML-formatted string."}},"required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage","id",- "type",- "items"+ "hidden",+ "name",+ "position",+ "website",+ "phone",+ "description"]},- {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "id": {- "type": "string",- "description": "The unique identifier for the custom section. Usually generated as a UUID."- },- "type": {- "const": "summary",- "description": "The type of items this custom section contains. Determines which item schema and form fields to use."- },- "items": {- "type": "array",- "items": {- "type": "object",- "properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "content": {- "type": "string",- "description": "The rich text content of the summary item. This should be a HTML-formatted string."- }- },- "required": [- "id",- "hidden",- "content"- ],- "additionalProperties": {}+ "description": "The items to display in the references section."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "items"+ ],+ "description": "The section to display the references of the author."+ }+ },+ "required": [+ "profiles",+ "experience",+ "education",+ "projects",+ "skills",+ "languages",+ "interests",+ "awards",+ "certifications",+ "publications",+ "volunteer",+ "references"+ ],+ "description": "Various sections of the resume, such as experience, education, projects, etc."+ },+ "customSections": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."+ },+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "id": {+ "type": "string",+ "description": "The unique identifier for the custom section. Usually generated as a UUID."+ },+ "type": {+ "const": "cover-letter",+ "description": "The type of items this custom section contains. Determines which item schema and form fields to use."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."},- "description": "The items to display in the custom section. Items follow the schema of the section type."- }+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "recipient": {+ "type": "string",+ "description": "The recipient's address block as HTML (name, title, company, address, email)."+ },+ "content": {+ "type": "string",+ "description": "The cover letter body as HTML (salutation, paragraphs, closing, signature)."+ }+ },+ "required": [+ "id",+ "hidden",+ "recipient",+ "content"+ ],+ "additionalProperties": {}},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "id",- "type",- "items"- ]+ "description": "The items to display in the custom section. Items follow the schema of the section type."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "id",+ "type",+ "items"+ ]+ },+ {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."},- {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "id": {- "type": "string",- "description": "The unique identifier for the custom section. Usually generated as a UUID."- },- "type": {- "const": "profiles",- "description": "The type of items this custom section contains. Determines which item schema and form fields to use."- },- "items": {- "type": "array",- "items": {- "type": "object",- "properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "icon": {- "type": "string",- "description": "The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."- },- "iconColor": {- "type": "string",- "description": "Custom color for the icon, defined as rgba(r, g, b, a). Leave blank to use the template default icon color."- },- "network": {- "type": "string",- "minLength": 1,- "description": "The name of the network or platform."- },- "username": {- "type": "string",- "description": "The username of the author on the network or platform."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- },- "inlineLink": {- "type": "boolean",- "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."- }- },- "required": [- "url",- "label",- "inlineLink"- ],- "description": "The link to the profile of the author on the network or platform, if any."- }- },- "required": [- "id",- "hidden",- "icon",- "iconColor",- "network",- "username",- "website"- ],- "additionalProperties": {}+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "id": {+ "type": "string",+ "description": "The unique identifier for the custom section. Usually generated as a UUID."+ },+ "type": {+ "const": "summary",+ "description": "The type of items this custom section contains. Determines which item schema and form fields to use."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."},- "description": "The items to display in the custom section. Items follow the schema of the section type."- }+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "content": {+ "type": "string",+ "description": "The rich text content of the summary item. This should be a HTML-formatted string."+ }+ },+ "required": [+ "id",+ "hidden",+ "content"+ ],+ "additionalProperties": {}},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "id",- "type",- "items"- ]+ "description": "The items to display in the custom section. Items follow the schema of the section type."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "id",+ "type",+ "items"+ ]+ },+ {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."},- {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "id": {- "type": "string",- "description": "The unique identifier for the custom section. Usually generated as a UUID."- },- "type": {- "const": "experience",- "description": "The type of items this custom section contains. Determines which item schema and form fields to use."- },- "items": {- "type": "array",- "items": {+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "id": {+ "type": "string",+ "description": "The unique identifier for the custom section. Usually generated as a UUID."+ },+ "type": {+ "const": "profiles",+ "description": "The type of items this custom section contains. Determines which item schema and form fields to use."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "icon": {+ "type": "string",+ "description": "The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."+ },+ "iconColor": {+ "type": "string",+ "description": "Custom color for the icon, defined as rgba(r, g, b, a). Leave blank to use the template default icon color."+ },+ "network": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the network or platform."+ },+ "username": {+ "type": "string",+ "description": "The username of the author on the network or platform."+ },+ "website": {"type": "object","properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "company": {- "type": "string",- "minLength": 1,- "description": "The name of the company or organization."- },- "position": {- "type": "string",- "description": "The position held at the company or organization. Used when there is only a single role. If multiple roles are provided in the 'roles' field, this serves as a summary title or can be left blank."- },- "location": {- "type": "string",- "description": "The location of the company or organization."- },- "period": {+ "url": {"type": "string",- "description": "The overall period of time at the company. When multiple roles are used, this should reflect the total tenure."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- },- "inlineLink": {- "type": "boolean",- "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."- }- },- "required": [- "url",- "label",- "inlineLink"- ],- "description": "The website of the company or organization, if any."+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},- "description": {+ "label": {"type": "string",- "description": "The description of the experience. This should be a HTML-formatted string."+ "description": "The label to display for the URL. Leave blank to display the URL as-is."},- "roles": {- "type": "array",- "items": {- "type": "object",- "properties": {- "id": {- "type": "string",- "description": "The unique identifier for the role. Usually generated as a UUID."- },- "position": {- "type": "string",- "description": "The position or job title for this role."- },- "period": {- "type": "string",- "description": "The period of time this role was held."- },- "description": {- "type": "string",- "description": "The description of this specific role. This should be a HTML-formatted string."- }- },- "required": [- "id",- "position",- "period",- "description"- ]- },- "description": "List of individual roles held at this company to show career progression."+ "inlineLink": {+ "type": "boolean",+ "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required": [- "id",- "hidden",- "company",- "position",- "location",- "period",- "website",- "description",- "roles"+ "url",+ "label",+ "inlineLink"],- "additionalProperties": {}- },- "description": "The items to display in the custom section. Items follow the schema of the section type."- }+ "description": "The link to the profile of the author on the network or platform, if any."+ }+ },+ "required": [+ "id",+ "hidden",+ "icon",+ "iconColor",+ "network",+ "username",+ "website"+ ],+ "additionalProperties": {}},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "id",- "type",- "items"- ]+ "description": "The items to display in the custom section. Items follow the schema of the section type."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "id",+ "type",+ "items"+ ]+ },+ {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."},- {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "id": {- "type": "string",- "description": "The unique identifier for the custom section. Usually generated as a UUID."- },- "type": {- "const": "education",- "description": "The type of items this custom section contains. Determines which item schema and form fields to use."- },- "items": {- "type": "array",- "items": {+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "id": {+ "type": "string",+ "description": "The unique identifier for the custom section. Usually generated as a UUID."+ },+ "type": {+ "const": "experience",+ "description": "The type of items this custom section contains. Determines which item schema and form fields to use."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "company": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the company or organization."+ },+ "position": {+ "type": "string",+ "description": "The position held at the company or organization. Used when there is only a single role. If multiple roles are provided in the 'roles' field, this serves as a summary title or can be left blank."+ },+ "location": {+ "type": "string",+ "description": "The location of the company or organization."+ },+ "period": {+ "type": "string",+ "description": "The overall period of time at the company. When multiple roles are used, this should reflect the total tenure."+ },+ "website": {"type": "object","properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "school": {- "type": "string",- "minLength": 1,- "description": "The name of the school or institution."- },- "degree": {- "type": "string",- "description": "The degree or qualification obtained."- },- "area": {- "type": "string",- "description": "The area of study or specialization."- },- "grade": {- "type": "string",- "description": "The grade or score achieved."- },- "location": {+ "url": {"type": "string",- "description": "The location of the school or institution."+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},- "period": {+ "label": {"type": "string",- "description": "The period of time the education was obtained over."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- },- "inlineLink": {- "type": "boolean",- "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."- }- },- "required": [- "url",- "label",- "inlineLink"- ],- "description": "The website of the school or institution, if any."+ "description": "The label to display for the URL. Leave blank to display the URL as-is."},- "description": {- "type": "string",- "description": "The description of the education. This should be a HTML-formatted string."+ "inlineLink": {+ "type": "boolean",+ "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required": [- "id",- "hidden",- "school",- "degree",- "area",- "grade",- "location",- "period",- "website",- "description"+ "url",+ "label",+ "inlineLink"],- "additionalProperties": {}+ "description": "The website of the company or organization, if any."},- "description": "The items to display in the custom section. Items follow the schema of the section type."- }+ "description": {+ "type": "string",+ "description": "The description of the experience. This should be a HTML-formatted string."+ },+ "roles": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the role. Usually generated as a UUID."+ },+ "position": {+ "type": "string",+ "description": "The position or job title for this role."+ },+ "period": {+ "type": "string",+ "description": "The period of time this role was held."+ },+ "description": {+ "type": "string",+ "description": "The description of this specific role. This should be a HTML-formatted string."+ }+ },+ "required": [+ "id",+ "position",+ "period",+ "description"+ ]+ },+ "description": "List of individual roles held at this company to show career progression."+ }+ },+ "required": [+ "id",+ "hidden",+ "company",+ "position",+ "location",+ "period",+ "website",+ "description",+ "roles"+ ],+ "additionalProperties": {}},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "id",- "type",- "items"- ]+ "description": "The items to display in the custom section. Items follow the schema of the section type."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "id",+ "type",+ "items"+ ]+ },+ {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."},- {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "id": {- "type": "string",- "description": "The unique identifier for the custom section. Usually generated as a UUID."- },- "type": {- "const": "projects",- "description": "The type of items this custom section contains. Determines which item schema and form fields to use."- },- "items": {- "type": "array",- "items": {+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "id": {+ "type": "string",+ "description": "The unique identifier for the custom section. Usually generated as a UUID."+ },+ "type": {+ "const": "education",+ "description": "The type of items this custom section contains. Determines which item schema and form fields to use."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "school": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the school or institution."+ },+ "degree": {+ "type": "string",+ "description": "The degree or qualification obtained."+ },+ "area": {+ "type": "string",+ "description": "The area of study or specialization."+ },+ "grade": {+ "type": "string",+ "description": "The grade or score achieved."+ },+ "location": {+ "type": "string",+ "description": "The location of the school or institution."+ },+ "period": {+ "type": "string",+ "description": "The period of time the education was obtained over."+ },+ "website": {"type": "object","properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "name": {+ "url": {"type": "string",- "minLength": 1,- "description": "The name of the project."+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},- "period": {+ "label": {"type": "string",- "description": "The period of time the project was worked on."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- },- "inlineLink": {- "type": "boolean",- "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."- }- },- "required": [- "url",- "label",- "inlineLink"- ],- "description": "The link to the project, if any."+ "description": "The label to display for the URL. Leave blank to display the URL as-is."},- "description": {- "type": "string",- "description": "The description of the project. This should be a HTML-formatted string."+ "inlineLink": {+ "type": "boolean",+ "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required": [- "id",- "hidden",- "name",- "period",- "website",- "description"+ "url",+ "label",+ "inlineLink"],- "additionalProperties": {}+ "description": "The website of the school or institution, if any."},- "description": "The items to display in the custom section. Items follow the schema of the section type."- }+ "description": {+ "type": "string",+ "description": "The description of the education. This should be a HTML-formatted string."+ }+ },+ "required": [+ "id",+ "hidden",+ "school",+ "degree",+ "area",+ "grade",+ "location",+ "period",+ "website",+ "description"+ ],+ "additionalProperties": {}},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "id",- "type",- "items"- ]+ "description": "The items to display in the custom section. Items follow the schema of the section type."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "id",+ "type",+ "items"+ ]+ },+ {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."},- {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "id": {- "type": "string",- "description": "The unique identifier for the custom section. Usually generated as a UUID."- },- "type": {- "const": "skills",- "description": "The type of items this custom section contains. Determines which item schema and form fields to use."- },- "items": {- "type": "array",- "items": {+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "id": {+ "type": "string",+ "description": "The unique identifier for the custom section. Usually generated as a UUID."+ },+ "type": {+ "const": "projects",+ "description": "The type of items this custom section contains. Determines which item schema and form fields to use."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "name": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the project."+ },+ "period": {+ "type": "string",+ "description": "The period of time the project was worked on."+ },+ "website": {"type": "object","properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "icon": {- "type": "string",- "description": "The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."- },- "iconColor": {- "type": "string",- "description": "Custom color for the icon, defined as rgba(r, g, b, a). Leave blank to use the template default icon color."- },- "name": {+ "url": {"type": "string",- "minLength": 1,- "description": "The name of the skill."+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},- "proficiency": {+ "label": {"type": "string",- "description": "The proficiency level of the skill. Can be any text, such as 'Beginner', 'Intermediate', 'Advanced', etc."- },- "level": {- "type": "number",- "minimum": 0,- "maximum": 5,- "description": "The proficiency level of the skill, defined as a number between 0 and 5. If set to 0, the icons displaying the level will be hidden."+ "description": "The label to display for the URL. Leave blank to display the URL as-is."},- "keywords": {- "type": "array",- "items": {- "type": "string"- },- "description": "The keywords associated with the skill, if any. These are displayed as tags below the name."+ "inlineLink": {+ "type": "boolean",+ "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required": [- "id",- "hidden",- "icon",- "iconColor",- "name",- "proficiency",- "level",- "keywords"+ "url",+ "label",+ "inlineLink"],- "additionalProperties": {}+ "description": "The link to the project, if any."},- "description": "The items to display in the custom section. Items follow the schema of the section type."- }+ "description": {+ "type": "string",+ "description": "The description of the project. This should be a HTML-formatted string."+ }+ },+ "required": [+ "id",+ "hidden",+ "name",+ "period",+ "website",+ "description"+ ],+ "additionalProperties": {}+ },+ "description": "The items to display in the custom section. Items follow the schema of the section type."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "id",+ "type",+ "items"+ ]+ },+ {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."+ },+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "id": {+ "type": "string",+ "description": "The unique identifier for the custom section. Usually generated as a UUID."+ },+ "type": {+ "const": "skills",+ "description": "The type of items this custom section contains. Determines which item schema and form fields to use."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "icon": {+ "type": "string",+ "description": "The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."+ },+ "iconColor": {+ "type": "string",+ "description": "Custom color for the icon, defined as rgba(r, g, b, a). Leave blank to use the template default icon color."+ },+ "name": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the skill."+ },+ "proficiency": {+ "type": "string",+ "description": "The proficiency level of the skill. Can be any text, such as 'Beginner', 'Intermediate', 'Advanced', etc."+ },+ "level": {+ "type": "number",+ "minimum": 0,+ "maximum": 5,+ "description": "The proficiency level of the skill, defined as a number between 0 and 5. If set to 0, the icons displaying the level will be hidden."+ },+ "keywords": {+ "type": "array",+ "items": {+ "type": "string"+ },+ "description": "The keywords associated with the skill, if any. These are displayed as tags below the name."+ }+ },+ "required": [+ "id",+ "hidden",+ "icon",+ "iconColor",+ "name",+ "proficiency",+ "level",+ "keywords"+ ],+ "additionalProperties": {}+ },+ "description": "The items to display in the custom section. Items follow the schema of the section type."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "id",+ "type",+ "items"+ ]+ },+ {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."+ },+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "id": {+ "type": "string",+ "description": "The unique identifier for the custom section. Usually generated as a UUID."+ },+ "type": {+ "const": "languages",+ "description": "The type of items this custom section contains. Determines which item schema and form fields to use."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "language": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the language the author knows."+ },+ "fluency": {+ "type": "string",+ "description": "The fluency level of the language. Can be any text, such as 'Native', 'Fluent', 'Conversational', etc. or can also be a CEFR level (A1, A2, B1, B2, C1, C2)."+ },+ "level": {+ "type": "number",+ "minimum": 0,+ "maximum": 5,+ "description": "The proficiency level of the language, defined as a number between 0 and 5. If set to 0, the icons displaying the level will be hidden."+ }+ },+ "required": [+ "id",+ "hidden",+ "language",+ "fluency",+ "level"+ ],+ "additionalProperties": {}},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "id",- "type",- "items"- ]+ "description": "The items to display in the custom section. Items follow the schema of the section type."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "id",+ "type",+ "items"+ ]+ },+ {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."},- {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "id": {- "type": "string",- "description": "The unique identifier for the custom section. Usually generated as a UUID."- },- "type": {- "const": "languages",- "description": "The type of items this custom section contains. Determines which item schema and form fields to use."- },- "items": {- "type": "array",- "items": {- "type": "object",- "properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "language": {- "type": "string",- "minLength": 1,- "description": "The name of the language the author knows."- },- "fluency": {- "type": "string",- "description": "The fluency level of the language. Can be any text, such as 'Native', 'Fluent', 'Conversational', etc. or can also be a CEFR level (A1, A2, B1, B2, C1, C2)."- },- "level": {- "type": "number",- "minimum": 0,- "maximum": 5,- "description": "The proficiency level of the language, defined as a number between 0 and 5. If set to 0, the icons displaying the level will be hidden."- }- },- "required": [- "id",- "hidden",- "language",- "fluency",- "level"- ],- "additionalProperties": {}+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "id": {+ "type": "string",+ "description": "The unique identifier for the custom section. Usually generated as a UUID."+ },+ "type": {+ "const": "interests",+ "description": "The type of items this custom section contains. Determines which item schema and form fields to use."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."},- "description": "The items to display in the custom section. Items follow the schema of the section type."- }+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "icon": {+ "type": "string",+ "description": "The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."+ },+ "iconColor": {+ "type": "string",+ "description": "Custom color for the icon, defined as rgba(r, g, b, a). Leave blank to use the template default icon color."+ },+ "name": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the interest/hobby."+ },+ "keywords": {+ "type": "array",+ "items": {+ "type": "string"+ },+ "description": "The keywords associated with the interest/hobby, if any. These are displayed as tags below the name."+ }+ },+ "required": [+ "id",+ "hidden",+ "icon",+ "iconColor",+ "name",+ "keywords"+ ],+ "additionalProperties": {}},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "id",- "type",- "items"- ]+ "description": "The items to display in the custom section. Items follow the schema of the section type."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "id",+ "type",+ "items"+ ]+ },+ {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."},- {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "id": {- "type": "string",- "description": "The unique identifier for the custom section. Usually generated as a UUID."- },- "type": {- "const": "interests",- "description": "The type of items this custom section contains. Determines which item schema and form fields to use."- },- "items": {- "type": "array",- "items": {+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "id": {+ "type": "string",+ "description": "The unique identifier for the custom section. Usually generated as a UUID."+ },+ "type": {+ "const": "awards",+ "description": "The type of items this custom section contains. Determines which item schema and form fields to use."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "title": {+ "type": "string",+ "minLength": 1,+ "description": "The title of the award."+ },+ "awarder": {+ "type": "string",+ "description": "The awarder of the award."+ },+ "date": {+ "type": "string",+ "description": "The date when the award was received."+ },+ "website": {"type": "object",- "properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "icon": {- "type": "string",- "description": "The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."- },- "iconColor": {+ "properties": {+ "url": {"type": "string",- "description": "Custom color for the icon, defined as rgba(r, g, b, a). Leave blank to use the template default icon color."+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},- "name": {+ "label": {"type": "string",- "minLength": 1,- "description": "The name of the interest/hobby."+ "description": "The label to display for the URL. Leave blank to display the URL as-is."},- "keywords": {- "type": "array",- "items": {- "type": "string"- },- "description": "The keywords associated with the interest/hobby, if any. These are displayed as tags below the name."+ "inlineLink": {+ "type": "boolean",+ "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required": [- "id",- "hidden",- "icon",- "iconColor",- "name",- "keywords"+ "url",+ "label",+ "inlineLink"],- "additionalProperties": {}+ "description": "The website of the award, if any."},- "description": "The items to display in the custom section. Items follow the schema of the section type."- }+ "description": {+ "type": "string",+ "description": "The description of the award. This should be a HTML-formatted string."+ }+ },+ "required": [+ "id",+ "hidden",+ "title",+ "awarder",+ "date",+ "website",+ "description"+ ],+ "additionalProperties": {}},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "id",- "type",- "items"- ]+ "description": "The items to display in the custom section. Items follow the schema of the section type."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "id",+ "type",+ "items"+ ]+ },+ {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."},- {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "id": {- "type": "string",- "description": "The unique identifier for the custom section. Usually generated as a UUID."- },- "type": {- "const": "awards",- "description": "The type of items this custom section contains. Determines which item schema and form fields to use."- },- "items": {- "type": "array",- "items": {+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "id": {+ "type": "string",+ "description": "The unique identifier for the custom section. Usually generated as a UUID."+ },+ "type": {+ "const": "certifications",+ "description": "The type of items this custom section contains. Determines which item schema and form fields to use."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "title": {+ "type": "string",+ "minLength": 1,+ "description": "The title of the certification."+ },+ "issuer": {+ "type": "string",+ "description": "The issuer of the certification."+ },+ "date": {+ "type": "string",+ "description": "The date when the certification was received."+ },+ "website": {"type": "object","properties": {- "id": {+ "url": {"type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},- "title": {+ "label": {"type": "string",- "minLength": 1,- "description": "The title of the award."+ "description": "The label to display for the URL. Leave blank to display the URL as-is."},- "awarder": {+ "inlineLink": {+ "type": "boolean",+ "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."+ }+ },+ "required": [+ "url",+ "label",+ "inlineLink"+ ],+ "description": "The website of the certification, if any."+ },+ "description": {+ "type": "string",+ "description": "The description of the certification. This should be a HTML-formatted string."+ }+ },+ "required": [+ "id",+ "hidden",+ "title",+ "issuer",+ "date",+ "website",+ "description"+ ],+ "additionalProperties": {}+ },+ "description": "The items to display in the custom section. Items follow the schema of the section type."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "id",+ "type",+ "items"+ ]+ },+ {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."+ },+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "id": {+ "type": "string",+ "description": "The unique identifier for the custom section. Usually generated as a UUID."+ },+ "type": {+ "const": "publications",+ "description": "The type of items this custom section contains. Determines which item schema and form fields to use."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "title": {+ "type": "string",+ "minLength": 1,+ "description": "The title of the publication."+ },+ "publisher": {+ "type": "string",+ "description": "The publisher of the publication."+ },+ "date": {+ "type": "string",+ "description": "The date when the publication was published."+ },+ "website": {+ "type": "object",+ "properties": {+ "url": {"type": "string",- "description": "The awarder of the award."+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},- "date": {+ "label": {"type": "string",- "description": "The date when the award was received."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- },- "inlineLink": {- "type": "boolean",- "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."- }- },- "required": [- "url",- "label",- "inlineLink"- ],- "description": "The website of the award, if any."+ "description": "The label to display for the URL. Leave blank to display the URL as-is."},- "description": {- "type": "string",- "description": "The description of the award. This should be a HTML-formatted string."+ "inlineLink": {+ "type": "boolean",+ "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required": [- "id",- "hidden",- "title",- "awarder",- "date",- "website",- "description"+ "url",+ "label",+ "inlineLink"],- "additionalProperties": {}+ "description": "The link to the publication, if any."},- "description": "The items to display in the custom section. Items follow the schema of the section type."- }+ "description": {+ "type": "string",+ "description": "The description of the publication. This should be a HTML-formatted string."+ }+ },+ "required": [+ "id",+ "hidden",+ "title",+ "publisher",+ "date",+ "website",+ "description"+ ],+ "additionalProperties": {}},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "id",- "type",- "items"- ]+ "description": "The items to display in the custom section. Items follow the schema of the section type."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "id",+ "type",+ "items"+ ]+ },+ {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."},- {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "id": {- "type": "string",- "description": "The unique identifier for the custom section. Usually generated as a UUID."- },- "type": {- "const": "certifications",- "description": "The type of items this custom section contains. Determines which item schema and form fields to use."- },- "items": {- "type": "array",- "items": {+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "id": {+ "type": "string",+ "description": "The unique identifier for the custom section. Usually generated as a UUID."+ },+ "type": {+ "const": "volunteer",+ "description": "The type of items this custom section contains. Determines which item schema and form fields to use."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "organization": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the organization or company."+ },+ "location": {+ "type": "string",+ "description": "The location of the organization or company."+ },+ "period": {+ "type": "string",+ "description": "The period of time the author was volunteered at the organization or company."+ },+ "website": {"type": "object","properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "title": {- "type": "string",- "minLength": 1,- "description": "The title of the certification."- },- "issuer": {+ "url": {"type": "string",- "description": "The issuer of the certification."+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},- "date": {+ "label": {"type": "string",- "description": "The date when the certification was received."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- },- "inlineLink": {- "type": "boolean",- "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."- }- },- "required": [- "url",- "label",- "inlineLink"- ],- "description": "The website of the certification, if any."+ "description": "The label to display for the URL. Leave blank to display the URL as-is."},- "description": {- "type": "string",- "description": "The description of the certification. This should be a HTML-formatted string."+ "inlineLink": {+ "type": "boolean",+ "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required": [- "id",- "hidden",- "title",- "issuer",- "date",- "website",- "description"+ "url",+ "label",+ "inlineLink"],- "additionalProperties": {}+ "description": "The link to the organization or company, if any."},- "description": "The items to display in the custom section. Items follow the schema of the section type."- }+ "description": {+ "type": "string",+ "description": "The description of the volunteer experience. This should be a HTML-formatted string."+ }+ },+ "required": [+ "id",+ "hidden",+ "organization",+ "location",+ "period",+ "website",+ "description"+ ],+ "additionalProperties": {}},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "id",- "type",- "items"- ]+ "description": "The items to display in the custom section. Items follow the schema of the section type."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "id",+ "type",+ "items"+ ]+ },+ {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "description": "The title of the section."},- {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "id": {- "type": "string",- "description": "The unique identifier for the custom section. Usually generated as a UUID."- },- "type": {- "const": "publications",- "description": "The type of items this custom section contains. Determines which item schema and form fields to use."- },- "items": {- "type": "array",- "items": {+ "icon": {+ "type": "string",+ "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."+ },+ "columns": {+ "type": "integer",+ "minimum": 1,+ "maximum": 6,+ "description": "The number of columns the section should span across."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the section from the resume."+ },+ "keepTogether": {+ "type": "boolean",+ "description": "If true, the section is kept on a single page instead of splitting across a page break."+ },+ "startOnNewPage": {+ "type": "boolean",+ "description": "If true, the section always begins on a new page."+ },+ "id": {+ "type": "string",+ "description": "The unique identifier for the custom section. Usually generated as a UUID."+ },+ "type": {+ "const": "references",+ "description": "The type of items this custom section contains. Determines which item schema and form fields to use."+ },+ "items": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "description": "The unique identifier for the item. Usually generated as a UUID."+ },+ "hidden": {+ "type": "boolean",+ "description": "Whether to hide the item from the resume."+ },+ "name": {+ "type": "string",+ "minLength": 1,+ "description": "The name of the reference, or a note such as 'Available upon request'."+ },+ "position": {+ "type": "string",+ "description": "The position or job title of the reference."+ },+ "website": {"type": "object","properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "title": {- "type": "string",- "minLength": 1,- "description": "The title of the publication."- },- "publisher": {+ "url": {"type": "string",- "description": "The publisher of the publication."+ "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},- "date": {+ "label": {"type": "string",- "description": "The date when the publication was published."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- },- "inlineLink": {- "type": "boolean",- "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."- }- },- "required": [- "url",- "label",- "inlineLink"- ],- "description": "The link to the publication, if any."+ "description": "The label to display for the URL. Leave blank to display the URL as-is."},- "description": {- "type": "string",- "description": "The description of the publication. This should be a HTML-formatted string."+ "inlineLink": {+ "type": "boolean",+ "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required": [- "id",- "hidden",- "title",- "publisher",- "date",- "website",- "description"+ "url",+ "label",+ "inlineLink"],- "additionalProperties": {}+ "description": "The website or LinkedIn profile of the reference, if any."},- "description": "The items to display in the custom section. Items follow the schema of the section type."- }+ "phone": {+ "type": "string",+ "description": "The phone number of the reference."+ },+ "description": {+ "type": "string",+ "description": "The description of the reference. Can be used to display a quote, a testimonial, etc. This should be a HTML-formatted string."+ }+ },+ "required": [+ "id",+ "hidden",+ "name",+ "position",+ "website",+ "phone",+ "description"+ ],+ "additionalProperties": {}},- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "id",- "type",- "items"- ]- },- {+ "description": "The items to display in the custom section. Items follow the schema of the section type."+ }+ },+ "required": [+ "title",+ "icon",+ "columns",+ "hidden",+ "keepTogether",+ "startOnNewPage",+ "id",+ "type",+ "items"+ ]+ }+ ]+ },+ "description": "Custom sections of the resume, such as a custom section for notes, etc."+ },+ "metadata": {+ "type": "object",+ "properties": {+ "template": {+ "enum": [+ "azurill",+ "bronzor",+ "chikorita",+ "ditgar",+ "ditto",+ "gengar",+ "glalie",+ "kakuna",+ "lapras",+ "leafish",+ "meowth",+ "onyx",+ "pikachu",+ "rhyhorn",+ "scizor"+ ],+ "type": "string",+ "description": "The template to use for the resume. Determines the overall design and appearance of the resume."+ },+ "layout": {+ "type": "object",+ "properties": {+ "sidebarWidth": {+ "type": "number",+ "minimum": 10,+ "maximum": 50,+ "description": "The width of the sidebar column, defined as a percentage of the page width."+ },+ "pages": {+ "type": "array",+ "items": {"type": "object","properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {+ "fullWidth": {"type": "boolean",- "description": "If true, the section always begins on a new page."- },- "id": {- "type": "string",- "description": "The unique identifier for the custom section. Usually generated as a UUID."- },- "type": {- "const": "volunteer",- "description": "The type of items this custom section contains. Determines which item schema and form fields to use."+ "description": "Whether the layout of the page should be full width. If true, the main column will span the entire width of the page. This means that there should be no items in the sidebar column."},- "items": {+ "main": {"type": "array","items": {- "type": "object",- "properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "organization": {- "type": "string",- "minLength": 1,- "description": "The name of the organization or company."- },- "location": {- "type": "string",- "description": "The location of the organization or company."- },- "period": {- "type": "string",- "description": "The period of time the author was volunteered at the organization or company."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- },- "inlineLink": {- "type": "boolean",- "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."- }- },- "required": [- "url",- "label",- "inlineLink"- ],- "description": "The link to the organization or company, if any."- },- "description": {- "type": "string",- "description": "The description of the volunteer experience. This should be a HTML-formatted string."- }- },- "required": [- "id",- "hidden",- "organization",- "location",- "period",- "website",- "description"- ],- "additionalProperties": {}+ "type": "string"},- "description": "The items to display in the custom section. Items follow the schema of the section type."- }- },- "required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "id",- "type",- "items"- ]- },- {- "type": "object",- "properties": {- "title": {- "type": "string",- "description": "The title of the section."- },- "icon": {- "type": "string",- "description": "Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."- },- "columns": {- "type": "integer",- "minimum": 1,- "maximum": 6,- "description": "The number of columns the section should span across."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the section from the resume."- },- "keepTogether": {- "type": "boolean",- "description": "If true, the section is kept on a single page instead of splitting across a page break."- },- "startOnNewPage": {- "type": "boolean",- "description": "If true, the section always begins on a new page."- },- "id": {- "type": "string",- "description": "The unique identifier for the custom section. Usually generated as a UUID."- },- "type": {- "const": "references",- "description": "The type of items this custom section contains. Determines which item schema and form fields to use."+ "description": "The items to display in the main column of the page. A string array of section IDs (experience, education, projects, skills, languages, interests, awards, certifications, publications, volunteer, references, profiles, summary or UUIDs for custom sections)."},- "items": {+ "sidebar": {"type": "array","items": {- "type": "object",- "properties": {- "id": {- "type": "string",- "description": "The unique identifier for the item. Usually generated as a UUID."- },- "hidden": {- "type": "boolean",- "description": "Whether to hide the item from the resume."- },- "name": {- "type": "string",- "minLength": 1,- "description": "The name of the reference, or a note such as 'Available upon request'."- },- "position": {- "type": "string",- "description": "The position or job title of the reference."- },- "website": {- "type": "object",- "properties": {- "url": {- "type": "string",- "description": "The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."- },- "label": {- "type": "string",- "description": "The label to display for the URL. Leave blank to display the URL as-is."- },- "inlineLink": {- "type": "boolean",- "description": "If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."- }- },- "required": [- "url",- "label",- "inlineLink"- ],- "description": "The website or LinkedIn profile of the reference, if any."- },- "phone": {- "type": "string",- "description": "The phone number of the reference."- },- "description": {- "type": "string",- "description": "The description of the reference. Can be used to display a quote, a testimonial, etc. This should be a HTML-formatted string."- }- },- "required": [- "id",- "hidden",- "name",- "position",- "website",- "phone",- "description"- ],- "additionalProperties": {}+ "type": "string"},- "description": "The items to display in the custom section. Items follow the schema of the section type."+ "description": "The items to display in the sidebar column of the page. A string array of section IDs (experience, education, projects, skills, languages, interests, awards, certifications, publications, volunteer, references, profiles, summary or UUIDs for custom sections)."}},"required": [- "title",- "icon",- "columns",- "hidden",- "keepTogether",- "startOnNewPage",- "id",- "type",- "items"+ "fullWidth",+ "main",+ "sidebar"]- }- ]+ },+ "description": "The pages to display in the layout."+ }},- "description": "Custom sections of the resume, such as a custom section for notes, etc."+ "required": [+ "sidebarWidth",+ "pages"+ ],+ "description": "The layout of the resume. Determines the structure and arrangement of the sections on the resume."},- "metadata": {+ "page": {"type": "object","properties": {- "template": {+ "gapX": {+ "type": "number",+ "minimum": 0,+ "description": "The horizontal gap between the sections of the page, defined in points (pt)."+ },+ "gapY": {+ "type": "number",+ "minimum": 0,+ "description": "The vertical gap between the sections of the page, defined in points (pt)."+ },+ "marginX": {+ "type": "number",+ "minimum": 0,+ "maximum": 100,+ "description": "The horizontal margin of the page, defined in points (pt)."+ },+ "marginY": {+ "type": "number",+ "minimum": 0,+ "maximum": 100,+ "description": "The vertical margin of the page, defined in points (pt)."+ },+ "format": {"enum": [- "azurill",- "bronzor",- "chikorita",- "ditgar",- "ditto",- "gengar",- "glalie",- "kakuna",- "lapras",- "leafish",- "meowth",- "onyx",- "pikachu",- "rhyhorn",- "scizor"+ "a4",+ "letter",+ "free-form"],"type": "string",- "description": "The template to use for the resume. Determines the overall design and appearance of the resume."+ "description": "The format of the page. Can be 'a4', 'letter', or 'free-form'."},- "layout": {- "type": "object",- "properties": {- "sidebarWidth": {- "type": "number",- "minimum": 10,- "maximum": 50,- "description": "The width of the sidebar column, defined as a percentage of the page width."- },- "pages": {- "type": "array",- "items": {- "type": "object",- "properties": {- "fullWidth": {- "type": "boolean",- "description": "Whether the layout of the page should be full width. If true, the main column will span the entire width of the page. This means that there should be no items in the sidebar column."- },- "main": {- "type": "array",- "items": {- "type": "string"- },- "description": "The items to display in the main column of the page. A string array of section IDs (experience, education, projects, skills, languages, interests, awards, certifications, publications, volunteer, references, profiles, summary or UUIDs for custom sections)."- },- "sidebar": {- "type": "array",- "items": {- "type": "string"- },- "description": "The items to display in the sidebar column of the page. A string array of section IDs (experience, education, projects, skills, languages, interests, awards, certifications, publications, volunteer, references, profiles, summary or UUIDs for custom sections)."- }- },- "required": [- "fullWidth",- "main",- "sidebar"- ]- },- "description": "The pages to display in the layout."- }- },- "required": [- "sidebarWidth",- "pages"- ],- "description": "The layout of the resume. Determines the structure and arrangement of the sections on the resume."+ "locale": {+ "type": "string",+ "description": "The locale of the page. Used for displaying pre-translated section headings, if not overridden."+ },+ "hideLinkUnderline": {+ "type": "boolean",+ "description": "Whether to hide the underlines of the links."},- "page": {+ "hideIcons": {+ "type": "boolean",+ "description": "Whether to hide the item-level icons (skills, profiles, interests)."+ },+ "hideSectionIcons": {+ "type": "boolean",+ "description": "Whether to hide the section heading icons displayed before section titles."+ }+ },+ "required": [+ "gapX",+ "gapY",+ "marginX",+ "marginY",+ "format",+ "locale",+ "hideLinkUnderline",+ "hideIcons",+ "hideSectionIcons"+ ],+ "description": "The page settings of the resume. Determines the margins, format, and locale of the resume."+ },+ "design": {+ "type": "object",+ "properties": {+ "level": {"type": "object","properties": {- "gapX": {- "type": "number",- "minimum": 0,- "description": "The horizontal gap between the sections of the page, defined in points (pt)."- },- "gapY": {- "type": "number",- "minimum": 0,- "description": "The vertical gap between the sections of the page, defined in points (pt)."- },- "marginX": {- "type": "number",- "minimum": 0,- "maximum": 100,- "description": "The horizontal margin of the page, defined in points (pt)."- },- "marginY": {- "type": "number",- "minimum": 0,- "maximum": 100,- "description": "The vertical margin of the page, defined in points (pt)."+ "icon": {+ "type": "string",+ "description": "The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."},- "format": {+ "type": {"enum": [- "a4",- "letter",- "free-form"+ "hidden",+ "circle",+ "square",+ "rectangle",+ "rectangle-full",+ "progress-bar",+ "icon"],"type": "string",- "description": "The format of the page. Can be 'a4', 'letter', or 'free-form'."- },- "locale": {- "type": "string",- "description": "The locale of the page. Used for displaying pre-translated section headings, if not overridden."- },- "hideLinkUnderline": {- "type": "boolean",- "description": "Whether to hide the underlines of the links."- },- "hideIcons": {- "type": "boolean",- "description": "Whether to hide the item-level icons (skills, profiles, interests)."- },- "hideSectionIcons": {- "type": "boolean",- "description": "Whether to hide the section heading icons displayed before section titles."+ "description": "The type of the level design. 'hidden' will hide the level design, 'circle' will display a circle, 'square' will display a square, 'rectangle' will display a rectangle, 'rectangle-full' will display a full rectangle, 'progress-bar' will display a progress bar, and 'icon' will display an icon. If 'icon' is selected, the icon to display should be specified in the 'icon' field."}},"required": [- "gapX",- "gapY",- "marginX",- "marginY",- "format",- "locale",- "hideLinkUnderline",- "hideIcons",- "hideSectionIcons"- ],- "description": "The page settings of the resume. Determines the margins, format, and locale of the resume."+ "icon",+ "type"+ ]},- "design": {+ "colors": {"type": "object","properties": {- "level": {- "type": "object",- "properties": {- "icon": {- "type": "string",- "description": "The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."- },- "type": {- "enum": [- "hidden",- "circle",- "square",- "rectangle",- "rectangle-full",- "progress-bar",- "icon"- ],- "type": "string",- "description": "The type of the level design. 'hidden' will hide the level design, 'circle' will display a circle, 'square' will display a square, 'rectangle' will display a rectangle, 'rectangle-full' will display a full rectangle, 'progress-bar' will display a progress bar, and 'icon' will display an icon. If 'icon' is selected, the icon to display should be specified in the 'icon' field."- }- },- "required": [- "icon",- "type"- ]+ "primary": {+ "type": "string",+ "description": "The primary color of the design, defined as rgba(r, g, b, a)."},- "colors": {- "type": "object",- "properties": {- "primary": {- "type": "string",- "description": "The primary color of the design, defined as rgba(r, g, b, a)."- },- "text": {- "type": "string",- "description": "The text color of the design, defined as rgba(r, g, b, a). Usually set to black: rgba(0, 0, 0, 1)."- },- "background": {- "type": "string",- "description": "The background color of the design, defined as rgba(r, g, b, a). Usually set to white: rgba(255, 255, 255, 1)."- }- },- "required": [- "primary",- "text",- "background"- ]+ "text": {+ "type": "string",+ "description": "The text color of the design, defined as rgba(r, g, b, a). Usually set to black: rgba(0, 0, 0, 1)."+ },+ "background": {+ "type": "string",+ "description": "The background color of the design, defined as rgba(r, g, b, a). Usually set to white: rgba(255, 255, 255, 1)."}},"required": [- "level",- "colors"- ],- "description": "The design settings of the resume. Determines the colors, level designs, and typography of the resume."- },- "typography": {+ "primary",+ "text",+ "background"+ ]+ }+ },+ "required": [+ "level",+ "colors"+ ],+ "description": "The design settings of the resume. Determines the colors, level designs, and typography of the resume."+ },+ "typography": {+ "type": "object",+ "properties": {+ "body": {"type": "object","properties": {- "body": {- "type": "object",- "properties": {- "fontFamily": {- "type": "string",- "description": "The family of the font to use. Must be a supported resume font."- },- "fontWeights": {- "type": "array",- "items": {- "enum": [- "100",- "200",- "300",- "400",- "500",- "600",- "700",- "800",- "900"- ],- "type": "string"- },- "description": "The weight of the font, defined as a number between 100 and 900. Default to 400 when unsure if the weight is available in the font."- },- "fontSize": {- "type": "number",- "minimum": 6,- "maximum": 24,- "description": "The size of the font to use, defined in points (pt)."- },- "lineHeight": {- "type": "number",- "minimum": 0.5,- "maximum": 4,- "description": "The line height of the font to use, defined as a multiplier of the font size (e.g. 1.5 for 1.5x)."- }- },- "required": [- "fontFamily",- "fontWeights",- "fontSize",- "lineHeight"- ],- "description": "The typography for the body of the resume."+ "fontFamily": {+ "type": "string",+ "description": "The family of the font to use. Must be a supported resume font."},- "heading": {- "type": "object",- "properties": {- "fontFamily": {- "type": "string",- "description": "The family of the font to use. Must be a supported resume font."- },- "fontWeights": {- "type": "array",- "items": {- "enum": [- "100",- "200",- "300",- "400",- "500",- "600",- "700",- "800",- "900"- ],- "type": "string"- },- "description": "The weight of the font, defined as a number between 100 and 900. Default to 400 when unsure if the weight is available in the font."- },- "fontSize": {- "type": "number",- "minimum": 6,- "maximum": 24,- "description": "The size of the font to use, defined in points (pt)."- },- "lineHeight": {- "type": "number",- "minimum": 0.5,- "maximum": 4,- "description": "The line height of the font to use, defined as a multiplier of the font size (e.g. 1.5 for 1.5x)."- }+ "fontWeights": {+ "type": "array",+ "items": {+ "enum": [+ "100",+ "200",+ "300",+ "400",+ "500",+ "600",+ "700",+ "800",+ "900"+ ],+ "type": "string"},- "required": [- "fontFamily",- "fontWeights",- "fontSize",- "lineHeight"- ],- "description": "The typography for the headings of the resume."+ "description": "The weight of the font, defined as a number between 100 and 900. Default to 400 when unsure if the weight is available in the font."+ },+ "fontSize": {+ "type": "number",+ "minimum": 6,+ "maximum": 24,+ "description": "The size of the font to use, defined in points (pt)."+ },+ "lineHeight": {+ "type": "number",+ "minimum": 0.5,+ "maximum": 4,+ "description": "The line height of the font to use, defined as a multiplier of the font size (e.g. 1.5 for 1.5x)."}},"required": [- "body",- "heading"+ "fontFamily",+ "fontWeights",+ "fontSize",+ "lineHeight"],- "description": "The typography settings of the resume. Determines the fonts and sizes of the body and headings of the resume."- },- "notes": {- "type": "string",- "description": "Personal notes for the resume. Can be used to add any additional information or instructions for the resume. These notes are not displayed on the resume, they are only visible to the author of the resume when editing the resume. This should be a HTML-formatted string."- },- "styleRules": {- "description": "Structured style rules that target semantic resume sections and slots for React PDF rendering."+ "description": "The typography for the body of the resume."},- "stylesheet": {+ "heading": {"type": "object","properties": {- "mode": {- "enum": [- "legacy",- "semantic"- ],- "type": "string"+ "fontFamily": {+ "type": "string",+ "description": "The family of the font to use. Must be a supported resume font."},- "source": {- "type": "object",- "properties": {- "languageVersion": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "text": {- "type": "string"- }+ "fontWeights": {+ "type": "array",+ "items": {+ "enum": [+ "100",+ "200",+ "300",+ "400",+ "500",+ "600",+ "700",+ "800",+ "900"+ ],+ "type": "string"},- "required": [- "languageVersion",- "text"- ],- "additionalProperties": false+ "description": "The weight of the font, defined as a number between 100 and 900. Default to 400 when unsure if the weight is available in the font."},- "applied": {- "type": "object",- "properties": {- "languageVersion": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "text": {- "type": "string"- }- },- "required": [- "languageVersion",- "text"- ],- "additionalProperties": false+ "fontSize": {+ "type": "number",+ "minimum": 6,+ "maximum": 24,+ "description": "The size of the font to use, defined in points (pt)."+ },+ "lineHeight": {+ "type": "number",+ "minimum": 0.5,+ "maximum": 4,+ "description": "The line height of the font to use, defined as a multiplier of the font size (e.g. 1.5 for 1.5x)."}},"required": [- "mode",- "source",- "applied"+ "fontFamily",+ "fontWeights",+ "fontSize",+ "lineHeight"],- "additionalProperties": false+ "description": "The typography for the headings of the resume."}},"required": [- "template",- "layout",- "page",- "design",- "typography",- "notes"- ],- "description": "Metadata for the resume, such as template, layout, typography, etc. This section describes the overall design and appearance of the resume."- }- },- "required": [- "picture",- "basics",- "summary",- "sections",- "customSections",- "metadata"- ],- "additionalProperties": {}- },- "updatedAt": {- "type": "string",- "format": "date-time",- "x-native-type": "date",- "description": "The date and time the resume was last updated."- },- "hasPassword": {- "type": "boolean"- }- },- "required": [- "id",- "name",- "slug",- "tags",- "isPublic",- "isLocked",- "data",- "updatedAt",- "hasPassword"- ]- },- "stylesheetState": {- "type": "object",- "properties": {- "stylesheet": {- "type": "object",- "properties": {- "mode": {- "enum": [- "legacy",- "semantic"+ "body",+ "heading"],- "type": "string"+ "description": "The typography settings of the resume. Determines the fonts and sizes of the body and headings of the resume."},- "source": {- "type": "object",- "properties": {- "languageVersion": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "text": {- "type": "string"- }- },- "required": [- "languageVersion",- "text"- ],- "additionalProperties": false+ "notes": {+ "type": "string",+ "description": "Personal notes for the resume. Can be used to add any additional information or instructions for the resume. These notes are not displayed on the resume, they are only visible to the author of the resume when editing the resume. This should be a HTML-formatted string."+ },+ "styleRules": {+ "description": "Structured style rules that target semantic resume sections and slots for React PDF rendering."},- "applied": {+ "stylesheet": {"type": "object","properties": {- "languageVersion": {- "type": "integer",- "minimum": -9007199254740991,- "maximum": 9007199254740991,- "exclusiveMinimum": 0- },- "text": {+ "mode": {+ "enum": [+ "legacy",+ "semantic"+ ],"type": "string"+ },+ "source": {+ "type": "object",+ "properties": {+ "languageVersion": {+ "type": "integer",+ "minimum": -9007199254740991,+ "maximum": 9007199254740991,+ "exclusiveMinimum": 0+ },+ "text": {+ "type": "string"+ }+ },+ "required": [+ "languageVersion",+ "text"+ ],+ "additionalProperties": false}},"required": [- "languageVersion",- "text"+ "mode",+ "source"],"additionalProperties": false}},"required": [- "mode",- "source",- "applied"+ "template",+ "layout",+ "page",+ "design",+ "typography",+ "notes"],- "additionalProperties": false- },- "revision": {- "type": "integer",- "minimum": 0,- "maximum": 9007199254740991- },- "renderDataVersion": {- "type": "integer",- "minimum": 0,- "maximum": 9007199254740991+ "description": "Metadata for the resume, such as template, layout, typography, etc. This section describes the overall design and appearance of the resume."}},"required": [- "stylesheet",- "revision",- "renderDataVersion"+ "picture",+ "basics",+ "summary",+ "sections",+ "customSections",+ "metadata"],- "additionalProperties": false- }- },- "required": [- "resume",- "stylesheetState"- ],- "additionalProperties": false- }- }- }- },- "400": {- "description": "400",- "content": {- "application/json": {- "schema": {- "oneOf": [- {- "type": "object",- "properties": {- "defined": {- "const": true- },- "code": {- "const": "STYLESHEET_VALIDATION_FAILED"- },- "status": {- "const": 400- },- "message": {- "type": "string",- "default": "The historical stylesheet failed validation."- },- "data": {}- },- "required": [- "defined",- "code",- "status",- "message"- ]+ "additionalProperties": {}},- {- "type": "object",- "properties": {- "defined": {- "const": false- },- "code": {- "type": "string"- },- "status": {- "type": "number"- },- "message": {- "type": "string"- },- "data": {}- },- "required": [- "defined",- "code",- "status",- "message"- ]- }- ]- }- }- }- },- "503": {- "description": "503",- "content": {- "application/json": {- "schema": {- "oneOf": [- {- "type": "object",- "properties": {- "defined": {- "const": true- },- "code": {- "const": "SEMANTIC_STYLESHEET_UNAVAILABLE"- },- "status": {- "const": 503- },- "message": {- "type": "string",- "default": "Semantic stylesheet PDF preflight is unavailable."- },- "data": {}- },- "required": [- "defined",- "code",- "status",- "message"- ]+ "updatedAt": {+ "type": "string",+ "format": "date-time",+ "x-native-type": "date",+ "description": "The date and time the resume was last updated."},- {- "type": "object",- "properties": {- "defined": {- "const": false- },- "code": {- "type": "string"- },- "status": {- "type": "number"- },- "message": {- "type": "string"- },- "data": {}- },- "required": [- "defined",- "code",- "status",- "message"- ]+ "hasPassword": {+ "type": "boolean"}+ },+ "required": [+ "id",+ "name",+ "slug",+ "tags",+ "isPublic",+ "isLocked",+ "data",+ "updatedAt",+ "hasPassword"]}}diff --git a/knip.json b/knip.jsonindex b6b17d863..932f6aaf6 100644--- a/knip.json+++ b/knip.json@@ -42,7 +42,6 @@"@uiw/color-convert","ai","bcrypt",- "canonicalize","cjk-regex","css-tree","deepmerge-ts",diff --git a/migrations/20260816110310_abandoned_demogoblin/migration.sql b/migrations/20260816110310_abandoned_demogoblin/migration.sqlnew file mode 100644index 000000000..b8ab5fd61--- /dev/null+++ b/migrations/20260816110310_abandoned_demogoblin/migration.sql@@ -0,0 +1,2 @@+ALTER TABLE "resume" DROP COLUMN "stylesheet_revision";--> statement-breakpoint+ALTER TABLE "resume" DROP COLUMN "render_data_version";\ No newline at end of filediff --git a/migrations/20260816110310_abandoned_demogoblin/snapshot.json b/migrations/20260816110310_abandoned_demogoblin/snapshot.jsonnew file mode 100644index 000000000..dedb63edb--- /dev/null+++ b/migrations/20260816110310_abandoned_demogoblin/snapshot.json@@ -0,0 +1,5558 @@+{+ "version": "8",+ "dialect": "postgres",+ "id": "104f8c76-4310-4cac-88ae-2cd5919b8114",+ "prevIds": ["8f58b12e-2f39-4d15-8543-1b5ba5d63cef"],+ "ddl": [+ {+ "isRlsEnabled": false,+ "name": "agent_actions",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "agent_attachments",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "agent_messages",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "agent_threads",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "ai_providers",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "application",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "account",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "apikey",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "jwks",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "oauth_access_token",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "oauth_client",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "oauth_consent",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "oauth_refresh_token",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "passkey",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "session",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "two_factor",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "user",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "verification",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "resume",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "resume_analysis",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "resume_statistics",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "resume_statistics_daily",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "resume_version",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "thread_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "message_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "kind",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'applied'",+ "generated": null,+ "identity": null,+ "name": "status",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "title",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "summary",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "operations",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "snapshot_data",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "base_updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "applied_updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reverted_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "revert_message",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "thread_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "message_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "storage_key",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "filename",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "media_type",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "size",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "thread_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "role",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'completed'",+ "generated": null,+ "identity": null,+ "name": "status",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "sequence",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ui_message",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "error",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ai_provider_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "source_resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "working_resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "title",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'active'",+ "generated": null,+ "identity": null,+ "name": "status",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "active_run_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "active_stream_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "active_run_started_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "last_message_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "archived_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "deleted_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "label",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "provider",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "model",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "base_url",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "encrypted_api_key",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "api_key_salt",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "api_key_hash",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "api_key_preview",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'untested'",+ "generated": null,+ "identity": null,+ "name": "test_status",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "test_error",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_tested_at",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_used_at",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "enabled",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "company",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "role",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "location",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "salary",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'saved'",+ "generated": null,+ "identity": null,+ "name": "status",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "archived",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "source",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": "'{}'",+ "generated": null,+ "identity": null,+ "name": "tags",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "source_url",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "job_description",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "match_score",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ai_metadata",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "notes",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_file_url",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_file_name",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "cover_letter_url",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "cover_letter_name",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "follow_up_at",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "follow_up_note",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'[]'",+ "generated": null,+ "identity": null,+ "name": "contacts",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'[]'",+ "generated": null,+ "identity": null,+ "name": "activity",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "applied_at",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "account_id",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'credential'",+ "generated": null,+ "identity": null,+ "name": "provider_id",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "scope",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id_token",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "password",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "access_token",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "refresh_token",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "access_token_expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "refresh_token_expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "start",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "prefix",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "key",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'default'",+ "generated": null,+ "identity": null,+ "name": "config_id",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reference_id",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "refill_interval",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "refill_amount",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_refill_at",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "true",+ "generated": null,+ "identity": null,+ "name": "enabled",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "rate_limit_enabled",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "86400000",+ "generated": null,+ "identity": null,+ "name": "rate_limit_time_window",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "10",+ "generated": null,+ "identity": null,+ "name": "rate_limit_max",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "request_count",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "remaining",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_request",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "permissions",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "metadata",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "jwks"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "public_key",+ "entityType": "columns",+ "schema": "public",+ "table": "jwks"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "private_key",+ "entityType": "columns",+ "schema": "public",+ "table": "jwks"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "jwks"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "jwks"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "token",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "client_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "session_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reference_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "refresh_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "scopes",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "client_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "client_secret",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "disabled",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "skip_consent",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "enable_end_session",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "subject_type",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "scopes",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "uri",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "icon",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "contacts",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "tos",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "policy",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "software_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "software_version",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "software_statement",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "redirect_uris",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "post_logout_redirect_uris",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "token_endpoint_auth_method",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "grant_types",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "response_types",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "public",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "type",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "require_pkce",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reference_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "metadata",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "client_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reference_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "scopes",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "token",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "client_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "session_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reference_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "revoked",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "auth_time",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "scopes",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "aaguid",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "public_key",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "credential_id",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "counter",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "device_type",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "backed_up",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "transports",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "token",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ip_address",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_agent",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "impersonated_by",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "secret",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "backup_codes",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "true",+ "generated": null,+ "identity": null,+ "name": "verified",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "failed_verification_count",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "locked_until",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "image",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "email",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "email_verified",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "username",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "display_username",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "two_factor_enabled",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_active_at",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "'user'",+ "generated": null,+ "identity": null,+ "name": "role",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "banned",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ban_reason",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "timestamp(6) with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ban_expires",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "verification"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "identifier",+ "entityType": "columns",+ "schema": "public",+ "table": "verification"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "value",+ "entityType": "columns",+ "schema": "public",+ "table": "verification"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "verification"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "verification"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "verification"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "slug",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": "'{}'",+ "generated": null,+ "identity": null,+ "name": "tags",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "is_public",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "is_locked",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "password",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "data",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_analysis"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "analysis",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_analysis"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_analysis"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_analysis"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_analysis"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "views",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "downloads",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_viewed_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_downloaded_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "type": "date",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "date",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "views",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "downloads",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "data",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "label",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "thread_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "created_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_actions_thread_id_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "resume_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_actions_resume_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "message_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_actions_message_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "thread_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_attachments_thread_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "message_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_attachments_message_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_attachments_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "thread_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "sequence",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_messages_thread_id_sequence_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "created_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_messages_user_id_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "status",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "last_message_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_threads_user_id_status_last_message_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "working_resume_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_threads_working_resume_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "ai_provider_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_threads_ai_provider_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "nameExplicit": true,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "working_resume_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "source_resume_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": "\"status\" = 'active' and \"deleted_at\" is null",+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_threads_active_in_place_unique",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "enabled",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "ai_providers_user_id_enabled_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "last_used_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "ai_providers_user_id_last_used_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "created_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "ai_providers_user_id_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "application_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "application"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "updated_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "application_user_id_updated_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "application"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "account_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "account"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "reference_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "apikey_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "apikey"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "key",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "apikey_key_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "apikey"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "config_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "apikey_config_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "apikey"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "enabled",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "reference_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "apikey_enabled_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "apikey"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "token",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "oauth_access_token_token_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "client_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "oauth_client_client_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "client_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "oauth_consent_user_id_client_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "token",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "oauth_refresh_token_token_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "passkey_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "passkey"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "token",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "session_token_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "session"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "expires_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "session_expires_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "session"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "two_factor_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "secret",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "two_factor_secret_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "created_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "user_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "user"+ },+ {+ "nameExplicit": true,+ "columns": [+ {+ "value": "lower(\"email\")",+ "isExpression": true,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "user_email_lower_unique_idx",+ "entityType": "indexes",+ "schema": "public",+ "table": "user"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "identifier",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "verification_identifier_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "verification"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "created_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "updated_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_user_id_updated_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "is_public",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "slug",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_is_public_slug_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "resume_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_analysis_resume_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume_analysis"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "resume_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "date",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_statistics_daily_resume_id_date_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "resume_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "created_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_version_resume_id_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "agent_actions_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "nameExplicit": false,+ "columns": ["thread_id"],+ "schemaTo": "public",+ "tableTo": "agent_threads",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "agent_actions_thread_id_agent_threads_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "nameExplicit": false,+ "columns": ["message_id"],+ "schemaTo": "public",+ "tableTo": "agent_messages",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "agent_actions_message_id_agent_messages_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "nameExplicit": false,+ "columns": ["resume_id"],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "agent_actions_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "agent_attachments_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "nameExplicit": false,+ "columns": ["thread_id"],+ "schemaTo": "public",+ "tableTo": "agent_threads",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "agent_attachments_thread_id_agent_threads_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "nameExplicit": false,+ "columns": ["message_id"],+ "schemaTo": "public",+ "tableTo": "agent_messages",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "agent_attachments_message_id_agent_messages_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "agent_messages_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "nameExplicit": false,+ "columns": ["thread_id"],+ "schemaTo": "public",+ "tableTo": "agent_threads",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "agent_messages_thread_id_agent_threads_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "agent_threads_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "nameExplicit": false,+ "columns": ["ai_provider_id"],+ "schemaTo": "public",+ "tableTo": "ai_providers",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "agent_threads_ai_provider_id_ai_providers_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "nameExplicit": false,+ "columns": ["source_resume_id"],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "agent_threads_source_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "nameExplicit": false,+ "columns": ["working_resume_id"],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "agent_threads_working_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "ai_providers_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "application_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "application"+ },+ {+ "nameExplicit": false,+ "columns": ["resume_id"],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "application_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "application"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "account_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "account"+ },+ {+ "nameExplicit": false,+ "columns": ["reference_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "apikey_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "apikey"+ },+ {+ "nameExplicit": false,+ "columns": ["client_id"],+ "schemaTo": "public",+ "tableTo": "oauth_client",+ "columnsTo": ["client_id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_access_token_client_id_oauth_client_client_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "nameExplicit": false,+ "columns": ["session_id"],+ "schemaTo": "public",+ "tableTo": "session",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "oauth_access_token_session_id_session_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_access_token_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "nameExplicit": false,+ "columns": ["refresh_id"],+ "schemaTo": "public",+ "tableTo": "oauth_refresh_token",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_access_token_refresh_id_oauth_refresh_token_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_client_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "nameExplicit": false,+ "columns": ["client_id"],+ "schemaTo": "public",+ "tableTo": "oauth_client",+ "columnsTo": ["client_id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_consent_client_id_oauth_client_client_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_consent_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "nameExplicit": false,+ "columns": ["client_id"],+ "schemaTo": "public",+ "tableTo": "oauth_client",+ "columnsTo": ["client_id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_refresh_token_client_id_oauth_client_client_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "nameExplicit": false,+ "columns": ["session_id"],+ "schemaTo": "public",+ "tableTo": "session",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "oauth_refresh_token_session_id_session_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_refresh_token_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "passkey_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "passkey"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "session_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "session"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "two_factor_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "resume_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": ["resume_id"],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "resume_analysis_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "resume_analysis"+ },+ {+ "nameExplicit": false,+ "columns": ["resume_id"],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "resume_statistics_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "nameExplicit": false,+ "columns": ["resume_id"],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "resume_statistics_daily_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "nameExplicit": false,+ "columns": ["resume_id"],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "resume_version_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "resume_version_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "agent_actions_pkey",+ "schema": "public",+ "table": "agent_actions",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "agent_attachments_pkey",+ "schema": "public",+ "table": "agent_attachments",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "agent_messages_pkey",+ "schema": "public",+ "table": "agent_messages",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "agent_threads_pkey",+ "schema": "public",+ "table": "agent_threads",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "ai_providers_pkey",+ "schema": "public",+ "table": "ai_providers",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "application_pkey",+ "schema": "public",+ "table": "application",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "account_pkey",+ "schema": "public",+ "table": "account",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "apikey_pkey",+ "schema": "public",+ "table": "apikey",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "jwks_pkey",+ "schema": "public",+ "table": "jwks",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "oauth_access_token_pkey",+ "schema": "public",+ "table": "oauth_access_token",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "oauth_client_pkey",+ "schema": "public",+ "table": "oauth_client",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "oauth_consent_pkey",+ "schema": "public",+ "table": "oauth_consent",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "oauth_refresh_token_pkey",+ "schema": "public",+ "table": "oauth_refresh_token",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "passkey_pkey",+ "schema": "public",+ "table": "passkey",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "session_pkey",+ "schema": "public",+ "table": "session",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "two_factor_pkey",+ "schema": "public",+ "table": "two_factor",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "user_pkey",+ "schema": "public",+ "table": "user",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "verification_pkey",+ "schema": "public",+ "table": "verification",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "resume_pkey",+ "schema": "public",+ "table": "resume",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "resume_analysis_pkey",+ "schema": "public",+ "table": "resume_analysis",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "resume_statistics_pkey",+ "schema": "public",+ "table": "resume_statistics",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "resume_statistics_daily_pkey",+ "schema": "public",+ "table": "resume_statistics_daily",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "resume_version_pkey",+ "schema": "public",+ "table": "resume_version",+ "entityType": "pks"+ },+ {+ "nameExplicit": false,+ "columns": ["slug", "user_id"],+ "nullsNotDistinct": false,+ "name": "resume_slug_user_id_unique",+ "entityType": "uniques",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": ["resume_id", "date"],+ "nullsNotDistinct": false,+ "name": "resume_statistics_daily_resume_id_date_unique",+ "entityType": "uniques",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "nameExplicit": false,+ "columns": ["token"],+ "nullsNotDistinct": false,+ "name": "oauth_access_token_token_key",+ "schema": "public",+ "table": "oauth_access_token",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": ["client_id"],+ "nullsNotDistinct": false,+ "name": "oauth_client_client_id_key",+ "schema": "public",+ "table": "oauth_client",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": ["token"],+ "nullsNotDistinct": false,+ "name": "session_token_key",+ "schema": "public",+ "table": "session",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": ["email"],+ "nullsNotDistinct": false,+ "name": "user_email_key",+ "schema": "public",+ "table": "user",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": ["username"],+ "nullsNotDistinct": false,+ "name": "user_username_key",+ "schema": "public",+ "table": "user",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": ["display_username"],+ "nullsNotDistinct": false,+ "name": "user_display_username_key",+ "schema": "public",+ "table": "user",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": ["identifier"],+ "nullsNotDistinct": false,+ "name": "verification_identifier_key",+ "schema": "public",+ "table": "verification",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": ["resume_id"],+ "nullsNotDistinct": false,+ "name": "resume_analysis_resume_id_key",+ "schema": "public",+ "table": "resume_analysis",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": ["resume_id"],+ "nullsNotDistinct": false,+ "name": "resume_statistics_resume_id_key",+ "schema": "public",+ "table": "resume_statistics",+ "entityType": "uniques"+ }+ ],+ "renames": []+}diff --git a/packages/api/src/context.ts b/packages/api/src/context.tsindex bfbc74a34..d0a3169f4 100644--- a/packages/api/src/context.ts+++ b/packages/api/src/context.ts@@ -1,4 +1,3 @@-import type { StylesheetPreflightRunner } from "@reactive-resume/pdf/server";import type { Locale } from "@reactive-resume/utils/locale";import type { User } from "better-auth";import { ORPCError, os } from "@orpc/server";@@ -12,7 +11,6 @@ interface ORPCContext {reqHeaders: Headers;resHeaders?: Headers;trustedClient?: string;- stylesheetPreflightRunner?: StylesheetPreflightRunner;}async function getUserFromBearerToken(headers: Headers): Promise<User | null> {diff --git a/packages/api/src/dto/resume.test.ts b/packages/api/src/dto/resume.test.tsindex d07088d0f..d7aff2ca3 100644--- a/packages/api/src/dto/resume.test.ts+++ b/packages/api/src/dto/resume.test.ts@@ -65,7 +65,7 @@ describe("resume DTO output validation", () => {expect(resumeDto.import.input.safeParse({ data }).success).toBe(false);});- it("defers imported stylesheet validation to the stable unavailable-feature error", () => {+ it("rejects invalid imported stylesheet structure at the schema boundary", () => {expect(resumeDto.import.input.safeParse({data: {@@ -76,38 +76,13 @@ describe("resume DTO output validation", () => {},},}).success,- ).toBe(true);+ ).toBe(false);});it("does not let otherwise-invalid imports bypass validation without a stylesheet field", () => {expect(resumeDto.import.input.safeParse({ data: { metadata: {} } }).success).toBe(false);});- it.each([- [resumeDto.getById.output, {}],- [resumeDto.getBySlug.output, { stylesheetMode: "legacy" }],- [resumeDto.update.output, {}],- [resumeDto.patch.output, {}],- ] as const)("keeps server concurrency columns out of ordinary resume outputs", (output, extra) => {- const parsed = output.parse({- id: "019e128d-0598-75d2-ae6a-771e2eb84614",- name: "Resume",- slug: "resume",- tags: [],- data: defaultResumeData,- isPublic: false,- isLocked: false,- updatedAt: new Date("2026-01-01T00:00:00Z"),- hasPassword: false,- stylesheetRevision: 7,- renderDataVersion: 9,- ...extra,- });-- expect(parsed).not.toHaveProperty("stylesheetRevision");- expect(parsed).not.toHaveProperty("renderDataVersion");- });-it("accepts public resume responses after owner-only fields are redacted", () => {const dbResume = {id: "019e128d-0598-75d2-ae6a-771e2eb84614",@@ -130,7 +105,6 @@ describe("resume DTO output validation", () => {const publicResume = {...redactResumeForViewer(dbResume, false),hasPassword: dbResume.hasPassword,- stylesheetMode: "legacy",};expect(publicResume.name).toBe("Resume");@@ -138,7 +112,7 @@ describe("resume DTO output validation", () => {expect(resumeDto.getBySlug.output.safeParse(publicResume).success).toBe(true);});- it("exposes only the safe public stylesheet mode discriminator", () => {+ it("exposes canonical stylesheet source in authorized public data", () => {const source = { languageVersion: 1, text: "@version 1;\nresume { color: red; }\n" };const parsed = resumeDto.getBySlug.output.parse({id: "019e128d-0598-75d2-ae6a-771e2eb84614",@@ -152,7 +126,7 @@ describe("resume DTO output validation", () => {...defaultResumeData,metadata: {...defaultResumeData.metadata,- stylesheet: { mode: "semantic", source, applied: source },+ stylesheet: { mode: "semantic", source },},},},@@ -161,15 +135,12 @@ describe("resume DTO output validation", () => {isPublic: true,isLocked: false,hasPassword: false,- stylesheetMode: "semantic",});- expect(parsed.stylesheetMode).toBe("semantic");- expect(JSON.stringify(parsed)).not.toContain("@version");- expect(JSON.stringify(parsed)).not.toContain("stylesheetRevision");+ expect(parsed.data.metadata.stylesheet).toEqual({ mode: "semantic", source });});- it("returns current canonical stylesheet state only on version restore", () => {+ it("returns the ordinary resume contract on version restore", () => {const resume = {id: "019e128d-0598-75d2-ae6a-771e2eb84614",name: "Resume",@@ -181,20 +152,6 @@ describe("resume DTO output validation", () => {updatedAt: new Date("2026-01-01T00:00:00Z"),hasPassword: false,};- const stylesheet = {- mode: "semantic" as const,- source: { languageVersion: 1, text: "@version 1;\n" },- applied: { languageVersion: 1, text: "@version 1;\n" },- };-- expect(- resumeDto.restoreVersion.output.parse({- resume,- stylesheetState: { stylesheet, revision: 8, renderDataVersion: 13 },- }),- ).toEqual({- resume,- stylesheetState: { stylesheet, revision: 8, renderDataVersion: 13 },- });+ expect(resumeDto.restoreVersion.output.parse(resume)).toEqual(resume);});});diff --git a/packages/api/src/dto/resume.ts b/packages/api/src/dto/resume.tsindex 2ffa78472..06036e39b 100644--- a/packages/api/src/dto/resume.ts+++ b/packages/api/src/dto/resume.ts@@ -1,18 +1,8 @@-import type { ResumeData } from "@reactive-resume/schema/resume/data";import { createSelectSchema } from "drizzle-zod";import z from "zod";import * as schema from "@reactive-resume/db/schema";import { jsonPatchOperationSchema } from "@reactive-resume/resume/patch";import { resumeDataSchema } from "@reactive-resume/schema/resume/data";-import { semanticStylesheetSchema, stylesheetSourceSchema } from "@reactive-resume/schema/resume/stylesheet";--const importedResumeDataSchema = z.custom<ResumeData>((value) => {- if (typeof value !== "object" || value === null) return false;- const data = value as Record<string, unknown>;- if (typeof data.metadata !== "object" || data.metadata === null) return false;- const { stylesheet: _stylesheet, ...metadata } = data.metadata as Record<string, unknown>;- return resumeDataSchema.safeParse({ ...data, metadata }).success;-});const resumeSchema = createSelectSchema(schema.resume, {id: z.string().describe("The ID of the resume."),@@ -26,60 +16,6 @@ const resumeSchema = createSelectSchema(schema.resume, {userId: z.string().describe("The ID of the user who owns the resume."),createdAt: z.date().describe("The date and time the resume was created."),updatedAt: z.date().describe("The date and time the resume was last updated."),-}).omit({ stylesheetRevision: true, renderDataVersion: true });--const stylesheetMutationCommon = {- id: z.string().describe("The ID of the resume."),- expectedRevision: z.number().int().nonnegative(),- expectedRenderDataVersion: z.number().int().nonnegative(),- editGeneration: z.number().int().nonnegative(),-};-const stylesheetDiagnosticSchema = z.strictObject({- code: z.string(),- severity: z.enum(["error", "warning"]),- message: z.string(),- range: z.strictObject({- start: z.strictObject({- line: z.number().int().positive(),- column: z.number().int().positive(),- offset: z.number().int().nonnegative(),- }),- end: z.strictObject({- line: z.number().int().positive(),- column: z.number().int().positive(),- offset: z.number().int().nonnegative(),- }),- }),-});-const stylesheetStateSchema = z.strictObject({- stylesheet: semanticStylesheetSchema,- revision: z.number().int().nonnegative(),- renderDataVersion: z.number().int().nonnegative(),-});-const publicPdfPageSizeSchema = z.union([- z.enum(["A4", "LETTER"]),- z.strictObject({ width: z.number().finite(), height: z.number().finite().optional() }),-]);-const publicPdfNodePresentationSchema = z.strictObject({- style: z.record(z.string(), z.union([z.string(), z.number().finite(), z.null()])).optional(),- size: publicPdfPageSizeSchema.optional(),- break: z.boolean().optional(),- wrap: z.boolean().optional(),- fixed: z.boolean().optional(),- minPresenceAhead: z.number().finite().optional(),- orphans: z.number().finite().optional(),- widows: z.number().finite().optional(),- hidden: z.boolean().optional(),- order: z.number().int().nonnegative().optional(),-});-const publicStyleProjectionSchema = z.strictObject({- formatVersion: z.literal(1),- languageVersion: z.number().int().positive(),- semanticTreeVersion: z.literal(1),- registryFingerprint: z.string().regex(/^[a-f0-9]{64}$/),- adapterFingerprint: z.string().regex(/^[a-f0-9]{64}$/),- renderDataHash: z.string().regex(/^[a-f0-9]{64}$/),- nodes: z.record(z.string(), publicPdfNodePresentationSchema),});export const resumeDto = {@@ -107,12 +43,7 @@ export const resumeDto = {// the redacted public response passes output validation.output: resumeSchema.omit({ name: true, password: true, userId: true, createdAt: true, updatedAt: true })- .extend({ name: z.string(), stylesheetMode: z.enum(["legacy", "semantic"]) }),- },-- getStyleProjection: {- input: z.strictObject({ username: z.string(), slug: z.string() }),- output: publicStyleProjectionSchema,+ .extend({ name: z.string() }),},create: {@@ -123,7 +54,7 @@ export const resumeDto = {},import: {- input: z.object({ data: importedResumeDataSchema }),+ input: z.object({ data: resumeDataSchema }),output: z.string().describe("The ID of the imported resume."),},@@ -191,55 +122,6 @@ export const resumeDto = {resumeId: z.string().describe("The ID of the resume to restore."),versionId: z.string().describe("The ID of the version snapshot to restore."),}),- output: z.strictObject({- resume: resumeSchema.omit({ password: true, userId: true, createdAt: true }).extend({ hasPassword: z.boolean() }),- stylesheetState: stylesheetStateSchema,- }),- },-- stylesheet: {- errors: {- validation: z.strictObject({- diagnostics: z.array(stylesheetDiagnosticSchema),- }),- revisionConflict: z.strictObject({- state: stylesheetStateSchema,- }),- },- getState: {- input: z.strictObject({ id: z.string().describe("The ID of the resume.") }),- output: stylesheetStateSchema,- },- mutate: {- input: z.discriminatedUnion("transition", [- z.strictObject({- ...stylesheetMutationCommon,- transition: z.literal("edit_source"),- source: stylesheetSourceSchema,- }),- z.strictObject({- ...stylesheetMutationCommon,- transition: z.literal("activate"),- source: stylesheetSourceSchema,- }),- z.strictObject({- ...stylesheetMutationCommon,- transition: z.literal("deactivate"),- }),- z.strictObject({- ...stylesheetMutationCommon,- transition: z.literal("restore_history"),- restore: z.strictObject({- mode: z.enum(["legacy", "semantic"]),- source: stylesheetSourceSchema,- applied: stylesheetSourceSchema,- }),- }),- ]),- output: stylesheetStateSchema.extend({- editGeneration: z.number().int().nonnegative(),- diagnostics: z.array(stylesheetDiagnosticSchema),- }),- },+ output: resumeSchema.omit({ password: true, userId: true, createdAt: true }).extend({ hasPassword: z.boolean() }),},};diff --git a/packages/api/src/features/resume/access-policy.test.ts b/packages/api/src/features/resume/access-policy.test.tsindex 4fc944cfe..e46e40af5 100644--- a/packages/api/src/features/resume/access-policy.test.ts+++ b/packages/api/src/features/resume/access-policy.test.ts@@ -71,7 +71,7 @@ describe("redactResumeForViewer", () => {expect(result.data.metadata.notes).toBe("");});- it("strips editable and applied stylesheet source for non-owner", () => {+ it("preserves stylesheet source for an authorized non-owner", () => {const source = { languageVersion: 1, text: "@version 1;\nresume { color: red; }\n" };const resume = {name: "Title",@@ -79,15 +79,14 @@ describe("redactResumeForViewer", () => {...defaultResumeData,metadata: {...defaultResumeData.metadata,- stylesheet: { mode: "semantic" as const, source, applied: source },+ stylesheet: { mode: "semantic" as const, source },},},};const result = redactResumeForViewer(resume, false);- expect(result.data.metadata.stylesheet).toBeUndefined();- expect(JSON.stringify(result)).not.toContain("@version");+ expect(result.data.metadata.stylesheet).toEqual({ mode: "semantic", source });});it("preserves resume.data.basics.name (the person's name) for non-owner", () => {diff --git a/packages/api/src/features/resume/access-policy.ts b/packages/api/src/features/resume/access-policy.tsindex b6667e42d..dba1e6ccf 100644--- a/packages/api/src/features/resume/access-policy.ts+++ b/packages/api/src/features/resume/access-policy.ts@@ -53,15 +53,13 @@ export function redactResumeForViewer<T extends { name: string; data: ResumeDataviewerIsOwner: boolean,): T {if (viewerIsOwner) return resume;- const { stylesheet: _stylesheet, ...metadata } = resume.data.metadata;-return {...resume,name: "Resume",data: {...resume.data,metadata: {- ...metadata,+ ...resume.data.metadata,notes: "",},},diff --git a/packages/api/src/features/resume/crud.ts b/packages/api/src/features/resume/crud.tsindex 83c3a6456..977760cdc 100644--- a/packages/api/src/features/resume/crud.ts+++ b/packages/api/src/features/resume/crud.ts@@ -1,12 +1,10 @@-import { resumeDataSchema } from "@reactive-resume/schema/resume/data";import { generateId, generateRandomName, slugify } from "@reactive-resume/utils/string";import { protectedProcedure } from "../../context";import { resumeDto } from "../../dto/resume";import { resumeMutationRateLimit } from "../../middleware/rate-limit";+import { createResumeData } from "./initial-data";import { parseStoredResumeData } from "./resume-data-validation";import { resumeService } from "./service";-import { prepareImportedResumeData } from "./stylesheet-preflight";-import { createResumeData } from "./stylesheet-preservation";export const crudRouter = {list: protectedProcedure@@ -99,23 +97,10 @@ export const crudRouter = {message: "A resume with this slug already exists.",status: 400,},- SEMANTIC_STYLESHEET_UNAVAILABLE: {- message: "Semantic stylesheet PDF preflight is unavailable.",- status: 503,- },- STYLESHEET_VALIDATION_FAILED: {- message: "The imported stylesheet failed validation.",- status: 400,- },}).handler(async ({ context, input }) => {const id = generateId();- const data = await prepareImportedResumeData({- data: resumeDataSchema.parse(input.data),- resumeId: id,- revision: 0,- ...(context.stylesheetPreflightRunner ? { runner: context.stylesheetPreflightRunner } : {}),- });+ const data = input.data;const name = generateRandomName();const slug = slugify(name);diff --git a/packages/api/src/features/resume/events.test.ts b/packages/api/src/features/resume/events.test.tsindex 782cfc0d6..65dfed4ef 100644--- a/packages/api/src/features/resume/events.test.ts+++ b/packages/api/src/features/resume/events.test.ts@@ -144,7 +144,7 @@ describe("subscribeResumeUpdated", () => {await iterator.next();});- it("accepts stylesheet invalidations and ignores unknown mutation names", async () => {+ it("ignores removed stylesheet and unknown mutation names", async () => {const client = makeFakeClient();pool.connect.mockResolvedValueOnce(client);@@ -161,9 +161,10 @@ describe("subscribeResumeUpdated", () => {client.__notify("resume_updated", JSON.stringify({ ...exampleEvent, mutation: "forged" }));client.__notify("resume_updated", JSON.stringify({ ...exampleEvent, mutation: "stylesheet" }));+ client.__notify("resume_updated", JSON.stringify(exampleEvent));const result = await resultP;- expect(result.value?.mutation).toBe("stylesheet");+ expect(result.value).toEqual(exampleEvent);controller.abort();await iterator.next();diff --git a/packages/api/src/features/resume/events.ts b/packages/api/src/features/resume/events.tsindex 4efbf6242..75cca1965 100644--- a/packages/api/src/features/resume/events.ts+++ b/packages/api/src/features/resume/events.ts@@ -1,16 +1,7 @@import { getPool } from "@reactive-resume/db/client";const RESUME_UPDATED_CHANNEL = "resume_updated";-const resumeMutationNames = new Set([- "sync",- "create",- "update",- "patch",- "lock",- "password",- "delete",- "stylesheet",-] as const);+const resumeMutationNames = new Set(["sync", "create", "update", "patch", "lock", "password", "delete"] as const);type PgNotification = {channel?: string | undefined;@@ -22,7 +13,7 @@ export type ResumeUpdatedEvent = {resumeId: string;userId: string;updatedAt: string;- mutation: "sync" | "create" | "update" | "patch" | "lock" | "password" | "delete" | "stylesheet";+ mutation: "sync" | "create" | "update" | "patch" | "lock" | "password" | "delete";};type SubscribeResumeUpdatedInput = {diff --git a/packages/api/src/features/resume/initial-data.test.ts b/packages/api/src/features/resume/initial-data.test.tsnew file mode 100644index 000000000..b583b08f7--- /dev/null+++ b/packages/api/src/features/resume/initial-data.test.ts@@ -0,0 +1,24 @@+import { describe, expect, it } from "vitest";+import { defaultResumeData } from "@reactive-resume/schema/resume/default";+import { createResumeData } from "./initial-data";++describe("createResumeData", () => {+ it("seeds one canonical empty stylesheet source", () => {+ expect(createResumeData({}).metadata.stylesheet).toEqual({+ mode: "semantic",+ source: { languageVersion: 1, text: "@version 1;\n" },+ });+ });++ it("clones normal and sample defaults instead of mutating shared data", () => {+ const normal = createResumeData({ locale: "de-DE" });+ const sample = createResumeData({ withSampleData: true, name: "Sample Person", locale: "de-DE" });++ normal.basics.name = "Mutated";+ sample.metadata.page.locale = "en-US";++ expect(defaultResumeData.basics.name).toBe("");+ expect(defaultResumeData.metadata.page.locale).not.toBe("de-DE");+ expect(sample.basics.name).toBe("Sample Person");+ });+});diff --git a/packages/api/src/features/resume/stylesheet-preservation.ts b/packages/api/src/features/resume/initial-data.tssimilarity index 55%rename from packages/api/src/features/resume/stylesheet-preservation.tsrename to packages/api/src/features/resume/initial-data.tsindex bb60cea36..68793fac3 100644--- a/packages/api/src/features/resume/stylesheet-preservation.ts+++ b/packages/api/src/features/resume/initial-data.ts@@ -1,6 +1,5 @@import type { ResumeData } from "@reactive-resume/schema/resume/data";import type { Locale } from "@reactive-resume/utils/locale";-import { projectRenderData } from "@reactive-resume/resume/stylesheet/render-data";import { defaultResumeData } from "@reactive-resume/schema/resume/default";import { createSampleResumeData } from "@reactive-resume/schema/resume/sample";import { EMPTY_SEMANTIC_CSS_SOURCE } from "@reactive-resume/schema/resume/stylesheet";@@ -11,20 +10,6 @@ type CreateResumeDataOptions = {locale?: Locale;};-export function preserveServerStylesheet(serverData: ResumeData, clientData: ResumeData): ResumeData {- const { stylesheet: _clientStylesheet, ...metadata } = clientData.metadata;- const stylesheet = serverData.metadata.stylesheet;-- return {- ...clientData,- metadata: stylesheet ? { ...metadata, stylesheet: structuredClone(stylesheet) } : metadata,- };-}--export function hasRenderDataChanged(before: ResumeData, after: ResumeData): boolean {- return JSON.stringify(projectRenderData(before)) !== JSON.stringify(projectRenderData(after));-}-export function createResumeData(options: CreateResumeDataOptions): ResumeData {const data = structuredClone(options.withSampleData ? createSampleResumeData(options.name) : defaultResumeData);@@ -32,7 +17,6 @@ export function createResumeData(options: CreateResumeDataOptions): ResumeData {data.metadata.stylesheet = {mode: "semantic",source: { languageVersion: 1, text: EMPTY_SEMANTIC_CSS_SOURCE },- applied: { languageVersion: 1, text: EMPTY_SEMANTIC_CSS_SOURCE },};return data;diff --git a/packages/api/src/features/resume/public-pdf.test.ts b/packages/api/src/features/resume/public-pdf.test.tsindex 2381fea0b..4675cf39e 100644--- a/packages/api/src/features/resume/public-pdf.test.ts+++ b/packages/api/src/features/resume/public-pdf.test.ts@@ -1,8 +1,6 @@import { describe, expect, it, vi } from "vitest";import { defaultResumeData } from "@reactive-resume/schema/resume/default";import { createPublicResumePdf } from "./public-pdf";-import { createPublicRenderRateLimiter } from "./public-render-rate-limit";-import { getStyleProjection } from "./public-style-projection";const requestHeaders = new Headers({ "x-forwarded-for": "203.0.113.7" });const input = {@@ -10,250 +8,86 @@ const input = {slug: "resume",requestHeaders,trustedClient: "203.0.113.9",- mismatchReason: "render-data-hash" as const,};const buildResume = (overrides: Partial<{ isPublic: boolean; passwordHash: string | null }> = {}) => ({id: "resume-1",userId: "owner-1",- name: "Private dashboard title",- slug: "resume",data: structuredClone(defaultResumeData),isPublic: overrides.isPublic ?? true,passwordHash: overrides.passwordHash ?? null,});-const buildRendererUnsafeResume = () => {- const resume = buildResume();- resume.data.customSections = [- {- id: "custom-experience",- type: "experience",- title: "Experience",- icon: "",- columns: 1,- hidden: false,- keepTogether: false,- startOnNewPage: false,- items: [{ id: "summary-shaped-item", hidden: false, content: "<p>Missing company</p>" }],- } as never,- ];- return resume;-};+const dependencies = (resume = buildResume()) => ({+ findResume: vi.fn().mockResolvedValue(resume),+ hasPasswordAccess: vi.fn().mockReturnValue(true),+ resolveCurrentUserId: vi.fn().mockResolvedValue(undefined),+ rateLimiter: { consume: vi.fn() },+ renderPdf: vi.fn().mockResolvedValue(new File(["%PDF"], "resume.pdf", { type: "application/pdf" })),+});describe("createPublicResumePdf", () => {- it("rejects unbounded mismatch metadata before access or rendering", async () => {- const findResume = vi.fn();-- await expect(- createPublicResumePdf(- {- ...input,- mismatchReason: "private source" as typeof input.mismatchReason,- clientRegistryFingerprint: "not-a-fingerprint",- },- {- findResume,- hasPasswordAccess: vi.fn(),- resolveCurrentUserId: vi.fn(),- rateLimiter: { consume: vi.fn() },- renderPdf: vi.fn(),- getFingerprints: vi.fn(),- now: () => 0,- observe: vi.fn(),- },- ),- ).rejects.toMatchObject({ code: "BAD_REQUEST", status: 400 });- expect(findResume).not.toHaveBeenCalled();- });-it("authorizes private and password-protected resumes before budget or render", async () => {- const consume = vi.fn();- const renderPdf = vi.fn();-- await expect(- createPublicResumePdf(input, {- findResume: vi.fn().mockResolvedValue(buildResume({ isPublic: false })),- hasPasswordAccess: vi.fn(),- resolveCurrentUserId: vi.fn().mockResolvedValue(undefined),- rateLimiter: { consume },- renderPdf,- getFingerprints: vi.fn(),- now: () => 0,- observe: vi.fn(),- }),- ).rejects.toMatchObject({ code: "NOT_FOUND" });- expect(consume).not.toHaveBeenCalled();- expect(renderPdf).not.toHaveBeenCalled();-- await expect(- createPublicResumePdf(input, {- findResume: vi.fn().mockResolvedValue(buildResume({ passwordHash: "hash" })),- hasPasswordAccess: vi.fn().mockReturnValue(false),- resolveCurrentUserId: vi.fn().mockResolvedValue(undefined),- rateLimiter: { consume },- renderPdf,- getFingerprints: vi.fn(),- now: () => 0,- observe: vi.fn(),- }),- ).rejects.toMatchObject({ code: "NEED_PASSWORD" });- expect(consume).not.toHaveBeenCalled();- expect(renderPdf).not.toHaveBeenCalled();+ const privateDependencies = dependencies(buildResume({ isPublic: false }));+ await expect(createPublicResumePdf(input, privateDependencies)).rejects.toMatchObject({ code: "NOT_FOUND" });+ expect(privateDependencies.rateLimiter.consume).not.toHaveBeenCalled();+ expect(privateDependencies.renderPdf).not.toHaveBeenCalled();++ const passwordDependencies = dependencies(buildResume({ passwordHash: "hash" }));+ passwordDependencies.hasPasswordAccess.mockReturnValue(false);+ await expect(createPublicResumePdf(input, passwordDependencies)).rejects.toMatchObject({ code: "NEED_PASSWORD" });+ expect(passwordDependencies.rateLimiter.consume).not.toHaveBeenCalled();+ expect(passwordDependencies.renderPdf).not.toHaveBeenCalled();});- it("rejects renderer-unsafe stored data before budget, projection metadata, or rendering", async () => {- const consume = vi.fn();- const renderPdf = vi.fn();- const getFingerprints = vi.fn();-- await expect(- createPublicResumePdf(input, {- findResume: vi.fn().mockResolvedValue(buildRendererUnsafeResume()),- hasPasswordAccess: vi.fn(),- resolveCurrentUserId: vi.fn().mockResolvedValue(undefined),- rateLimiter: { consume },- renderPdf,- getFingerprints,- now: () => 0,- observe: vi.fn(),- }),- ).rejects.toMatchObject({ code: "INTERNAL_SERVER_ERROR" });-- expect(consume).not.toHaveBeenCalled();- expect(getFingerprints).not.toHaveBeenCalled();- expect(renderPdf).not.toHaveBeenCalled();- });-- it("shares the exact limiter with style projection", async () => {- const limiter = createPublicRenderRateLimiter({ capacity: 1, refillWindowMs: 60_000, now: () => 0 });- const findResume = vi.fn().mockResolvedValue(buildResume());- const hasPasswordAccess = vi.fn();- const projectionInput = {- ...input,- requestHeaders: new Headers({ "x-forwarded-for": "198.51.100.1" }),- };- const pdfInput = {- ...input,- requestHeaders: new Headers({ "x-forwarded-for": "198.51.100.2" }),- };-- await getStyleProjection(projectionInput, {- findResume,- hasPasswordAccess,- rateLimiter: limiter,- createProjection: vi.fn().mockResolvedValue({- formatVersion: 1,- languageVersion: 1,- semanticTreeVersion: 1,- registryFingerprint: "0".repeat(64),- adapterFingerprint: "1".repeat(64),- renderDataHash: "2".repeat(64),- nodes: {},- }),- cache: new Map(),- });-- await expect(- createPublicResumePdf(pdfInput, {- findResume,- hasPasswordAccess,- resolveCurrentUserId: vi.fn().mockResolvedValue(undefined),- rateLimiter: limiter,- renderPdf: vi.fn(),- getFingerprints: vi.fn(),- now: () => 0,- observe: vi.fn(),- }),- ).rejects.toMatchObject({ code: "RATE_LIMIT_EXCEEDED" });- });-- it("does not accept a caller-supplied owner identity for a private resume", async () => {- const forgedInput = { ...input, currentUserId: "owner-1" };-- await expect(- createPublicResumePdf(forgedInput, {- findResume: vi.fn().mockResolvedValue(buildResume({ isPublic: false })),- hasPasswordAccess: vi.fn(),- resolveCurrentUserId: vi.fn().mockResolvedValue(undefined),- rateLimiter: { consume: vi.fn() },- renderPdf: vi.fn().mockResolvedValue(new File(["%PDF"], "resume.pdf")),- getFingerprints: vi.fn().mockResolvedValue({- registryFingerprint: "0".repeat(64),- adapterFingerprint: "1".repeat(64),- }),- now: () => 0,- observe: vi.fn(),- }),- ).rejects.toMatchObject({ code: "NOT_FOUND" });- });-- it("propagates semantic diagnostics instead of returning an unstyled fallback PDF", async () => {- const observe = vi.fn();- const semanticError = new Error("The semantic stylesheet could not be rendered.", {- cause: [{ code: "RESOURCE_LIMIT", severity: "error" }],+ it("rejects renderer-unsafe stored data before budget or rendering", async () => {+ const resume = buildResume();+ resume.data.customSections = [+ {+ id: "custom-experience",+ type: "experience",+ title: "Experience",+ icon: "",+ columns: 1,+ hidden: false,+ keepTogether: false,+ startOnNewPage: false,+ items: [{ id: "summary-shaped-item", hidden: false, content: "<p>Missing company</p>" }],+ } as never,+ ];+ const unsafeDependencies = dependencies(resume);++ await expect(createPublicResumePdf(input, unsafeDependencies)).rejects.toMatchObject({+ code: "INTERNAL_SERVER_ERROR",});- const renderPdf = vi.fn().mockRejectedValue(semanticError);-- await expect(- createPublicResumePdf(input, {- findResume: vi.fn().mockResolvedValue(buildResume()),- hasPasswordAccess: vi.fn(),- resolveCurrentUserId: vi.fn().mockResolvedValue(undefined),- rateLimiter: { consume: vi.fn() },- renderPdf,- getFingerprints: vi.fn().mockResolvedValue({- registryFingerprint: "0".repeat(64),- adapterFingerprint: "1".repeat(64),- }),- now: () => 10,- observe,- }),- ).rejects.toBe(semanticError);-- expect(renderPdf).toHaveBeenCalledTimes(1);- expect(observe).toHaveBeenCalledWith(expect.objectContaining({ success: false }));- expect(observe).not.toHaveBeenCalledWith(expect.objectContaining({ success: true }));+ expect(unsafeDependencies.rateLimiter.consume).not.toHaveBeenCalled();+ expect(unsafeDependencies.renderPdf).not.toHaveBeenCalled();});- it("emits source-free, hashed fallback metadata", async () => {- const sensitive = "Ada <[email protected]> /* source */";- const observe = vi.fn();- let now = 10;+ it("renders on demand with canonical public stylesheet source", async () => {const resume = buildResume();- resume.id = sensitive;- resume.data.basics.name = sensitive;+ resume.data.basics.name = "Ada Lovelace";resume.data.metadata.stylesheet = {mode: "semantic",- source: { languageVersion: 1, text: sensitive },- applied: { languageVersion: 1, text: sensitive },+ source: { languageVersion: 1, text: "@version 1;\nname { color: blue; }\n" },};+ const pdfDependencies = dependencies(resume);- await createPublicResumePdf(input, {- findResume: vi.fn().mockResolvedValue(resume),- hasPasswordAccess: vi.fn(),- resolveCurrentUserId: vi.fn().mockResolvedValue(undefined),- rateLimiter: { consume: vi.fn() },- renderPdf: vi.fn().mockResolvedValue(new File(["%PDF"], "resume.pdf", { type: "application/pdf" })),- getFingerprints: vi.fn().mockResolvedValue({- registryFingerprint: "0".repeat(64),- adapterFingerprint: "1".repeat(64),- }),- now: () => (now += 5),- observe,- });+ const result = await createPublicResumePdf(input, pdfDependencies);- const serialized = JSON.stringify(observe.mock.calls);- expect(observe).toHaveBeenCalledWith({- name: "semantic_css.render_fallback",- resumeIdHash: expect.stringMatching(/^[a-f0-9]{64}$/),- mismatchReason: "render-data-hash",- registryFingerprint: "0".repeat(64),- adapterFingerprint: "1".repeat(64),- durationMs: 5,- success: true,+ expect(result.filename).toBe("ada-lovelace.pdf");+ expect(pdfDependencies.rateLimiter.consume).toHaveBeenCalledWith({+ trustedClient: input.trustedClient,+ resumeId: resume.id,});- expect(serialized).not.toContain(sensitive);- expect(serialized).not.toMatch(/source|comment|diagnostic|email/i);+ expect(pdfDependencies.renderPdf).toHaveBeenCalledWith({ data: resume.data, filename: "ada-lovelace.pdf" });+ });++ it("preserves ordinary renderer failures", async () => {+ const rendererError = new Error("renderer failed");+ const pdfDependencies = dependencies();+ pdfDependencies.renderPdf.mockRejectedValue(rendererError);++ await expect(createPublicResumePdf(input, pdfDependencies)).rejects.toBe(rendererError);});});diff --git a/packages/api/src/features/resume/public-pdf.ts b/packages/api/src/features/resume/public-pdf.tsindex 835f7b062..f78300e39 100644--- a/packages/api/src/features/resume/public-pdf.ts+++ b/packages/api/src/features/resume/public-pdf.ts@@ -1,112 +1,84 @@import type { ResumeData } from "@reactive-resume/schema/resume/data";-import type { PublicRenderAccessDependencies } from "./public-style-projection";import { ORPCError } from "@orpc/server";import { generateFilename } from "@reactive-resume/utils/file";+import { assertCanView } from "./access-policy";import { publicRenderRateLimiter } from "./public-render-rate-limit";-import { defaultPublicRenderAccessDependencies, loadAuthorizedPublicRenderResume } from "./public-style-projection";-import { hashSemanticCssResumeId } from "./stylesheet-observability";+import { parseStoredResumeData } from "./resume-data-validation";-export type PublicResumePdfMismatchReason =- | "missing-projection"- | "format-version"- | "language-version"- | "semantic-tree-version"- | "registry-fingerprint"- | "adapter-fingerprint"- | "render-data-hash"- | "invalid-projection";--export const PUBLIC_RESUME_PDF_MISMATCH_REASONS = [- "missing-projection",- "format-version",- "language-version",- "semantic-tree-version",- "registry-fingerprint",- "adapter-fingerprint",- "render-data-hash",- "invalid-projection",-] as const satisfies readonly PublicResumePdfMismatchReason[];+type PublicRenderResume = {+ id: string;+ userId: string;+ data: ResumeData;+ isPublic: boolean;+ passwordHash: string | null;+};export type CreatePublicResumePdfInput = {username: string;slug: string;requestHeaders: Headers;trustedClient: string;- mismatchReason: PublicResumePdfMismatchReason;- clientRegistryFingerprint?: string;- clientAdapterFingerprint?: string;};-export type PublicResumePdfDependencies = PublicRenderAccessDependencies & {+export type PublicResumePdfDependencies = {+ findResume(input: Pick<CreatePublicResumePdfInput, "username" | "slug">): Promise<PublicRenderResume | null>;+ hasPasswordAccess(requestHeaders: Headers, resumeId: string, passwordHash: string | null): boolean | Promise<boolean>;resolveCurrentUserId(requestHeaders: Headers): Promise<string | undefined>;rateLimiter: { consume(input: { trustedClient: string; resumeId: string }): void };renderPdf(input: { data: ResumeData; filename: string }): Promise<File>;- getFingerprints(): Promise<{ registryFingerprint: string; adapterFingerprint: string }>;- now(): number;- observe(event: Readonly<Record<string, unknown>>): void;+};++const findResume = async ({ username, slug }: Pick<CreatePublicResumePdfInput, "username" | "slug">) => {+ const [{ db }, schema, { and, eq }] = await Promise.all([+ import("@reactive-resume/db/client"),+ import("@reactive-resume/db/schema"),+ import("drizzle-orm"),+ ]);+ const [resume] = await db+ .select({+ id: schema.resume.id,+ userId: schema.resume.userId,+ data: schema.resume.data,+ isPublic: schema.resume.isPublic,+ passwordHash: schema.resume.password,+ })+ .from(schema.resume)+ .innerJoin(schema.user, eq(schema.resume.userId, schema.user.id))+ .where(and(eq(schema.resume.slug, slug), eq(schema.user.username, username)));+ return resume ?? null;};const defaultDependencies: PublicResumePdfDependencies = {- ...defaultPublicRenderAccessDependencies,+ findResume,+ hasPasswordAccess: async (requestHeaders, resumeId, passwordHash) =>+ (await import("./access")).hasResumeAccess(requestHeaders, resumeId, passwordHash),resolveCurrentUserId: async (requestHeaders) =>(await import("../../context")).resolveUserFromRequestHeaders(requestHeaders).then((user) => user?.id),rateLimiter: publicRenderRateLimiter,renderPdf: async (input) => (await import("@reactive-resume/pdf/server")).createResumePdfFile(input),- getFingerprints: async () =>- (await import("@reactive-resume/pdf/public-projection")).getPublicStyleProjectionFingerprints(),- now: Date.now,- observe: console.info,};export async function createPublicResumePdf(input: CreatePublicResumePdfInput,dependencies: PublicResumePdfDependencies = defaultDependencies,): Promise<{ body: File; filename: string }> {- const fingerprintPattern = /^[a-f0-9]{64}$/;+ const resume = await dependencies.findResume(input);+ if (!resume) throw new ORPCError("NOT_FOUND");++ const currentUserId = await dependencies.resolveCurrentUserId(input.requestHeaders);+ assertCanView(resume, currentUserId ? { id: currentUserId } : null);if (- !PUBLIC_RESUME_PDF_MISMATCH_REASONS.includes(input.mismatchReason) ||- (input.clientRegistryFingerprint !== undefined && !fingerprintPattern.test(input.clientRegistryFingerprint)) ||- (input.clientAdapterFingerprint !== undefined && !fingerprintPattern.test(input.clientAdapterFingerprint))+ resume.passwordHash &&+ !(await dependencies.hasPasswordAccess(input.requestHeaders, resume.id, resume.passwordHash))) {- throw new ORPCError("BAD_REQUEST", { status: 400, message: "Invalid public PDF fallback metadata." });- }- const currentUserId = await dependencies.resolveCurrentUserId(input.requestHeaders);- const resume = await loadAuthorizedPublicRenderResume(- {- username: input.username,- slug: input.slug,- requestHeaders: input.requestHeaders,- trustedClient: input.trustedClient,- ...(currentUserId ? { currentUserId } : {}),- },- dependencies,- );- dependencies.rateLimiter.consume({ trustedClient: input.trustedClient, resumeId: resume.id });- const startedAt = dependencies.now();- const fingerprints = await dependencies.getFingerprints();- const event = (success: boolean) => {- dependencies.observe({- name: "semantic_css.render_fallback",- resumeIdHash: hashSemanticCssResumeId(resume.id),- mismatchReason: input.mismatchReason,- ...(input.clientRegistryFingerprint ? { clientRegistryFingerprint: input.clientRegistryFingerprint } : {}),- ...(input.clientAdapterFingerprint ? { clientAdapterFingerprint: input.clientAdapterFingerprint } : {}),- ...fingerprints,- durationMs: Math.max(0, dependencies.now() - startedAt),- success,+ throw new ORPCError("NEED_PASSWORD", {+ status: 401,+ data: { username: input.username, slug: input.slug },});- };-- try {- const filename = generateFilename(resume.data.basics.name || "Resume", "pdf");- const body = await dependencies.renderPdf({ data: resume.data, filename });- event(true);- return {- body,- filename,- };- } catch (error) {- event(false);- throw error;}++ const data = parseStoredResumeData(resume.data);+ dependencies.rateLimiter.consume({ trustedClient: input.trustedClient, resumeId: resume.id });+ const filename = generateFilename(data.basics.name || "Resume", "pdf");+ return { body: await dependencies.renderPdf({ data, filename }), filename };}diff --git a/packages/api/src/features/resume/public-style-projection-route.test.ts b/packages/api/src/features/resume/public-style-projection-route.test.tsdeleted file mode 100644index 02d914bf0..000000000--- a/packages/api/src/features/resume/public-style-projection-route.test.ts+++ /dev/null@@ -1,72 +0,0 @@-import { beforeEach, describe, expect, it, vi } from "vitest";-import { createRouterClient } from "@orpc/server";--const mocks = vi.hoisted(() => ({- getStyleProjection: vi.fn(),-}));--vi.mock("../../context", async () => {- const { os } = await vi.importActual<typeof import("@orpc/server")>("@orpc/server");- const base = os.$context<{- locale: "en-US";- reqHeaders: Headers;- resHeaders?: Headers;- trustedClient?: string;- }>();- return { publicProcedure: base, protectedProcedure: base };-});--vi.mock("./public-style-projection", () => ({- getStyleProjection: mocks.getStyleProjection,-}));--vi.mock("./service", () => ({ resumeService: {} }));--const { sharingRouter } = await import("./sharing");--describe("public style projection route", () => {- beforeEach(() => {- vi.clearAllMocks();- mocks.getStyleProjection.mockResolvedValue({- formatVersion: 1,- languageVersion: 1,- semanticTreeVersion: 1,- registryFingerprint: "0".repeat(64),- adapterFingerprint: "1".repeat(64),- renderDataHash: "2".repeat(64),- nodes: {},- });- });-- it("mounts a concrete public GET route beside the ordinary JSON read", () => {- expect(sharingRouter.getStyleProjection["~orpc"].route).toMatchObject({- method: "GET",- path: "/resumes/{username}/{slug}/style-projection",- operationId: "getResumeStyleProjection",- });- expect(sharingRouter.getBySlug["~orpc"].route.path).toBe("/resumes/{username}/{slug}");- });-- it("marks the concrete projection response private and uses the server-derived client identity", async () => {- const reqHeaders = new Headers({ "x-forwarded-for": "198.51.100.1" });- const resHeaders = new Headers();- const client = createRouterClient(sharingRouter, {- context: {- locale: "en-US",- reqHeaders,- resHeaders,- trustedClient: "203.0.113.9",- },- });-- await client.getStyleProjection({ username: "jane", slug: "resume" });-- expect(resHeaders.get("Cache-Control")).toBe("private, no-store");- expect(mocks.getStyleProjection).toHaveBeenCalledWith({- username: "jane",- slug: "resume",- requestHeaders: reqHeaders,- trustedClient: "203.0.113.9",- });- });-});diff --git a/packages/api/src/features/resume/public-style-projection.test.ts b/packages/api/src/features/resume/public-style-projection.test.tsdeleted file mode 100644index b4796432b..000000000--- a/packages/api/src/features/resume/public-style-projection.test.ts+++ /dev/null@@ -1,190 +0,0 @@-import type { PublicStyleProjection } from "@reactive-resume/pdf/public-projection";-import { describe, expect, it, vi } from "vitest";-import { createPublicStyleProjection } from "@reactive-resume/pdf/public-projection";-import { defaultResumeData } from "@reactive-resume/schema/resume/default";-import { resumeDto } from "../../dto/resume";-import { getStyleProjection } from "./public-style-projection";--const source = {- languageVersion: 1,- text: "@version 1;\nname { color: #123456; }\n",-};--const buildResume = () => {- const data = structuredClone(defaultResumeData);- data.metadata.stylesheet = { mode: "semantic", source, applied: source };- return {- id: "resume-1",- userId: "owner-1",- name: "Private dashboard title",- slug: "resume",- data,- isPublic: true,- passwordHash: null,- };-};--const input = {- username: "jane",- slug: "resume",- requestHeaders: new Headers({ "x-forwarded-for": "203.0.113.7" }),- trustedClient: "203.0.113.9",-};--describe("getStyleProjection", () => {- it("authorizes before consuming budget or looking up a cached projection", async () => {- const consume = vi.fn();- const createProjection = vi.fn();- const cache = new Map<string, PublicStyleProjection>([- ["cached", { renderDataHash: "cached" } as PublicStyleProjection],- ]);-- await expect(- getStyleProjection(input, {- findResume: vi.fn().mockResolvedValue({ ...buildResume(), isPublic: false }),- hasPasswordAccess: vi.fn(),- rateLimiter: { consume },- createProjection,- cache,- }),- ).rejects.toMatchObject({ code: "NOT_FOUND" });-- expect(consume).not.toHaveBeenCalled();- expect(createProjection).not.toHaveBeenCalled();- });-- it("preserves password authorization before consuming the shared render budget", async () => {- const consume = vi.fn();-- await expect(- getStyleProjection(input, {- findResume: vi.fn().mockResolvedValue({ ...buildResume(), passwordHash: "hash" }),- hasPasswordAccess: vi.fn().mockReturnValue(false),- rateLimiter: { consume },- createProjection: vi.fn(),- cache: new Map(),- }),- ).rejects.toMatchObject({ code: "NEED_PASSWORD", status: 401 });-- expect(consume).not.toHaveBeenCalled();- });-- it("returns a source-free resolved projection and consumes one render token", async () => {- const consume = vi.fn();- const result = await getStyleProjection(input, {- findResume: vi.fn().mockResolvedValue(buildResume()),- hasPasswordAccess: vi.fn(),- rateLimiter: { consume },- createProjection: createPublicStyleProjection,- cache: new Map(),- });-- expect(result).toEqual(expect.objectContaining({ formatVersion: 1, nodes: expect.any(Object) }));- expect(JSON.stringify(result)).not.toContain("@version");- expect(consume).toHaveBeenCalledOnce();- expect(consume).toHaveBeenCalledWith({ trustedClient: "203.0.113.9", resumeId: "resume-1" });- });-- it("normalizes stored data before public projection", async () => {- const resume = buildResume();- resume.data.customSections = [- {- id: "custom-experience",- type: "experience",- title: "Experience",- icon: "",- columns: 1,- hidden: false,- keepTogether: false,- startOnNewPage: false,- items: [- {- id: "experience-item",- hidden: false,- company: "Analytical Engines",- position: "Programmer",- location: "London",- period: "1842–1843",- description: "<p>Wrote the first algorithm.</p>",- content: "<p>Compatible overlap</p>",- },- ],- } as never,- ];- const projection = {- formatVersion: 1,- languageVersion: 1,- semanticTreeVersion: 1,- registryFingerprint: "registry",- adapterFingerprint: "adapter",- renderDataHash: "render-hash",- nodes: {},- } satisfies PublicStyleProjection;- const createProjection = vi.fn().mockResolvedValue(projection);-- await getStyleProjection(input, {- findResume: vi.fn().mockResolvedValue(resume),- hasPasswordAccess: vi.fn(),- rateLimiter: { consume: vi.fn() },- createProjection,- cache: new Map(),- });-- expect(createProjection.mock.calls[0]?.[0].data.customSections[0]?.items[0]).toMatchObject({- content: "<p>Compatible overlap</p>",- roles: [],- website: { url: "", label: "", inlineLink: false },- });- });-- it("caches only authorized projections by renderDataHash", async () => {- const projection = {- formatVersion: 1,- languageVersion: 1,- semanticTreeVersion: 1,- registryFingerprint: "registry",- adapterFingerprint: "adapter",- renderDataHash: "render-hash",- nodes: {},- } satisfies PublicStyleProjection;- const createProjection = vi- .fn()- .mockResolvedValueOnce(projection)- .mockResolvedValueOnce({ ...projection });- const cache = new Map<string, PublicStyleProjection>();- const dependencies = {- findResume: vi.fn().mockResolvedValue(buildResume()),- hasPasswordAccess: vi.fn(),- rateLimiter: { consume: vi.fn() },- createProjection,- cache,- };-- const first = await getStyleProjection(input, dependencies);- const second = await getStyleProjection(input, dependencies);-- expect(cache.get("render-hash")).toBe(first);- expect(second).toBe(first);- });-- it("uses a strict source-free public projection DTO", async () => {- const projection = await createPublicStyleProjection({ data: buildResume().data });-- expect(resumeDto.getStyleProjection.output.safeParse(projection).success).toBe(true);- expect(- resumeDto.getStyleProjection.output.safeParse({- ...projection,- source,- }).success,- ).toBe(false);- expect(- resumeDto.getStyleProjection.output.safeParse({- ...projection,- nodes: {- ...projection.nodes,- private: { diagnostics: [{ message: "source location" }] },- },- }).success,- ).toBe(false);- });-});diff --git a/packages/api/src/features/resume/public-style-projection.ts b/packages/api/src/features/resume/public-style-projection.tsdeleted file mode 100644index 275acff70..000000000--- a/packages/api/src/features/resume/public-style-projection.ts+++ /dev/null@@ -1,130 +0,0 @@-import type { PublicStyleProjection } from "@reactive-resume/pdf/public-projection";-import type { ResumeData } from "@reactive-resume/schema/resume/data";-import { ORPCError } from "@orpc/server";-import { createPublicStyleProjection } from "@reactive-resume/pdf/public-projection";-import { assertCanView, isOwner } from "./access-policy";-import { publicRenderRateLimiter } from "./public-render-rate-limit";-import { parseStoredResumeData } from "./resume-data-validation";--type PublicRenderResume = {- id: string;- userId: string;- name: string;- slug: string;- data: ResumeData;- isPublic: boolean;- passwordHash: string | null;-};--export type GetStyleProjectionInput = {- username: string;- slug: string;- requestHeaders: Headers;- trustedClient: string;- currentUserId?: string;-};--export type PublicStyleProjectionDependencies = {- findResume(input: Pick<GetStyleProjectionInput, "username" | "slug">): Promise<PublicRenderResume | null>;- hasPasswordAccess(requestHeaders: Headers, resumeId: string, passwordHash: string | null): boolean | Promise<boolean>;- rateLimiter: { consume(input: { trustedClient: string; resumeId: string }): void };- createProjection(input: { data: ResumeData }): Promise<PublicStyleProjection>;- cache: Map<string, PublicStyleProjection>;-};--export type AuthorizedPublicRenderResume = PublicRenderResume & {- viewerIsOwner: boolean;- hasPassword: boolean;-};--export type PublicRenderAccessDependencies = Pick<- PublicStyleProjectionDependencies,- "findResume" | "hasPasswordAccess"->;--const findResume = async ({- username,- slug,-}: Pick<GetStyleProjectionInput, "username" | "slug">): Promise<PublicRenderResume | null> => {- const [{ db }, schema, { and, eq }] = await Promise.all([- import("@reactive-resume/db/client"),- import("@reactive-resume/db/schema"),- import("drizzle-orm"),- ]);- const [resume] = await db- .select({- id: schema.resume.id,- userId: schema.resume.userId,- name: schema.resume.name,- slug: schema.resume.slug,- data: schema.resume.data,- isPublic: schema.resume.isPublic,- passwordHash: schema.resume.password,- })- .from(schema.resume)- .innerJoin(schema.user, eq(schema.resume.userId, schema.user.id))- .where(and(eq(schema.resume.slug, slug), eq(schema.user.username, username)));-- return resume ?? null;-};--export const defaultPublicRenderAccessDependencies: PublicRenderAccessDependencies = {- findResume,- hasPasswordAccess: async (requestHeaders, resumeId, passwordHash) =>- (await import("./access")).hasResumeAccess(requestHeaders, resumeId, passwordHash),-};--const projectionCache = new Map<string, PublicStyleProjection>();-const MAX_PROJECTION_CACHE_ENTRIES = 128;--const defaultDependencies: PublicStyleProjectionDependencies = {- ...defaultPublicRenderAccessDependencies,- rateLimiter: publicRenderRateLimiter,- createProjection: createPublicStyleProjection,- cache: projectionCache,-};--export async function loadAuthorizedPublicRenderResume(- input: GetStyleProjectionInput,- dependencies: PublicRenderAccessDependencies = defaultPublicRenderAccessDependencies,-): Promise<AuthorizedPublicRenderResume> {- const resume = await dependencies.findResume(input);- if (!resume) throw new ORPCError("NOT_FOUND");-- const viewer = input.currentUserId ? { id: input.currentUserId } : null;- assertCanView(resume, viewer);- if (- resume.passwordHash &&- !(await dependencies.hasPasswordAccess(input.requestHeaders, resume.id, resume.passwordHash))- ) {- throw new ORPCError("NEED_PASSWORD", {- status: 401,- data: { username: input.username, slug: input.slug },- });- }- const data = parseStoredResumeData(resume.data);-- return {- ...resume,- data,- viewerIsOwner: isOwner(resume, viewer),- hasPassword: resume.passwordHash !== null,- };-}--export async function getStyleProjection(- input: GetStyleProjectionInput,- dependencies: PublicStyleProjectionDependencies = defaultDependencies,-): Promise<PublicStyleProjection> {- const resume = await loadAuthorizedPublicRenderResume(input, dependencies);- dependencies.rateLimiter.consume({ trustedClient: input.trustedClient, resumeId: resume.id });- const candidate = await dependencies.createProjection({ data: resume.data });- const cached = dependencies.cache.get(candidate.renderDataHash);- if (cached) return cached;-- dependencies.cache.set(candidate.renderDataHash, candidate);- if (dependencies.cache.size > MAX_PROJECTION_CACHE_ENTRIES) {- dependencies.cache.delete(dependencies.cache.keys().next().value as string);- }- return candidate;-}diff --git a/packages/api/src/features/resume/resume-data-validation.test.ts b/packages/api/src/features/resume/resume-data-validation.test.tsnew file mode 100644index 000000000..ef3d47eb1--- /dev/null+++ b/packages/api/src/features/resume/resume-data-validation.test.ts@@ -0,0 +1,18 @@+import { describe, expect, it } from "vitest";+import { SEMANTIC_CSS_LIMITS_V1 } from "@reactive-resume/resume/stylesheet";+import { defaultResumeData } from "@reactive-resume/schema/resume/default";+import { parseWritableResumeData } from "./resume-data-validation";++describe("parseWritableResumeData", () => {+ it("rejects stylesheet source above the Semantic CSS byte limit", () => {+ const data = structuredClone(defaultResumeData);+ data.metadata.stylesheet = {+ mode: "semantic",+ source: { languageVersion: 1, text: "x".repeat(SEMANTIC_CSS_LIMITS_V1.maxSourceBytes + 1) },+ };++ expect(() => parseWritableResumeData(data)).toThrowError(+ expect.objectContaining({ code: "BAD_REQUEST", status: 400 }),+ );+ });+});diff --git a/packages/api/src/features/resume/resume-data-validation.ts b/packages/api/src/features/resume/resume-data-validation.tsindex 0470cf04f..4c35bb402 100644--- a/packages/api/src/features/resume/resume-data-validation.ts+++ b/packages/api/src/features/resume/resume-data-validation.ts@@ -1,10 +1,16 @@import type { ResumeData } from "@reactive-resume/schema/resume/data";import { ORPCError } from "@orpc/client";+import { SEMANTIC_CSS_LIMITS_V1 } from "@reactive-resume/resume/stylesheet";import { parseResumeData } from "@reactive-resume/schema/resume/data";function parseApiResumeData(data: unknown, code: "BAD_REQUEST" | "INTERNAL_SERVER_ERROR", message: string): ResumeData {try {- return parseResumeData(data);+ const parsed = parseResumeData(data);+ const source = parsed.metadata.stylesheet?.source.text;+ if (source !== undefined && new TextEncoder().encode(source).byteLength > SEMANTIC_CSS_LIMITS_V1.maxSourceBytes) {+ throw new Error("The stylesheet source exceeds the Semantic CSS byte limit.");+ }+ return parsed;} catch (cause) {throw new ORPCError(code, {status: code === "BAD_REQUEST" ? 400 : 500,diff --git a/packages/api/src/features/resume/router.ts b/packages/api/src/features/resume/router.tsindex 2ea58d269..41f37e6f2 100644--- a/packages/api/src/features/resume/router.ts+++ b/packages/api/src/features/resume/router.ts@@ -3,7 +3,6 @@ import { crudRouter } from "./crud";import { updatesRouter } from "./event-router";import { sharingRouter } from "./sharing";import { resumeStatisticsRouter } from "./statistics";-import { stylesheetRouter } from "./stylesheet";import { tagsRouter } from "./tags";import { versionsRouter } from "./versions";@@ -12,12 +11,10 @@ export const resumeRouter = {statistics: resumeStatisticsRouter,analysis: analysisRouter,updates: updatesRouter,- stylesheet: stylesheetRouter,list: crudRouter.list,getById: crudRouter.getById,getBySlug: sharingRouter.getBySlug,- getStyleProjection: sharingRouter.getStyleProjection,create: crudRouter.create,import: crudRouter.import,update: crudRouter.update,diff --git a/packages/api/src/features/resume/service.test.ts b/packages/api/src/features/resume/service.test.tsindex a38d56d67..ffbfd4ed1 100644--- a/packages/api/src/features/resume/service.test.ts+++ b/packages/api/src/features/resume/service.test.ts@@ -32,8 +32,6 @@ vi.mock("@reactive-resume/db/schema", () => ({isPublic: "is_public",isLocked: "is_locked",password: "password",- stylesheetRevision: "stylesheet_revision",- renderDataVersion: "render_data_version",updatedAt: "updated_at",createdAt: "created_at",},@@ -112,17 +110,10 @@ const createSemanticResumeData = (): ResumeData => {data.metadata.stylesheet = {mode: "semantic",source: { languageVersion: 1, text: "@version 1;\n" },- applied: { languageVersion: 1, text: "@version 1;\n" },};return data;};-const createStylesheetResumeData = (mode: "legacy" | "semantic"): ResumeData => {- const data = createSemanticResumeData();- if (data.metadata.stylesheet) data.metadata.stylesheet.mode = mode;- return data;-};-const createRendererUnsafeResumeData = (): ResumeData =>({...structuredClone(defaultResumeData),@@ -183,7 +174,7 @@ const createResumeRow = (data: ResumeData, updatedAt = new Date()) => ({});const createRestoreHarness = (currentData: ResumeData, restoredData: ResumeData) => {- const currentRow = { ...createResumeRow(currentData), stylesheetRevision: 3 };+ const currentRow = createResumeRow(currentData);const versionLookup = {from: () => ({innerJoin: () => ({ where: () => Promise.resolve([{ data: restoredData }]) }),@@ -206,8 +197,6 @@ const createRestoreHarness = (currentData: ResumeData, restoredData: ResumeData){data: currentData,isLocked: false,- stylesheetRevision: 3,- renderDataVersion: 7,updatedAt: currentRow.updatedAt,},]);@@ -249,7 +238,7 @@ it("imports", () => {});describe("create", () => {- it("copies stylesheet content while leaving both concurrency versions at database defaults", async () => {+ it("copies stylesheet content", async () => {const data = createSemanticResumeData();const values = vi.fn((_input: unknown) => Promise.resolve());dbMock.insert.mockReturnValueOnce({ values });@@ -270,8 +259,6 @@ describe("create", () => {}),}),);- expect(values.mock.calls[0]?.[0]).not.toHaveProperty("stylesheetRevision");- expect(values.mock.calls[0]?.[0]).not.toHaveProperty("renderDataVersion");});it("rejects renderer-unsafe data from direct and duplicate callers before insertion", async () => {@@ -357,139 +344,44 @@ describe("versions.snapshot", () => {});describe("versions.restore", () => {- it.each([- { name: "changed render data", changeRenderData: true, expectedRenderDataVersion: 8 },- { name: "notes-only data", changeRenderData: false, expectedRenderDataVersion: undefined },- ])(- "preserves canonical stylesheet state and snapshots the returned data for $name",- async ({ changeRenderData, expectedRenderDataVersion }) => {- const currentData = createSemanticResumeData();- const restoredData: ResumeData = structuredClone(defaultResumeData);- if (changeRenderData) {- restoredData.basics.name = "Restored Name";- restoredData.metadata.stylesheet = {+ it("normalizes a historical applied stylesheet while restoring its canonical source", async () => {+ const currentData = createSemanticResumeData();+ const restoredData = createSemanticResumeData();+ const source = { languageVersion: 1, text: "@version 1;\nname { color: blue; }\n" };+ const legacyRestoredData = {+ ...restoredData,+ metadata: {+ ...restoredData.metadata,+ stylesheet: {mode: "semantic",- source: { languageVersion: 1, text: "@version 1;\nsection { color: #123456; }\n" },- applied: { languageVersion: 1, text: "@version 1;\nsection { color: #123456; }\n" },- };- } else {- restoredData.metadata.notes = "Restored private note";- restoredData.metadata.stylesheet = structuredClone(currentData.metadata.stylesheet);- }-- const { set, snapshotValues } = createRestoreHarness(currentData, restoredData);- const prepareData = vi.fn(async ({ data }: { data: ResumeData }) => data);-- const result = await resumeService.versions.restore({- resumeId: "r1",- versionId: "v1",- userId: "u1",- prepareData,- });-- expect(set).toHaveBeenCalledTimes(1);- expect(prepareData).toHaveBeenCalledWith({ data: restoredData, stylesheetRevision: 3 });- expect(result.data.metadata.stylesheet).toEqual(restoredData.metadata.stylesheet);- const updateValues = set.mock.calls[0]?.[0];- expect(updateValues).toHaveProperty("stylesheetRevision", 4);- if (expectedRenderDataVersion === undefined) {- expect(updateValues).not.toHaveProperty("renderDataVersion");- } else {- expect(updateValues).toHaveProperty("renderDataVersion", expectedRenderDataVersion);- }- expect(snapshotValues).toHaveBeenNthCalledWith(1, {- resumeId: "r1",- userId: "u1",- data: currentData,- label: "Before restore",- });- expect(snapshotValues).toHaveBeenNthCalledWith(2, {- resumeId: "r1",- userId: "u1",- data: result.data,- label: "Restored version",- });- },- );-- it.each([- { currentMode: "legacy" as const, historicalMode: "semantic" as const },- { currentMode: "semantic" as const, historicalMode: "legacy" as const },- ])(- "does not increment render-data version for a stylesheet-only $currentMode to $historicalMode restore",- async ({ currentMode, historicalMode }) => {- const currentData = createStylesheetResumeData(currentMode);- const restoredData = structuredClone(currentData);- if (restoredData.metadata.stylesheet) restoredData.metadata.stylesheet.mode = historicalMode;- const { set } = createRestoreHarness(currentData, restoredData);-- await resumeService.versions.restore({- resumeId: "r1",- versionId: "v1",- userId: "u1",- prepareData: ({ data }) => Promise.resolve(data),- });-- expect(set.mock.calls[0]?.[0]).toEqual(- expect.objectContaining({- data: expect.objectContaining({- metadata: expect.objectContaining({- stylesheet: expect.objectContaining({ mode: historicalMode }),- }),- }),- stylesheetRevision: 4,- }),- );- expect(set.mock.calls[0]?.[0]).not.toHaveProperty("renderDataVersion");- },- );-- it("increments render-data version for a real restored content change", async () => {- const currentData = createStylesheetResumeData("semantic");- const restoredData = structuredClone(currentData);- restoredData.basics.name = "Historical Name";- const { set } = createRestoreHarness(currentData, restoredData);-- await resumeService.versions.restore({- resumeId: "r1",- versionId: "v1",- userId: "u1",- prepareData: ({ data }) => Promise.resolve(data),- });-- expect(set.mock.calls[0]?.[0]).toEqual(expect.objectContaining({ stylesheetRevision: 4, renderDataVersion: 8 }));- });-- it("increments render-data version when active restored legacy rules change", async () => {- const currentData = createStylesheetResumeData("legacy");- const restoredData = structuredClone(currentData);- restoredData.metadata.styleRules = [- {- id: "restored-rule",- label: "Restored",- enabled: true,- target: { scope: "global" },- slots: { heading: { color: "#123456" } },+ source,+ applied: { languageVersion: 1, text: "@version 1;\nname { color: red; }\n" },+ },},- ];- const { set } = createRestoreHarness(currentData, restoredData);+ } as unknown as ResumeData;+ const { set } = createRestoreHarness(currentData, legacyRestoredData);- await resumeService.versions.restore({+ const result = await resumeService.versions.restore({resumeId: "r1",versionId: "v1",userId: "u1",- prepareData: ({ data }) => Promise.resolve(data),});- expect(set.mock.calls[0]?.[0]).toEqual(expect.objectContaining({ stylesheetRevision: 4, renderDataVersion: 8 }));+ expect(set).toHaveBeenCalledWith(+ expect.objectContaining({+ data: expect.objectContaining({+ metadata: expect.objectContaining({ stylesheet: { mode: "semantic", source } }),+ }),+ }),+ );+ expect(result.data.metadata.stylesheet).toEqual({ mode: "semantic", source });});- it("rejects a currently locked resume before version lookup, preparation, or snapshots", async () => {+ it("rejects a currently locked resume before version lookup or snapshots", async () => {const callOrder: string[] = [];const currentRow = {- ...createResumeRow(createStylesheetResumeData("semantic")),+ ...createResumeRow(createSemanticResumeData()),isLocked: true,- stylesheetRevision: 3,};const currentLookup = {from: () => ({@@ -504,7 +396,7 @@ describe("versions.restore", () => {innerJoin: () => ({where: () => {callOrder.push("versionLookup");- return Promise.resolve([{ data: createStylesheetResumeData("semantic") }]);+ return Promise.resolve([{ data: createSemanticResumeData() }]);},}),}),@@ -512,65 +404,43 @@ describe("versions.restore", () => {dbMock.select.mockImplementation((selection: Record<string, unknown>) =>Object.hasOwn(selection, "isLocked") ? currentLookup : versionLookup,);- const prepareData = vi.fn(() => {- callOrder.push("prepareData");- return Promise.reject(- Object.assign(new Error("runner unavailable"), { code: "SEMANTIC_STYLESHEET_UNAVAILABLE" }),- );- });-await expect(resumeService.versions.restore({resumeId: "r1",versionId: "v1",userId: "u1",- prepareData,}),).rejects.toMatchObject({ code: "RESUME_LOCKED" });expect(callOrder).toEqual(["getById"]);- expect(prepareData).not.toHaveBeenCalled();expect(dbMock.insert).not.toHaveBeenCalled();expect(dbMock.transaction).not.toHaveBeenCalled();});- it("rejects a renderer-unsafe historical snapshot before preparation, snapshots, or update", async () => {+ it("rejects a renderer-unsafe historical snapshot before snapshots or update", async () => {const currentData = createSemanticResumeData();const { set, snapshotValues } = createRestoreHarness(currentData, createRendererUnsafeResumeData());- const prepareData = vi.fn(async ({ data }: { data: ResumeData }) => data);-await expect(resumeService.versions.restore({resumeId: "r1",versionId: "v1",userId: "u1",- prepareData,}),).rejects.toMatchObject({ code: "INTERNAL_SERVER_ERROR", status: 500 });- expect(prepareData).not.toHaveBeenCalled();expect(snapshotValues).not.toHaveBeenCalled();expect(set).not.toHaveBeenCalled();expect(dbMock.transaction).not.toHaveBeenCalled();});- it("normalizes a valid historical snapshot before preparation and persistence", async () => {+ it("normalizes a valid historical snapshot before persistence", async () => {const currentData = createSemanticResumeData();const restoredData = createOverlappingRendererSafeResumeData();const { set } = createRestoreHarness(currentData, restoredData);- const prepareData = vi.fn(async ({ data }: { data: ResumeData }) => data);-await resumeService.versions.restore({resumeId: "r1",versionId: "v1",userId: "u1",- prepareData,- });-- expect(prepareData.mock.calls[0]?.[0].data.customSections[0]?.items[0]).toMatchObject({- content: "<p>Renderer-irrelevant overlap must survive.</p>",- roles: [],- website: { url: "", label: "", inlineLink: false },});expect(set.mock.calls[0]?.[0].data.customSections[0]?.items[0]).toMatchObject({content: "<p>Renderer-irrelevant overlap must survive.</p>",@@ -582,9 +452,7 @@ describe("versions.restore", () => {describe("update", () => {it("throws RESUME_LOCKED when the pre-read reports the resume is locked", async () => {- const select = createLockedSelectChain([- { data: defaultResumeData, isLocked: true, renderDataVersion: 0, updatedAt: new Date() },- ]);+ const select = createLockedSelectChain([{ data: defaultResumeData, isLocked: true, updatedAt: new Date() }]);dbMock.transaction.mockImplementationOnce(async (callback: (tx: unknown) => Promise<unknown>) =>callback({ select: () => select.chain }),);@@ -607,9 +475,7 @@ describe("update", () => {updatedAt: new Date("2026-01-01T00:00:00Z"),hasPassword: false,};- const select = createLockedSelectChain([- { data: defaultResumeData, isLocked: false, renderDataVersion: 0, updatedAt: row.updatedAt },- ]);+ const select = createLockedSelectChain([{ data: defaultResumeData, isLocked: false, updatedAt: row.updatedAt }]);const update = createUpdateChain([row]);dbMock.transaction.mockImplementationOnce(async (callback: (tx: unknown) => Promise<unknown>) =>callback({ select: () => select.chain, update: () => update.chain }),@@ -624,9 +490,7 @@ describe("update", () => {});it("throws NOT_FOUND when the UPDATE ... RETURNING matches no row", async () => {- const select = createLockedSelectChain([- { data: defaultResumeData, isLocked: false, renderDataVersion: 0, updatedAt: new Date() },- ]);+ const select = createLockedSelectChain([{ data: defaultResumeData, isLocked: false, updatedAt: new Date() }]);dbMock.transaction.mockImplementationOnce(async (callback: (tx: unknown) => Promise<unknown>) =>callback({ select: () => select.chain, update: () => createUpdateChain([]).chain }),);@@ -637,9 +501,7 @@ describe("update", () => {});it("maps a resume_slug_user_id_unique violation to RESUME_SLUG_ALREADY_EXISTS", async () => {- const select = createLockedSelectChain([- { data: defaultResumeData, isLocked: false, renderDataVersion: 0, updatedAt: new Date() },- ]);+ const select = createLockedSelectChain([{ data: defaultResumeData, isLocked: false, updatedAt: new Date() }]);const update = {set: () => ({where: () => ({@@ -660,14 +522,14 @@ describe("update", () => {});});- it("preserves the server stylesheet and increments render-data version once for visual changes", async () => {+ it("persists the stylesheet supplied through the ordinary update path", async () => {const serverData = createSemanticResumeData();- const clientData: ResumeData = structuredClone(defaultResumeData);- clientData.basics.name = "Changed";+ const clientData = createSemanticResumeData();+ if (clientData.metadata.stylesheet) {+ clientData.metadata.stylesheet.source.text = "@version 1;\nname { color: blue; }\n";+ }const row = createResumeRow(clientData);- const select = createLockedSelectChain([- { data: serverData, isLocked: false, renderDataVersion: 3, updatedAt: row.updatedAt },- ]);+ const select = createLockedSelectChain([{ data: serverData, isLocked: false, updatedAt: row.updatedAt }]);const update = createUpdateChain([row]);dbMock.transaction.mockImplementationOnce(async (callback: (tx: unknown) => Promise<unknown>) =>callback({ select: () => select.chain, update: () => update.chain }),@@ -678,35 +540,14 @@ describe("update", () => {expect(update.set).toHaveBeenCalledWith(expect.objectContaining({data: expect.objectContaining({- metadata: expect.objectContaining({ stylesheet: serverData.metadata.stylesheet }),+ metadata: expect.objectContaining({ stylesheet: clientData.metadata.stylesheet }),}),- renderDataVersion: 4,}),);});- it("does not increment render-data version for notes-only changes", async () => {- const serverData: ResumeData = structuredClone(defaultResumeData);- const clientData: ResumeData = structuredClone(defaultResumeData);- clientData.metadata.notes = "private note";- const row = createResumeRow(clientData);- const select = createLockedSelectChain([- { data: serverData, isLocked: false, renderDataVersion: 3, updatedAt: row.updatedAt },- ]);- const update = createUpdateChain([row]);- dbMock.transaction.mockImplementationOnce(async (callback: (tx: unknown) => Promise<unknown>) =>- callback({ select: () => select.chain, update: () => update.chain }),- );-- await resumeService.update({ id: "r1", userId: "u1", data: clientData, skipAutoSnapshot: true });-- expect(update.set).toHaveBeenCalledWith(expect.not.objectContaining({ renderDataVersion: expect.anything() }));- });-it("rejects renderer-unsafe data before updating the JSONB column", async () => {- const select = createLockedSelectChain([- { data: defaultResumeData, isLocked: false, renderDataVersion: 3, updatedAt: new Date() },- ]);+ const select = createLockedSelectChain([{ data: defaultResumeData, isLocked: false, updatedAt: new Date() }]);const update = createUpdateChain([createResumeRow(defaultResumeData)]);dbMock.transaction.mockImplementationOnce(async (callback: (tx: unknown) => Promise<unknown>) =>callback({ select: () => select.chain, update: () => update.chain }),@@ -727,9 +568,7 @@ describe("update", () => {it("persists normalized renderer-safe overlapping data", async () => {const clientData = createOverlappingRendererSafeResumeData();- const select = createLockedSelectChain([- { data: defaultResumeData, isLocked: false, renderDataVersion: 3, updatedAt: new Date() },- ]);+ const select = createLockedSelectChain([{ data: defaultResumeData, isLocked: false, updatedAt: new Date() }]);const update = createUpdateChain([createResumeRow(clientData)]);dbMock.transaction.mockImplementationOnce(async (callback: (tx: unknown) => Promise<unknown>) =>callback({ select: () => select.chain, update: () => update.chain }),@@ -766,12 +605,7 @@ describe("patch", () => {slots: { heading: { color: "#000000" } },};- const createPatchTx = (existing: {- data: ResumeData;- isLocked: boolean;- renderDataVersion: number;- updatedAt: Date;- }) => {+ const createPatchTx = (existing: { data: ResumeData; isLocked: boolean; updatedAt: Date }) => {const lockedSelect = createLockedSelectChain([existing]);const row = createResumeRow(existing.data, existing.updatedAt);const update = createUpdateChain([row]);@@ -788,69 +622,36 @@ describe("patch", () => {return { tx, update };};- it.each([- {- name: "stylesheet descendant target",- op: "replace" as const,- path: "/metadata/stylesheet/source/text",- value: "@version 1;\nresume { color: red; }\n",- },- {- name: "stylesheet descendant copy source",- op: "copy" as const,- from: "/metadata/stylesheet/applied~1text",- path: "/metadata/notes",- },- {- name: "exact stylesheet move source",- op: "move" as const,- from: "/metadata/stylesheet",- path: "/metadata/notes",- },- {- name: "root target",- op: "replace" as const,- path: "",- value: defaultResumeData,- },- {- name: "metadata ancestor target",- op: "replace" as const,- path: "/metadata",- value: defaultResumeData.metadata,- },- {- name: "root copy source",- op: "copy" as const,- from: "",- path: "/metadata/notes",- },- {- name: "metadata ancestor move source",- op: "move" as const,- from: "/metadata",- path: "/metadata/notes",- },- ])("rejects $name before applying it", async ({ name: _name, ...operation }) => {+ it("persists stylesheet source through the ordinary patch path", async () => {const data = createSemanticResumeData();const { tx, update } = createPatchTx({data,isLocked: false,- renderDataVersion: 2,updatedAt: new Date(),});- await expect(- resumeService.patchInTransaction(tx as never, {- id: "r1",- userId: "u1",- operations: [operation],+ await resumeService.patchInTransaction(tx as never, {+ id: "r1",+ userId: "u1",+ operations: [+ {+ op: "replace",+ path: "/metadata/stylesheet/source/text",+ value: "@version 1;\nname { color: blue; }\n",+ },+ ],+ });++ expect(update.set).toHaveBeenCalledWith({+ data: expect.objectContaining({+ metadata: expect.objectContaining({+ stylesheet: {+ mode: "semantic",+ source: { languageVersion: 1, text: "@version 1;\nname { color: blue; }\n" },+ },+ }),}),- ).rejects.toMatchObject({- code: "INVALID_PATCH_OPERATIONS",- message: expect.stringContaining("server-owned stylesheet"),});- expect(update.set).not.toHaveBeenCalled();});it.each([@@ -871,7 +672,6 @@ describe("patch", () => {const { tx, update } = createPatchTx({data,isLocked: false,- renderDataVersion: 2,updatedAt: new Date(),});@@ -891,55 +691,11 @@ describe("patch", () => {expect(update.set).not.toHaveBeenCalled();});- it("rejects legacy style-rule changes while semantic mode is active", async () => {+ it("persists legacy style-rule changes through the ordinary patch path", async () => {const data = createSemanticResumeData();const { tx, update } = createPatchTx({data,isLocked: false,- renderDataVersion: 2,- updatedAt: new Date(),- });-- await expect(- resumeService.patchInTransaction(tx as never, {- id: "r1",- userId: "u1",- operations: [{ op: "add", path: "/metadata/styleRules/-", value: styleRule }],- }),- ).rejects.toMatchObject({- code: "INVALID_PATCH_OPERATIONS",- message: expect.stringContaining("Legacy style rules"),- });- expect(update.set).not.toHaveBeenCalled();- });-- it.each(["", "/metadata"])("rejects semantic style-rule changes through ancestor path %j", async (path) => {- const data = createSemanticResumeData();- const changedMetadata = { ...data.metadata, styleRules: [styleRule] };- const value = path === "" ? { ...data, metadata: changedMetadata } : changedMetadata;- const { tx, update } = createPatchTx({- data,- isLocked: false,- renderDataVersion: 2,- updatedAt: new Date(),- });-- await expect(- resumeService.patchInTransaction(tx as never, {- id: "r1",- userId: "u1",- operations: [{ op: "replace", path, value }],- }),- ).rejects.toMatchObject({ code: "INVALID_PATCH_OPERATIONS" });- expect(update.set).not.toHaveBeenCalled();- });-- it("allows legacy style-rule changes and increments render-data version once", async () => {- const data: ResumeData = structuredClone(defaultResumeData);- const { tx, update } = createPatchTx({- data,- isLocked: false,- renderDataVersion: 5,updatedAt: new Date(),});@@ -948,8 +704,9 @@ describe("patch", () => {userId: "u1",operations: [{ op: "add", path: "/metadata/styleRules/-", value: styleRule }],});-- expect(update.set).toHaveBeenCalledWith(expect.objectContaining({ renderDataVersion: 6 }));+ expect(update.set).toHaveBeenCalledWith({+ data: expect.objectContaining({ metadata: expect.objectContaining({ styleRules: [styleRule] }) }),+ });});it("allows a harmless sibling operation below metadata while preserving the server stylesheet", async () => {@@ -957,7 +714,6 @@ describe("patch", () => {const { tx, update } = createPatchTx({data,isLocked: false,- renderDataVersion: 5,updatedAt: new Date(),});diff --git a/packages/api/src/features/resume/service.ts b/packages/api/src/features/resume/service.tsindex c80dfe23c..ed0344a8e 100644--- a/packages/api/src/features/resume/service.ts+++ b/packages/api/src/features/resume/service.ts@@ -18,7 +18,6 @@ import { grantResumeAccess, hasResumeAccess } from "./access";import { assertCanView, isOwner, redactResumeForViewer, shouldCountForStatistics } from "./access-policy";import { publishResumeUpdated } from "./events";import { parseStoredResumeData, parseWritableResumeData } from "./resume-data-validation";-import { hasRenderDataChanged, preserveServerStylesheet } from "./stylesheet-preservation";import { clientKeyFromHeaders, shouldCountView } from "./view-dedup";type DbOrTx = typeof db | Parameters<Parameters<typeof db.transaction>[0]>[0];@@ -39,11 +38,9 @@ function invalidPatchOperation(message: string, index?: number, operation?: Jsonreturn new ORPCError("INVALID_PATCH_OPERATIONS", { status: 400, message });}-type JsonPointerClass = "root" | "metadata" | "stylesheet" | "other";--function classifyJsonPointer(pointer: string): JsonPointerClass | undefined {- if (pointer === "") return "root";- if (!pointer.startsWith("/")) return undefined;+function isValidJsonPointer(pointer: string): boolean {+ if (pointer === "") return true;+ if (!pointer.startsWith("/")) return false;const segments = pointer.slice(1)@@ -52,35 +49,16 @@ function classifyJsonPointer(pointer: string): JsonPointerClass | undefined {if (/~(?:[^01]|$)/.test(segment)) return undefined;return segment.replace(/~[01]/g, (encoded) => (encoded === "~1" ? "/" : "~"));});- if (segments.some((segment) => segment === undefined)) return undefined;- if (segments[0] !== "metadata") return "other";- if (segments.length === 1) return "metadata";- return segments[1] === "stylesheet" ? "stylesheet" : "other";+ return !segments.some((segment) => segment === undefined);}-function assertSafePatchPointers(operation: JsonPatchOperation, index: number) {- const pathClass = classifyJsonPointer(operation.path);- if (!pathClass) {+function assertValidPatchPointers(operation: JsonPatchOperation, index: number) {+ if (!isValidJsonPointer(operation.path)) {throw invalidPatchOperation("Operation `path` property is not a valid JSON Pointer string.", index, operation);}- let fromClass: JsonPointerClass | undefined;- if ("from" in operation) {- fromClass = classifyJsonPointer(operation.from);- if (!fromClass) {- throw invalidPatchOperation("Operation `from` property is not a valid JSON Pointer string.", index, operation);- }- }-- const protectedPath =- pathClass === "stylesheet" || (operation.op !== "test" && (pathClass === "root" || pathClass === "metadata"));- const protectedSource = fromClass === "stylesheet" || fromClass === "root" || fromClass === "metadata";- if (protectedPath || protectedSource) {- throw invalidPatchOperation(- "The server-owned stylesheet cannot be changed through generic resume patches.",- index,- operation,- );+ if ("from" in operation && !isValidJsonPointer(operation.from)) {+ throw invalidPatchOperation("Operation `from` property is not a valid JSON Pointer string.", index, operation);}}@@ -148,7 +126,6 @@ async function applyResumePatchTx(.select({data: schema.resume.data,isLocked: schema.resume.isLocked,- renderDataVersion: schema.resume.renderDataVersion,updatedAt: schema.resume.updatedAt,}).from(schema.resume)@@ -161,7 +138,7 @@ async function applyResumePatchTx(throw resumeVersionConflict(existing.updatedAt);}- input.operations.forEach(assertSafePatchPointers);+ input.operations.forEach(assertValidPatchPointers);let patchedData: ResumeData;@@ -182,21 +159,10 @@ async function applyResumePatchTx(});}- patchedData = parseWritableResumeData(preserveServerStylesheet(existing.data, patchedData));- if (- existing.data.metadata.stylesheet?.mode === "semantic" &&- JSON.stringify(existing.data.metadata.styleRules) !== JSON.stringify(patchedData.metadata.styleRules)- ) {- throw invalidPatchOperation("Legacy style rules cannot be changed while Semantic CSS mode is active.");- }-- const renderDataChanged = hasRenderDataChanged(existing.data, patchedData);+ patchedData = parseWritableResumeData(patchedData);const [resume] = await client.update(schema.resume)- .set({- data: patchedData,- ...(renderDataChanged ? { renderDataVersion: existing.renderDataVersion + 1 } : {}),- })+ .set({ data: patchedData }).where(and(eq(schema.resume.id, input.id),@@ -395,7 +361,6 @@ function toSharedResumeResponse(isLocked: boolean;},hasPassword: boolean,- stylesheetMode: "legacy" | "semantic",) {return {id: resume.id,@@ -406,7 +371,6 @@ function toSharedResumeResponse(isPublic: resume.isPublic,isLocked: resume.isLocked,hasPassword,- stylesheetMode,};}@@ -455,12 +419,7 @@ export const resumeService = {// Non-destructive restore: writes the snapshot's data back through the normal update path, so// prior versions remain and the restore is itself just another (snapshot-able, undoable) change.- restore: async (input: {- resumeId: string;- versionId: string;- userId: string;- prepareData(input: { data: ResumeData; stylesheetRevision: number }): Promise<ResumeData>;- }) => {+ restore: async (input: { resumeId: string; versionId: string; userId: string }) => {// Check lock state before loading or validating historical data so locked resumes fail without expensive work.const current = await resumeService.getById({ id: input.resumeId, userId: input.userId });if (current.isLocked) throw new ORPCError("RESUME_LOCKED");@@ -481,10 +440,6 @@ export const resumeService = {const versionData = parseStoredResumeData(version.data);// Capture the pre-restore state first so the restore itself is undoable.- const restoredData = await input.prepareData({- data: versionData,- stylesheetRevision: current.stylesheetRevision,- });await resumeService.versions.snapshot({resumeId: input.resumeId,userId: input.userId,@@ -495,8 +450,7 @@ export const resumeService = {const updated = await resumeService.update({id: input.resumeId,userId: input.userId,- data: restoredData,- restoreStylesheet: true,+ data: versionData,skipAutoSnapshot: true,});@@ -550,7 +504,6 @@ export const resumeService = {data: schema.resume.data,isPublic: schema.resume.isPublic,isLocked: schema.resume.isLocked,- stylesheetRevision: schema.resume.stylesheetRevision,updatedAt: schema.resume.updatedAt,hasPassword: sql<boolean>`${schema.resume.password} IS NOT NULL`,})@@ -599,12 +552,7 @@ export const resumeService = {}}- const stylesheetMode = resume.data.metadata.stylesheet?.mode ?? "legacy";- return toSharedResumeResponse(- redactResumeForViewer(resume, isOwner(resume, viewer)),- resume.hasPassword,- stylesheetMode,- );+ return toSharedResumeResponse(redactResumeForViewer(resume, isOwner(resume, viewer)), resume.hasPassword);},create: async (input: {@@ -659,7 +607,6 @@ export const resumeService = {tags?: string[];data?: ResumeData;isPublic?: boolean;- restoreStylesheet?: boolean;skipAutoSnapshot?: boolean;}) => {const resume = await db@@ -668,8 +615,6 @@ export const resumeService = {.select({data: schema.resume.data,isLocked: schema.resume.isLocked,- stylesheetRevision: schema.resume.stylesheetRevision,- renderDataVersion: schema.resume.renderDataVersion,}).from(schema.resume).where(and(eq(schema.resume.id, input.id), eq(schema.resume.userId, input.userId)))@@ -677,29 +622,13 @@ export const resumeService = {if (!existing) throw new ORPCError("NOT_FOUND");if (existing.isLocked) throw new ORPCError("RESUME_LOCKED");- const inputData = input.data ? parseWritableResumeData(input.data) : undefined;-- const data = inputData- ? input.restoreStylesheet- ? inputData- : preserveServerStylesheet(existing.data, inputData)- : undefined;- const normalizedData = data ? parseWritableResumeData(data) : undefined;- const dataForRenderComparison =- normalizedData && input.restoreStylesheet- ? preserveServerStylesheet(existing.data, normalizedData)- : normalizedData;- const renderDataChanged = dataForRenderComparison- ? hasRenderDataChanged(existing.data, dataForRenderComparison)- : false;+ const normalizedData = input.data ? parseWritableResumeData(input.data) : undefined;const updateData: Partial<typeof schema.resume.$inferSelect> = {...(input.name !== undefined ? { name: input.name } : {}),...(input.slug !== undefined ? { slug: input.slug } : {}),...(input.tags !== undefined ? { tags: input.tags } : {}),...(normalizedData ? { data: normalizedData } : {}),...(input.isPublic !== undefined ? { isPublic: input.isPublic } : {}),- ...(input.restoreStylesheet ? { stylesheetRevision: existing.stylesheetRevision + 1 } : {}),- ...(renderDataChanged ? { renderDataVersion: existing.renderDataVersion + 1 } : {}),};const [updated] = await tx@@ -720,8 +649,6 @@ export const resumeService = {data: schema.resume.data,isPublic: schema.resume.isPublic,isLocked: schema.resume.isLocked,- stylesheetRevision: schema.resume.stylesheetRevision,- renderDataVersion: schema.resume.renderDataVersion,updatedAt: schema.resume.updatedAt,hasPassword: sql<boolean>`${schema.resume.password} IS NOT NULL`,});diff --git a/packages/api/src/features/resume/sharing.ts b/packages/api/src/features/resume/sharing.tsindex b111c7f53..ccf2b9934 100644--- a/packages/api/src/features/resume/sharing.ts+++ b/packages/api/src/features/resume/sharing.ts@@ -2,7 +2,6 @@ import z from "zod";import { protectedProcedure, publicProcedure } from "../../context";import { resumeDto } from "../../dto/resume";import { resumeMutationRateLimit, resumePasswordRateLimit } from "../../middleware/rate-limit";-import { getStyleProjection } from "./public-style-projection";import { resumeService } from "./service";export const sharingRouter = {@@ -27,29 +26,6 @@ export const sharingRouter = {}),),- getStyleProjection: publicProcedure- .route({- method: "GET",- path: "/resumes/{username}/{slug}/style-projection",- tags: ["Resume Sharing"],- operationId: "getResumeStyleProjection",- summary: "Get public resume style projection",- description:- "Returns the source-free resolved semantic PDF style projection after applying public, private-owner, and password access rules.",- successDescription: "The validated public style projection.",- })- .input(resumeDto.getStyleProjection.input)- .output(resumeDto.getStyleProjection.output)- .handler(({ input, context }) => {- context.resHeaders?.set("Cache-Control", "private, no-store");- return getStyleProjection({- ...input,- requestHeaders: context.reqHeaders,- trustedClient: context.trustedClient ?? "unknown",- ...(context.user?.id ? { currentUserId: context.user.id } : {}),- });- }),-setPassword: protectedProcedure.route({method: "PUT",diff --git a/packages/api/src/features/resume/stylesheet-dto.test.ts b/packages/api/src/features/resume/stylesheet-dto.test.tsdeleted file mode 100644index 213c8f14b..000000000--- a/packages/api/src/features/resume/stylesheet-dto.test.ts+++ /dev/null@@ -1,50 +0,0 @@-import { describe, expect, it } from "vitest";-import { resumeDto } from "../../dto/resume";--const source = { languageVersion: 1, text: "@version 1;\n" };-const common = {- id: "resume-1",- expectedRevision: 3,- expectedRenderDataVersion: 8,- editGeneration: 13,-};--describe("resume stylesheet mutation DTO", () => {- it.each([- { ...common, transition: "edit_source", source },- { ...common, transition: "activate", source },- { ...common, transition: "deactivate" },- {- ...common,- transition: "restore_history",- restore: { mode: "semantic", source, applied: source },- },- ])("accepts the exact $transition payload", (input) => {- expect(resumeDto.stylesheet.mutate.input.safeParse(input).success).toBe(true);- });-- it.each([- { name: "forged applied edit", input: { ...common, transition: "edit_source", source, applied: source } },- { name: "source on deactivate", input: { ...common, transition: "deactivate", source } },- { name: "missing activation source", input: { ...common, transition: "activate" } },- {- name: "extra restore field",- input: {- ...common,- transition: "restore_history",- restore: { mode: "semantic", source, applied: source, revision: 99 },- },- },- {- name: "missing edit generation",- input: {- id: common.id,- expectedRevision: common.expectedRevision,- expectedRenderDataVersion: common.expectedRenderDataVersion,- transition: "deactivate",- },- },- ])("rejects $name", ({ input }) => {- expect(resumeDto.stylesheet.mutate.input.safeParse(input).success).toBe(false);- });-});diff --git a/packages/api/src/features/resume/stylesheet-observability.test.ts b/packages/api/src/features/resume/stylesheet-observability.test.tsdeleted file mode 100644index 6258f748b..000000000--- a/packages/api/src/features/resume/stylesheet-observability.test.ts+++ /dev/null@@ -1,74 +0,0 @@-import { describe, expect, it, vi } from "vitest";-import { hashSemanticCssResumeId, recordSemanticCssEvent } from "./stylesheet-observability";--const sensitive = "Ada Lovelace <[email protected]> /* private comment */";--describe("semantic CSS observability", () => {- it("emits the bounded structured fields with a stable domain-separated resume hash", () => {- const logger = vi.fn();-- recordSemanticCssEvent(- {- name: "semantic_css.preflight",- resumeId: "resume-123",- durationMs: 17,- languageVersion: 1,- sourceBytes: 42,- template: "onyx",- diagnosticCodes: ["MISSING_VERSION_DIRECTIVE"],- pageCount: 2,- revision: 9,- success: true,- },- logger,- );-- expect(logger).toHaveBeenCalledWith({- name: "semantic_css.preflight",- resumeIdHash: hashSemanticCssResumeId("resume-123"),- durationMs: 17,- languageVersion: 1,- sourceBytes: 42,- template: "onyx",- diagnosticCodes: ["MISSING_VERSION_DIRECTIVE"],- pageCount: 2,- revision: 9,- success: true,- });- expect(hashSemanticCssResumeId("resume-123")).toMatch(/^[a-f0-9]{64}$/);- expect(hashSemanticCssResumeId("resume-123")).not.toBe(hashSemanticCssResumeId("123"));- });-- it("never logs source, comments, resume content, personal fields, raw IDs, or unsafe diagnostic text", () => {- const logger = vi.fn();- const input = {- name: "semantic_css.compile",- resumeId: sensitive,- durationMs: 4,- languageVersion: 1,- sourceBytes: 101,- template: "onyx",- diagnosticCodes: ["PARSE_ERROR", sensitive],- pageCount: null,- revision: 3,- success: false,- source: sensitive,- comments: sensitive,- resume: { basics: { name: sensitive } },- email: sensitive,- } as const;-- recordSemanticCssEvent(input, logger);-- const serialized = JSON.stringify(logger.mock.calls);- const event = logger.mock.calls[0]?.[0];- expect(serialized).not.toContain(sensitive);- expect(event).not.toHaveProperty("source");- expect(event).not.toHaveProperty("comments");- expect(event).not.toHaveProperty("resume");- expect(event).not.toHaveProperty("email");- expect(logger).toHaveBeenCalledWith(- expect.objectContaining({ diagnosticCodes: ["PARSE_ERROR", "UNKNOWN_DIAGNOSTIC"] }),- );- });-});diff --git a/packages/api/src/features/resume/stylesheet-observability.ts b/packages/api/src/features/resume/stylesheet-observability.tsdeleted file mode 100644index cb40df8c9..000000000--- a/packages/api/src/features/resume/stylesheet-observability.ts+++ /dev/null@@ -1,45 +0,0 @@-import type { Template } from "@reactive-resume/schema/templates";-import { createHash } from "node:crypto";--type SemanticCssEventName =- | "semantic_css.compile"- | "semantic_css.preflight"- | "semantic_css.convert_legacy"- | "semantic_css.activate";--export type SemanticCssEventInput = {- name: SemanticCssEventName;- resumeId: string;- durationMs: number;- languageVersion: number;- sourceBytes: number;- template: Template;- diagnosticCodes: readonly string[];- pageCount: number | null;- revision: number;- success: boolean;-};--export const hashSemanticCssResumeId = (resumeId: string): string =>- createHash("sha256").update(`reactive-resume:semantic-css:resume:${resumeId}`).digest("hex");--const safeDiagnosticCode = (code: string): string =>- /^[A-Z][A-Z0-9_]{0,63}$/.test(code) ? code : "UNKNOWN_DIAGNOSTIC";--export function recordSemanticCssEvent(- event: SemanticCssEventInput,- logger: (event: Readonly<Record<string, unknown>>) => void = console.info,-): void {- logger({- name: event.name,- resumeIdHash: hashSemanticCssResumeId(event.resumeId),- durationMs: event.durationMs,- languageVersion: event.languageVersion,- sourceBytes: event.sourceBytes,- template: event.template,- diagnosticCodes: event.diagnosticCodes.map(safeDiagnosticCode),- pageCount: event.pageCount,- revision: event.revision,- success: event.success,- });-}diff --git a/packages/api/src/features/resume/stylesheet-preflight.test.ts b/packages/api/src/features/resume/stylesheet-preflight.test.tsdeleted file mode 100644index 468b38cb6..000000000--- a/packages/api/src/features/resume/stylesheet-preflight.test.ts+++ /dev/null@@ -1,163 +0,0 @@-import type { StylesheetPreflightRunner } from "@reactive-resume/pdf/server";-import type { ResumeData } from "@reactive-resume/schema/resume/data";-import { beforeEach, describe, expect, it, vi } from "vitest";-import { defaultResumeData } from "@reactive-resume/schema/resume/default";-import { EMPTY_SEMANTIC_CSS_SOURCE } from "@reactive-resume/schema/resume/stylesheet";-import { prepareImportedResumeData, validateHistoricalStylesheet } from "./stylesheet-preflight";--const validSource = {- languageVersion: 1,- text: "@version 1;\nsection { color: #123456; }\n",-};-const validApplied = {- languageVersion: 1,- text: "@version 1;\nsection-heading { color: #654321; }\n",-};-const invalidSource = {- languageVersion: 99,- text: "@version 99;\n/* preserved future source */\n",-};--const resumeData = (source = validSource, applied = validApplied): ResumeData => {- const data: ResumeData = structuredClone(defaultResumeData);- data.metadata.stylesheet = { mode: "semantic", source, applied };- return data;-};--const createRunner = () => {- const run = vi.fn<StylesheetPreflightRunner["run"]>(async ({ stylesheet }) => ({- ok: true,- pageCount: stylesheet.text === EMPTY_SEMANTIC_CSS_SOURCE ? 1 : 2,- byteCount: 100,- diagnostics: [],- }));- return { run } satisfies StylesheetPreflightRunner;-};--describe("stylesheet persistence preparation", () => {- beforeEach(() => {- vi.restoreAllMocks();- });-- it("uses a valid imported source as applied only after PDF preflight", async () => {- const runner = createRunner();-- const result = await prepareImportedResumeData({- data: resumeData(validSource, validApplied),- resumeId: "import-1",- revision: 0,- runner,- });-- expect(result.metadata.stylesheet).toEqual({- mode: "semantic",- source: validSource,- applied: validSource,- });- expect(runner.run).toHaveBeenCalledTimes(1);- expect(runner.run).toHaveBeenCalledWith({- data: expect.any(Object),- template: defaultResumeData.metadata.template,- stylesheet: validSource,- });- });-- it("returns a legacy stylesheet unchanged without PDF preflight", async () => {- const data = resumeData();- data.metadata.stylesheet = { mode: "legacy", source: validSource, applied: validApplied };- const runner = createRunner();-- await expect(prepareImportedResumeData({ data, resumeId: "import-legacy", revision: 0, runner })).resolves.toBe(- data,- );- expect(runner.run).not.toHaveBeenCalled();- });-- it("preserves invalid imported source and independently validates the imported applied source", async () => {- const runner = createRunner();-- const result = await prepareImportedResumeData({- data: resumeData(invalidSource, validApplied),- resumeId: "import-2",- revision: 0,- runner,- });-- expect(result.metadata.stylesheet).toEqual({- mode: "semantic",- source: invalidSource,- applied: validApplied,- });- expect(runner.run).toHaveBeenCalledTimes(1);- expect(runner.run.mock.calls[0]?.[0].stylesheet).toEqual(validApplied);- });-- it("uses the supported empty applied source when neither imported source is valid", async () => {- const runner = createRunner();-- const result = await prepareImportedResumeData({- data: resumeData(invalidSource, invalidSource),- resumeId: "import-3",- revision: 0,- runner,- });-- expect(result.metadata.stylesheet).toEqual({- mode: "semantic",- source: invalidSource,- applied: { languageVersion: 1, text: EMPTY_SEMANTIC_CSS_SOURCE },- });- expect(runner.run).toHaveBeenCalledTimes(1);- expect(runner.run.mock.calls[0]?.[0].stylesheet.text).toBe(EMPTY_SEMANTIC_CSS_SOURCE);- });-- it("reports a controlled unavailable error when imported stylesheet preflight has no runner", async () => {- await expect(- prepareImportedResumeData({- data: resumeData(),- resumeId: "import-4",- revision: 0,- }),- ).rejects.toMatchObject({ code: "SEMANTIC_STYLESHEET_UNAVAILABLE", status: 503 });- });-- it("validates and preflights historical applied independently while retaining invalid historical source", async () => {- const runner = createRunner();- const restored = {- mode: "semantic" as const,- source: invalidSource,- applied: validApplied,- };-- await expect(- validateHistoricalStylesheet({- data: resumeData(),- resumeId: "restore-1",- revision: 7,- stylesheet: restored,- runner,- }),- ).resolves.toEqual(restored);- expect(runner.run).toHaveBeenCalledTimes(1);- expect(runner.run.mock.calls[0]?.[0].stylesheet).toEqual(validApplied);- });-- it("emits compile and preflight metrics without embedding imported source text", async () => {- const log = vi.spyOn(console, "info").mockImplementation(() => undefined);-- await prepareImportedResumeData({- data: resumeData(),- resumeId: "import-observed",- revision: 0,- runner: createRunner(),- });-- const serialized = JSON.stringify(log.mock.calls);- expect(log.mock.calls.map(([event]) => (event as { name: string }).name)).toEqual([- "semantic_css.compile",- "semantic_css.preflight",- ]);- expect(serialized).not.toContain(validSource.text);- expect(serialized).not.toContain("import-observed");- });-});diff --git a/packages/api/src/features/resume/stylesheet-preflight.ts b/packages/api/src/features/resume/stylesheet-preflight.tsdeleted file mode 100644index 29fac27e2..000000000--- a/packages/api/src/features/resume/stylesheet-preflight.ts+++ /dev/null@@ -1,192 +0,0 @@-import type { StylesheetPreflightRunner } from "@reactive-resume/pdf/server";-import type { CompileStylesheetResult } from "@reactive-resume/resume/stylesheet";-import type { ResumeData } from "@reactive-resume/schema/resume/data";-import type { SemanticStylesheet, StylesheetSource } from "@reactive-resume/schema/resume/stylesheet";-import type { StylesheetSnapshot } from "./stylesheet-service";-import { ORPCError } from "@orpc/client";-import { compileStylesheet } from "@reactive-resume/resume/stylesheet";-import { EMPTY_SEMANTIC_CSS_SOURCE } from "@reactive-resume/schema/resume/stylesheet";-import { recordSemanticCssEvent } from "./stylesheet-observability";--type PrepareImportedResumeDataInput = {- data: ResumeData;- resumeId: string;- revision: number;- runner?: StylesheetPreflightRunner | undefined;-};--type ValidateHistoricalStylesheetInput = {- data: ResumeData;- resumeId: string;- revision: number;- stylesheet: SemanticStylesheet;- runner?: StylesheetPreflightRunner | undefined;-};--const byteCount = (source: StylesheetSource): number => new TextEncoder().encode(source.text).byteLength;--const observeCompile = (- input: Pick<PrepareImportedResumeDataInput, "data" | "resumeId" | "revision">,- source: StylesheetSource,-): CompileStylesheetResult => {- const startedAt = performance.now();- try {- const result = compileStylesheet(source);- recordSemanticCssEvent({- name: "semantic_css.compile",- resumeId: input.resumeId,- durationMs: performance.now() - startedAt,- languageVersion: source.languageVersion,- sourceBytes: byteCount(source),- template: input.data.metadata.template,- diagnosticCodes: result.diagnostics.map(({ code }) => code),- pageCount: null,- revision: input.revision,- success: result.program !== null,- });- return result;- } catch (error) {- recordSemanticCssEvent({- name: "semantic_css.compile",- resumeId: input.resumeId,- durationMs: performance.now() - startedAt,- languageVersion: source.languageVersion,- sourceBytes: byteCount(source),- template: input.data.metadata.template,- diagnosticCodes: [],- pageCount: null,- revision: input.revision,- success: false,- });- throw error;- }-};--const unavailableError = () =>- new ORPCError("SEMANTIC_STYLESHEET_UNAVAILABLE", {- status: 503,- message: "Semantic stylesheet PDF preflight is unavailable.",- });--const validationError = (message: string) =>- new ORPCError("STYLESHEET_VALIDATION_FAILED", {- status: 400,- message,- });--const runPreflight = async (- input: Pick<PrepareImportedResumeDataInput, "data" | "resumeId" | "revision" | "runner">,- stylesheet: StylesheetSource,-) => {- const startedAt = performance.now();- try {- if (!input.runner) throw unavailableError();- const result = await input.runner.run({- data: input.data,- template: input.data.metadata.template,- stylesheet,- });- recordSemanticCssEvent({- name: "semantic_css.preflight",- resumeId: input.resumeId,- durationMs: performance.now() - startedAt,- languageVersion: stylesheet.languageVersion,- sourceBytes: byteCount(stylesheet),- template: input.data.metadata.template,- diagnosticCodes: result.diagnostics.map(({ code }) => code),- pageCount: result.ok ? result.pageCount : null,- revision: input.revision,- success: result.ok,- });- return result;- } catch (error) {- recordSemanticCssEvent({- name: "semantic_css.preflight",- resumeId: input.resumeId,- durationMs: performance.now() - startedAt,- languageVersion: stylesheet.languageVersion,- sourceBytes: byteCount(stylesheet),- template: input.data.metadata.template,- diagnosticCodes: [],- pageCount: null,- revision: input.revision,- success: false,- });- throw error;- }-};--const validApplied = async (input: PrepareImportedResumeDataInput, stylesheet: StylesheetSource): Promise<boolean> => {- const compiled = observeCompile(input, stylesheet);- return compiled.program !== null && (await runPreflight(input, stylesheet)).ok;-};--export async function prepareImportedResumeData(input: PrepareImportedResumeDataInput): Promise<ResumeData> {- const stylesheet = input.data.metadata.stylesheet;- if (stylesheet?.mode !== "semantic") return input.data;-- let applied = stylesheet.source;- if (!(await validApplied(input, stylesheet.source))) {- applied = stylesheet.applied;- if (!(await validApplied(input, stylesheet.applied))) {- applied = { languageVersion: 1, text: EMPTY_SEMANTIC_CSS_SOURCE };- if (!(await validApplied(input, applied))) {- throw validationError("The empty stylesheet failed PDF preflight.");- }- }- }-- return {- ...input.data,- metadata: {- ...input.data.metadata,- stylesheet: { ...stylesheet, applied },- },- };-}--export async function validateHistoricalStylesheet(- input: ValidateHistoricalStylesheetInput,-): Promise<SemanticStylesheet> {- const compiled = observeCompile(input, input.stylesheet.applied);- if (!compiled.program) throw validationError("The historical applied stylesheet is invalid.");- if (!(await runPreflight(input, input.stylesheet.applied)).ok) {- throw validationError("The historical applied stylesheet failed PDF preflight.");- }- return input.stylesheet;-}--export async function convertLegacyStylesheet(snapshot: StylesheetSnapshot): Promise<StylesheetSource> {- const startedAt = performance.now();- try {- const { convertLegacyStyleRules } = await import("@reactive-resume/pdf/semantic");- const source = convertLegacyStyleRules(snapshot.data).source;- recordSemanticCssEvent({- name: "semantic_css.convert_legacy",- resumeId: snapshot.id,- durationMs: performance.now() - startedAt,- languageVersion: source.languageVersion,- sourceBytes: byteCount(source),- template: snapshot.data.metadata.template,- diagnosticCodes: [],- pageCount: null,- revision: snapshot.stylesheetRevision,- success: true,- });- return source;- } catch (error) {- recordSemanticCssEvent({- name: "semantic_css.convert_legacy",- resumeId: snapshot.id,- durationMs: performance.now() - startedAt,- languageVersion: 1,- sourceBytes: 0,- template: snapshot.data.metadata.template,- diagnosticCodes: [],- pageCount: null,- revision: snapshot.stylesheetRevision,- success: false,- });- throw error;- }-}diff --git a/packages/api/src/features/resume/stylesheet-preservation.test.ts b/packages/api/src/features/resume/stylesheet-preservation.test.tsdeleted file mode 100644index a96488a97..000000000--- a/packages/api/src/features/resume/stylesheet-preservation.test.ts+++ /dev/null@@ -1,121 +0,0 @@-import type { ResumeData } from "@reactive-resume/schema/resume/data";-import { describe, expect, it } from "vitest";-import { defaultResumeData } from "@reactive-resume/schema/resume/default";-import { createResumeData, hasRenderDataChanged, preserveServerStylesheet } from "./stylesheet-preservation";--const cloneData = (): ResumeData => structuredClone(defaultResumeData);--const semanticStylesheet = {- mode: "semantic",- source: { languageVersion: 1, text: "@version 1;\nresume { color: red; }\n" },- applied: { languageVersion: 1, text: "@version 1;\nresume { color: red; }\n" },-} as const;--describe("preserveServerStylesheet", () => {- it("preserves the server-owned stylesheet when an old client omits it", () => {- const serverData = cloneData();- serverData.metadata.stylesheet = semanticStylesheet;- const clientData = cloneData();-- const merged = preserveServerStylesheet(serverData, clientData);-- expect(merged.metadata.stylesheet).toEqual(semanticStylesheet);- });-- it("preserves the server-owned stylesheet when a client tries to replace it", () => {- const serverData = cloneData();- serverData.metadata.stylesheet = semanticStylesheet;- const clientData = cloneData();- clientData.metadata.stylesheet = {- mode: "legacy",- source: { languageVersion: 1, text: "@version 1;\n" },- applied: { languageVersion: 1, text: "@version 1;\n" },- };-- expect(preserveServerStylesheet(serverData, clientData).metadata.stylesheet).toEqual(semanticStylesheet);- });-- it("does not let a generic update introduce a stylesheet", () => {- const serverData = cloneData();- const clientData = cloneData();- clientData.metadata.stylesheet = semanticStylesheet;-- expect(preserveServerStylesheet(serverData, clientData).metadata.stylesheet).toBeUndefined();- });-});--describe("hasRenderDataChanged", () => {- it("detects content and base-design changes", () => {- const before = cloneData();- const changedContent = cloneData();- changedContent.basics.name = "Changed";- const changedDesign = cloneData();- changedDesign.metadata.design.colors.primary = "#000000";-- expect(hasRenderDataChanged(before, changedContent)).toBe(true);- expect(hasRenderDataChanged(before, changedDesign)).toBe(true);- });-- it("ignores notes and stylesheet source or applied changes", () => {- const before = cloneData();- before.metadata.stylesheet = semanticStylesheet;- const changedNotes = structuredClone(before);- changedNotes.metadata.notes = "private note";- const changedStylesheet = structuredClone(before);- changedStylesheet.metadata.stylesheet = {- ...semanticStylesheet,- source: { languageVersion: 1, text: "@version 1;\nresume { color: blue; }\n" },- applied: { languageVersion: 1, text: "@version 1;\nresume { color: blue; }\n" },- };-- expect(hasRenderDataChanged(before, changedNotes)).toBe(false);- expect(hasRenderDataChanged(before, changedStylesheet)).toBe(false);- });-- it("detects active legacy style-rule changes but ignores dormant rules in semantic mode", () => {- const legacyBefore = cloneData();- const legacyAfter = cloneData();- legacyAfter.metadata.styleRules = [- {- id: "rule",- label: "Rule",- enabled: true,- target: { scope: "global" },- slots: { heading: { color: "#000000" } },- },- ];- const semanticBefore = cloneData();- semanticBefore.metadata.stylesheet = semanticStylesheet;- const semanticAfter = structuredClone(semanticBefore);- semanticAfter.metadata.styleRules = legacyAfter.metadata.styleRules;-- expect(hasRenderDataChanged(legacyBefore, legacyAfter)).toBe(true);- expect(hasRenderDataChanged(semanticBefore, semanticAfter)).toBe(false);- });-});--describe("createResumeData", () => {- it("always seeds an empty semantic stylesheet", () => {- expect(createResumeData({}).metadata.stylesheet).toEqual({- mode: "semantic",- source: { languageVersion: 1, text: "@version 1;\n" },- applied: { languageVersion: 1, text: "@version 1;\n" },- });- });-- it("clones normal and sample defaults instead of mutating shared data", () => {- const normal = createResumeData({ locale: "de-DE" });- const sample = createResumeData({- withSampleData: true,- name: "Sample Person",- locale: "de-DE",- });-- normal.basics.name = "Mutated";- sample.metadata.page.locale = "en-US";-- expect(defaultResumeData.basics.name).toBe("");- expect(defaultResumeData.metadata.page.locale).not.toBe("de-DE");- expect(sample.basics.name).toBe("Sample Person");- });-});diff --git a/packages/api/src/features/resume/stylesheet-route.test.ts b/packages/api/src/features/resume/stylesheet-route.test.tsdeleted file mode 100644index 8b7c4edcf..000000000--- a/packages/api/src/features/resume/stylesheet-route.test.ts+++ /dev/null@@ -1,73 +0,0 @@-import type { InferSchemaOutput, Schema } from "@orpc/server";-import type { SemanticCssDiagnostic } from "@reactive-resume/resume/stylesheet";-import type z from "zod";-import type { resumeDto } from "../../dto/resume";-import { describe, expect, expectTypeOf, it, vi } from "vitest";--vi.mock("../../context", async () => {- const { os } = await vi.importActual<typeof import("@orpc/server")>("@orpc/server");- return { protectedProcedure: os.$context() };-});--vi.mock("./stylesheet-service", () => ({ createDatabaseStylesheetService: vi.fn() }));--const { stylesheetRouter } = await import("./stylesheet");--type MutateErrorMap = (typeof stylesheetRouter.mutate)["~orpc"]["errorMap"];-type ErrorData<TKey extends keyof MutateErrorMap> = MutateErrorMap[TKey] extends {- data: infer TSchema extends Schema<unknown, unknown>;-}- ? InferSchemaOutput<TSchema>- : never;-type StylesheetState = z.infer<typeof resumeDto.stylesheet.getState.output>;--const source = { languageVersion: 1, text: "@version 1;\n" };-const state = {- stylesheet: { mode: "semantic" as const, source, applied: source },- revision: 4,- renderDataVersion: 8,-};-const diagnostic = {- code: "PARSE_ERROR",- severity: "error" as const,- message: "Invalid stylesheet.",- range: {- start: { line: 1, column: 1, offset: 0 },- end: { line: 1, column: 1, offset: 0 },- },-};--const dataSchema = (code: keyof MutateErrorMap) => {- const error = stylesheetRouter.mutate["~orpc"].errorMap[code];- const schema = error && "data" in error ? error.data : undefined;- expect(schema, `${String(code)} must declare an oRPC data schema`).toBeDefined();- return schema as z.ZodType;-};--describe("resume stylesheet route error contract", () => {- it("exposes strict validation diagnostic data at runtime and in the inferred client error", () => {- const schema = dataSchema("STYLESHEET_VALIDATION_FAILED");-- expect(schema.safeParse({ diagnostics: [diagnostic] }).success).toBe(true);- expect(schema.safeParse({ diagnostics: [diagnostic], source }).success).toBe(false);- expect(schema.safeParse({ diagnostics: [{ ...diagnostic, source }] }).success).toBe(false);- expectTypeOf<ErrorData<"STYLESHEET_VALIDATION_FAILED">>().toEqualTypeOf<{- diagnostics: SemanticCssDiagnostic[];- }>();- });-- it("exposes strict canonical conflict state for type-safe client rebasing", () => {- const schema = dataSchema("STYLESHEET_REVISION_CONFLICT");-- expect(schema.safeParse({ state }).success).toBe(true);- expect(schema.safeParse({ state, expectedRevision: 3 }).success).toBe(false);- expect(schema.safeParse({ state: { ...state, source } }).success).toBe(false);- expectTypeOf<ErrorData<"STYLESHEET_REVISION_CONFLICT">>().toEqualTypeOf<{- state: StylesheetState;- }>();- });-- it("does not invent data for the message-only unavailable error", () => {- expect("data" in stylesheetRouter.mutate["~orpc"].errorMap.SEMANTIC_STYLESHEET_UNAVAILABLE).toBe(false);- });-});diff --git a/packages/api/src/features/resume/stylesheet-service.integration.test.ts b/packages/api/src/features/resume/stylesheet-service.integration.test.tsdeleted file mode 100644index 669b9d597..000000000--- a/packages/api/src/features/resume/stylesheet-service.integration.test.ts+++ /dev/null@@ -1,135 +0,0 @@-import type { ResumeData } from "@reactive-resume/schema/resume/data";-import { randomUUID } from "node:crypto";-import { describe, expect, it } from "vitest";-import { drizzle } from "drizzle-orm/node-postgres";-import { defaultResumeData } from "@reactive-resume/schema/resume/default";--const databaseTest = process.env.DATABASE_URL ? describe : describe.skip;--databaseTest("stylesheet PostgreSQL compare-and-swap", () => {- it("rejects a preflighted candidate when render data changes on a second connection", async () => {- const [{ getPool }, { createDatabaseStylesheetService }] = await Promise.all([- import("@reactive-resume/db/client"),- import("./stylesheet-service"),- ]);- const firstConnection = await getPool().connect();- const secondConnection = await getPool().connect();- const userId = `stylesheet-user-${randomUUID()}`;- const resumeId = `stylesheet-resume-${randomUUID()}`;- const initialSource = { languageVersion: 1, text: "@version 1;\n" };- const candidateSource = {- languageVersion: 1,- text: "@version 1;\nsection { color: #123456; }\n",- };- const data: ResumeData = structuredClone(defaultResumeData);- data.metadata.stylesheet = {- mode: "semantic",- source: initialSource,- applied: initialSource,- };-- let releasePreflight: () => void = () => {};- let signalPaused: () => void = () => {};- const paused = new Promise<void>((resolve) => {- signalPaused = resolve;- });- const released = new Promise<void>((resolve) => {- releasePreflight = resolve;- });-- try {- await secondConnection.query(- `insert into "user" (id, name, email, username, display_username)- values ($1, $2, $3, $4, $4)`,- [userId, "Stylesheet Test", `${userId}@example.test`, userId],- );- await secondConnection.query(- `insert into resume- (id, name, slug, tags, data, user_id, stylesheet_revision, render_data_version)- values ($1, 'Resume', 'resume', '{}', $2::jsonb, $3, 0, 0)`,- [resumeId, JSON.stringify(data), userId],- );-- const service = createDatabaseStylesheetService({- database: drizzle({ client: firstConnection }),- runner: {- run: async () => ({- ok: true,- pageCount: 1,- byteCount: 128,- diagnostics: [],- }),- },- afterPreflight: async () => {- signalPaused();- await released;- },- publish: async () => undefined,- });-- const mutation = service.mutate({- id: resumeId,- userId,- expectedRevision: 0,- expectedRenderDataVersion: 0,- editGeneration: 1,- transition: "edit_source",- source: candidateSource,- });-- await paused;- await secondConnection.query(- `update resume- set data = jsonb_set(data, '{basics,name}', to_jsonb($1::text), true),- render_data_version = render_data_version + 1- where id = $2 and user_id = $3`,- ["Concurrent content", resumeId, userId],- );- releasePreflight();-- const conflict = await mutation.catch((error: unknown) => error);- expect(conflict).toMatchObject({- code: "STYLESHEET_REVISION_CONFLICT",- status: 409,- data: {- state: {- revision: 0,- renderDataVersion: 1,- stylesheet: {- source: initialSource,- applied: initialSource,- },- },- },- });-- const persisted = await secondConnection.query<{- data: ResumeData;- stylesheet_revision: number;- render_data_version: number;- }>(- `select data, stylesheet_revision, render_data_version- from resume where id = $1 and user_id = $2`,- [resumeId, userId],- );- expect(persisted.rows[0]).toMatchObject({- data: {- basics: { name: "Concurrent content" },- metadata: {- stylesheet: {- source: initialSource,- applied: initialSource,- },- },- },- stylesheet_revision: 0,- render_data_version: 1,- });- } finally {- releasePreflight();- await secondConnection.query(`delete from "user" where id = $1`, [userId]).catch(() => undefined);- firstConnection.release();- secondConnection.release();- }- });-});diff --git a/packages/api/src/features/resume/stylesheet-service.test.ts b/packages/api/src/features/resume/stylesheet-service.test.tsdeleted file mode 100644index 0e56b3be5..000000000--- a/packages/api/src/features/resume/stylesheet-service.test.ts+++ /dev/null@@ -1,497 +0,0 @@-import type { PdfPreflightResult } from "@reactive-resume/pdf/server";-import type { CompileStylesheetResult } from "@reactive-resume/resume/stylesheet";-import type { ResumeData } from "@reactive-resume/schema/resume/data";-import type { SemanticStylesheet, StylesheetSource } from "@reactive-resume/schema/resume/stylesheet";-import type { SemanticCssEventInput } from "./stylesheet-observability";-import type { StylesheetSnapshot } from "./stylesheet-service";-import { beforeEach, describe, expect, it, vi } from "vitest";-import { defaultResumeData } from "@reactive-resume/schema/resume/default";-import { createStylesheetService } from "./stylesheet-service";--vi.mock("@reactive-resume/db/client", () => ({ db: {}, getPool: vi.fn() }));--const validSource = {- languageVersion: 1,- text: "@version 1;\nsection { color: #112233; }\n",-} satisfies StylesheetSource;-const invalidSource = {- languageVersion: 1,- text: "@version 1;\nsection {",-} satisfies StylesheetSource;-const previousSource = {- languageVersion: 1,- text: "@version 1;\nsection { color: #445566; }\n",-} satisfies StylesheetSource;-const previousApplied = {- languageVersion: 1,- text: "@version 1;\nsection { color: #778899; }\n",-} satisfies StylesheetSource;-const previousStylesheet = {- mode: "semantic",- source: previousSource,- applied: previousApplied,-} satisfies SemanticStylesheet;-const diagnostic = {- code: "PARSE_ERROR",- severity: "error" as const,- message: "Invalid stylesheet.",- range: {- start: { line: 1, column: 1, offset: 0 },- end: { line: 1, column: 1, offset: 0 },- },-};-const successfulCompile = {- program: { languageVersion: 1, rules: [] },- diagnostics: [],-} satisfies CompileStylesheetResult;-const failedCompile = { program: null, diagnostics: [diagnostic] } satisfies CompileStylesheetResult;-const successfulPreflight = {- ok: true,- pageCount: 1,- byteCount: 256,- diagnostics: [],-} satisfies PdfPreflightResult;--const commonMutationInput = {- id: "resume-1",- userId: "user-1",- expectedRevision: 3,- expectedRenderDataVersion: 8,- editGeneration: 11,-} as const;--const snapshot = (stylesheet: SemanticStylesheet = previousStylesheet): StylesheetSnapshot => {- const data: ResumeData = structuredClone(defaultResumeData);- data.metadata.stylesheet = stylesheet;- data.metadata.styleRules = [- {- id: "legacy-rule",- label: "Legacy",- enabled: true,- target: { scope: "global" },- slots: { heading: { color: "#123456" } },- },- ];-- return {- id: "resume-1",- userId: "user-1",- data,- isLocked: false,- stylesheetRevision: 3,- renderDataVersion: 8,- updatedAt: new Date("2026-07-28T12:00:00.000Z"),- };-};--type HarnessOptions = {- initial?: StylesheetSnapshot;- compile?: (source: StylesheetSource) => CompileStylesheetResult;- preflight?: ((input: { data: ResumeData; stylesheet: StylesheetSource }) => Promise<PdfPreflightResult>) | undefined;- locked?: StylesheetSnapshot;- useDefaultObserver?: boolean;-};--const createHarness = (options: HarnessOptions = {}) => {- const callOrder: string[] = [];- const events: SemanticCssEventInput[] = [];- let persisted = structuredClone(options.initial ?? snapshot());- const compile = vi.fn((source: StylesheetSource) => {- callOrder.push("compile");- return options.compile?.(source) ?? successfulCompile;- });- const preflight = options.preflight- ? vi.fn(options.preflight)- : vi.fn(() => {- callOrder.push("preflight");- return Promise.resolve(successfulPreflight);- });- const publish = vi.fn(() => {- callOrder.push("publish");- return Promise.resolve();- });-- const service = createStylesheetService({- readSnapshot: () => {- callOrder.push("readSnapshot");- return Promise.resolve(structuredClone(persisted));- },- convertLegacy: () => {- callOrder.push("convertLegacy");- return { languageVersion: 1, text: "@version 1;\n" };- },- compile,- preflight:- options.preflight === undefined- ? preflight- : (input) => {- callOrder.push("preflight");- return preflight(input);- },- transaction: async (run) => {- callOrder.push("begin");- try {- const result = await run({- lock: () => {- callOrder.push("lock");- return Promise.resolve(structuredClone(options.locked ?? persisted));- },- update: ({ data }) => {- callOrder.push("update");- persisted = {- ...persisted,- data,- stylesheetRevision: persisted.stylesheetRevision + 1,- };- return Promise.resolve(structuredClone(persisted));- },- });- callOrder.push("commit");- return result;- } catch (error) {- callOrder.push("rollback");- throw error;- }- },- compare: (locked, input) => {- callOrder.push("compare");- return (- locked.stylesheetRevision === input.expectedRevision &&- locked.renderDataVersion === input.expectedRenderDataVersion- );- },- publish,- ...(options.useDefaultObserver ? {} : { observe: (event: SemanticCssEventInput) => events.push(event) }),- });-- return { callOrder, compile, events, persisted: () => persisted, preflight, publish, service };-};--describe("stylesheet service", () => {- beforeEach(() => {- vi.restoreAllMocks();- });-- it("stores invalid editable source while preserving the last-valid applied source and render version", async () => {- const harness = createHarness({ compile: () => failedCompile });-- const result = await harness.service.mutate({- ...commonMutationInput,- transition: "edit_source",- source: invalidSource,- });-- expect(result.stylesheet.source).toEqual(invalidSource);- expect(result.stylesheet.applied).toEqual(previousApplied);- expect(result.revision).toBe(4);- expect(result.renderDataVersion).toBe(8);- expect(result.editGeneration).toBe(11);- expect(result.diagnostics).toEqual([diagnostic]);- expect(harness.preflight).not.toHaveBeenCalled();- });-- it("promotes a valid edit only in semantic mode after preflight outside the short transaction", async () => {- const harness = createHarness();-- const result = await harness.service.mutate({- ...commonMutationInput,- transition: "edit_source",- source: validSource,- });-- expect(result.stylesheet.source).toEqual(validSource);- expect(result.stylesheet.applied).toEqual(validSource);- expect(harness.callOrder).toEqual([- "readSnapshot",- "compile",- "preflight",- "begin",- "lock",- "compare",- "update",- "commit",- "publish",- ]);- });-- it("keeps a valid legacy-mode edit dormant without preflight", async () => {- const initial = snapshot({ ...previousStylesheet, mode: "legacy" });- const harness = createHarness({ initial });-- const result = await harness.service.mutate({- ...commonMutationInput,- transition: "edit_source",- source: validSource,- });-- expect(result.stylesheet).toEqual({- mode: "legacy",- source: validSource,- applied: previousApplied,- });- expect(harness.preflight).not.toHaveBeenCalled();- });-- it("preserves editable source but not applied source when semantic render preflight fails", async () => {- const harness = createHarness({- preflight: async () => ({- ok: false,- code: "STYLESHEET_PREFLIGHT_RENDER_FAILED",- message: "PDF rendering failed.",- diagnostics: [],- }),- });-- const result = await harness.service.mutate({- ...commonMutationInput,- transition: "edit_source",- source: validSource,- });-- expect(result.stylesheet.source).toEqual(validSource);- expect(result.stylesheet.applied).toEqual(previousApplied);- expect(result.diagnostics).toEqual([- expect.objectContaining({ code: "STYLESHEET_PREFLIGHT_RENDER_FAILED", severity: "error" }),- ]);- });-- it("activates an explicitly requested mode transition without checking legacy parity", async () => {- const initial = snapshot({ ...previousStylesheet, mode: "legacy" });- const harness = createHarness({ initial });-- const result = await harness.service.mutate({- ...commonMutationInput,- transition: "activate",- source: validSource,- });-- expect(result.stylesheet).toEqual({ mode: "semantic", source: validSource, applied: validSource });- expect(harness.preflight).toHaveBeenCalledOnce();- expect(result.revision).toBe(4);- expect(result.renderDataVersion).toBe(8);- expect(harness.events).toContainEqual(- expect.objectContaining({- name: "semantic_css.activate",- durationMs: expect.any(Number),- pageCount: 1,- revision: 4,- success: true,- }),- );- });-- it("records a sanitized compile failure metric when the compiler throws", async () => {- const privateText = "private compiler failure [email protected]";- const log = vi.spyOn(console, "info").mockImplementation(() => undefined);- const harness = createHarness({- compile: () => {- throw new Error(privateText);- },- useDefaultObserver: true,- });-- await expect(- harness.service.mutate({ ...commonMutationInput, transition: "edit_source", source: validSource }),- ).rejects.toThrow(privateText);-- expect(log.mock.calls.map(([event]) => event)).toContainEqual(- expect.objectContaining({- name: "semantic_css.compile",- durationMs: expect.any(Number),- diagnosticCodes: [],- success: false,- }),- );- const serialized = JSON.stringify(log.mock.calls);- expect(serialized).not.toContain(privateText);- expect(serialized).not.toContain(validSource.text);- expect(serialized).not.toContain("resume-1");- });-- it("records a sanitized preflight failure metric when the runner throws", async () => {- const privateText = "private preflight failure [email protected]";- const log = vi.spyOn(console, "info").mockImplementation(() => undefined);- const harness = createHarness({- preflight: () => Promise.reject(new Error(privateText)),- useDefaultObserver: true,- });-- await expect(- harness.service.mutate({ ...commonMutationInput, transition: "edit_source", source: validSource }),- ).rejects.toThrow(privateText);-- expect(log.mock.calls.map(([event]) => event)).toContainEqual(- expect.objectContaining({- name: "semantic_css.preflight",- durationMs: expect.any(Number),- diagnosticCodes: [],- success: false,- }),- );- const serialized = JSON.stringify(log.mock.calls);- expect(serialized).not.toContain(privateText);- expect(serialized).not.toContain(validSource.text);- expect(serialized).not.toContain("resume-1");- });-- it("deactivates without compiling or deleting either source", async () => {- const harness = createHarness();-- const result = await harness.service.mutate({ ...commonMutationInput, transition: "deactivate" });-- expect(result.stylesheet).toEqual({ ...previousStylesheet, mode: "legacy" });- expect(harness.compile).not.toHaveBeenCalled();- expect(harness.preflight).not.toHaveBeenCalled();- });-- it("does not rewrite invalid stored resume data during deactivation", async () => {- const initial = snapshot();- initial.data.customSections = [- {- id: "custom-experience",- type: "experience",- title: "Experience",- icon: "",- columns: 1,- hidden: false,- keepTogether: false,- startOnNewPage: false,- items: [{ id: "summary-item", hidden: false, content: "<p>Missing company</p>" }],- } as never,- ];- const harness = createHarness({ initial });-- const error = await harness.service- .mutate({ ...commonMutationInput, transition: "deactivate" })- .catch((caught: unknown) => caught);-- expect(error).toMatchObject({ code: "INTERNAL_SERVER_ERROR", status: 500 });- expect(error).toHaveProperty("cause.issues.0.path", ["customSections", 0, "items", 0, "company"]);- expect(harness.callOrder).not.toContain("update");- expect(harness.publish).not.toHaveBeenCalled();- });-- it("normalizes valid stored resume data during deactivation", async () => {- const initial = snapshot();- initial.data.customSections = [- {- id: "custom-experience",- type: "experience",- title: "Experience",- icon: "",- columns: 1,- hidden: false,- keepTogether: false,- startOnNewPage: false,- items: [- {- id: "experience-item",- hidden: false,- company: "Analytical Engines",- position: "Programmer",- location: "London",- period: "1842–1843",- description: "<p>Wrote the first algorithm.</p>",- content: "<p>Compatible overlap</p>",- },- ],- } as never,- ];- const harness = createHarness({ initial });-- await harness.service.mutate({ ...commonMutationInput, transition: "deactivate" });-- expect(harness.persisted().data.customSections[0]?.items[0]).toMatchObject({- content: "<p>Compatible overlap</p>",- roles: [],- website: { url: "", label: "", inlineLink: false },- });- });-- it("validates and preflights restored applied source independently from invalid editable source", async () => {- const restoredApplied = { ...validSource, text: "@version 1;\nresume { color: #abcdef; }\n" };- const compile = vi.fn((source: StylesheetSource) =>- source === restoredApplied ? successfulCompile : failedCompile,- );- const harness = createHarness({ compile });-- const result = await harness.service.mutate({- ...commonMutationInput,- transition: "restore_history",- restore: {- mode: "semantic",- source: invalidSource,- applied: restoredApplied,- },- });-- expect(compile).toHaveBeenCalledTimes(1);- expect(compile).toHaveBeenCalledWith(restoredApplied);- expect(harness.preflight).toHaveBeenCalledWith({- data: expect.any(Object),- stylesheet: restoredApplied,- });- expect(result.stylesheet).toEqual({- mode: "semantic",- source: invalidSource,- applied: restoredApplied,- });- });-- it("rejects locked resumes before compiler or preflight work", async () => {- const initial = { ...snapshot(), isLocked: true };- const harness = createHarness({ initial });-- await expect(- harness.service.mutate({ ...commonMutationInput, transition: "edit_source", source: validSource }),- ).rejects.toMatchObject({ code: "RESUME_LOCKED" });- expect(harness.compile).not.toHaveBeenCalled();- expect(harness.preflight).not.toHaveBeenCalled();- });-- it("returns the locked canonical snapshot on a two-version conflict without writing", async () => {- const locked = {- ...snapshot(),- stylesheetRevision: 4,- renderDataVersion: 9,- };- delete locked.data.metadata.stylesheet;- const harness = createHarness({ locked });-- const error = await harness.service- .mutate({ ...commonMutationInput, transition: "edit_source", source: validSource })- .catch((caught: unknown) => caught);-- expect(error).toMatchObject({- code: "STYLESHEET_REVISION_CONFLICT",- data: {- state: expect.objectContaining({- revision: 4,- renderDataVersion: 9,- stylesheet: expect.objectContaining({- mode: "legacy",- source: { languageVersion: 1, text: "@version 1;\n" },- }),- }),- },- });- expect(harness.callOrder).not.toContain("update");- expect(harness.publish).not.toHaveBeenCalled();- expect(harness.callOrder.indexOf("rollback")).toBeLessThan(harness.callOrder.indexOf("convertLegacy"));- });-- it("reloads the exact invalid source, last-valid applied source, and untouched legacy rules", async () => {- const harness = createHarness({ compile: () => failedCompile });- await harness.service.mutate({- ...commonMutationInput,- transition: "edit_source",- source: invalidSource,- });-- const reloaded = await harness.service.getState({ id: "resume-1", userId: "user-1" });-- expect(reloaded.stylesheet.source).toEqual(invalidSource);- expect(reloaded.stylesheet.applied).toEqual(previousApplied);- expect(harness.persisted().data.metadata.styleRules).toEqual(snapshot().data.metadata.styleRules);- });-});diff --git a/packages/api/src/features/resume/stylesheet-service.ts b/packages/api/src/features/resume/stylesheet-service.tsdeleted file mode 100644index c54b43395..000000000--- a/packages/api/src/features/resume/stylesheet-service.ts+++ /dev/null@@ -1,426 +0,0 @@-import type { PdfPreflightResult, StylesheetPreflightRunner } from "@reactive-resume/pdf/server";-import type { CompileStylesheetResult, SemanticCssDiagnostic } from "@reactive-resume/resume/stylesheet";-import type { ResumeData } from "@reactive-resume/schema/resume/data";-import type { SemanticStylesheet, StylesheetMode, StylesheetSource } from "@reactive-resume/schema/resume/stylesheet";-import type { SemanticCssEventInput } from "./stylesheet-observability";-import { ORPCError } from "@orpc/client";-import { and, eq } from "drizzle-orm";-import { db } from "@reactive-resume/db/client";-import * as schema from "@reactive-resume/db/schema";-import { compileStylesheet } from "@reactive-resume/resume/stylesheet";-import { EMPTY_SEMANTIC_CSS_SOURCE } from "@reactive-resume/schema/resume/stylesheet";-import { publishResumeUpdated } from "./events";-import { parseStoredResumeData } from "./resume-data-validation";-import { recordSemanticCssEvent } from "./stylesheet-observability";-import { convertLegacyStylesheet } from "./stylesheet-preflight";--export type StylesheetSnapshot = {- id: string;- userId: string;- data: ResumeData;- isLocked: boolean;- stylesheetRevision: number;- renderDataVersion: number;- updatedAt: Date;-};--type StylesheetMutationCommon = {- id: string;- userId: string;- expectedRevision: number;- expectedRenderDataVersion: number;- editGeneration: number;-};--export type MutateResumeStylesheetInput = StylesheetMutationCommon &- (- | { transition: "edit_source"; source: StylesheetSource }- | { transition: "activate"; source: StylesheetSource }- | { transition: "deactivate" }- | {- transition: "restore_history";- restore: {- mode: StylesheetMode;- source: StylesheetSource;- applied: StylesheetSource;- };- }- );--export type StylesheetState = {- stylesheet: SemanticStylesheet;- revision: number;- renderDataVersion: number;-};--export type StylesheetMutationResult = StylesheetState & {- editGeneration: number;- diagnostics: SemanticCssDiagnostic[];-};--type StylesheetTransaction = {- lock(input: { id: string; userId: string }): Promise<StylesheetSnapshot>;- update(input: { snapshot: StylesheetSnapshot; data: ResumeData }): Promise<StylesheetSnapshot>;-};--type StylesheetServiceDependencies = {- readSnapshot(input: { id: string; userId: string }): Promise<StylesheetSnapshot>;- convertLegacy(snapshot: StylesheetSnapshot): StylesheetSource | Promise<StylesheetSource>;- compile(source: StylesheetSource): CompileStylesheetResult;- preflight?(input: { data: ResumeData; stylesheet: StylesheetSource }): Promise<PdfPreflightResult>;- transaction<T>(run: (transaction: StylesheetTransaction) => Promise<T>): Promise<T>;- compare(snapshot: StylesheetSnapshot, input: StylesheetMutationCommon): boolean | Promise<boolean>;- publish(snapshot: StylesheetSnapshot): Promise<void>;- afterPreflight?(): Promise<void>;- observe?(event: SemanticCssEventInput): void;-};--class StylesheetRevisionConflict extends Error {- constructor(readonly snapshot: StylesheetSnapshot) {- super("The resume or stylesheet changed while the candidate was being validated.");- }-}--const emptySource = (): StylesheetSource => ({ languageVersion: 1, text: EMPTY_SEMANTIC_CSS_SOURCE });--export async function stylesheetFromSnapshot(- snapshot: StylesheetSnapshot,- convertLegacy: (snapshot: StylesheetSnapshot) => StylesheetSource | Promise<StylesheetSource>,-): Promise<SemanticStylesheet> {- const stylesheet = snapshot.data.metadata.stylesheet;- if (stylesheet) return stylesheet;-- return {- mode: "legacy",- source: await convertLegacy(snapshot),- applied: emptySource(),- };-}--const stateFromSnapshot = async (- snapshot: StylesheetSnapshot,- convertLegacy: (snapshot: StylesheetSnapshot) => StylesheetSource | Promise<StylesheetSource>,-): Promise<StylesheetState> => ({- stylesheet: await stylesheetFromSnapshot(snapshot, convertLegacy),- revision: snapshot.stylesheetRevision,- renderDataVersion: snapshot.renderDataVersion,-});--const preflightDiagnostic = (result: Extract<PdfPreflightResult, { ok: false }>): SemanticCssDiagnostic => ({- code: result.code,- severity: "error",- message: result.message,- range: {- start: { line: 1, column: 1, offset: 0 },- end: { line: 1, column: 1, offset: 0 },- },-});--const validationError = (message: string, diagnostics: readonly SemanticCssDiagnostic[]) =>- new ORPCError("STYLESHEET_VALIDATION_FAILED", {- status: 400,- message,- data: { diagnostics },- });--const unavailableError = () =>- new ORPCError("SEMANTIC_STYLESHEET_UNAVAILABLE", {- status: 503,- message: "Semantic stylesheet PDF preflight is unavailable.",- });--export function createStylesheetService(dependencies: StylesheetServiceDependencies): {- getState(input: { id: string; userId: string }): Promise<StylesheetState>;- mutate(input: MutateResumeStylesheetInput): Promise<StylesheetMutationResult>;-} {- const observe = dependencies.observe ?? recordSemanticCssEvent;- const sourceBytes = (source: StylesheetSource) => new TextEncoder().encode(source.text).byteLength;- const compile = (snapshot: StylesheetSnapshot, source: StylesheetSource) => {- const startedAt = performance.now();- try {- const result = dependencies.compile(source);- observe({- name: "semantic_css.compile",- resumeId: snapshot.id,- durationMs: performance.now() - startedAt,- languageVersion: source.languageVersion,- sourceBytes: sourceBytes(source),- template: snapshot.data.metadata.template,- diagnosticCodes: result.diagnostics.map(({ code }) => code),- pageCount: null,- revision: snapshot.stylesheetRevision,- success: result.program !== null,- });- return result;- } catch (error) {- observe({- name: "semantic_css.compile",- resumeId: snapshot.id,- durationMs: performance.now() - startedAt,- languageVersion: source.languageVersion,- sourceBytes: sourceBytes(source),- template: snapshot.data.metadata.template,- diagnosticCodes: [],- pageCount: null,- revision: snapshot.stylesheetRevision,- success: false,- });- throw error;- }- };- const runPreflight = async (snapshot: StylesheetSnapshot, stylesheet: StylesheetSource) => {- const startedAt = performance.now();- try {- if (!dependencies.preflight) throw unavailableError();- const result = await dependencies.preflight({ data: snapshot.data, stylesheet });- observe({- name: "semantic_css.preflight",- resumeId: snapshot.id,- durationMs: performance.now() - startedAt,- languageVersion: stylesheet.languageVersion,- sourceBytes: sourceBytes(stylesheet),- template: snapshot.data.metadata.template,- diagnosticCodes: result.diagnostics.map(({ code }) => code),- pageCount: result.ok ? result.pageCount : null,- revision: snapshot.stylesheetRevision,- success: result.ok,- });- return result;- } catch (error) {- observe({- name: "semantic_css.preflight",- resumeId: snapshot.id,- durationMs: performance.now() - startedAt,- languageVersion: stylesheet.languageVersion,- sourceBytes: sourceBytes(stylesheet),- template: snapshot.data.metadata.template,- diagnosticCodes: [],- pageCount: null,- revision: snapshot.stylesheetRevision,- success: false,- });- throw error;- }- };-- return {- getState: async (input) => stateFromSnapshot(await dependencies.readSnapshot(input), dependencies.convertLegacy),-- mutate: async (input) => {- const snapshot = await dependencies.readSnapshot(input);- let diagnostics: SemanticCssDiagnostic[] = [];- let activationPageCount: number | null = null;- const activationStartedAt = performance.now();- const observeActivation = (success: boolean, revision: number) => {- if (input.transition !== "activate") return;- observe({- name: "semantic_css.activate",- resumeId: snapshot.id,- durationMs: performance.now() - activationStartedAt,- languageVersion: input.source.languageVersion,- sourceBytes: sourceBytes(input.source),- template: snapshot.data.metadata.template,- diagnosticCodes: diagnostics.map(({ code }) => code),- pageCount: activationPageCount,- revision,- success,- });- };-- try {- if (snapshot.isLocked) throw new ORPCError("RESUME_LOCKED");-- const current = await stylesheetFromSnapshot(snapshot, dependencies.convertLegacy);- let next = current;- let didPreflight = false;-- if (input.transition === "edit_source") {- const compiled = compile(snapshot, input.source);- diagnostics = [...compiled.diagnostics];- next = { ...current, source: input.source };-- if (compiled.program && current.mode === "semantic") {- const preflight = await runPreflight(snapshot, input.source);- didPreflight = true;- diagnostics = preflight.ok- ? [...compiled.diagnostics, ...preflight.diagnostics]- : [...compiled.diagnostics, ...preflight.diagnostics, preflightDiagnostic(preflight)];- if (preflight.ok) next = { ...next, applied: input.source };- }- }-- if (input.transition === "activate") {- const compiled = compile(snapshot, input.source);- diagnostics = [...compiled.diagnostics];- if (!compiled.program) {- throw validationError("The stylesheet cannot be activated because it is invalid.", compiled.diagnostics);- }-- const preflight = await runPreflight(snapshot, input.source);- didPreflight = true;- activationPageCount = preflight.ok ? preflight.pageCount : null;- if (!preflight.ok) {- diagnostics = [...compiled.diagnostics, ...preflight.diagnostics, preflightDiagnostic(preflight)];- throw validationError("The stylesheet failed PDF preflight.", diagnostics);- }-- diagnostics = [...compiled.diagnostics, ...preflight.diagnostics];- next = { mode: "semantic", source: input.source, applied: input.source };- }-- if (input.transition === "deactivate") {- next = { ...current, mode: "legacy" };- }-- if (input.transition === "restore_history") {- const compiled = compile(snapshot, input.restore.applied);- if (!compiled.program) {- throw validationError("The historical applied stylesheet is invalid.", compiled.diagnostics);- }-- const preflight = await runPreflight(snapshot, input.restore.applied);- didPreflight = true;- if (!preflight.ok) {- throw validationError("The historical applied stylesheet failed PDF preflight.", [- ...compiled.diagnostics,- ...preflight.diagnostics,- preflightDiagnostic(preflight),- ]);- }-- diagnostics = [...compiled.diagnostics, ...preflight.diagnostics];- next = input.restore;- }-- if (didPreflight) await dependencies.afterPreflight?.();-- const updated = await dependencies.transaction(async (transaction) => {- const locked = await transaction.lock(input);- if (locked.isLocked) throw new ORPCError("RESUME_LOCKED");- if (!(await dependencies.compare(locked, input))) throw new StylesheetRevisionConflict(locked);- const data = parseStoredResumeData({- ...locked.data,- metadata: { ...locked.data.metadata, stylesheet: next },- });- return transaction.update({ snapshot: locked, data });- });-- await dependencies.publish(updated);- observeActivation(true, updated.stylesheetRevision);-- return {- ...(await stateFromSnapshot(updated, dependencies.convertLegacy)),- editGeneration: input.editGeneration,- diagnostics,- };- } catch (error) {- if (error instanceof StylesheetRevisionConflict) {- observeActivation(false, error.snapshot.stylesheetRevision);- throw new ORPCError("STYLESHEET_REVISION_CONFLICT", {- status: 409,- message: error.message,- data: {- state: await stateFromSnapshot(error.snapshot, dependencies.convertLegacy),- },- });- }-- observeActivation(false, snapshot.stylesheetRevision);- throw error;- }- },- };-}--type StylesheetDatabase = Pick<typeof db, "select" | "transaction">;--type DatabaseStylesheetServiceOptions = {- database?: StylesheetDatabase;- runner?: StylesheetPreflightRunner;- afterPreflight?: () => Promise<void>;- publish?: (snapshot: StylesheetSnapshot) => Promise<void>;-};--const snapshotSelection = {- id: schema.resume.id,- userId: schema.resume.userId,- data: schema.resume.data,- isLocked: schema.resume.isLocked,- stylesheetRevision: schema.resume.stylesheetRevision,- renderDataVersion: schema.resume.renderDataVersion,- updatedAt: schema.resume.updatedAt,-};--export function createDatabaseStylesheetService(options: DatabaseStylesheetServiceOptions = {}) {- const database = options.database ?? db;- const runner = options.runner;- const readSnapshot = async (input: { id: string; userId: string }) => {- const [snapshot] = await database- .select(snapshotSelection)- .from(schema.resume)- .where(and(eq(schema.resume.id, input.id), eq(schema.resume.userId, input.userId)));- if (!snapshot) throw new ORPCError("NOT_FOUND");- return snapshot;- };-- return createStylesheetService({- readSnapshot,- convertLegacy: convertLegacyStylesheet,- compile: compileStylesheet,- ...(runner- ? {- preflight: ({ data, stylesheet }: { data: ResumeData; stylesheet: StylesheetSource }) =>- runner.run({- data,- template: data.metadata.template,- stylesheet,- }),- }- : {}),- transaction: (run) =>- database.transaction((transaction) =>- run({- lock: async (input) => {- const [snapshot] = await transaction- .select(snapshotSelection)- .from(schema.resume)- .where(and(eq(schema.resume.id, input.id), eq(schema.resume.userId, input.userId)))- .for("update");- if (!snapshot) throw new ORPCError("NOT_FOUND");- return snapshot;- },- update: async ({ snapshot, data }) => {- const [updated] = await transaction- .update(schema.resume)- .set({- data,- stylesheetRevision: snapshot.stylesheetRevision + 1,- })- .where(and(eq(schema.resume.id, snapshot.id), eq(schema.resume.userId, snapshot.userId)))- .returning(snapshotSelection);- if (!updated) throw new ORPCError("NOT_FOUND");- return updated;- },- }),- ),- compare: (snapshot, input) =>- snapshot.stylesheetRevision === input.expectedRevision &&- snapshot.renderDataVersion === input.expectedRenderDataVersion,- publish:- options.publish ??- (async (snapshot) => {- try {- await publishResumeUpdated({- type: "resume.updated",- resumeId: snapshot.id,- userId: snapshot.userId,- updatedAt: snapshot.updatedAt.toISOString(),- mutation: "stylesheet",- });- } catch (error) {- console.warn("Failed to publish resume.updated event:", error);- }- }),- ...(options.afterPreflight ? { afterPreflight: options.afterPreflight } : {}),- });-}diff --git a/packages/api/src/features/resume/stylesheet.ts b/packages/api/src/features/resume/stylesheet.tsdeleted file mode 100644index 8c9fa934a..000000000--- a/packages/api/src/features/resume/stylesheet.ts+++ /dev/null@@ -1,64 +0,0 @@-import { protectedProcedure } from "../../context";-import { resumeDto } from "../../dto/resume";-import { resumeMutationRateLimit } from "../../middleware/rate-limit";-import { createDatabaseStylesheetService } from "./stylesheet-service";--const errors = {- SEMANTIC_STYLESHEET_UNAVAILABLE: {- message: "Semantic stylesheet PDF preflight is unavailable.",- status: 503,- },- STYLESHEET_VALIDATION_FAILED: {- message: "The stylesheet failed validation.",- status: 400,- data: resumeDto.stylesheet.errors.validation,- },- STYLESHEET_REVISION_CONFLICT: {- message: "The resume or stylesheet changed while the candidate was being validated.",- status: 409,- data: resumeDto.stylesheet.errors.revisionConflict,- },-} as const;--export const stylesheetRouter = {- getState: protectedProcedure- .route({- method: "GET",- path: "/resumes/{id}/stylesheet",- tags: ["Resumes"],- operationId: "getResumeStylesheetState",- summary: "Get resume stylesheet state",- description: "Returns the owner-only canonical semantic stylesheet state and concurrency versions.",- successDescription: "The canonical stylesheet state.",- })- .input(resumeDto.stylesheet.getState.input)- .output(resumeDto.stylesheet.getState.output)- .handler(({ context, input }) =>- createDatabaseStylesheetService({- ...(context.stylesheetPreflightRunner ? { runner: context.stylesheetPreflightRunner } : {}),- }).getState({ id: input.id, userId: context.user.id }),- ),-- mutate: protectedProcedure- .route({- method: "POST",- path: "/resumes/{id}/stylesheet",- tags: ["Resumes"],- operationId: "mutateResumeStylesheet",- summary: "Mutate resume stylesheet state",- description: "Applies one revisioned semantic stylesheet transition after validation and PDF preflight.",- successDescription: "The committed canonical stylesheet state.",- })- .input(resumeDto.stylesheet.mutate.input)- .use(resumeMutationRateLimit)- .output(resumeDto.stylesheet.mutate.output)- .errors(errors)- .handler(({ context, input }) =>- createDatabaseStylesheetService({- ...(context.stylesheetPreflightRunner ? { runner: context.stylesheetPreflightRunner } : {}),- }).mutate({- ...input,- userId: context.user.id,- }),- ),-};diff --git a/packages/api/src/features/resume/versions.ts b/packages/api/src/features/resume/versions.tsindex 98b185e60..c515a1f5f 100644--- a/packages/api/src/features/resume/versions.ts+++ b/packages/api/src/features/resume/versions.ts@@ -2,8 +2,6 @@ import { protectedProcedure } from "../../context";import { resumeDto } from "../../dto/resume";import { resumeMutationRateLimit } from "../../middleware/rate-limit";import { resumeService } from "./service";-import { convertLegacyStylesheet, validateHistoricalStylesheet } from "./stylesheet-preflight";-import { stylesheetFromSnapshot } from "./stylesheet-service";export const versionsRouter = {listVersions: protectedProcedure@@ -37,46 +35,11 @@ export const versionsRouter = {.input(resumeDto.restoreVersion.input).use(resumeMutationRateLimit).output(resumeDto.restoreVersion.output)- .errors({- SEMANTIC_STYLESHEET_UNAVAILABLE: {- message: "Semantic stylesheet PDF preflight is unavailable.",- status: 503,- },- STYLESHEET_VALIDATION_FAILED: {- message: "The historical stylesheet failed validation.",- status: 400,- },- })- .handler(async ({ context, input }) => {- const resume = await resumeService.versions.restore({+ .handler(({ context, input }) =>+ resumeService.versions.restore({resumeId: input.resumeId,versionId: input.versionId,userId: context.user.id,- prepareData: async ({ data, stylesheetRevision }) => {- const stylesheet = data.metadata.stylesheet;- if (!stylesheet) return data;-- const validated = await validateHistoricalStylesheet({- data,- resumeId: input.resumeId,- revision: stylesheetRevision,- stylesheet,- ...(context.stylesheetPreflightRunner ? { runner: context.stylesheetPreflightRunner } : {}),- });- return {- ...data,- metadata: { ...data.metadata, stylesheet: validated },- };- },- });- const stylesheet = await stylesheetFromSnapshot({ ...resume, userId: context.user.id }, convertLegacyStylesheet);- return {- resume,- stylesheetState: {- stylesheet,- revision: resume.stylesheetRevision,- renderDataVersion: resume.renderDataVersion,- },- };- }),+ }),+ ),};diff --git a/packages/db/src/schema/resume.ts b/packages/db/src/schema/resume.tsindex f662841a2..1915b28e4 100644--- a/packages/db/src/schema/resume.ts+++ b/packages/db/src/schema/resume.ts@@ -19,8 +19,6 @@ export const resume = pg.pgTable(isPublic: pg.boolean("is_public").notNull().default(false),isLocked: pg.boolean("is_locked").notNull().default(false),password: pg.text("password"),- stylesheetRevision: pg.integer("stylesheet_revision").notNull().default(0),- renderDataVersion: pg.integer("render_data_version").notNull().default(0),data: pg.jsonb("data").notNull()diff --git a/packages/import/src/reactive-resume-json.test.ts b/packages/import/src/reactive-resume-json.test.tsindex dd8f1ce96..d1672fd29 100644--- a/packages/import/src/reactive-resume-json.test.ts+++ b/packages/import/src/reactive-resume-json.test.ts@@ -8,6 +8,23 @@ describe("parseReactiveResumeJSON", () => {expect(result.basics.name).toBe(defaultResumeData.basics.name);});+ it("imports a historical applied stylesheet as canonical source-only data", () => {+ const source = { languageVersion: 1, text: "@version 1;\nname { color: red; }\n" };+ const data = {+ ...structuredClone(defaultResumeData),+ metadata: {+ ...structuredClone(defaultResumeData.metadata),+ stylesheet: {+ mode: "semantic",+ source,+ applied: { languageVersion: 1, text: "@version 1;\nname { color: blue; }\n" },+ },+ },+ };++ expect(parseReactiveResumeJSON(JSON.stringify(data)).metadata.stylesheet).toEqual({ mode: "semantic", source });+ });+it("throws a JSON-serialised validation error for an invalid object", () => {// Missing required top-level fields.expect(() => parseReactiveResumeJSON(JSON.stringify({ foo: "bar" }))).toThrow();diff --git a/packages/pdf/package.json b/packages/pdf/package.jsonindex 0f4ae140f..5ce261f79 100644--- a/packages/pdf/package.json+++ b/packages/pdf/package.json@@ -6,10 +6,8 @@"exports": {"./browser": "./src/browser.tsx","./document": "./src/document.tsx",- "./preflight": "./src/semantic/preflight-core.tsx",- "./preflight-reference": "./src/semantic/preflight-reference.ts",- "./public-projection": "./src/semantic/public-projection.ts","./semantic": "./src/semantic/index.ts",+ "./semantic-legacy": "./src/semantic/legacy-converter.ts","./semantic-manifest": "./src/semantic/template-manifest.ts","./semantic-tree": "./src/semantic/tree.ts","./section-title": "./src/section-title.ts",diff --git a/packages/pdf/src/browser.test.tsx b/packages/pdf/src/browser.test.tsxindex e51fe7f74..fde8ecbbf 100644--- a/packages/pdf/src/browser.test.tsx+++ b/packages/pdf/src/browser.test.tsx@@ -2,7 +2,6 @@ import type { ResumeData } from "@reactive-resume/schema/resume/data";import type { SectionTitleResolver } from "./section-title";import { beforeEach, describe, expect, it, vi } from "vitest";import { sampleResumeData } from "@reactive-resume/schema/resume/sample";-import { createPublicStyleProjection } from "./semantic/public-projection";const rendererMock = vi.hoisted(() => ({pdf: vi.fn(() => ({@@ -120,70 +119,12 @@ describe("createResumePdfBlob", () => {await expect(promise).rejects.toThrow("renderer failed");});- it("renders a source-free public projection through the semantic runtime", async () => {- const semanticData = structuredClone(sampleResumeData);- const applied = { languageVersion: 1, text: "@version 1;\nname { color: #123456; }\n" };- semanticData.metadata.stylesheet = { mode: "semantic", source: applied, applied };- const projection = await createPublicStyleProjection({ data: semanticData });- const publicData = structuredClone(semanticData);- delete publicData.metadata.stylesheet;- const { createResumePdfBlob } = await import("./browser");-- await createResumePdfBlob({ data: publicData, publicStyleProjection: projection });-- expect(rendererMock.pdf).toHaveBeenCalledWith(- expect.objectContaining({- props: expect.objectContaining({- data: publicData,- semanticRuntime: expect.objectContaining({- presentation: expect.objectContaining({- "page-1/region-header/header/name": { style: { color: "#123456" } },- }),- }),- }),- }),- );- });-- it("returns semantic diagnostics without rendering an invalid applied source", async () => {+ it("renders with base styles when the source is fatal", async () => {const data = structuredClone(sampleResumeData);- const invalid = { languageVersion: 1, text: "@version 1; section { color: ; }" };- data.metadata.stylesheet = { mode: "semantic", source: invalid, applied: invalid };- const { createResumePdfBlobResult } = await import("./browser");-- const result = await createResumePdfBlobResult({ data });-- expect(result).toMatchObject({- ok: false,- diagnostics: [expect.objectContaining({ severity: "error" })],- });- expect(rendererMock.pdf).not.toHaveBeenCalled();- });-- it("rejects unchecked rendering instead of producing an unstyled PDF for semantic errors", async () => {- const data = structuredClone(sampleResumeData);- const invalid = { languageVersion: 1, text: "@version 1; section { color: ; }" };- data.metadata.stylesheet = { mode: "semantic", source: invalid, applied: invalid };+ data.metadata.stylesheet = { mode: "semantic", source: { languageVersion: 2, text: "@version 2;" } };const { createResumePdfBlob } = await import("./browser");- await expect(createResumePdfBlob({ data })).rejects.toMatchObject({- cause: [expect.objectContaining({ severity: "error" })],- });- expect(rendererMock.pdf).not.toHaveBeenCalled();- });-- it("accepts an optional prior semantic inspection on the result path", async () => {- const { createResumePdfBlobResult } = await import("./browser");- const inspection = {- presentation: {},- sourceTree: { key: "resume", kind: "resume", attributes: {}, roles: [], children: [] },- renderTree: { key: "resume", kind: "resume", attributes: {}, roles: [], children: [] },- diagnostics: [],- } as const;-- const result = await createResumePdfBlobResult({ data: sampleResumeData, inspection });-- expect(result).toMatchObject({ ok: true, diagnostics: [] });+ await expect(createResumePdfBlob({ data })).resolves.toHaveProperty("type", "application/pdf");expect(rendererMock.pdf).toHaveBeenCalledTimes(1);});});diff --git a/packages/pdf/src/browser.tsx b/packages/pdf/src/browser.tsxindex 76f94a9ad..16d3fea9e 100644--- a/packages/pdf/src/browser.tsx+++ b/packages/pdf/src/browser.tsx@@ -2,79 +2,31 @@ import type { ResumeData } from "@reactive-resume/schema/resume/data";import type { Template } from "@reactive-resume/schema/templates";import type { ResumeRenderOptions } from "./context";import type { SectionTitleResolver } from "./section-title";-import type { ResolvedResumeRuntime, ResumePdfRenderResult } from "./semantic";-import type { PublicStyleProjection } from "./semantic/public-projection";import { createElement } from "react";import { parseResumeData } from "@reactive-resume/schema/resume/data";import { pdf } from "#react-pdf-renderer";import { ResumeDocument } from "./document";-import { hasSemanticErrors, inspectResumePdf } from "./semantic";-import { resolvePublicStyleProjectionRuntime } from "./semantic/public-projection";--export type {- BrowserPdfPreflightResult,- PdfPreflightFailure,- PdfPreflightPageLimits,- PdfPreflightResult,- RenderPreflightPdfResult,- StylesheetPreflightInput,-} from "./semantic/preflight-core";-export { renderPreflightPdf } from "./semantic/preflight-core";export type CreateResumePdfBlobOptions = {data: ResumeData;template?: Template | undefined;renderOptions?: ResumeRenderOptions | undefined;resolveSectionTitle?: SectionTitleResolver | undefined;- publicStyleProjection?: PublicStyleProjection | undefined;-};--export type CreateResumePdfBlobResultOptions = CreateResumePdfBlobOptions & {- inspection?: ResolvedResumeRuntime | undefined;};-const renderResumePdfBlob = async ({- data,+export const createResumePdfBlob = async ({+ data: input,template,renderOptions,resolveSectionTitle,- publicStyleProjection,-}: CreateResumePdfBlobOptions) => {- const semanticRuntime = publicStyleProjection- ? await resolvePublicStyleProjectionRuntime(data, publicStyleProjection)- : undefined;+}: CreateResumePdfBlobOptions): Promise<Blob> => {+ const data = parseResumeData(input);const document = createElement(ResumeDocument, {data,template: template ?? data.metadata.template,...(renderOptions ? { renderOptions } : {}),resolveSectionTitle,- ...(semanticRuntime ? { semanticRuntime } : {}),}) as Parameters<typeof pdf>[0];- return pdf(document).toBlob();-};--export const createResumePdfBlobResult = async ({- inspection,- ...options-}: CreateResumePdfBlobResultOptions): Promise<ResumePdfRenderResult<Blob>> => {- const normalizedOptions = { ...options, data: parseResumeData(options.data) };- const resolvedInspection = inspection ?? inspectResumePdf(normalizedOptions);- if (hasSemanticErrors(resolvedInspection)) {- return { ok: false, diagnostics: resolvedInspection.diagnostics };- }-- return {- ok: true,- value: await renderResumePdfBlob(normalizedOptions),- diagnostics: resolvedInspection.diagnostics,- };-};--export const createResumePdfBlob = async (options: CreateResumePdfBlobOptions): Promise<Blob> => {- const result = await createResumePdfBlobResult(options);- if (!result.ok) {- throw new Error("The semantic stylesheet could not be rendered.", { cause: result.diagnostics });- }- return result.value;+ return await pdf(document).toBlob();};diff --git a/packages/pdf/src/semantic/all-templates-fixture.ts b/packages/pdf/src/semantic/all-templates-fixture.tsindex 859853e54..a5cad9138 100644--- a/packages/pdf/src/semantic/all-templates-fixture.ts+++ b/packages/pdf/src/semantic/all-templates-fixture.ts@@ -54,7 +54,6 @@ export const buildAllTemplatesFixture = (template: Template) => {data.metadata.stylesheet = {mode: "semantic",source: comprehensiveStylesheet,- applied: comprehensiveStylesheet,};return data;};diff --git a/packages/pdf/src/semantic/all-templates-presentation.test.ts b/packages/pdf/src/semantic/all-templates-presentation.test.tsindex 6bc594010..9efef2cbf 100644--- a/packages/pdf/src/semantic/all-templates-presentation.test.ts+++ b/packages/pdf/src/semantic/all-templates-presentation.test.ts@@ -15,7 +15,7 @@ describe("Semantic CSS all-template presentation", () => {const runtime = resolveResumeRuntime({data,template,- applied: comprehensiveStylesheet,+ source: comprehensiveStylesheet,mode: "semantic",});@@ -34,7 +34,7 @@ describe("Semantic CSS all-template presentation", () => {const { sourceTree } = resolveResumeRuntime({data,template,- applied: comprehensiveStylesheet,+ source: comprehensiveStylesheet,mode: "semantic",});const templateParts = new Set<string>();diff --git a/packages/pdf/src/semantic/base-reset-fidelity.test.tsx b/packages/pdf/src/semantic/base-reset-fidelity.test.tsxindex c9a3176d1..1a2dba6b2 100644--- a/packages/pdf/src/semantic/base-reset-fidelity.test.tsx+++ b/packages/pdf/src/semantic/base-reset-fidelity.test.tsx@@ -54,7 +54,7 @@ const buildFixture = (template: Template, rule = ""): ResumeData => {: [{ fullWidth: true, main: ["skills"], sidebar: [] }];const stylesheet = { languageVersion: 1, text: `@version 1; ${rule}` };- data.metadata.stylesheet = { mode: "semantic", source: stylesheet, applied: stylesheet };+ data.metadata.stylesheet = { mode: "semantic", source: stylesheet };return data;};@@ -88,7 +88,7 @@ const finalOnyxCompanyStyle = async (keyword?: "inherit" | "initial" | "revert"keyword ? `section[type="experience"] field[name="company"] { font-weight: ${keyword}; }` : ""}`;const stylesheet = { languageVersion: 1, text };- data.metadata.stylesheet = { mode: "semantic", source: stylesheet, applied: stylesheet };+ data.metadata.stylesheet = { mode: "semantic", source: stylesheet };const element = createElement(ResumeDocument, { data, template: "onyx" }) as unknown as Parameters<typeof pdf>[0];const instance = pdf(element);await expect.poll(() => instance.container.document).not.toBeNull();diff --git a/packages/pdf/src/semantic/binding-host-fidelity.test.tsx b/packages/pdf/src/semantic/binding-host-fidelity.test.tsxindex 57d0c2fbf..0eb912fa2 100644--- a/packages/pdf/src/semantic/binding-host-fidelity.test.tsx+++ b/packages/pdf/src/semantic/binding-host-fidelity.test.tsx@@ -97,7 +97,7 @@ const buildFixture = (data.metadata.page.hideIcons = false;data.metadata.layout.pages = [{ fullWidth: true, main: [section], sidebar: [] }];const stylesheet = { languageVersion: 1, text: `@version 1; ${text}` };- data.metadata.stylesheet = { mode: "semantic", source: stylesheet, applied: stylesheet };+ data.metadata.stylesheet = { mode: "semantic", source: stylesheet };return data;};diff --git a/packages/pdf/src/semantic/combined-field-bindings.test.tsx b/packages/pdf/src/semantic/combined-field-bindings.test.tsxindex a8a4e57eb..503be0d3a 100644--- a/packages/pdf/src/semantic/combined-field-bindings.test.tsx+++ b/packages/pdf/src/semantic/combined-field-bindings.test.tsx@@ -71,7 +71,7 @@ const fixture = (mode: "legacy" | "semantic", section: "experience" | "educationdata.metadata.layout.pages = [{ fullWidth: true, main: [section], sidebar: [] }];if (mode === "semantic") {const stylesheet = { languageVersion: 1, text: `@version 1; ${rule}` };- data.metadata.stylesheet = { mode, source: stylesheet, applied: stylesheet };+ data.metadata.stylesheet = { mode, source: stylesheet };}return data;};diff --git a/packages/pdf/src/semantic/index.ts b/packages/pdf/src/semantic/index.tsindex 739a35378..6d945999b 100644--- a/packages/pdf/src/semantic/index.ts+++ b/packages/pdf/src/semantic/index.ts@@ -1,44 +1,9 @@-import type { ResumeData } from "@reactive-resume/schema/resume/data";-import type { StylesheetMode, StylesheetSource } from "@reactive-resume/schema/resume/stylesheet";-import type { Template } from "@reactive-resume/schema/templates";-import type { ResolvedResumeRuntime } from "./resolve";-import { resolveResumeRuntime, resolveStylesheetMode } from "./resolve";--export type InspectResumePdfOptions = {- data: ResumeData;- template?: Template | undefined;- applied?: StylesheetSource | undefined;- mode?: StylesheetMode | undefined;-};--export type ResumePdfRenderResult<T> =- | { ok: true; value: T; diagnostics: ResolvedResumeRuntime["diagnostics"] }- | { ok: false; diagnostics: ResolvedResumeRuntime["diagnostics"] };--export const inspectResumePdf = ({- data,- template = data.metadata.template,- applied,- mode = resolveStylesheetMode(data),-}: InspectResumePdfOptions): ResolvedResumeRuntime =>- resolveResumeRuntime({- data,- template,- mode,- ...(applied ? { applied } : {}),- });--export const hasSemanticErrors = ({ diagnostics }: Pick<ResolvedResumeRuntime, "diagnostics">): boolean =>- diagnostics.some(({ severity }) => severity === "error");-export type {ResolvedResumeRuntime,ResolveResumePresentationInput,} from "./resolve";export * from "./legacy-converter";export * from "./legacy-parity";-export * from "./preflight-core";-export * from "./public-projection";export {resolveResumePresentation,resolveResumeRuntime,diff --git a/packages/pdf/src/semantic/issue-fixtures.test.tsx b/packages/pdf/src/semantic/issue-fixtures.test.tsxindex 8100ebd3d..254b9f772 100644--- a/packages/pdf/src/semantic/issue-fixtures.test.tsx+++ b/packages/pdf/src/semantic/issue-fixtures.test.tsx@@ -8,7 +8,7 @@ import { ResumeDocument } from "../document";import { semanticNodeKeys } from "./node-keys";import { resolveResumePresentation, resolveStylesheetMode } from "./resolve";-const applied = (text: string) => ({ languageVersion: 1, text });+const source = (text: string) => ({ languageVersion: 1, text });type HostNode = {type: string;@@ -90,7 +90,7 @@ const resolveIssueFixture = (text: string) => {return resolveResumePresentation({data,template: "onyx",- applied: applied(text),+ source: source(text),mode: "semantic",});};@@ -138,7 +138,7 @@ describe("semantic issue fixtures", () => {resolveResumePresentation({data,template: "onyx",- applied: applied(`@version 1;${text}`),+ source: source(`@version 1;${text}`),mode: "semantic",});@@ -157,11 +157,11 @@ describe("semantic issue fixtures", () => {header { background-color: #1e293b; }name { color: white; }`);- const invalid = compileStylesheet(applied("@version 1; header { background-image: linear-gradient(red, blue); }"));+ const invalid = compileStylesheet(source("@version 1; header { background-image: linear-gradient(red, blue); }"));expect(valid[headerKey]?.style?.backgroundColor).toBe("#1e293b");expect(valid[semanticNodeKeys.headerPart(headerKey, "name")]?.style?.color).toBe("white");- expect(invalid.program).toBeNull();+ expect(invalid.program).not.toBeNull();});it("unbolds only skill names and leaves experience titles unchanged (#2223)", () => {@@ -180,8 +180,7 @@ describe("semantic issue fixtures", () => {const semanticData = buildIssueFixture();semanticData.metadata.stylesheet = {mode: "semantic",- source: applied("@version 1;"),- applied: applied("@version 1;"),+ source: source("@version 1;"),};const legacyData = buildIssueFixture();@@ -191,7 +190,7 @@ describe("semantic issue fixtures", () => {resolveResumePresentation({data: legacyData,template: "onyx",- applied: applied("@version 1; name { color: red; }"),+ source: source("@version 1; name { color: red; }"),mode: "legacy",}),).toEqual({});@@ -199,7 +198,7 @@ describe("semantic issue fixtures", () => {it("applies issue-regression styles to the final existing PDF primitives", async () => {const data = buildIssueFixture();- const stylesheet = applied(`+ const stylesheet = source(`@version 1;header { background-color: #1e293b; }name { color: white; }@@ -208,7 +207,7 @@ describe("semantic issue fixtures", () => {section[type="skills"] field[name="name"] { font-weight: 400; }level icon[role~="active"] { opacity: 0.2; }`);- data.metadata.stylesheet = { mode: "semantic", source: stylesheet, applied: stylesheet };+ data.metadata.stylesheet = { mode: "semantic", source: stylesheet };const element = createElement(ResumeDocument, { data, template: "onyx" }) as unknown as Parameters<typeof pdf>[0];const instance = pdf(element);await vi.waitFor(() => expect(instance.container.document).not.toBeNull());@@ -226,11 +225,11 @@ describe("semantic issue fixtures", () => {it("unbolds only the final skill-name primitive and preserves the experience title weight (#2223)", async () => {const data = buildIssueFixture();- const stylesheet = applied(`+ const stylesheet = source(`@version 1;section[type="skills"] field[name="name"] { font-weight: 400; }`);- data.metadata.stylesheet = { mode: "semantic", source: stylesheet, applied: stylesheet };+ data.metadata.stylesheet = { mode: "semantic", source: stylesheet };const element = createElement(ResumeDocument, { data, template: "onyx" }) as unknown as Parameters<typeof pdf>[0];const instance = pdf(element);await vi.waitFor(() => expect(instance.container.document).not.toBeNull());@@ -253,12 +252,12 @@ describe("semantic issue fixtures", () => {keywords: [],}));data.metadata.layout.pages = [{ fullWidth: true, main: ["skills"], sidebar: [] }];- const stylesheet = applied(`+ const stylesheet = source(`@version 1;section[type="skills"] item:nth-child(2) { display: none; }section[type="skills"] item:last-child { order: -1; }`);- data.metadata.stylesheet = { mode: "semantic", source: stylesheet, applied: stylesheet };+ data.metadata.stylesheet = { mode: "semantic", source: stylesheet };const element = createElement(ResumeDocument, { data, template: "onyx" }) as unknown as Parameters<typeof pdf>[0];const instance = pdf(element);await vi.waitFor(() => expect(instance.container.document).not.toBeNull());diff --git a/packages/pdf/src/semantic/legacy-parity.ts b/packages/pdf/src/semantic/legacy-parity.tsindex 714274771..6e5e0ec61 100644--- a/packages/pdf/src/semantic/legacy-parity.ts+++ b/packages/pdf/src/semantic/legacy-parity.ts@@ -286,7 +286,6 @@ export async function compareLegacySemanticPresentation(stylesheet: {mode: "semantic",source: input.convertedSource,- applied: input.convertedSource,},},};diff --git a/packages/pdf/src/semantic/legacy-render-parity.test.tsx b/packages/pdf/src/semantic/legacy-render-parity.test.tsxindex c6ebfafe3..086d8003b 100644--- a/packages/pdf/src/semantic/legacy-render-parity.test.tsx+++ b/packages/pdf/src/semantic/legacy-render-parity.test.tsx@@ -162,7 +162,7 @@ const semanticData = (data: ResumeData): ResumeData => {const conversion = convertLegacyStyleRules(data);const semantic = structuredClone(data);semantic.metadata.styleRules = [...conversion.sanitizedRules];- semantic.metadata.stylesheet = { mode: "semantic", source: conversion.source, applied: conversion.source };+ semantic.metadata.stylesheet = { mode: "semantic", source: conversion.source };return semantic;};diff --git a/packages/pdf/src/semantic/link-fidelity.test.tsx b/packages/pdf/src/semantic/link-fidelity.test.tsxindex 8fe3444bd..91ba715bb 100644--- a/packages/pdf/src/semantic/link-fidelity.test.tsx+++ b/packages/pdf/src/semantic/link-fidelity.test.tsx@@ -28,7 +28,7 @@ const buildFixture = (if (mode !== "missing") {const stylesheet = { languageVersion: 1, text };- data.metadata.stylesheet = { mode, source: stylesheet, applied: stylesheet };+ data.metadata.stylesheet = { mode, source: stylesheet };}return data;diff --git a/packages/pdf/src/semantic/no-wrapper.test.tsx b/packages/pdf/src/semantic/no-wrapper.test.tsxindex c2b338f04..9037041f4 100644--- a/packages/pdf/src/semantic/no-wrapper.test.tsx+++ b/packages/pdf/src/semantic/no-wrapper.test.tsx@@ -53,7 +53,6 @@ const buildFixture = (mode: "legacy" | "semantic"): ResumeData => {data.metadata.stylesheet = {mode,source: semanticSource(),- applied: semanticSource(),};}return data;diff --git a/packages/pdf/src/semantic/pagination-cancellation.test.tsx b/packages/pdf/src/semantic/pagination-cancellation.test.tsxindex 57b0d614c..3ea0a11a5 100644--- a/packages/pdf/src/semantic/pagination-cancellation.test.tsx+++ b/packages/pdf/src/semantic/pagination-cancellation.test.tsx@@ -57,7 +57,7 @@ const buildFixture = (value: string): ResumeData => {languageVersion: 1,text: `@version 1; section[type="summary"] { break-before: ${value}; break-inside: ${value}; }`,};- data.metadata.stylesheet = { mode: "semantic", source, applied: source };+ data.metadata.stylesheet = { mode: "semantic", source };return data;};diff --git a/packages/pdf/src/semantic/pagination.test.tsx b/packages/pdf/src/semantic/pagination.test.tsxindex c5ddf41fe..c7d8fab33 100644--- a/packages/pdf/src/semantic/pagination.test.tsx+++ b/packages/pdf/src/semantic/pagination.test.tsx@@ -58,7 +58,7 @@ const parsePdf = (data: Uint8Array): Promise<ParsedPdf> => getDocument({ data })const overflowingFixture = (pageSize: "A4" | "LETTER"): ResumeData => {const data = structuredClone(defaultResumeData);- const applied = {+ const source = {languageVersion: 1,text: `@version 1;@@ -75,7 +75,7 @@ const overflowingFixture = (pageSize: "A4" | "LETTER"): ResumeData => {(_value, index) => `<p>Overflow line ${index + 1} with enough text to occupy the authored page.</p>`,).join("");data.metadata.layout.pages = [{ fullWidth: true, main: ["summary"], sidebar: [] }];- data.metadata.stylesheet = { mode: "semantic", source: applied, applied };+ data.metadata.stylesheet = { mode: "semantic", source };return data;};@@ -96,14 +96,14 @@ const readPhysicalPages = async (document: ParsedPdf) => {describe("semantic pagination bindings", () => {it("passes resolved authored-page size to the existing Page primitive", async () => {const data = structuredClone(defaultResumeData);- const applied = {+ const source = {languageVersion: 1,text: '@version 1;\npage[page-number="1"] { size: LETTER; }',};data.picture.hidden = true;data.basics.name = "Ada Lovelace";data.metadata.layout.pages = [{ fullWidth: true, main: [], sidebar: [] }];- data.metadata.stylesheet = { mode: "semantic", source: applied, applied };+ data.metadata.stylesheet = { mode: "semantic", source };const page = findFirst(await renderHostTree(data), "PAGE");diff --git a/packages/pdf/src/semantic/preflight-core.test.tsx b/packages/pdf/src/semantic/preflight-core.test.tsxdeleted file mode 100644index 3b8545fd6..000000000--- a/packages/pdf/src/semantic/preflight-core.test.tsx+++ /dev/null@@ -1,204 +0,0 @@-import type { ResumeData } from "@reactive-resume/schema/resume/data";-import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";-import { defaultResumeData } from "@reactive-resume/schema/resume/default";--let renderPreflightPdf: typeof import("./preflight-core").renderPreflightPdf;--const rendererMock = vi.hoisted(() => ({- pdf: vi.fn(() => ({- toBlob: vi.fn(async () => new Blob(["%PDF-1.7"], { type: "application/pdf" })),- })),-}));--vi.mock("#react-pdf-renderer", async (importOriginal) => ({- ...(await importOriginal<typeof import("@react-pdf/renderer")>()),- pdf: rendererMock.pdf,-}));--beforeAll(async () => {- vi.resetModules();- ({ renderPreflightPdf } = await import("./preflight-core"));-});--afterAll(() => {- vi.doUnmock("#react-pdf-renderer");- vi.resetModules();-});--const validStylesheet = {- languageVersion: 1,- text: "@version 1;",-} as const;--const pageLimits = {- maxPageWidthPt: 2_000,- maxPageHeightPt: 20_000,- maxPageAreaPt2: 20_000_000,-} as const;--const createRendererUnsafeResumeData = (): ResumeData => {- const data = structuredClone(defaultResumeData);- data.customSections = [- {- id: "custom-experience",- type: "experience",- title: "Experience",- icon: "",- columns: 1,- hidden: false,- keepTogether: false,- startOnNewPage: false,- items: [{ id: "summary-shaped-item", hidden: false, content: "<p>Missing company</p>" }],- } as never,- ];- return data;-};--const createLegacyRendererSafeResumeData = (): ResumeData =>- ({- ...structuredClone(defaultResumeData),- customSections: [- {- id: "custom-experience",- type: "experience",- title: "Experience",- icon: "",- columns: 1,- hidden: false,- keepTogether: false,- startOnNewPage: false,- items: [- {- id: "experience-item",- hidden: false,- company: "Analytical Engines",- position: "Programmer",- location: "London",- period: "1842–1843",- description: "<p>Wrote the first algorithm.</p>",- content: "<p>Compatible overlap</p>",- },- ],- },- ],- }) as unknown as ResumeData;--describe("renderPreflightPdf", () => {- beforeEach(() => {- rendererMock.pdf.mockReset();- rendererMock.pdf.mockImplementation(() => ({- toBlob: vi.fn(async () => new Blob(["%PDF-1.7"], { type: "application/pdf" })),- }));- });-- it("renders a valid semantic candidate to transferable PDF bytes", async () => {- const result = await renderPreflightPdf(- {- data: createLegacyRendererSafeResumeData(),- template: defaultResumeData.metadata.template,- stylesheet: validStylesheet,- },- pageLimits,- );-- expect(result).toMatchObject({ ok: true, diagnostics: [] });- expect(result.ok && new TextDecoder().decode(result.bytes)).toBe("%PDF-1.7");- expect(rendererMock.pdf).toHaveBeenCalledWith(- expect.objectContaining({- props: expect.objectContaining({- data: expect.objectContaining({- customSections: [- expect.objectContaining({- items: [- expect.objectContaining({- content: "<p>Compatible overlap</p>",- roles: [],- website: { url: "", label: "", inlineLink: false },- }),- ],- }),- ],- }),- }),- }),- );- });-- it("returns compiler diagnostics without starting the renderer", async () => {- const result = await renderPreflightPdf(- {- data: defaultResumeData,- template: defaultResumeData.metadata.template,- stylesheet: { languageVersion: 1, text: "@version 1; page { color: ; }" },- },- pageLimits,- );-- expect(result).toMatchObject({- ok: false,- code: "STYLESHEET_PREFLIGHT_INVALID",- diagnostics: [expect.objectContaining({ severity: "error" })],- });- expect(rendererMock.pdf).not.toHaveBeenCalled();- });-- it("rejects renderer-unsafe data before semantic inspection or React PDF dispatch", async () => {- const result = renderPreflightPdf(- {- data: createRendererUnsafeResumeData(),- template: defaultResumeData.metadata.template,- stylesheet: validStylesheet,- },- pageLimits,- );-- await expect(result).rejects.toMatchObject({- name: "ZodError",- issues: expect.arrayContaining([expect.objectContaining({ path: ["customSections", 0, "items", 0, "company"] })]),- });- expect(rendererMock.pdf).not.toHaveBeenCalled();- });-- it("returns a stable public failure when React PDF throws", async () => {- rendererMock.pdf.mockReturnValueOnce({- toBlob: vi.fn(() => Promise.reject(new Error("sensitive renderer details"))),- });-- const result = await renderPreflightPdf(- {- data: defaultResumeData,- template: defaultResumeData.metadata.template,- stylesheet: validStylesheet,- },- pageLimits,- );-- expect(result).toMatchObject({- ok: false,- code: "STYLESHEET_PREFLIGHT_RENDER_FAILED",- message: "PDF rendering failed.",- diagnostics: [],- });- });-- it.each([- ["width", "2001pt 1000pt"],- ["height", "1000pt 20001pt"],- ["area", "1500pt 15000pt"],- ])("rejects authored page %s limits before starting the renderer", async (_limit, size) => {- const result = await renderPreflightPdf(- {- data: defaultResumeData,- template: defaultResumeData.metadata.template,- stylesheet: { languageVersion: 1, text: `@version 1; page { size: ${size}; }` },- },- pageLimits,- );-- expect(result).toMatchObject({- ok: false,- code: "STYLESHEET_PREFLIGHT_PAGE_SIZE_LIMIT",- });- expect(rendererMock.pdf).not.toHaveBeenCalled();- });-});diff --git a/packages/pdf/src/semantic/preflight-core.tsx b/packages/pdf/src/semantic/preflight-core.tsxdeleted file mode 100644index 67b2b015e..000000000--- a/packages/pdf/src/semantic/preflight-core.tsx+++ /dev/null@@ -1,138 +0,0 @@-import type { SemanticCssDiagnostic } from "@reactive-resume/resume/stylesheet";-import type { ResumeData } from "@reactive-resume/schema/resume/data";-import type { StylesheetSource } from "@reactive-resume/schema/resume/stylesheet";-import type { Template } from "@reactive-resume/schema/templates";-import type { PdfPreflightFailureCode } from "./preflight-reference";-import { createElement } from "react";-import { parseResumeData } from "@reactive-resume/schema/resume/data";-import { pdf } from "#react-pdf-renderer";-import { ResumeDocument } from "../document";-import { getTemplatePageSize } from "../templates/shared/page-size";-import { semanticNodeKeys } from "./node-keys";-import { resolveResumeRuntime } from "./resolve";--export type { PdfPreflightFailureCode } from "./preflight-reference";--export type StylesheetPreflightInput = {- data: ResumeData;- template: Template;- stylesheet: StylesheetSource;-};--export type PdfPreflightPageLimits = {- maxPageWidthPt: number;- maxPageHeightPt: number;- maxPageAreaPt2: number;-};--export type PdfPreflightFailure = {- ok: false;- code: PdfPreflightFailureCode;- message: string;- diagnostics: readonly SemanticCssDiagnostic[];-};--export type PdfPreflightResult =- | {- ok: true;- pageCount: number;- byteCount: number;- diagnostics: readonly SemanticCssDiagnostic[];- }- | PdfPreflightFailure;--export type RenderPreflightPdfResult =- | {- ok: true;- bytes: Uint8Array;- diagnostics: readonly SemanticCssDiagnostic[];- }- | PdfPreflightFailure;--export type StylesheetPreflightRunner = {- run(input: StylesheetPreflightInput): Promise<PdfPreflightResult>;-};--export type BrowserPdfPreflightResult =- | (Extract<PdfPreflightResult, { ok: true }> & { pdf: ArrayBuffer })- | PdfPreflightFailure;--const pageDimensions = (size: "A4" | "LETTER" | { width: number; height?: number }) => {- if (size === "LETTER") return { width: 612, height: 792 };- if (size === "A4") return { width: 595.28, height: 841.89 };- return { width: size.width, height: size.height ?? 841.89 };-};--const pageSizeFailure = (- data: ResumeData,- presentation: ReturnType<typeof resolveResumeRuntime>["presentation"],- limits: PdfPreflightPageLimits,-): PdfPreflightFailure | undefined => {- const fallbackSize = getTemplatePageSize(data.metadata.page.format);-- for (const index of data.metadata.layout.pages.keys()) {- const size = presentation[semanticNodeKeys.page(index + 1)]?.size ?? fallbackSize;- const { width, height } = pageDimensions(size);- if (width > limits.maxPageWidthPt || height > limits.maxPageHeightPt || width * height > limits.maxPageAreaPt2) {- return {- ok: false,- code: "STYLESHEET_PREFLIGHT_PAGE_SIZE_LIMIT",- message: "The authored page size exceeds the PDF preflight limit.",- diagnostics: [],- };- }- }-};--export async function renderPreflightPdf(- input: StylesheetPreflightInput,- pageLimits: PdfPreflightPageLimits,-): Promise<RenderPreflightPdfResult> {- const parsedData = parseResumeData(input.data);- const data = {- ...parsedData,- metadata: {- ...parsedData.metadata,- stylesheet: {- mode: "semantic" as const,- source: input.stylesheet,- applied: input.stylesheet,- },- },- };- const inspection = resolveResumeRuntime({- data,- template: input.template,- applied: input.stylesheet,- mode: "semantic",- });-- if (inspection.diagnostics.some(({ severity }) => severity === "error")) {- return {- ok: false,- code: "STYLESHEET_PREFLIGHT_INVALID",- message: "The stylesheet cannot be rendered.",- diagnostics: inspection.diagnostics,- };- }-- const pageFailure = pageSizeFailure(data, inspection.presentation, pageLimits);- if (pageFailure) return { ...pageFailure, diagnostics: inspection.diagnostics };-- try {- const document = createElement(ResumeDocument, { data, template: input.template }) as Parameters<typeof pdf>[0];- const blob = await pdf(document).toBlob();- return {- ok: true,- bytes: new Uint8Array(await blob.arrayBuffer()),- diagnostics: inspection.diagnostics,- };- } catch {- return {- ok: false,- code: "STYLESHEET_PREFLIGHT_RENDER_FAILED",- message: "PDF rendering failed.",- diagnostics: inspection.diagnostics,- };- }-}diff --git a/packages/pdf/src/semantic/preflight-reference.ts b/packages/pdf/src/semantic/preflight-reference.tsdeleted file mode 100644index 52a349d1b..000000000--- a/packages/pdf/src/semantic/preflight-reference.ts+++ /dev/null@@ -1,55 +0,0 @@-export const PDF_PREFLIGHT_DIAGNOSTIC_CATALOG = {- STYLESHEET_PREFLIGHT_INVALID: {- meaning: "The stylesheet has compiler or semantic errors.",- action: "Fix the accompanying Semantic CSS diagnostics.",- },- STYLESHEET_PREFLIGHT_PAGE_SIZE_LIMIT: {- meaning: "An authored page exceeds the PDF dimension or area budget.",- action: "Use a smaller page size.",- },- STYLESHEET_PREFLIGHT_BYTE_LIMIT: {- meaning: "The rendered PDF exceeds the byte budget.",- action: "Reduce pages, images, or styled content.",- },- STYLESHEET_PREFLIGHT_PAGE_LIMIT: {- meaning: "The rendered PDF exceeds the page-count budget.",- action: "Reduce content or pagination.",- },- STYLESHEET_PREFLIGHT_TIMEOUT: {- meaning: "PDF preflight exceeded its deadline.",- action: "Reduce stylesheet or document complexity and retry.",- },- STYLESHEET_PREFLIGHT_MEMORY_LIMIT: {- meaning: "PDF preflight exceeded its memory budget.",- action: "Reduce document, image, or layout complexity.",- },- STYLESHEET_PREFLIGHT_RENDER_FAILED: {- meaning: "The PDF renderer could not render the candidate stylesheet.",- action: "Simplify the candidate and inspect accompanying diagnostics.",- },- STYLESHEET_PREFLIGHT_PARSE_FAILED: {- meaning: "The rendered PDF could not be inspected.",- action: "Retry after simplifying the candidate.",- },- STYLESHEET_PREFLIGHT_WORKER_FAILED: {- meaning: "The isolated PDF preflight worker failed or its queue was full.",- action: "Retry; simplify the candidate if the failure repeats.",- },-} as const;--export type PdfPreflightFailureCode = keyof typeof PDF_PREFLIGHT_DIAGNOSTIC_CATALOG;--export const STYLESHEET_PREFLIGHT_LIMITS = Object.freeze({- // Render deadline (after the worker is warm). A rich resume on a throttled/shared- // vCPU renders in ~5-18s, so 5s spuriously failed real resumes; the worker is now- // warmed+reused so this ceiling only bounds a genuinely stuck render.- timeoutMs: 30_000,- maxPages: 20,- maxBytes: 10_000_000,- maxPageWidthPt: 2_000,- maxPageHeightPt: 20_000,- maxPageAreaPt2: 20_000_000,- maxOldGenerationMb: 256,- maxConcurrentWorkers: 1,- maxQueuedRequests: 32,-});diff --git a/packages/pdf/src/semantic/public-projection.test.ts b/packages/pdf/src/semantic/public-projection.test.tsdeleted file mode 100644index 390ff7704..000000000--- a/packages/pdf/src/semantic/public-projection.test.ts+++ /dev/null@@ -1,135 +0,0 @@-import type { PublicStyleProjection } from "./public-projection";-import { describe, expect, it } from "vitest";-import { defaultResumeData } from "@reactive-resume/schema/resume/default";-import {- createPublicStyleProjection,- PUBLIC_STYLE_PROJECTION_FORMAT_VERSION,- SEMANTIC_TREE_VERSION,- validatePublicStyleProjection,-} from "./public-projection";--const buildData = () => {- const data = structuredClone(defaultResumeData);- const applied = {- languageVersion: 1,- text: "@version 1;\nname { color: #123456; }\n",- };- data.basics.name = "Ada Lovelace";- data.metadata.layout.pages = [{ fullWidth: true, main: [], sidebar: [] }];- data.metadata.stylesheet = { mode: "semantic", source: applied, applied };- return data;-};--describe("public semantic style projection", () => {- it("contains only resolved, JSON-safe presentation keyed by stable node key", async () => {- const projection = await createPublicStyleProjection({ data: buildData() });- const serialized = JSON.stringify(projection);-- expect(projection).toMatchObject({- formatVersion: PUBLIC_STYLE_PROJECTION_FORMAT_VERSION,- languageVersion: 1,- semanticTreeVersion: SEMANTIC_TREE_VERSION,- registryFingerprint: expect.stringMatching(/^[a-f0-9]{64}$/),- adapterFingerprint: expect.stringMatching(/^[a-f0-9]{64}$/),- renderDataHash: expect.stringMatching(/^[a-f0-9]{64}$/),- });- expect(projection.nodes["page-1/region-header/header/name"]).toEqual({- style: { color: "#123456" },- });- expect(serialized).not.toContain("@version");- expect(serialized).not.toMatch(/source|comment|diagnostic|selector|variable|range/i);- expect(serialized).not.toContain("undefined");- });-- it("carries final sibling visibility and order without stylesheet source", async () => {- const data = buildData();- data.basics.email = "[email protected]";- data.basics.phone = "+44 123";- data.basics.location = "London";- const applied = {- languageVersion: 1,- text: `@version 1;- contact-item[name="location"] { display: none; }- contact-item[name="phone"] { order: -1; }- `,- };- data.metadata.stylesheet = { mode: "semantic", source: applied, applied };-- const projection = await createPublicStyleProjection({ data });-- expect(projection.nodes["page-1/region-header/header/contact-list/contact-location"]).toMatchObject({- hidden: true,- });- expect(projection.nodes["page-1/region-header/header/contact-list/contact-phone"]).toMatchObject({ order: 0 });- expect(projection.nodes["page-1/region-header/header/contact-list/contact-email"]).toMatchObject({ order: 1 });- });-- it("rejects changed nodes and every version or fingerprint mismatch", async () => {- const data = buildData();- const valid = await createPublicStyleProjection({ data });- const cases = [- { ...valid, formatVersion: 2 },- { ...valid, languageVersion: 2 },- { ...valid, semanticTreeVersion: 2 },- { ...valid, registryFingerprint: "0".repeat(64) },- { ...valid, adapterFingerprint: "0".repeat(64) },- { ...valid, renderDataHash: "0".repeat(64) },- {- ...valid,- nodes: {- ...valid.nodes,- "page-1/region-header/header/name": { style: { color: "#ff0000" } },- },- },- ];-- for (const projection of cases) {- await expect(validatePublicStyleProjection(data, projection as unknown as PublicStyleProjection)).resolves.toBe(- false,- );- }- });-- it("rejects projections hashed for different public render data", async () => {- const data = buildData();- const projection = await createPublicStyleProjection({ data });- const changed = structuredClone(data);- changed.basics.name = "Grace Hopper";-- await expect(validatePublicStyleProjection(changed, projection)).resolves.toBe(false);- });-- it("changes the projection hash when only the applied presentation changes", async () => {- const red = buildData();- const blue = buildData();- const blueApplied = {- languageVersion: 1,- text: "@version 1;\nname { color: #654321; }\n",- };- blue.metadata.stylesheet = { mode: "semantic", source: blueApplied, applied: blueApplied };-- const redProjection = await createPublicStyleProjection({ data: red });- const blueProjection = await createPublicStyleProjection({ data: blue });-- expect(redProjection.nodes["page-1/region-header/header/name"]).not.toEqual(- blueProjection.nodes["page-1/region-header/header/name"],- );- expect(redProjection.renderDataHash).not.toBe(blueProjection.renderDataHash);- });-- it("rejects extra or non-JSON node fields instead of exposing compiler internals", async () => {- const data = buildData();- const projection = await createPublicStyleProjection({ data });- const node = projection.nodes["page-1/region-header/header/name"];-- await expect(- validatePublicStyleProjection(data, {- ...projection,- nodes: {- ...projection.nodes,- "page-1/region-header/header/name": { ...node, diagnostics: [{ message: "private" }] },- },- } as unknown as PublicStyleProjection),- ).resolves.toBe(false);- });-});diff --git a/packages/pdf/src/semantic/public-projection.ts b/packages/pdf/src/semantic/public-projection.tsdeleted file mode 100644index 343d2859c..000000000--- a/packages/pdf/src/semantic/public-projection.ts+++ /dev/null@@ -1,369 +0,0 @@-import type { SemanticNode } from "@reactive-resume/resume/stylesheet";-import type { ResumeData } from "@reactive-resume/schema/resume/data";-import type { ResolvedPdfNodePresentation } from "./adapter";-import type { ResolvedResumeRuntime } from "./resolve";-import {- computeRenderDataHash,- PROPERTY_REGISTRY_V1,- projectPublicRenderData,- SEMANTIC_REGISTRY_V1,- SUPPORTED_SEMANTIC_CSS_VERSIONS,- TEMPLATE_PART_CHILD_KINDS_V1,-} from "@reactive-resume/resume/stylesheet";-import { EMPTY_SEMANTIC_CSS_SOURCE } from "@reactive-resume/schema/resume/stylesheet";-import { resolveResumeRuntime, resolveStylesheetMode } from "./resolve";-import { getTemplateSemanticRegistryFingerprintInput } from "./template-manifest";--export const PUBLIC_STYLE_PROJECTION_FORMAT_VERSION = 1;-export const SEMANTIC_TREE_VERSION = 1;-const PDF_ADAPTER_VERSION = 1;-const REACT_PDF_RENDERER_VERSION = "4.5";--type PublicPdfStyleValue = string | number | null;-type PublicPdfPageSize = "A4" | "LETTER" | { width: number; height?: number };--export type PublicPdfNodePresentation = {- style?: Readonly<Record<string, PublicPdfStyleValue>>;- size?: PublicPdfPageSize;- break?: boolean;- wrap?: boolean;- fixed?: boolean;- minPresenceAhead?: number;- orphans?: number;- widows?: number;- hidden?: boolean;- order?: number;-};--export type PublicStyleProjection = {- formatVersion: typeof PUBLIC_STYLE_PROJECTION_FORMAT_VERSION;- languageVersion: number;- semanticTreeVersion: typeof SEMANTIC_TREE_VERSION;- registryFingerprint: string;- adapterFingerprint: string;- renderDataHash: string;- nodes: Readonly<Record<string, PublicPdfNodePresentation>>;-};--type ProjectionFingerprints = Pick<- PublicStyleProjection,- "formatVersion" | "languageVersion" | "semanticTreeVersion" | "registryFingerprint" | "adapterFingerprint"->;--const isPlainObject = (value: unknown): value is Record<string, unknown> => {- if (typeof value !== "object" || value === null || Array.isArray(value)) return false;- const prototype = Object.getPrototypeOf(value);- return prototype === Object.prototype || prototype === null;-};--const hasExactKeys = (value: Record<string, unknown>, allowed: readonly string[]): boolean =>- Object.keys(value).every((key) => allowed.includes(key)) && Object.getOwnPropertySymbols(value).length === 0;--const finiteNumber = (value: unknown): value is number => typeof value === "number" && Number.isFinite(value);--const isPageSize = (value: unknown): value is PublicPdfPageSize => {- if (value === "A4" || value === "LETTER") return true;- if (!isPlainObject(value) || !hasExactKeys(value, ["width", "height"]) || !finiteNumber(value.width)) return false;- return value.height === undefined || finiteNumber(value.height);-};--const isPublicNode = (value: unknown): value is PublicPdfNodePresentation => {- if (- !isPlainObject(value) ||- !hasExactKeys(value, [- "style",- "size",- "break",- "wrap",- "fixed",- "minPresenceAhead",- "orphans",- "widows",- "hidden",- "order",- ])- ) {- return false;- }- if (value.style !== undefined) {- if (!isPlainObject(value.style)) return false;- for (const styleValue of Object.values(value.style)) {- if (styleValue !== null && typeof styleValue !== "string" && !finiteNumber(styleValue)) {- return false;- }- }- }- if (value.size !== undefined && !isPageSize(value.size)) return false;- for (const key of ["break", "wrap", "fixed"] as const) {- if (value[key] !== undefined && typeof value[key] !== "boolean") return false;- }- for (const key of ["minPresenceAhead", "orphans", "widows"] as const) {- if (value[key] !== undefined && !finiteNumber(value[key])) return false;- }- if (value.hidden !== undefined && typeof value.hidden !== "boolean") return false;- if (value.order !== undefined && (!Number.isInteger(value.order) || (value.order as number) < 0)) return false;- return true;-};--const isProjectionShape = (value: unknown): value is PublicStyleProjection => {- if (- !isPlainObject(value) ||- !hasExactKeys(value, [- "formatVersion",- "languageVersion",- "semanticTreeVersion",- "registryFingerprint",- "adapterFingerprint",- "renderDataHash",- "nodes",- ]) ||- !Number.isInteger(value.formatVersion) ||- !Number.isInteger(value.languageVersion) ||- !Number.isInteger(value.semanticTreeVersion) ||- typeof value.registryFingerprint !== "string" ||- typeof value.adapterFingerprint !== "string" ||- typeof value.renderDataHash !== "string" ||- !isPlainObject(value.nodes)- ) {- return false;- }-- return Object.values(value.nodes).every(isPublicNode);-};--type PublicNodeStructure = Pick<PublicPdfNodePresentation, "hidden" | "order">;--const toPublicNode = (- presentation: ResolvedPdfNodePresentation,- structure: PublicNodeStructure,-): PublicPdfNodePresentation => ({- ...(presentation.style- ? {- style: Object.freeze(- Object.fromEntries(- Object.entries(presentation.style).map(([property, value]) => [- property,- value === undefined ? null : (value as string | number),- ]),- ),- ),- }- : {}),- ...(presentation.size === undefined ? {} : { size: presentation.size }),- ...(presentation.break === undefined ? {} : { break: presentation.break }),- ...(presentation.wrap === undefined ? {} : { wrap: presentation.wrap }),- ...(presentation.fixed === undefined ? {} : { fixed: presentation.fixed }),- ...(presentation.minPresenceAhead === undefined ? {} : { minPresenceAhead: presentation.minPresenceAhead }),- ...(presentation.orphans === undefined ? {} : { orphans: presentation.orphans }),- ...(presentation.widows === undefined ? {} : { widows: presentation.widows }),- ...(structure.hidden === undefined ? {} : { hidden: structure.hidden }),- ...(structure.order === undefined ? {} : { order: structure.order }),-});--const indexChildren = (tree: SemanticNode) => {- const children = new Map<string, readonly string[]>();- const visit = (node: SemanticNode) => {- children.set(- node.key,- node.children.map(({ key }) => key),- );- for (const child of node.children) visit(child);- };- visit(tree);- return children;-};--const projectNodeStructure = (- sourceTree: SemanticNode,- renderTree: SemanticNode,-): Readonly<Record<string, PublicNodeStructure>> => {- const renderedChildren = indexChildren(renderTree);- const structure: Record<string, PublicNodeStructure> = {};- const visit = (node: SemanticNode) => {- const rendered = renderedChildren.get(node.key) ?? [];- const order = new Map(rendered.map((key, index) => [key, index]));- for (const [sourceIndex, child] of node.children.entries()) {- const renderedIndex = order.get(child.key);- structure[child.key] =- renderedIndex === undefined ? { hidden: true } : renderedIndex === sourceIndex ? {} : { order: renderedIndex };- visit(child);- }- };- visit(sourceTree);- return structure;-};--const fingerprints = Promise.all([- computeRenderDataHash({- domainVersion: 1,- data: {- semanticTreeVersion: SEMANTIC_TREE_VERSION,- semanticRegistry: SEMANTIC_REGISTRY_V1,- templateParts: TEMPLATE_PART_CHILD_KINDS_V1,- templateManifests: getTemplateSemanticRegistryFingerprintInput(),- },- }),- computeRenderDataHash({- domainVersion: 1,- data: {- adapterVersion: PDF_ADAPTER_VERSION,- reactPdfRendererVersion: REACT_PDF_RENDERER_VERSION,- propertyRegistry: PROPERTY_REGISTRY_V1,- },- }),-]);--const getFingerprints = async () => {- const [registryFingerprint, adapterFingerprint] = await fingerprints;- return { registryFingerprint, adapterFingerprint };-};--export const getPublicStyleProjectionFingerprints = getFingerprints;--const dataForPublicProjection = (data: ResumeData, languageVersion: number): ResumeData => {- if (data.metadata.stylesheet?.mode === "semantic") return data;- const source = { languageVersion, text: EMPTY_SEMANTIC_CSS_SOURCE };- return {- ...data,- metadata: {- ...data.metadata,- stylesheet: { mode: "semantic", source, applied: source },- },- };-};--const projectionFingerprints = async (data: ResumeData, languageVersion?: number): Promise<ProjectionFingerprints> => ({- formatVersion: PUBLIC_STYLE_PROJECTION_FORMAT_VERSION,- languageVersion:- languageVersion ??- (data.metadata.stylesheet?.mode === "semantic" ? data.metadata.stylesheet.applied.languageVersion : 1),- semanticTreeVersion: SEMANTIC_TREE_VERSION,- ...(await getFingerprints()),-});--const hashProjection = (- data: ResumeData,- nodes: PublicStyleProjection["nodes"],- projection: ProjectionFingerprints,-): Promise<string> =>- computeRenderDataHash({- domainVersion: 1,- data: projectPublicRenderData(data),- resolvedNodes: nodes,- projectionFingerprints: projection,- });--export async function createPublicStyleProjection(input: { data: ResumeData }): Promise<PublicStyleProjection> {- const runtime = resolveResumeRuntime({- data: input.data,- template: input.data.metadata.template,- mode: resolveStylesheetMode(input.data),- });- if (runtime.diagnostics.some(({ severity }) => severity === "error")) {- throw new Error("Applied semantic stylesheet cannot be projected");- }-- const structure = projectNodeStructure(runtime.sourceTree, runtime.renderTree);- const nodes = Object.freeze(- Object.fromEntries(- Object.entries(runtime.presentation).map(([nodeKey, presentation]) => [- nodeKey,- toPublicNode(presentation, structure[nodeKey] ?? {}),- ]),- ),- );- const projection = await projectionFingerprints(input.data);- return Object.freeze({- ...projection,- renderDataHash: await hashProjection(input.data, nodes, projection),- nodes,- });-}--export async function validatePublicStyleProjection(- data: ResumeData,- projection: PublicStyleProjection,-): Promise<boolean> {- if (!isProjectionShape(projection)) return false;- if (!SUPPORTED_SEMANTIC_CSS_VERSIONS.includes(projection.languageVersion as 1)) return false;- if (- data.metadata.stylesheet?.mode === "semantic" &&- projection.languageVersion !== data.metadata.stylesheet.applied.languageVersion- ) {- return false;- }- const projectionData = dataForPublicProjection(data, projection.languageVersion);- const expected = await projectionFingerprints(projectionData, projection.languageVersion);- if (- projection.formatVersion !== expected.formatVersion ||- projection.languageVersion !== expected.languageVersion ||- projection.semanticTreeVersion !== expected.semanticTreeVersion ||- projection.registryFingerprint !== expected.registryFingerprint ||- projection.adapterFingerprint !== expected.adapterFingerprint- ) {- return false;- }-- try {- return projection.renderDataHash === (await hashProjection(projectionData, projection.nodes, expected));- } catch {- return false;- }-}--const toResolvedPresentation = (- nodes: PublicStyleProjection["nodes"],-): Readonly<Record<string, ResolvedPdfNodePresentation>> =>- Object.freeze(- Object.fromEntries(- Object.entries(nodes).map(([nodeKey, { hidden: _hidden, order: _order, style, ...presentation }]) => [- nodeKey,- {- ...presentation,- ...(style- ? {- style: Object.fromEntries(- Object.entries(style).map(([property, value]) => [property, value === null ? undefined : value]),- ) as NonNullable<ResolvedPdfNodePresentation["style"]>,- }- : {}),- },- ]),- ),- );--const applyProjectedStructure = (node: SemanticNode, nodes: PublicStyleProjection["nodes"]): SemanticNode => ({- ...node,- attributes: { ...node.attributes },- roles: [...node.roles],- children: node.children- .map((child, sourceIndex) => ({ child, sourceIndex, structure: nodes[child.key] }))- .filter(({ structure }) => !structure?.hidden)- .sort(- (left, right) =>- (left.structure?.order ?? left.sourceIndex) - (right.structure?.order ?? right.sourceIndex) ||- left.sourceIndex - right.sourceIndex,- )- .map(({ child }) => applyProjectedStructure(child, nodes)),-});--export async function resolvePublicStyleProjectionRuntime(- data: ResumeData,- projection: PublicStyleProjection,-): Promise<ResolvedResumeRuntime> {- if (!(await validatePublicStyleProjection(data, projection))) {- throw new Error("Public style projection does not match the resume render data");- }- const projectionData = dataForPublicProjection(data, projection.languageVersion);- const base = resolveResumeRuntime({- data: projectionData,- template: projectionData.metadata.template,- mode: "legacy",- });- return {- presentation: toResolvedPresentation(projection.nodes),- sourceTree: base.sourceTree,- renderTree: applyProjectedStructure(base.sourceTree, projection.nodes),- diagnostics: [],- };-}diff --git a/packages/pdf/src/semantic/public.test.ts b/packages/pdf/src/semantic/public.test.tsindex fc9b83884..19c4c7636 100644--- a/packages/pdf/src/semantic/public.test.ts+++ b/packages/pdf/src/semantic/public.test.ts@@ -1,16 +1,52 @@import { describe, expect, it } from "vitest";-import { inspectResumePdf } from "@reactive-resume/pdf/semantic";+import { resolveResumeRuntime } from "@reactive-resume/pdf/semantic";import { sampleResumeData } from "@reactive-resume/schema/resume/sample";describe("@reactive-resume/pdf/semantic", () => {- it("publicly exposes invalid applied-source diagnostics", () => {+ it("falls back to base presentation and preserves fatal source diagnostics", () => {const data = structuredClone(sampleResumeData);- const invalid = { languageVersion: 1, text: "@version 1; section { color: ; }" };- data.metadata.stylesheet = { mode: "semantic", source: invalid, applied: invalid };+ data.metadata.stylesheet = { mode: "semantic", source: { languageVersion: 2, text: "@version 2;" } };- const inspection = inspectResumePdf({ data });+ const inspection = resolveResumeRuntime({ data, template: data.metadata.template, mode: "semantic" });- expect(inspection.diagnostics).toContainEqual(expect.objectContaining({ severity: "error" }));+ expect(inspection.diagnostics).toContainEqual(+ expect.objectContaining({ code: "UNSUPPORTED_VERSION", severity: "error" }),+ );expect(inspection.presentation).toEqual({});});++ it("falls back to base presentation when a selector list exceeds the resource limit", () => {+ const data = structuredClone(sampleResumeData);+ const selectors = new Array(65).fill("section").join(",");+ data.metadata.stylesheet = {+ mode: "semantic",+ source: { languageVersion: 1, text: `@version 1;\n${selectors} { color: red; }` },+ };++ const inspection = resolveResumeRuntime({ data, template: data.metadata.template, mode: "semantic" });++ expect(inspection.diagnostics).toContainEqual(+ expect.objectContaining({ code: "RESOURCE_LIMIT", severity: "error" }),+ );+ expect(inspection.presentation).toEqual({});+ expect(inspection.renderTree).toEqual(inspection.sourceTree);+ });++ it("keeps valid PDF presentation when a neighboring value is recoverable", () => {+ const data = structuredClone(sampleResumeData);+ data.metadata.stylesheet = {+ mode: "semantic",+ source: {+ languageVersion: 1,+ text: "@version 1; name { color: #123456; opacity: var(--missing); }",+ },+ };++ const inspection = resolveResumeRuntime({ data, template: data.metadata.template, mode: "semantic" });++ expect(inspection.presentation["page-1/region-header/header/name"]?.style?.color).toBe("#123456");+ expect(inspection.diagnostics).toContainEqual(+ expect.objectContaining({ code: "UNRESOLVED_VARIABLE", severity: "error" }),+ );+ });});diff --git a/packages/pdf/src/semantic/resolve.ts b/packages/pdf/src/semantic/resolve.tsindex 5b79760bf..a88becb29 100644--- a/packages/pdf/src/semantic/resolve.ts+++ b/packages/pdf/src/semantic/resolve.ts@@ -3,7 +3,7 @@ import type { ResumeData } from "@reactive-resume/schema/resume/data";import type { StylesheetMode, StylesheetSource } from "@reactive-resume/schema/resume/stylesheet";import type { Template } from "@reactive-resume/schema/templates";import type { ResolvedResumePresentation } from "./context";-import { compileStylesheet, resolveStylesheet } from "@reactive-resume/resume/stylesheet";+import { compileStylesheet, isFatalStylesheetDiagnostic, resolveStylesheet } from "@reactive-resume/resume/stylesheet";import { EMPTY_SEMANTIC_CSS_SOURCE } from "@reactive-resume/schema/resume/stylesheet";import { shouldShowResumeHeader } from "../templates/shared/cover-letter";import { getTemplatePageSize } from "../templates/shared/page-size";@@ -17,7 +17,7 @@ import { buildSemanticTree } from "./tree";export type ResolveResumePresentationInput = {data: ResumeData;template: Template;- applied?: StylesheetSource;+ source?: StylesheetSource;mode: StylesheetMode;};@@ -85,7 +85,7 @@ export function resolveStylesheetMode(data: ResumeData): StylesheetMode {export function resolveResumeRuntime({data,template,- applied,+ source,mode,}: ResolveResumePresentationInput): ResolvedResumeRuntime {const sourceTree = mergeAuthoredPageTrees(data, template);@@ -93,12 +93,12 @@ export function resolveResumeRuntime({return { presentation: EMPTY_PRESENTATION, sourceTree, renderTree: sourceTree, diagnostics: [] };}- const source = applied ??- data.metadata.stylesheet?.applied ?? {+ const stylesheetSource = source ??+ data.metadata.stylesheet?.source ?? {languageVersion: 1,text: EMPTY_SEMANTIC_CSS_SOURCE,};- const compiled = compileStylesheet(source);+ const compiled = compileStylesheet(stylesheetSource);if (!compiled.program) {return { presentation: EMPTY_PRESENTATION, sourceTree, renderTree: sourceTree, diagnostics: compiled.diagnostics };}@@ -123,7 +123,7 @@ export function resolveResumeRuntime({pages: authoredPageDimensions(data),aliases,});- if (resolved.diagnostics.some(({ severity }) => severity === "error")) {+ if (resolved.diagnostics.some(isFatalStylesheetDiagnostic)) {return {presentation: EMPTY_PRESENTATION,sourceTree,diff --git a/packages/pdf/src/semantic/rich-text-bindings.test.tsx b/packages/pdf/src/semantic/rich-text-bindings.test.tsxindex d94ee0f4d..48b294d5b 100644--- a/packages/pdf/src/semantic/rich-text-bindings.test.tsx+++ b/packages/pdf/src/semantic/rich-text-bindings.test.tsx@@ -47,7 +47,7 @@ const findSemanticNode = (const buildFixture = (): ResumeData => {const data = structuredClone(defaultResumeData);- const applied = {+ const source = {languageVersion: 1,text: `@version 1;@@ -60,7 +60,7 @@ const buildFixture = (): ResumeData => {data.basics.name = "Ada Lovelace";data.summary.content = "<p>First <strong>bold</strong></p><ul><li>Item</li></ul>";data.metadata.layout.pages = [{ fullWidth: true, main: ["summary"], sidebar: [] }];- data.metadata.stylesheet = { mode: "semantic", source: applied, applied };+ data.metadata.stylesheet = { mode: "semantic", source };return data;};diff --git a/packages/pdf/src/semantic/runtime-paths.test.tsx b/packages/pdf/src/semantic/runtime-paths.test.tsxindex f7d62474f..30aed1782 100644--- a/packages/pdf/src/semantic/runtime-paths.test.tsx+++ b/packages/pdf/src/semantic/runtime-paths.test.tsx@@ -39,7 +39,7 @@ const findFirst = (node: HostNode, predicate: (candidate: HostNode) => boolean):const buildFixture = (): ResumeData => {const data = structuredClone(defaultResumeData);- const applied = {+ const source = {languageVersion: 1,text: `@version 1;@@ -50,15 +50,15 @@ const buildFixture = (): ResumeData => {data.picture.hidden = true;data.basics.name = "Ada Lovelace";data.metadata.layout.pages = [{ fullWidth: true, main: [], sidebar: [] }];- data.metadata.stylesheet = { mode: "semantic", source: applied, applied };+ data.metadata.stylesheet = { mode: "semantic", source };return data;};const buildNodeBudgetFixture = (mode: "legacy" | "semantic"): ResumeData => {const data = structuredClone(defaultResumeData);- const applied = { languageVersion: 1, text: "@version 1;\n" };+ const source = { languageVersion: 1, text: "@version 1;\n" };data.metadata.layout.pages = [{ fullWidth: true, main: ["skills"], sidebar: [] }];- data.metadata.stylesheet = { mode, source: applied, applied };+ data.metadata.stylesheet = { mode, source };data.sections.skills.items = Array.from({ length: 2_000 }, (_, index) => ({id: `skill-${index}`,hidden: false,@@ -72,6 +72,13 @@ const buildNodeBudgetFixture = (mode: "legacy" | "semantic"): ResumeData => {return data;};+const buildFatalSourceFixture = (): ResumeData => {+ const data = structuredClone(defaultResumeData);+ data.metadata.layout.pages = [{ fullWidth: true, main: [], sidebar: [] }];+ data.metadata.stylesheet = { mode: "semantic", source: { languageVersion: 2, text: "@version 2;" } };+ return data;+};+const renderFinalProps = async (element: unknown) => {const renderer = await vi.importActual<typeof import("@react-pdf/renderer")>("@react-pdf/renderer");const instance = renderer.pdf(element as Parameters<typeof renderer.pdf>[0]);@@ -100,28 +107,15 @@ describe("browser/server semantic runtime identity", () => {expect(browserProps.fixed).toMatchObject({ type: "VIEW", fixed: true });}, 30_000);- it("rejects a valid stylesheet when later content exceeds the Semantic CSS node budget", async () => {- const data = buildNodeBudgetFixture("semantic");-- const results = await Promise.allSettled([- createResumePdfBlob({ data, template: "onyx" }),- createResumePdfFile({ data, filename: "resume.pdf", template: "onyx" }),- ]);-- expect(results).toEqual([- expect.objectContaining({- status: "rejected",- reason: expect.objectContaining({- cause: expect.arrayContaining([expect.objectContaining({ code: "RESOURCE_LIMIT", severity: "error" })]),- }),- }),- expect.objectContaining({- status: "rejected",- reason: expect.objectContaining({- cause: expect.arrayContaining([expect.objectContaining({ code: "RESOURCE_LIMIT", severity: "error" })]),- }),- }),- ]);+ it("renders browser and server PDFs with base styles when the stylesheet is fatal", async () => {+ const data = buildFatalSourceFixture();++ const blob = await createResumePdfBlob({ data, template: "onyx" });+ const file = await createResumePdfFile({ data, filename: "resume.pdf", template: "onyx" });++ expect(blob.type).toBe("application/pdf");+ expect(file.type).toBe("application/pdf");+ expect(await renderFinalProps(captured.browser)).toEqual(await renderFinalProps(captured.server));}, 15_000);it("keeps legacy PDF rendering unaffected by the semantic node budget", async () => {diff --git a/packages/pdf/src/semantic/sibling-ordering.test.tsx b/packages/pdf/src/semantic/sibling-ordering.test.tsxindex 3adc990a0..b7d3213ef 100644--- a/packages/pdf/src/semantic/sibling-ordering.test.tsx+++ b/packages/pdf/src/semantic/sibling-ordering.test.tsx@@ -49,7 +49,7 @@ const semanticFixture = (rule: string): ResumeData => {customFields: [],};const stylesheet = { languageVersion: 1, text: `@version 1; ${rule}` };- data.metadata.stylesheet = { mode: "semantic", source: stylesheet, applied: stylesheet };+ data.metadata.stylesheet = { mode: "semantic", source: stylesheet };return data;};diff --git a/packages/pdf/src/semantic/template-manifest.test.ts b/packages/pdf/src/semantic/template-manifest.test.tsindex b7673a6ca..1f234314e 100644--- a/packages/pdf/src/semantic/template-manifest.test.ts+++ b/packages/pdf/src/semantic/template-manifest.test.ts@@ -10,7 +10,6 @@ import { createBindingInventory } from "./binding-inventory";import {getTemplateSemanticBindingRegistry,getTemplateSemanticManifest,- getTemplateSemanticRegistryFingerprintInput,validateTemplateSemanticManifest,} from "./template-manifest";import { buildSemanticTree } from "./tree";@@ -423,8 +422,6 @@ const EXPECTED_LAYOUT = {} as const satisfies Readonly<Record<Template, Omit<TemplateSemanticManifest, "template" | "parts">>>;const flattenTree = (node: SemanticNode): SemanticNode[] => [node, ...node.children.flatMap(flattenTree)];-const flattenValues = (value: unknown): unknown[] =>- typeof value === "object" && value !== null ? [value, ...Object.values(value).flatMap(flattenValues)] : [value];const findNodes = (node: SemanticNode, predicate: (candidate: SemanticNode) => boolean): SemanticNode[] =>flattenTree(node).filter(predicate);const findPart = (node: SemanticNode, name: string): SemanticNode | undefined =>@@ -488,7 +485,8 @@ describe("template semantic manifests", () => {});it("registers child kinds for every primitive template part", () => {- for (const manifest of Object.values(getTemplateSemanticRegistryFingerprintInput())) {+ for (const template of templateSchema.options) {+ const manifest = getTemplateSemanticManifest(template);for (const part of manifest.parts) {if (part.binding.type === "alias") continue;expect(TEMPLATE_PART_CHILD_KINDS_V1, `${manifest.template}:${part.name}`).toHaveProperty(part.name);@@ -1315,22 +1313,6 @@ describe("template semantic manifests", () => {},);- it("publishes stable, deterministic, deeply frozen fingerprint input without functions", () => {- const first = getTemplateSemanticRegistryFingerprintInput();- const second = getTemplateSemanticRegistryFingerprintInput();- const serialized = JSON.stringify(first);-- expect(second).toBe(first);- expect(JSON.stringify(second)).toBe(serialized);- expect(Object.isFrozen(first)).toBe(true);- expect(Object.isFrozen(first.azurill.parts)).toBe(true);- expect(flattenValues(first).every((value) => typeof value !== "function")).toBe(true);- expect(() => {- (first.azurill.parts as unknown as object[]).pop();- }).toThrow();- expect(JSON.stringify(getTemplateSemanticRegistryFingerprintInput())).toBe(serialized);- });-it.each(templateSchema.options)("%s binds every manifest node to existing chrome without synthetic wrappers",(template) => {diff --git a/packages/pdf/src/semantic/template-manifest.ts b/packages/pdf/src/semantic/template-manifest.tsindex 4dbc4e304..a7aa86a77 100644--- a/packages/pdf/src/semantic/template-manifest.ts+++ b/packages/pdf/src/semantic/template-manifest.ts@@ -334,10 +334,6 @@ export function getTemplateSemanticManifest(template: Template): TemplateSemantireturn TEMPLATE_SEMANTIC_MANIFESTS[template];}-export function getTemplateSemanticRegistryFingerprintInput(): Readonly<Record<Template, TemplateSemanticManifest>> {- return TEMPLATE_SEMANTIC_MANIFESTS;-}-export function getTemplateSemanticBindingRegistry(template: Template): SemanticBindingRegistry {const manifest = getTemplateSemanticManifest(template);const canonicalBindings = Object.fromEntries(diff --git a/packages/pdf/src/semantic/tree.ts b/packages/pdf/src/semantic/tree.tsindex caffb5c71..a125c28f0 100644--- a/packages/pdf/src/semantic/tree.ts+++ b/packages/pdf/src/semantic/tree.ts@@ -998,6 +998,5 @@ export { semanticNodeKeys } from "./node-keys";export {getTemplateSemanticBindingRegistry,getTemplateSemanticManifest,- getTemplateSemanticRegistryFingerprintInput,validateTemplateSemanticManifest,} from "./template-manifest";diff --git a/packages/pdf/src/server.test.tsx b/packages/pdf/src/server.test.tsxindex 3dd250b75..607436ea9 100644--- a/packages/pdf/src/server.test.tsx+++ b/packages/pdf/src/server.test.tsx@@ -108,31 +108,16 @@ describe("createResumePdfFile", () => {);});- it("returns semantic diagnostics without rendering an invalid applied source", async () => {+ it("renders with base styles when the source is fatal", async () => {const data = structuredClone(sampleResumeData);- const invalid = { languageVersion: 1, text: "@version 1; section { color: ; }" };- data.metadata.stylesheet = { mode: "semantic", source: invalid, applied: invalid };- const { createResumePdfFileResult } = await import("./server");-- const result = await createResumePdfFileResult({ data, filename: "resume.pdf" });-- expect(result).toMatchObject({- ok: false,- diagnostics: [expect.objectContaining({ severity: "error" })],- });- expect(rendererMock.renderToBuffer).not.toHaveBeenCalled();- });-- it("rejects unchecked rendering instead of producing an unstyled PDF for semantic errors", async () => {- const data = structuredClone(sampleResumeData);- const invalid = { languageVersion: 1, text: "@version 1; section { color: ; }" };- data.metadata.stylesheet = { mode: "semantic", source: invalid, applied: invalid };+ data.metadata.stylesheet = { mode: "semantic", source: { languageVersion: 2, text: "@version 2;" } };const { createResumePdfFile } = await import("./server");- await expect(createResumePdfFile({ data, filename: "resume.pdf" })).rejects.toMatchObject({- cause: [expect.objectContaining({ severity: "error" })],- });- expect(rendererMock.renderToBuffer).not.toHaveBeenCalled();+ await expect(createResumePdfFile({ data, filename: "resume.pdf" })).resolves.toHaveProperty(+ "type",+ "application/pdf",+ );+ expect(rendererMock.renderToBuffer).toHaveBeenCalledTimes(1);});it("rejects renderer-unsafe data at the server boundary before React PDF dispatch", async () => {diff --git a/packages/pdf/src/server.tsx b/packages/pdf/src/server.tsxindex 3f0e402e5..b75b15d41 100644--- a/packages/pdf/src/server.tsx+++ b/packages/pdf/src/server.tsx@@ -1,22 +1,10 @@import type { ResumeData } from "@reactive-resume/schema/resume/data";import type { Template } from "@reactive-resume/schema/templates";import type { SectionTitleResolver } from "./section-title";-import type { ResolvedResumeRuntime, ResumePdfRenderResult } from "./semantic";import { createElement } from "react";import { parseResumeData } from "@reactive-resume/schema/resume/data";import { renderToBuffer } from "#react-pdf-renderer";import { ResumeDocument } from "./document";-import { hasSemanticErrors, inspectResumePdf } from "./semantic";--export type {- PdfPreflightFailure,- PdfPreflightPageLimits,- PdfPreflightResult,- RenderPreflightPdfResult,- StylesheetPreflightInput,- StylesheetPreflightRunner,-} from "./semantic/preflight-core";-export { renderPreflightPdf } from "./semantic/preflight-core";export type CreateResumePdfFileOptions = {data: ResumeData;@@ -25,11 +13,13 @@ export type CreateResumePdfFileOptions = {resolveSectionTitle?: SectionTitleResolver | undefined;};-export type CreateResumePdfFileResultOptions = CreateResumePdfFileOptions & {- inspection?: ResolvedResumeRuntime | undefined;-};--const renderResumePdfFile = async ({ data, filename, template, resolveSectionTitle }: CreateResumePdfFileOptions) => {+export const createResumePdfFile = async ({+ data: input,+ filename,+ template,+ resolveSectionTitle,+}: CreateResumePdfFileOptions): Promise<File> => {+ const data = parseResumeData(input);const document = createElement(ResumeDocument, {data,template: template ?? data.metadata.template,@@ -41,28 +31,3 @@ const renderResumePdfFile = async ({ data, filename, template, resolveSectionTitreturn new File([bytes], filename, { type: "application/pdf" });};--export const createResumePdfFileResult = async ({- inspection,- ...options-}: CreateResumePdfFileResultOptions): Promise<ResumePdfRenderResult<File>> => {- const normalizedOptions = { ...options, data: parseResumeData(options.data) };- const resolvedInspection = inspection ?? inspectResumePdf(normalizedOptions);- if (hasSemanticErrors(resolvedInspection)) {- return { ok: false, diagnostics: resolvedInspection.diagnostics };- }-- return {- ok: true,- value: await renderResumePdfFile(normalizedOptions),- diagnostics: resolvedInspection.diagnostics,- };-};--export const createResumePdfFile = async (options: CreateResumePdfFileOptions): Promise<File> => {- const result = await createResumePdfFileResult(options);- if (!result.ok) {- throw new Error("The semantic stylesheet could not be rendered.", { cause: result.diagnostics });- }- return result.value;-};diff --git a/packages/pdf/src/templates/index.test.ts b/packages/pdf/src/templates/index.test.tsindex 737a1bc95..8757154a8 100644--- a/packages/pdf/src/templates/index.test.ts+++ b/packages/pdf/src/templates/index.test.ts@@ -12,7 +12,6 @@ describe("templatePages", () => {it("exports the semantic manifest registry through the template index", () => {expect(registry).toContain("getTemplateSemanticManifest");- expect(registry).toContain("getTemplateSemanticRegistryFingerprintInput");expect(registry).toContain("TemplateSemanticManifest");});});diff --git a/packages/pdf/src/templates/index.ts b/packages/pdf/src/templates/index.tsindex 39bdacdd6..485979653 100644--- a/packages/pdf/src/templates/index.ts+++ b/packages/pdf/src/templates/index.ts@@ -42,6 +42,5 @@ export type { TemplateSemanticManifest } from "../semantic/template-manifest";export {getTemplateSemanticBindingRegistry,getTemplateSemanticManifest,- getTemplateSemanticRegistryFingerprintInput,validateTemplateSemanticManifest,} from "../semantic/template-manifest";diff --git a/packages/resume/package.json b/packages/resume/package.jsonindex 123b99c5e..bacc12222 100644--- a/packages/resume/package.json+++ b/packages/resume/package.json@@ -11,8 +11,7 @@"./patch": "./src/patch.ts","./stylesheet": "./src/stylesheet/index.ts","./stylesheet/registry": "./src/stylesheet/registry/index.ts",- "./stylesheet/types": "./src/stylesheet/semantic-types.ts",- "./stylesheet/render-data": "./src/stylesheet/render-data.ts"+ "./stylesheet/types": "./src/stylesheet/semantic-types.ts"},"scripts": {"typecheck": "tsgo --noEmit",@@ -24,7 +23,6 @@"dependencies": {"@bramus/specificity": "^2.4.2","@reactive-resume/schema": "workspace:*",- "canonicalize": "^3.0.0","css-tree": "^3.2.1","fast-json-patch": "^3.1.1","zod": "^4.4.3"diff --git a/packages/resume/src/stylesheet/cascade.test.ts b/packages/resume/src/stylesheet/cascade.test.tsindex e1c2afcd0..57b593565 100644--- a/packages/resume/src/stylesheet/cascade.test.ts+++ b/packages/resume/src/stylesheet/cascade.test.ts@@ -280,7 +280,7 @@ describe("Semantic CSS cascade and structural resolution", () => {});if (!compiled.program) throw new Error(compiled.diagnostics.map(({ code }) => code).join(","));const cycled = resolveStylesheet(compiled.program, tree, context);- expect(cycled.nodes).toEqual({});+ expect(cycled.nodes["heading-experience"]?.style.color).toBe("black");expect(cycled.diagnostics).toContainEqual(expect.objectContaining({ code: "VARIABLE_CYCLE", severity: "error" }));});@@ -356,6 +356,15 @@ describe("Semantic CSS cascade and structural resolution", () => {);});+ it("keeps valid resolved declarations when a neighboring value is invalid", () => {+ const result = resolve("section-heading { color: red; opacity: var(--missing); }");++ expect(result.nodes["heading-experience"]?.style.color).toBe("red");+ expect(result.diagnostics).toContainEqual(+ expect.objectContaining({ code: "UNRESOLVED_VARIABLE", severity: "error" }),+ );+ });+it("warns after variable expansion when a value is extreme but technically renderable", () => {const result = resolve(":root { --tiny: 3pt; } section-heading { font-size: var(--tiny); }");@@ -379,7 +388,7 @@ describe("Semantic CSS cascade and structural resolution", () => {languageVersion: 1,text: "@version 1; @media (width: 400pt) { page { size: A4; } }",});- expect(invalid.program).toBeNull();+ expect(invalid.program).not.toBeNull();expect(invalid.diagnostics).toContainEqual(expect.objectContaining({ code: "MEDIA_PAGE_SIZE", severity: "error" }));});@@ -513,14 +522,14 @@ describe("Semantic CSS cascade and structural resolution", () => {languageVersion: 1,text: `@version 1;section-heading{${declaration}}`,});- expect(compiled.program, declaration).toBeNull();+ expect(compiled.program, declaration).not.toBeNull();expect(compiled.diagnostics, declaration).toContainEqual(expect.objectContaining({ code: "INVALID_VALUE", severity: "error" }),);}const variable = resolve(":root { --bad: 1.0001; } section-heading { opacity: var(--bad); }");- expect(variable.nodes).toEqual({});+ expect(variable.nodes["heading-experience"]?.style.color).toBe("black");expect(variable.diagnostics).toContainEqual(expect.objectContaining({ code: "INVALID_VALUE", severity: "error" }));});diff --git a/packages/resume/src/stylesheet/cascade.ts b/packages/resume/src/stylesheet/cascade.tsindex 831089f85..b8c011e32 100644--- a/packages/resume/src/stylesheet/cascade.ts+++ b/packages/resume/src/stylesheet/cascade.ts@@ -14,7 +14,7 @@ import type {StructuralPresentation,StyleProgram,} from "./types";-import { createDiagnostic } from "./diagnostics";+import { createDiagnostic, isFatalStylesheetDiagnostic } from "./diagnostics";import { SEMANTIC_CSS_LIMITS_V1 } from "./limits";import { PROPERTY_REGISTRY_V1 } from "./registry/properties";import { createSystemVariables } from "./registry/system-variables";@@ -927,7 +927,7 @@ export function resolveStylesheet(};}- if (diagnostics.some(({ severity }) => severity === "error")) {+ if (diagnostics.some(isFatalStylesheetDiagnostic)) {return { nodes: {}, renderTree: tree, diagnostics };}return { nodes: resolved, renderTree: createRenderTree(tree, flatNodes, resolved), diagnostics };diff --git a/packages/resume/src/stylesheet/compile.ts b/packages/resume/src/stylesheet/compile.tsindex b257e2920..6317502c0 100644--- a/packages/resume/src/stylesheet/compile.ts+++ b/packages/resume/src/stylesheet/compile.ts@@ -1,7 +1,7 @@import type { StylesheetSource } from "@reactive-resume/schema/resume/stylesheet";import type { CompileStylesheetResult } from "./types";import { stylesheetCacheKey, stylesheetCompilationCache } from "./cache";-import { createDiagnostic } from "./diagnostics";+import { createDiagnostic, isFatalStylesheetDiagnostic } from "./diagnostics";import { SEMANTIC_CSS_LIMITS_V1 } from "./limits";import { parseStylesheet } from "./parse";import { PROPERTY_REGISTRY_V1 } from "./registry/properties";@@ -98,13 +98,13 @@ export function compileStylesheet(source: StylesheetSource): CompileStylesheetRe);}- if (!compiler || diagnostics.some((diagnostic) => diagnostic.severity === "error")) {+ if (!compiler || diagnostics.some(isFatalStylesheetDiagnostic)) {return { program: null, diagnostics };}const compiled = compileProgram(stylesheet, source.languageVersion);diagnostics.push(...compiled.diagnostics);- if (!compiled.program || diagnostics.some(({ severity }) => severity === "error")) {+ if (!compiled.program || diagnostics.some(isFatalStylesheetDiagnostic)) {return { program: null, diagnostics };}diff --git a/packages/resume/src/stylesheet/diagnostics.ts b/packages/resume/src/stylesheet/diagnostics.tsindex eee5f60bd..0091be20e 100644--- a/packages/resume/src/stylesheet/diagnostics.ts+++ b/packages/resume/src/stylesheet/diagnostics.ts@@ -122,6 +122,18 @@ export const SEMANTIC_CSS_DIAGNOSTIC_CATALOG_V1 = {export type SemanticCssCompilerDiagnosticCode = keyof typeof SEMANTIC_CSS_DIAGNOSTIC_CATALOG_V1;+const FATAL_DIAGNOSTIC_CODES = new Set<string>([+ "DUPLICATE_VERSION_DIRECTIVE",+ "INVALID_VERSION",+ "RESOURCE_LIMIT",+ "UNSUPPORTED_VERSION",+ "VERSION_MISMATCH",+]);++export function isFatalStylesheetDiagnostic({ code }: Pick<SemanticCssDiagnostic, "code">): boolean {+ return FATAL_DIAGNOSTIC_CODES.has(code);+}+export const EMPTY_SOURCE_RANGE: SourceRange = {start: { line: 1, column: 1, offset: 0 },end: { line: 1, column: 1, offset: 0 },diff --git a/packages/resume/src/stylesheet/index.ts b/packages/resume/src/stylesheet/index.tsindex 0f274d151..0a3227b99 100644--- a/packages/resume/src/stylesheet/index.ts+++ b/packages/resume/src/stylesheet/index.ts@@ -5,8 +5,6 @@ export type { SemanticCssCompilerDiagnosticCode } from "./diagnostics";export type { PropertyDefinition, PropertyRegistry } from "./registry/properties";export type { SemanticNodeDefinition, SemanticRegistry } from "./registry/semantic";export type { SystemVariableDefinition, SystemVariableRegistry } from "./registry/system-variables";-export type { RenderDataProjection } from "./render-data";-export type { RenderDataHashInput } from "./render-hash";export type { CompiledSelector, CompileSelectorResult, Specificity } from "./selector";export type { GeneratedStylesheet, GeneratedStylesheetBlock } from "./serialize";export type {@@ -37,7 +35,7 @@ export type {export { analyzeStylesheet } from "./analyze";export { resolveStylesheet } from "./cascade";export { compileStylesheet } from "./compile";-export { SEMANTIC_CSS_DIAGNOSTIC_CATALOG_V1 } from "./diagnostics";+export { isFatalStylesheetDiagnostic, SEMANTIC_CSS_DIAGNOSTIC_CATALOG_V1 } from "./diagnostics";export { SEMANTIC_CSS_LIMITS_V1 } from "./limits";export { parseStylesheet } from "./parse";export { PROPERTY_REGISTRY_V1 } from "./registry/properties";@@ -48,8 +46,6 @@ export {TEMPLATE_PART_CHILD_KINDS_V1,} from "./registry/semantic";export { createSystemVariables, SYSTEM_VARIABLE_REGISTRY_V1 } from "./registry/system-variables";-export { projectPublicRenderData, projectRenderData } from "./render-data";-export { computeRenderDataHash } from "./render-hash";export { compileSelector, createSelectorMatcher, getSpecificity, matchesSelector } from "./selector";export { escapeCssComment, escapeCssString, serializeGeneratedStylesheet } from "./serialize";export { SUPPORTED_SEMANTIC_CSS_VERSIONS } from "./version";diff --git a/packages/resume/src/stylesheet/parse.ts b/packages/resume/src/stylesheet/parse.tsindex 68d8d6425..42733122a 100644--- a/packages/resume/src/stylesheet/parse.ts+++ b/packages/resume/src/stylesheet/parse.ts@@ -49,8 +49,20 @@ export function parseStylesheet(source: string): ParsedStylesheet {if (!ast) return { ast: null, atRules: [], rules: [], diagnostics };+ const atRules: ParsedAtRule[] = [];const rawRanges = new Set<number>();csstree.walk(ast, function (this: { declaration?: { property?: string } | null }, node: CssNode) {+ if (node.type === "Atrule" && node.name) {+ const prelude = node.prelude?.loc+ ? source.slice(node.prelude.loc.start.offset, node.prelude.loc.end.offset).trim()+ : "";+ atRules.push({+ name: csstree.ident.decode(node.name).toLowerCase(),+ prelude,+ hasBlock: node.block !== null,+ range: rangeFromLocation(node.loc),+ });+ }if (node.type !== "Raw") return;if (this.declaration?.property?.startsWith("--")) return;@@ -62,22 +74,6 @@ export function parseStylesheet(source: string): ParsedStylesheet {});const nodes = topLevelNodes(ast);- const atRules: ParsedAtRule[] = nodes.flatMap((node) => {- if (node.type !== "Atrule" || !node.name) return [];-- const prelude = node.prelude?.loc- ? source.slice(node.prelude.loc.start.offset, node.prelude.loc.end.offset).trim()- : "";-- return [- {- name: csstree.ident.decode(node.name).toLowerCase(),- prelude,- hasBlock: node.block !== null,- range: rangeFromLocation(node.loc),- },- ];- });return {ast,diff --git a/packages/resume/src/stylesheet/render-data.test.ts b/packages/resume/src/stylesheet/render-data.test.tsdeleted file mode 100644index 19022e097..000000000--- a/packages/resume/src/stylesheet/render-data.test.ts+++ /dev/null@@ -1,96 +0,0 @@-import type { ResumeData } from "@reactive-resume/schema/resume/data";-import { describe, expect, it } from "vitest";-import { defaultResumeData } from "@reactive-resume/schema/resume/default";-import { projectPublicRenderData, projectRenderData } from "./render-data";-import { computeRenderDataHash } from "./render-hash";--const legacyData: ResumeData = {- ...defaultResumeData,- metadata: {- ...defaultResumeData.metadata,- styleRules: [- {- id: "legacy",- label: "Legacy",- enabled: true,- target: { scope: "global" },- slots: { text: { color: "#123456" } },- },- ],- },-};--const semanticData: ResumeData = {- ...legacyData,- metadata: {- ...legacyData.metadata,- stylesheet: {- mode: "semantic",- source: { languageVersion: 1, text: "@version 1;\nfield { color: red; }" },- applied: { languageVersion: 1, text: "@version 1;\nfield { color: blue; }" },- },- },-};--describe("render-data projection", () => {- it("separates resume render-data identity from stylesheet revision identity", () => {- const legacy = projectRenderData(legacyData);- const semanticPrivate = projectRenderData(semanticData);- const semanticPublic = projectPublicRenderData(semanticData);-- expect(legacy.metadata.styleRules).toEqual(legacyData.metadata.styleRules);- expect(semanticPrivate.metadata.styleRules).toBeUndefined();- expect(semanticPrivate.metadata.stylesheet).toBeUndefined();- expect(semanticPublic.metadata.styleRules).toBeUndefined();- expect(semanticPublic.metadata.stylesheet).toBeUndefined();- expect(semanticPublic.metadata.notes).toBeUndefined();- });-- it("excludes unknown and server-only data at every projection boundary", () => {- const looseData = {- ...semanticData,- dashboard: { secret: true },- revisions: { stylesheetRevision: 4, renderDataVersion: 8 },- metadata: {- ...semanticData.metadata,- notes: "private",- diagnostics: [{ message: "private" }],- serverMetadata: { secret: true },- },- picture: { ...semanticData.picture, unknownPictureField: true },- } as ResumeData;-- const privateProjection = projectRenderData(looseData) as Record<string, unknown>;- const publicProjection = projectPublicRenderData(looseData) as Record<string, unknown>;-- for (const projection of [privateProjection, publicProjection]) {- expect(projection).not.toHaveProperty("dashboard");- expect(projection).not.toHaveProperty("revisions");- expect(projection.metadata).not.toHaveProperty("notes");- expect(projection.metadata).not.toHaveProperty("diagnostics");- expect(projection.metadata).not.toHaveProperty("serverMetadata");- expect(projection.picture).not.toHaveProperty("unknownPictureField");- }- });-- it("keeps public projection hashes invariant to owner-only metadata", async () => {- const baseline = projectPublicRenderData(semanticData);- const ownerOnlyMutation = {- ...semanticData,- dashboard: { private: true },- revisions: { renderDataVersion: 9, stylesheetRevision: 11 },- metadata: {- ...semanticData.metadata,- notes: "owner-only note",- diagnostics: [{ message: "owner-only diagnostic" }],- serverMetadata: { private: true },- },- } as ResumeData;- const mutated = projectPublicRenderData(ownerOnlyMutation);-- expect(mutated).toEqual(baseline);- await expect(computeRenderDataHash({ domainVersion: 1, data: mutated })).resolves.toBe(- await computeRenderDataHash({ domainVersion: 1, data: baseline }),- );- });-});diff --git a/packages/resume/src/stylesheet/render-data.ts b/packages/resume/src/stylesheet/render-data.tsdeleted file mode 100644index e115ecb2a..000000000--- a/packages/resume/src/stylesheet/render-data.ts+++ /dev/null@@ -1,49 +0,0 @@-import type { ResumeData, StyleRule } from "@reactive-resume/schema/resume/data";-import { resumeDataSchema } from "@reactive-resume/schema/resume/data";--export type RenderDataProjection = {- picture: ResumeData["picture"];- basics: ResumeData["basics"];- summary: ResumeData["summary"];- sections: ResumeData["sections"];- customSections: ResumeData["customSections"];- metadata: {- template: ResumeData["metadata"]["template"];- layout: ResumeData["metadata"]["layout"];- page: ResumeData["metadata"]["page"];- design: ResumeData["metadata"]["design"];- typography: ResumeData["metadata"]["typography"];- styleRules?: StyleRule[];- stylesheet?: never;- notes?: never;- };-};--function project(data: ResumeData): RenderDataProjection {- const parsed = resumeDataSchema.parse(data);- const includeLegacyRules = parsed.metadata.stylesheet?.mode !== "semantic";-- return {- picture: parsed.picture,- basics: parsed.basics,- summary: parsed.summary,- sections: parsed.sections,- customSections: parsed.customSections,- metadata: {- template: parsed.metadata.template,- layout: parsed.metadata.layout,- page: parsed.metadata.page,- design: parsed.metadata.design,- typography: parsed.metadata.typography,- ...(includeLegacyRules ? { styleRules: parsed.metadata.styleRules } : {}),- },- };-}--export function projectRenderData(data: ResumeData): RenderDataProjection {- return project(data);-}--export function projectPublicRenderData(data: ResumeData): RenderDataProjection {- return project(data);-}diff --git a/packages/resume/src/stylesheet/render-hash.test.ts b/packages/resume/src/stylesheet/render-hash.test.tsdeleted file mode 100644index 9deadd08c..000000000--- a/packages/resume/src/stylesheet/render-hash.test.ts+++ /dev/null@@ -1,90 +0,0 @@-import { describe, expect, it } from "vitest";-import { computeRenderDataHash } from "./render-hash";--describe("public render hashing", () => {- it("hashes logically equivalent public render inputs identically", async () => {- const first = await computeRenderDataHash({ domainVersion: 1, data: { b: 2, a: 1 } });- const second = await computeRenderDataHash({ domainVersion: 1, data: { a: 1, b: 2 } });-- expect(first).toBe(second);- });-- it("uses the domain-separated RFC 8785 SHA-256 vector", async () => {- await expect(computeRenderDataHash({ domainVersion: 1, data: { a: 1 } })).resolves.toBe(- "81d98262808eb01af7bb5cf35b721acf0454659330e1715c665e42efffc27e55",- );- });-- it("includes source-free resolved nodes and fingerprints", async () => {- const base = { domainVersion: 1, data: { resume: { name: "Ada" } } };- const first = await computeRenderDataHash({- ...base,- resolvedNodes: { name: { style: { color: "red" } } },- projectionFingerprints: { adapter: "v1", registry: "v1" },- });- const second = await computeRenderDataHash({- ...base,- resolvedNodes: { name: { style: { color: "blue" } } },- projectionFingerprints: { adapter: "v1", registry: "v1" },- });-- expect(first).not.toBe(second);- });-- it.each([undefined, Number.NaN, Number.POSITIVE_INFINITY, 1n, new Date()])(- "rejects non-I-JSON values",- async (data) => {- await expect(computeRenderDataHash({ domainVersion: 1, data })).rejects.toThrow("I-JSON");- },- );-- it("rejects unpaired surrogates before canonicalization", async () => {- const malformed = String.fromCharCode(0xd800);- await expect(computeRenderDataHash({ domainVersion: 1, data: malformed })).rejects.toThrow("I-JSON");- });-- it("rejects hidden toJSON hooks before canonicalization", async () => {- const data = {};- Object.defineProperty(data, "toJSON", { value: () => ({ altered: true }) });- await expect(computeRenderDataHash({ domainVersion: 1, data })).rejects.toThrow("I-JSON");- });-- it("rejects array accessors without invoking them", async () => {- const data: unknown[] = [];- let reads = 0;- Object.defineProperty(data, "0", {- enumerable: true,- get: () => {- reads++;- return "unsafe";- },- });-- await expect(computeRenderDataHash({ domainVersion: 1, data })).rejects.toThrow("I-JSON");- expect(reads).toBe(0);- });-- it.each([- () => {- const data: unknown[] = [];- Reflect.set(data, Symbol("private"), true);- return data;- },- () => {- const data: unknown[] = [];- Object.defineProperty(data, "private", { value: true });- return data;- },- () => {- const data: unknown[] = [];- Object.defineProperty(data, "toJSON", { value: () => ["altered"] });- return data;- },- ])("rejects non-index array properties", async (createData) => {- await expect(computeRenderDataHash({ domainVersion: 1, data: createData() })).rejects.toThrow("I-JSON");- });-- it("rejects unknown hash-domain versions", async () => {- await expect(computeRenderDataHash({ domainVersion: 2, data: {} })).rejects.toThrow("domain version");- });-});diff --git a/packages/resume/src/stylesheet/render-hash.ts b/packages/resume/src/stylesheet/render-hash.tsdeleted file mode 100644index b9a6451d4..000000000--- a/packages/resume/src/stylesheet/render-hash.ts+++ /dev/null@@ -1,120 +0,0 @@-import canonicalize from "canonicalize";--const HASH_DOMAIN_VERSION = 1;-const HASH_DOMAIN_PREFIX = "reactive-resume:public-style-projection:v1\0";--export type RenderDataHashInput = {- domainVersion: number;- data: unknown;- resolvedNodes?: unknown;- projectionFingerprints?: unknown;-};--function hasUnpairedSurrogate(value: string): boolean {- for (let index = 0; index < value.length; index++) {- const code = value.charCodeAt(index);- if (code >= 0xd800 && code <= 0xdbff) {- const next = value.charCodeAt(index + 1);- if (!(next >= 0xdc00 && next <= 0xdfff)) return true;- index++;- } else if (code >= 0xdc00 && code <= 0xdfff) {- return true;- }- }-- return false;-}--function assertEnumerableDataProperty(- descriptor: PropertyDescriptor | undefined,-): asserts descriptor is PropertyDescriptor & {- value: unknown;-} {- if (!descriptor?.enumerable || "get" in descriptor || "set" in descriptor) {- throw new Error("I-JSON objects must contain only enumerable data properties");- }-}--function isArrayIndex(key: string, length: number): boolean {- if (!/^(0|[1-9]\d*)$/.test(key)) return false;- const index = Number(key);- return Number.isSafeInteger(index) && index < length && String(index) === key;-}--function assertIJsonValue(value: unknown, seen = new Set<object>()): void {- if (value === null || typeof value === "boolean") return;- if (typeof value === "string") {- if (hasUnpairedSurrogate(value)) throw new Error("I-JSON values must not contain unpaired surrogates");- return;- }- if (typeof value === "number") {- if (Number.isFinite(value)) return;- throw new Error("I-JSON numbers must be finite");- }- if (typeof value !== "object") throw new Error("I-JSON values must be JSON primitives, arrays, or plain objects");- if (seen.has(value)) throw new Error("I-JSON values must not be circular");-- const prototype = Object.getPrototypeOf(value);- if (!Array.isArray(value) && prototype !== Object.prototype && prototype !== null) {- throw new Error("I-JSON objects must be plain objects");- }-- seen.add(value);- try {- if (Array.isArray(value)) {- for (const symbol of Object.getOwnPropertySymbols(value)) {- throw new Error(`I-JSON arrays must not contain symbol keys: ${String(symbol)}`);- }-- const descriptors = Object.getOwnPropertyDescriptors(value);- for (const [key, descriptor] of Object.entries(descriptors)) {- if (key === "length") continue;- if (!isArrayIndex(key, value.length)) throw new Error("I-JSON arrays must not contain named properties");- assertEnumerableDataProperty(descriptor);- }- for (let index = 0; index < value.length; index++) {- const descriptor = descriptors[index];- if (!descriptor) throw new Error("I-JSON arrays must not contain holes");- assertIJsonValue(descriptor.value, seen);- }- } else {- for (const symbol of Object.getOwnPropertySymbols(value)) {- throw new Error(`I-JSON objects must not contain symbol keys: ${String(symbol)}`);- }- for (const key of Object.getOwnPropertyNames(value)) {- if (hasUnpairedSurrogate(key)) throw new Error("I-JSON keys must not contain unpaired surrogates");- const descriptor = Object.getOwnPropertyDescriptor(value, key);- assertEnumerableDataProperty(descriptor);- assertIJsonValue(descriptor.value, seen);- }- }- } finally {- seen.delete(value);- }-}--export async function computeRenderDataHash(input: RenderDataHashInput): Promise<string> {- if (input.domainVersion !== HASH_DOMAIN_VERSION) {- throw new Error(`Unsupported public render hash domain version: ${input.domainVersion}`);- }-- const payload =- input.resolvedNodes === undefined && input.projectionFingerprints === undefined- ? input.data- : {- data: input.data,- ...(input.resolvedNodes === undefined ? {} : { resolvedNodes: input.resolvedNodes }),- ...(input.projectionFingerprints === undefined- ? {}- : { projectionFingerprints: input.projectionFingerprints }),- };- assertIJsonValue(payload);-- const canonical = canonicalize(payload);- if (canonical === undefined) throw new Error("I-JSON value required for public render hashing");- const digest = await globalThis.crypto.subtle.digest(- "SHA-256",- new TextEncoder().encode(HASH_DOMAIN_PREFIX + canonical),- );- return Array.from(new Uint8Array(digest), (byte) => byte.toString(16).padStart(2, "0")).join("");-}diff --git a/packages/resume/src/stylesheet/selector.test.ts b/packages/resume/src/stylesheet/selector.test.tsindex 18aa3aa17..3379a68db 100644--- a/packages/resume/src/stylesheet/selector.test.ts+++ b/packages/resume/src/stylesheet/selector.test.ts@@ -161,13 +161,22 @@ describe("semantic selector compilation", () => {expect(compileStylesheet({ languageVersion: 1, text: fixture }).program).not.toBeNull();const invalid = compileStylesheet({ languageVersion: 1, text: "@version 1;\nsection:hover { color: red; }" });- expect(invalid.program).toBeNull();+ expect(invalid.program).not.toBeNull();expect(invalid.diagnostics).toContainEqual(expect.objectContaining({ code: "INVALID_SELECTOR" }));});+ it("treats selector-count overflow as a fatal resource limit", () => {+ const selectors = new Array(65).fill("section").join(",");+ const result = compileStylesheet({ languageVersion: 1, text: `@version 1;\n${selectors} { color: red; }` });++ expect(result.program).toBeNull();+ expect(result.diagnostics).toContainEqual(expect.objectContaining({ code: "RESOURCE_LIMIT", severity: "error" }));+ expect(result.diagnostics).not.toContainEqual(expect.objectContaining({ code: "INVALID_SELECTOR" }));+ });+it("rejects uppercase pseudo names while compiling a stylesheet", () => {const result = compileStylesheet({ languageVersion: 1, text: "@version 1;\n:ROOT { color: red; }" });- expect(result.program).toBeNull();+ expect(result.program).not.toBeNull();expect(result.diagnostics).toContainEqual(expect.objectContaining({ code: "INVALID_SELECTOR" }));});});diff --git a/packages/resume/src/stylesheet/selector.ts b/packages/resume/src/stylesheet/selector.tsindex fdc75521a..5d7598fa7 100644--- a/packages/resume/src/stylesheet/selector.ts+++ b/packages/resume/src/stylesheet/selector.ts@@ -46,6 +46,7 @@ export type CompiledSelector = {export type CompileSelectorResult = {selector: CompiledSelector | null;error?: string;+ resourceLimit?: true;};type SelectorAst = {@@ -65,6 +66,8 @@ type CompileContext = {depth: number;};+class SelectorResourceLimitError extends Error {}+type TreeNode = {node: SemanticNode;parent: TreeNode | null;@@ -208,7 +211,7 @@ function compileSimple(node: SelectorAst, context: CompileContext): CompiledSimp}if (["is", "where", "not"].includes(name)) {if (context.depth >= SEMANTIC_CSS_LIMITS_V1.maxFunctionDepth) {- throw new Error("Selector function nesting is too deep.");+ throw new SelectorResourceLimitError("Selector function nesting is too deep.");}const nested = childrenOf(node);if (nested.length !== 1 || nested[0]?.type !== "SelectorList") {@@ -219,7 +222,7 @@ function compileSimple(node: SelectorAst, context: CompileContext): CompiledSimp}if (name === "nth-child" || name === "nth-of-type") {if (context.depth >= SEMANTIC_CSS_LIMITS_V1.maxFunctionDepth) {- throw new Error("Selector function nesting is too deep.");+ throw new SelectorResourceLimitError("Selector function nesting is too deep.");}return compileNth(node, name, context);}@@ -251,7 +254,7 @@ function compileComplex(node: SelectorAst, context: CompileContext): CompiledComselectors = [];combinators.push(name);if (combinators.length > SEMANTIC_CSS_LIMITS_V1.maxCombinatorsPerSelector) {- throw new Error("Selector has too many combinators.");+ throw new SelectorResourceLimitError("Selector has too many combinators.");}continue;}@@ -270,9 +273,12 @@ function compileComplex(node: SelectorAst, context: CompileContext): CompiledComfunction compileSelectorList(node: SelectorAst, context: CompileContext): readonly CompiledComplexSelector[] {if (node.type !== "SelectorList") throw new Error("Expected a SelectorList AST.");const selectors = childrenOf(node);- if (selectors.length === 0 || selectors.length > SEMANTIC_CSS_LIMITS_V1.maxSelectorsPerRule) {+ if (selectors.length === 0) {throw new Error("Selector list has an unsupported number of selectors.");}+ if (selectors.length > SEMANTIC_CSS_LIMITS_V1.maxSelectorsPerRule) {+ throw new SelectorResourceLimitError("Selector list has an unsupported number of selectors.");+ }return selectors.map((selector) => compileComplex(selector, context));}@@ -280,13 +286,17 @@ export function compileSelector(source: string | CssNode): CompileSelectorResulttry {const text = typeof source === "string" ? source : csstree.generate(source);if (Array.from(text).length > SEMANTIC_CSS_LIMITS_V1.maxSelectorCodePoints)- throw new Error("Selector is too long.");+ throw new SelectorResourceLimitError("Selector is too long.");const ast = (typeof source === "string" ? csstree.parse(source, { context: "selectorList", positions: true }) : source) as SelectorAst;return { selector: { selectors: compileSelectorList(ast, { depth: 0 }) } };} catch (error) {- return { selector: null, error: error instanceof Error ? error.message : "Invalid selector." };+ return {+ selector: null,+ error: error instanceof Error ? error.message : "Invalid selector.",+ ...(error instanceof SelectorResourceLimitError ? { resourceLimit: true } : {}),+ };}}diff --git a/packages/resume/src/stylesheet/values.test.ts b/packages/resume/src/stylesheet/values.test.tsindex c3f16f18d..c2dda7c22 100644--- a/packages/resume/src/stylesheet/values.test.ts+++ b/packages/resume/src/stylesheet/values.test.ts@@ -51,13 +51,44 @@ describe("Semantic CSS value compilation", () => {expect(() => structuredClone(first.program)).not.toThrow();});+ it("keeps valid rules and declarations when neighboring fragments are invalid", () => {+ const result = compileStylesheet({+ languageVersion: 1,+ text: "@version 1; section:hover { color: red; } name { unknown: 1; color: #123456; }",+ });++ expect(result.program?.rules).toEqual([+ expect.objectContaining({+ declarations: [expect.objectContaining({ property: "color", value: "#123456" })],+ }),+ ]);+ expect(result.diagnostics).toEqual(+ expect.arrayContaining([+ expect.objectContaining({ code: "INVALID_SELECTOR", severity: "error" }),+ expect.objectContaining({ code: "UNSUPPORTED_PROPERTY", severity: "error" }),+ ]),+ );+ });++ it("omits an invalid value without dropping valid declarations in the rule", () => {+ const result = compileStylesheet({+ languageVersion: 1,+ text: "@version 1; name { opacity: 2; color: #123456; }",+ });++ expect(result.program?.rules[0]?.declarations).toEqual([+ expect.objectContaining({ property: "color", value: "#123456" }),+ ]);+ expect(result.diagnostics).toContainEqual(expect.objectContaining({ code: "INVALID_VALUE", severity: "error" }));+ });+it("rejects assignments to reserved system variables", () => {const result = compileStylesheet({languageVersion: 1,text: "@version 1; :root { --resume-primary-color: red; } name { color: blue; }",});- expect(result.program).toBeNull();+ expect(result.program).not.toBeNull();expect(result.diagnostics).toContainEqual(expect.objectContaining({ code: "SYSTEM_VARIABLE_READONLY", severity: "error" }),);@@ -70,7 +101,7 @@ describe("Semantic CSS value compilation", () => {text: `@version 1; :root { --asset: ${value}; } picture { background-color: var(--asset); }`,});- expect(result.program, value).toBeNull();+ expect(result.program, value).not.toBeNull();expect(result.diagnostics, value).toContainEqual(expect.objectContaining({ code: "FORBIDDEN_CSS_VALUE", severity: "error" }),);@@ -93,7 +124,7 @@ describe("Semantic CSS value compilation", () => {languageVersion: 1,text: `@version 1; field { margin-top: ${value}; }`,});- expect(result.program, value).toBeNull();+ expect(result.program, value).not.toBeNull();expect(result.diagnostics, value).toContainEqual(expect.objectContaining({ code: "INVALID_VALUE", severity: "error" }),);@@ -121,7 +152,7 @@ describe("Semantic CSS value compilation", () => {text: `@version 1; section { border-style: ${value}; }`,});- expect(result.program).toBeNull();+ expect(result.program).not.toBeNull();expect(result.diagnostics).toContainEqual(expect.objectContaining({ code: "INVALID_VALUE", severity: "error" }));},);@@ -211,7 +242,7 @@ describe("Semantic CSS value compilation", () => {text: `@version 1;section{flex:${grow} auto ${trailing}}`,});- expect(result.program).toBeNull();+ expect(result.program).not.toBeNull();expect(result.diagnostics).toContainEqual(expect.objectContaining({ code: "INVALID_VALUE", severity: "error" }),);@@ -240,7 +271,7 @@ describe("Semantic CSS value compilation", () => {text: `@version 1;section{${declaration}}`,});- expect(rejected.program, declaration).toBeNull();+ expect(rejected.program, declaration).not.toBeNull();expect(rejected.diagnostics, declaration).toContainEqual(expect.objectContaining({ code: "INVALID_VALUE", severity: "error" }),);@@ -406,7 +437,7 @@ describe("Semantic CSS value compilation", () => {fc.assert(fc.property(forbiddenBody, ({ body, code }) => {const result = compileStylesheet({ languageVersion: 1, text: `@version 1;${body}` });- expect(result.program).toBeNull();+ expect(result.program).not.toBeNull();expect(result.diagnostics).toContainEqual(expect.objectContaining({ code, severity: "error" }));}),{ numRuns: 100 },diff --git a/packages/resume/src/stylesheet/values.ts b/packages/resume/src/stylesheet/values.tsindex 43c412963..71948f75c 100644--- a/packages/resume/src/stylesheet/values.ts+++ b/packages/resume/src/stylesheet/values.ts@@ -11,7 +11,7 @@ import type {StyleProgram,} from "./types";import * as csstree from "css-tree";-import { createDiagnostic, EMPTY_SOURCE_RANGE } from "./diagnostics";+import { createDiagnostic, EMPTY_SOURCE_RANGE, isFatalStylesheetDiagnostic } from "./diagnostics";import { SEMANTIC_CSS_LIMITS_V1 } from "./limits";import {PROPERTY_REGISTRY_V1,@@ -542,7 +542,7 @@ export function compileProgram(stylesheet: ParsedStylesheet, languageVersion: nu? compileSelector(node.prelude): { selector: null, error: "Missing selector." };if (!selectorResult.selector) {- const code = /too many|too long/i.test(selectorResult.error ?? "") ? "RESOURCE_LIMIT" : "INVALID_SELECTOR";+ const code = selectorResult.resourceLimit ? "RESOURCE_LIMIT" : "INVALID_SELECTOR";diagnostic(diagnostics, code, selectorResult.error ?? "Invalid selector.", node.prelude ?? node);return;}@@ -594,9 +594,11 @@ export function compileProgram(stylesheet: ParsedStylesheet, languageVersion: nucontinue;}for (const [expandedProperty, expandedValue] of expanded) {+ const diagnosticCount = diagnostics.length;validateValue(expandedProperty, expandedValue, declaration, diagnostics);const syntaxError = property.startsWith("--") ? null : valueSyntaxError(expandedProperty, expandedValue);if (syntaxError) diagnostic(diagnostics, "INVALID_VALUE", syntaxError, declaration);+ if (diagnostics.length > diagnosticCount && diagnostics.at(-1)?.severity === "error") continue;declarations.push({property: expandedProperty,value: expandedValue,@@ -651,7 +653,7 @@ export function compileProgram(stylesheet: ParsedStylesheet, languageVersion: nuconst ast = stylesheet.ast as AstNode | null;if (ast) visit(children(ast), [], 0);const program = { languageVersion, rules } satisfies StyleProgram;- return diagnostics.some(({ severity }) => severity === "error")+ return diagnostics.some(isFatalStylesheetDiagnostic)? { program: null, diagnostics }: { program: structuredClone(program), diagnostics };}diff --git a/packages/resume/src/stylesheet/version.test.ts b/packages/resume/src/stylesheet/version.test.tsindex 37a0e1c05..d4e2fd969 100644--- a/packages/resume/src/stylesheet/version.test.ts+++ b/packages/resume/src/stylesheet/version.test.ts@@ -36,6 +36,18 @@ describe("compileStylesheet", () => {);});+ it("rejects a duplicate version directive nested in an at-rule block", () => {+ const result = compileStylesheet({+ languageVersion: 1,+ text: "@version 1; @media (width: 600pt) { @version 1; name { color: red; } }",+ });++ expect(result.program).toBeNull();+ expect(result.diagnostics).toContainEqual(+ expect.objectContaining({ code: "DUPLICATE_VERSION_DIRECTIVE", severity: "error" }),+ );+ });+it("rejects malformed directives", () => {const result = compileStylesheet({ languageVersion: 1, text: "@version one;" });@@ -59,10 +71,10 @@ describe("compileStylesheet", () => {);});- it("does not compile a recovered CSS error", () => {+ it("compiles around a recovered CSS error", () => {const result = compileStylesheet({ languageVersion: 1, text: "@version 1;\nsection { color red; }" });- expect(result.program).toBeNull();+ expect(result.program).not.toBeNull();expect(result.diagnostics).toContainEqual(expect.objectContaining({ code: "CSS_PARSE_ERROR", severity: "error" }));});});diff --git a/packages/schema/src/resume/stylesheet.test.ts b/packages/schema/src/resume/stylesheet.test.tsindex 49b84860f..588f97a20 100644--- a/packages/schema/src/resume/stylesheet.test.ts+++ b/packages/schema/src/resume/stylesheet.test.ts@@ -1,18 +1,42 @@-import { describe, expect, it } from "vitest";+import type { z } from "zod";+import { describe, expect, expectTypeOf, it } from "vitest";import { resumeDataSchema } from "./data";import { defaultResumeData } from "./default";import { semanticStylesheetSchema, stylesheetSourceSchema } from "./stylesheet";describe("semanticStylesheetSchema", () => {- it("preserves separate editable and applied sources", () => {+ it("keeps the public input canonical instead of widening it to unknown", () => {+ type StylesheetInput = z.input<typeof semanticStylesheetSchema>;+ type CanonicalInput = {+ mode: "legacy" | "semantic";+ source: { languageVersion: number; text: string };+ };++ expectTypeOf<StylesheetInput>().toEqualTypeOf<CanonicalInput>();+ expectTypeOf<string>().not.toExtend<StylesheetInput>();+ });++ it("persists one canonical stylesheet source", () => {+ const result = semanticStylesheetSchema.parse({+ mode: "semantic",+ source: { languageVersion: 1, text: "@version 1;\nsection { color: red; }\n" },+ });++ expect(result).toEqual({+ mode: "semantic",+ source: { languageVersion: 1, text: "@version 1;\nsection { color: red; }\n" },+ });+ });++ it("normalizes the historical applied source to the canonical source-only shape", () => {+ const source = { languageVersion: 1, text: "@version 1;\nname { color: red; }\n" };const result = semanticStylesheetSchema.parse({mode: "semantic",- source: { languageVersion: 1, text: "@version 1;\nsection {" },- applied: { languageVersion: 1, text: "@version 1;\nsection { color: red; }\n" },+ source,+ applied: { languageVersion: 1, text: "@version 1;\nname { color: blue; }\n" },});- expect(result.source.text).toContain("section {");- expect(result.applied.text).toContain("color: red");+ expect(result).toEqual({ mode: "semantic", source });});it("keeps resumes without a stylesheet valid for legacy rendering", () => {@@ -24,7 +48,6 @@ describe("semanticStylesheetSchema", () => {semanticStylesheetSchema.safeParse({mode: "semantic",source: { languageVersion: 0, text: "" },- applied: { languageVersion: 1, text: "" },}).success,).toBe(false);});@@ -34,7 +57,6 @@ describe("semanticStylesheetSchema", () => {semanticStylesheetSchema.safeParse({mode: "semantic",source: { languageVersion: 1, text: "" },- applied: { languageVersion: 1, text: "" },unknown: true,}).success,).toBe(false);diff --git a/packages/schema/src/resume/stylesheet.ts b/packages/schema/src/resume/stylesheet.tsindex 579b5188a..08b56ab78 100644--- a/packages/schema/src/resume/stylesheet.ts+++ b/packages/schema/src/resume/stylesheet.ts@@ -7,12 +7,30 @@ export const stylesheetSourceSchema = z.strictObject({text: z.string(),});-export const semanticStylesheetSchema = z.strictObject({+const canonicalSemanticStylesheetSchema = z.strictObject({mode: z.enum(["legacy", "semantic"]),source: stylesheetSourceSchema,- applied: stylesheetSourceSchema,});+type SemanticStylesheetInput = z.input<typeof canonicalSemanticStylesheetSchema>;++const normalizeHistoricalStylesheet = (input: unknown): unknown => {+ if (typeof input !== "object" || input === null || Array.isArray(input) || !Object.hasOwn(input, "applied")) {+ return input;+ }++ const { applied, ...stylesheet } = input as Record<string, unknown>;+ return stylesheetSourceSchema.safeParse(applied).success ? stylesheet : input;+};++const semanticStylesheetCompatibilityTransform = z.transform<SemanticStylesheetInput, SemanticStylesheetInput>(+ (input) => normalizeHistoricalStylesheet(input) as SemanticStylesheetInput,+);++export const semanticStylesheetSchema = semanticStylesheetCompatibilityTransform.pipe(+ canonicalSemanticStylesheetSchema,+);+export type StylesheetSource = z.infer<typeof stylesheetSourceSchema>;export type SemanticStylesheet = z.infer<typeof semanticStylesheetSchema>;export type StylesheetMode = SemanticStylesheet["mode"];diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 0b49a9cb4..a5a4e7541 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -186,9 +186,6 @@ importers:'@reactive-resume/mcp':specifier: workspace:*version: link:../../packages/mcp- '@reactive-resume/pdf':- specifier: workspace:*- version: link:../../packages/pdf'@reactive-resume/schema':specifier: workspace:*version: link:../../packages/schema@@ -213,9 +210,6 @@ importers:better-auth:specifier: 1.6.26version: 1.6.26(@opentelemetry/[email protected])([email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])- canonicalize:- specifier: ^3.0.0- version: 3.0.0cjk-regex:specifier: ^3.4.0version: 3.4.0@@ -252,9 +246,6 @@ importers:ollama-ai-provider-v2:specifier: ^4.0.1- pdfjs-dist:- specifier: ^6.2.108- version: 6.2.108pg:specifier: ^8.23.0version: 8.23.0@@ -1107,9 +1098,6 @@ importers:'@reactive-resume/schema':specifier: workspace:*version: link:../schema- canonicalize:- specifier: ^3.0.0- version: 3.0.0css-tree:specifier: ^3.2.1version: 3.2.1@@ -5232,11 +5220,6 @@ packages:resolution: {integrity: sha512-xxWVywk6a6Arlk+hymeycyn/VgqEfLDxupvhH/xiY5SJ/18kmi9o6MiO320DCUzypORHLtvh0I4i04tUhCNHNQ==}- resolution: {integrity: sha512-yYLfHyDMIXRyRqsKBRLX023riFLpXY2YOfdtqKXZRZy9qsfOJ9U+4F9YZL7MEzL5+ziN2x2nlBvY/Voi3EBljA==}- engines: {node: '>=18'}- hasBin: true-resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}@@ -12508,8 +12491,6 @@ snapshots:- [email protected]: {}-diff --git a/skills/resume-builder/references/schema.md b/skills/resume-builder/references/schema.mdindex ddc80e296..fb2da321b 100644--- a/skills/resume-builder/references/schema.md+++ b/skills/resume-builder/references/schema.md@@ -629,6 +629,3 @@ Choose one coherent shape for each union value. Required fields are local to tha| `metadata.stylesheet.source` | `object` | yes | — | — || `metadata.stylesheet.source.languageVersion` | `integer` | yes | exclusiveMinimum: 0; maximum: 9007199254740991 | — || `metadata.stylesheet.source.text` | `string` | yes | — | — |-| `metadata.stylesheet.applied` | `object` | yes | — | — |-| `metadata.stylesheet.applied.languageVersion` | `integer` | yes | exclusiveMinimum: 0; maximum: 9007199254740991 | — |-| `metadata.stylesheet.applied.text` | `string` | yes | — | — |diff --git a/tests/e2e/README.md b/tests/e2e/README.mdindex d37c5af8c..f9bcdde4d 100644--- a/tests/e2e/README.md+++ b/tests/e2e/README.md@@ -28,7 +28,8 @@ Run tests:## Semantic CSS-Run opt-in conversion, editing, conflict, last-valid, default-mode, and visual acceptance:+Run the six Semantic CSS scenarios: default mode, legacy conversion, source-only autosave preservation, portable+selector rendering, break-inside pagination, and all-template visual regression:```bashpnpm exec playwright test tests/e2e/specs/semantic-css@@ -48,6 +49,7 @@ pnpm exec playwright test tests/e2e/specs/semantic-css/template-visual.spec.ts \- Builder basics edit and autosave persistence.- JSON export/import.- Public sharing for anonymous visitors.-- Semantic CSS legacy conversion, last-valid recovery, portability, revision conflicts, and all-template visual regression.+- Semantic CSS default mode, legacy conversion, source-only autosave preservation, portable selector rendering,+ break-inside pagination, and all-template visual regression.PDF, DOCX, OAuth, passkeys, 2FA, password reset, and AI flows are intentionally outside the initial PR gate.diff --git a/tests/e2e/fixtures/db.ts b/tests/e2e/fixtures/db.tsindex 5fdbc0613..d25f3a761 100644--- a/tests/e2e/fixtures/db.ts+++ b/tests/e2e/fixtures/db.ts@@ -30,14 +30,12 @@ export async function deleteE2EUser(account: E2EAccount) {type SemanticStylesheetSeed = {mode: "legacy" | "semantic";source: { languageVersion: number; text: string };- applied: { languageVersion: number; text: string };};export async function updateSemanticCssFixture(resumeId: string,update: {stylesheet?: SemanticStylesheetSeed;- bumpRevision?: boolean;portableLayout?: "balanced" | "pagination-stress";experienceItemId?: string;legacyStyleRule?: boolean;@@ -136,23 +134,9 @@ export async function updateSemanticCssFixture(await pool.query(`update "resume"set data = $2,- stylesheet_revision = stylesheet_revision + $3,- render_data_version = render_data_version + $4,updated_at = now()where id = $1`,- [- resumeId,- data,- update.bumpRevision || update.stylesheet || update.legacyStyleRule ? 1 : 0,- update.stylesheet ||- update.portableLayout ||- update.experienceItemId ||- update.legacyStyleRule ||- update.hidePicture ||- update.basicsName- ? 1- : 0,- ],+ [resumeId, data],);} finally {await pool.end();@@ -168,24 +152,12 @@ export async function readSemanticCssFixture(resumeId: string) {basics?: { headline?: string };metadata?: { stylesheet?: SemanticStylesheetSeed };};- slug: string;- stylesheet_revision: number;- username: string;- }>(- `select r.data, r.slug, r.stylesheet_revision, u.username- from "resume" r- inner join "user" u on u.id = r.user_id- where r.id = $1`,- [resumeId],- );+ }>(`select data from "resume" where id = $1`, [resumeId]);const row = result.rows[0];if (!row) throw new Error(`Resume ${resumeId} was not found.`);return {stylesheet: row.data.metadata?.stylesheet,headline: row.data.basics?.headline,- revision: row.stylesheet_revision,- slug: row.slug,- username: row.username,};} finally {await pool.end();diff --git a/tests/e2e/fixtures/semantic-css.ts b/tests/e2e/fixtures/semantic-css.tsindex 91b9e7159..a7f9594cd 100644--- a/tests/e2e/fixtures/semantic-css.ts+++ b/tests/e2e/fixtures/semantic-css.ts@@ -1,4 +1,4 @@-import type { Download, Locator, Page, TestInfo } from "@playwright/test";+import type { Locator, Page, TestInfo } from "@playwright/test";import { expect } from "@playwright/test";import { updateSemanticCssFixture } from "./db";import { ACTIVE_PREVIEW_PAGE_SELECTOR, activePreviewPageSelector, readPreviewPageDataUrl } from "./preview";@@ -12,7 +12,6 @@ const EMPTY_SEMANTIC_STYLESHEET = {type SemanticStylesheetSeed = {mode: "semantic";source: { languageVersion: number; text: string };- applied: { languageVersion: number; text: string };};export const PORTABLE_STYLESHEET = `@version 1;@@ -85,7 +84,6 @@ export async function seedSemanticCssResume(stylesheet = {mode: "semantic",source: EMPTY_SEMANTIC_STYLESHEET,- applied: EMPTY_SEMANTIC_STYLESHEET,},}: {basicsName?: string;@@ -104,7 +102,7 @@ export async function seedSemanticCssResume(});await page.reload();await openSemanticCssEditor(page);- await waitForStylesheetStatus(page, "Applied");+ await waitForStylesheetStatus(page, "Valid");}export async function openSemanticCssEditor(page: Page) {@@ -125,7 +123,7 @@ export function readStylesheetSource(page: Page) {);}-export async function waitForStylesheetStatus(page: Page, status: string) {+async function waitForStylesheetStatus(page: Page, status: string) {await expect(page.getByText(status, { exact: true }).filter({ visible: true }).last()).toBeVisible({timeout: 30_000,});@@ -135,7 +133,7 @@ export async function activateStylesheet(page: Page) {const button = page.getByRole("button", { name: "Activate Semantic CSS" });await expect(button).toBeEnabled({ timeout: 30_000 });await button.click();- await waitForStylesheetStatus(page, "Applied");+ await waitForStylesheetStatus(page, "Valid");}async function firstPreviewPage(page: Page, selector = ACTIVE_PREVIEW_PAGE_SELECTOR): Promise<Locator> {@@ -180,12 +178,3 @@ export async function switchTemplate(page: Page, template: string) {}await waitForStablePreview(page, targetPreview);}--export async function downloadPdf(page: Page): Promise<Download> {- await page.getByRole("button", { name: "Download options" }).click();- const dialog = page.getByRole("dialog", { name: "Download" });- await expect(dialog).toBeVisible();- const download = page.waitForEvent("download");- await dialog.getByRole("button", { name: "Download PDF" }).click();- return download;-}diff --git a/tests/e2e/specs/semantic-css/default-mode.spec.ts b/tests/e2e/specs/semantic-css/default-mode.spec.tsindex 11a93fcd0..b754f99b7 100644--- a/tests/e2e/specs/semantic-css/default-mode.spec.ts+++ b/tests/e2e/specs/semantic-css/default-mode.spec.ts@@ -6,5 +6,5 @@ test("@semantic-css starts new resumes in semantic mode", async ({ authPage: pagawait expect(page.getByText("Converted stylesheet draft", { exact: true })).toHaveCount(0);await expect.poll(() => readStylesheetSource(page)).toBe("@version 1;\n");- await expect(page.getByText("Applied", { exact: true }).filter({ visible: true })).toBeVisible();+ await expect(page.getByText("Valid", { exact: true }).filter({ visible: true })).toBeVisible();});diff --git a/tests/e2e/specs/semantic-css/invalid-last-valid.spec.ts b/tests/e2e/specs/semantic-css/invalid-last-valid.spec.tsdeleted file mode 100644index b035785b0..000000000--- a/tests/e2e/specs/semantic-css/invalid-last-valid.spec.ts+++ /dev/null@@ -1,66 +0,0 @@-import { createHash } from "node:crypto";-import { readFile } from "node:fs/promises";-import { readSemanticCssFixture } from "../../fixtures/db";-import {- createSemanticCssResume,- downloadPdf,- replaceStylesheet,- seedSemanticCssResume,- waitForStablePreview,- waitForStylesheetStatus,-} from "../../fixtures/semantic-css";-import { expect, test } from "../../fixtures/test";--test.setTimeout(120_000);--const renderedPdfFingerprint = (pdf: Buffer) => {- const stablePdf = pdf- .toString("latin1")- .replace(/D:\d{14}Z/g, "D:00000000000000Z")- .replace(/[A-Z]{6}\+/g, "SUBSET+")- .replace(/\/ID \[<[\da-f]+> <[\da-f]+>\]/gi, "/ID [<ID> <ID>]");-- return createHash("sha256").update(stablePdf, "latin1").digest("hex");-};--test("@semantic-css keeps preview and export on the last valid source", async ({ authPage: page }, testInfo) => {- const resumeId = await createSemanticCssResume(page, testInfo);- await seedSemanticCssResume(page, resumeId);- await replaceStylesheet(page, "@version 1;\nname { color: #dc2626; }\n");- await waitForStylesheetStatus(page, "Applied");-- const canvas = await waitForStablePreview(page);- const validPreview = await canvas.evaluate((element) => (element as HTMLCanvasElement).toDataURL());- const validDownload = await downloadPdf(page);- const validPdf = await readFile(await validDownload.path());- expect(validPdf.subarray(0, 4).toString()).toBe("%PDF");-- await replaceStylesheet(page, "@version 1;\nname { color: ; }\n");- await waitForStylesheetStatus(page, "Error");- await expect(page.getByText("Preview and export use the last valid version.", { exact: true })).toBeVisible();- await expect.poll(() => canvas.evaluate((element) => (element as HTMLCanvasElement).toDataURL())).toBe(validPreview);- const invalidDownload = await downloadPdf(page);- const invalidPdf = await readFile(await invalidDownload.path());- expect(invalidPdf.subarray(0, 4).toString()).toBe("%PDF");- expect(renderedPdfFingerprint(invalidPdf)).toBe(renderedPdfFingerprint(validPdf));- await expect- .poll(async () => (await readSemanticCssFixture(resumeId)).stylesheet)- .toMatchObject({- source: { text: "@version 1;\nname { color: ; }\n" },- applied: { text: "@version 1;\nname { color: #dc2626; }\n" },- });-- await replaceStylesheet(page, "@version 1;\nname { color: #2563eb; }\n");- await waitForStylesheetStatus(page, "Applied");- await expect- .poll(() => canvas.evaluate((element) => (element as HTMLCanvasElement).toDataURL()))- .not.toBe(validPreview);- await waitForStablePreview(page);- const fixedDownload = await downloadPdf(page);- const fixedPdf = await readFile(await fixedDownload.path());- expect(fixedPdf.subarray(0, 4).toString()).toBe("%PDF");- expect(renderedPdfFingerprint(fixedPdf)).not.toBe(renderedPdfFingerprint(validPdf));- await expect- .poll(async () => (await readSemanticCssFixture(resumeId)).stylesheet?.applied.text)- .toBe("@version 1;\nname { color: #2563eb; }\n");-});diff --git a/tests/e2e/specs/semantic-css/legacy-conversion.spec.ts b/tests/e2e/specs/semantic-css/legacy-conversion.spec.tsindex 8584b7de2..da3cc51f0 100644--- a/tests/e2e/specs/semantic-css/legacy-conversion.spec.ts+++ b/tests/e2e/specs/semantic-css/legacy-conversion.spec.ts@@ -7,13 +7,6 @@ test.setTimeout(120_000);test("@semantic-css converts legacy rules into an inactive draft before activation", async ({authPage: page,}, testInfo) => {- const preflightWorkerErrors: string[] = [];- page.on("console", (message) => {- if (message.location().url.includes("preflight.worker") && message.text().includes("Buffer is not defined")) {- preflightWorkerErrors.push(message.text());- }- });-const resumeId = await createSemanticCssResume(page, testInfo);await updateSemanticCssFixture(resumeId, { legacyStyleRule: true });await page.reload();@@ -28,8 +21,7 @@ test("@semantic-css converts legacy rules into an inactive draft before activatiawait expect(page.getByText(/^Ready to activate(?: with warnings)?$/)).toBeVisible({ timeout: 30_000 });await activateStylesheet(page);- expect(preflightWorkerErrors).toEqual([]);await page.reload();await expect(page.getByText("Converted stylesheet draft", { exact: true })).toHaveCount(0);- await expect(page.getByText("Applied", { exact: true }).filter({ visible: true })).toBeVisible();+ await expect(page.getByText("Valid", { exact: true }).filter({ visible: true })).toBeVisible();});diff --git a/tests/e2e/specs/semantic-css/portable-stylesheet.spec.ts b/tests/e2e/specs/semantic-css/portable-stylesheet.spec.tsindex 9673a938a..3f858434c 100644--- a/tests/e2e/specs/semantic-css/portable-stylesheet.spec.ts+++ b/tests/e2e/specs/semantic-css/portable-stylesheet.spec.ts@@ -1,4 +1,3 @@-import type { Page } from "@playwright/test";import { readSemanticCssFixture } from "../../fixtures/db";import {createSemanticCssResume,@@ -81,7 +80,6 @@ const WITHOUT_PAGINATION_DIRECTIVES = PORTABLE_ACCEPTANCE_STYLESHEET.replace(BRE"",);const BREAK_INSIDE_ONLY_STYLESHEET = PORTABLE_ACCEPTANCE_STYLESHEET.replace(MIN_PRESENCE_AHEAD_DIRECTIVE, "");-const MIN_PRESENCE_AHEAD_ONLY_STYLESHEET = PORTABLE_ACCEPTANCE_STYLESHEET.replace(BREAK_INSIDE_DIRECTIVE, "");const GENERIC_PORTABLE_MARKERS = ["exactItemField",@@ -126,10 +124,10 @@ async function countPortableMarkersByPage(page: Parameters<typeof waitForStableP}, PORTABLE_MARKERS);}-async function waitForPortableApplied(page: Parameters<typeof waitForStablePreview>[0]) {+async function waitForPortableValid(page: Parameters<typeof waitForStablePreview>[0]) {await expect(page- .getByText(/^Applied(?: with warnings)?$/)+ .getByText(/^Valid(?: with warnings)?$/).filter({ visible: true }).last(),).toBeVisible({@@ -145,23 +143,9 @@ async function applyPortableStylesheet(await openSemanticCssEditor(page);await replaceStylesheet(page, source);await expect- .poll(async () => (await readSemanticCssFixture(resumeId)).stylesheet?.applied.text, { timeout: 30_000 })+ .poll(async () => (await readSemanticCssFixture(resumeId)).stylesheet?.source.text, { timeout: 30_000 }).toBe(source);- await waitForPortableApplied(page);-}--async function readProjectMinPresenceAhead(page: Page, resumeId: string) {- const fixture = await readSemanticCssFixture(resumeId);- const response = await page.request.get(- `/api/openapi/resumes/${encodeURIComponent(fixture.username)}/${encodeURIComponent(fixture.slug)}/style-projection`,- );- expect(response.ok(), `the public PDF projection request should succeed (${response.status()})`).toBe(true);- const projection = (await response.json()) as {- nodes: Record<string, { minPresenceAhead?: number }>;- };- const projectNodes = Object.entries(projection.nodes).filter(([key]) => key.endsWith("/section-projects"));- expect(projectNodes, "the public PDF projection should contain one projects section").toHaveLength(1);- return projectNodes[0]?.[1].minPresenceAhead;+ await waitForPortableValid(page);}test("@semantic-css applies every portable selector behavior across Onyx, Azurill, and Ditto", async ({@@ -176,7 +160,7 @@ test("@semantic-css applies every portable selector behavior across Onyx, Azurilawait applyPortableStylesheet(page, resumeId, PORTABLE_ACCEPTANCE_STYLESHEET);await page.reload();await openSemanticCssEditor(page);- await waitForPortableApplied(page);+ await waitForPortableValid(page);for (const template of ["Onyx", "Azurill", "Ditto"]) {await switchTemplate(page, template);@@ -201,9 +185,7 @@ test("@semantic-css applies every portable selector behavior across Onyx, Azuril}});-test("@semantic-css pagination directives keep a portable project section together", async ({- authPage: page,-}, testInfo) => {+test("@semantic-css break-inside keeps a portable project section together", async ({ authPage: page }, testInfo) => {const resumeId = await createSemanticCssResume(page, testInfo);await seedSemanticCssResume(page, resumeId, {portableLayout: "pagination-stress",@@ -220,30 +202,15 @@ test("@semantic-css pagination directives keep a portable project section togethawait applyPortableStylesheet(page, resumeId, BREAK_INSIDE_ONLY_STYLESHEET);const breakInsideOnlyDistribution = (await countPortableMarkersByPage(page)).map((page) => page.pagination);- await applyPortableStylesheet(page, resumeId, WITHOUT_PAGINATION_DIRECTIVES);- const withoutMinPresenceAhead = await readProjectMinPresenceAhead(page, resumeId);-- await applyPortableStylesheet(page, resumeId, MIN_PRESENCE_AHEAD_ONLY_STYLESHEET);- const minPresenceAheadOnly = await readProjectMinPresenceAhead(page, resumeId);-console.info(`PORTABLE_PAGINATION_EVIDENCE ${JSON.stringify({breakInside: {withoutDirective: withoutBreakInsideDistribution,withDirective: breakInsideOnlyDistribution,},- minPresenceAhead: {- withoutDirective: withoutMinPresenceAhead ?? null,- withDirective: minPresenceAheadOnly,- },})}`,);expect(breakInsideOnlyDistribution, "break-inside: avoid must independently change project pagination").not.toEqual(withoutBreakInsideDistribution,);- expect(withoutMinPresenceAhead, "the no-directive control must omit minPresenceAhead").toBeUndefined();- expect(- minPresenceAheadOnly,- "-resume-min-presence-ahead: 24pt must independently reach the project pagination props",- ).toBe(24);});diff --git a/tests/e2e/specs/semantic-css/preservation.spec.ts b/tests/e2e/specs/semantic-css/preservation.spec.tsindex be39b61b8..de7569a49 100644--- a/tests/e2e/specs/semantic-css/preservation.spec.ts+++ b/tests/e2e/specs/semantic-css/preservation.spec.ts@@ -9,7 +9,7 @@ test("@semantic-css preserves a persisted stylesheet through an old-client resumawait createSampleResumeFromDashboard(page, testInfo);const resumeId = resumeIdFromPage(page);const source = { languageVersion: 1, text: "@version 1;\nname { color: #dc2626; }\n" };- await updateSemanticCssFixture(resumeId, { stylesheet: { mode: "semantic", source, applied: source } });+ await updateSemanticCssFixture(resumeId, { stylesheet: { mode: "semantic", source } });await page.reload();await openSidebarSection(page, "Basics");@@ -21,7 +21,6 @@ test("@semantic-css preserves a persisted stylesheet through an old-client resumstylesheet: {mode: "semantic",source,- applied: source,},});});diff --git a/tests/e2e/specs/semantic-css/revision-conflict.spec.ts b/tests/e2e/specs/semantic-css/revision-conflict.spec.tsdeleted file mode 100644index 6d13fda27..000000000--- a/tests/e2e/specs/semantic-css/revision-conflict.spec.ts+++ /dev/null@@ -1,26 +0,0 @@-import { updateSemanticCssFixture } from "../../fixtures/db";-import {- createSemanticCssResume,- readStylesheetSource,- replaceStylesheet,- seedSemanticCssResume,- waitForStylesheetStatus,-} from "../../fixtures/semantic-css";-import { expect, test } from "../../fixtures/test";--test.setTimeout(120_000);--test("@semantic-css rebases a stale revision without dropping the focused draft", async ({- authPage: page,-}, testInfo) => {- const resumeId = await createSemanticCssResume(page, testInfo);- await seedSemanticCssResume(page, resumeId);- await replaceStylesheet(page, "@version 1;\nname { color: #dc2626; }\n");- await waitForStylesheetStatus(page, "Applied");-- await updateSemanticCssFixture(resumeId, { bumpRevision: true });- const latest = "@version 1;\nname { color: #2563eb; }\n";- await replaceStylesheet(page, latest);- await waitForStylesheetStatus(page, "Applied");- await expect.poll(() => readStylesheetSource(page)).toBe(latest);-});diff --git a/tests/e2e/specs/semantic-css/template-visual.spec.ts b/tests/e2e/specs/semantic-css/template-visual.spec.tsindex 8233fb318..6858d5df2 100644--- a/tests/e2e/specs/semantic-css/template-visual.spec.ts+++ b/tests/e2e/specs/semantic-css/template-visual.spec.ts@@ -94,7 +94,7 @@ test("@semantic-css renders deterministic first-page previews for all templates"basicsName: "Semantic CSS Acceptance",experienceItemId: "experience-item-2",hidePicture: true,- stylesheet: { mode: "semantic", source: portable, applied: portable },+ stylesheet: { mode: "semantic", source: portable },});for (const template of templates) {