Polish approved 1.0 scope and verify portable previews
This commit is contained in:
1 parent
1819f35f91
commit
2b45df2816
181 files changed
+996
-139
No files matched your search
+17
-9
@@ -34,6 +34,7 @@ await writeFile(
|
||||
const categories = [...new Set(iconNames.map((name) => icons[name].category))];
|
||||
const groupNames = {
|
||||
navigation: "Навигация",
|
||||
keyboard: "Клавиатура и платформы",
|
||||
account: "Аккаунт",
|
||||
security: "Безопасность",
|
||||
actions: "Действия",
|
||||
@@ -47,21 +48,28 @@ for (const theme of ["dark", "light"]) {
|
||||
theme === "dark"
|
||||
? ["#111f26", "#e3f2f3", "#a5bec5", "#3b535c", "#77cbbb"]
|
||||
: ["#edf3f3", "#173239", "#4c666d", "#c6d7da", "#12616a"];
|
||||
let rowY = 178;
|
||||
const rows = categories
|
||||
.map((category, row) => {
|
||||
const y = 178 + row * 118;
|
||||
return `<text x="56" y="${y}" fill="${muted}" font-size="12">${groupNames[category]}</text>${iconNames
|
||||
.filter((name) => icons[name].category === category)
|
||||
.map((name, col) => {
|
||||
const x = 56 + col * 106;
|
||||
return `<svg x="${x + 35}" y="${y + 18}" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="${ink}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">${icons[name].paths}</svg><text x="${x + 51}" y="${y + 76}" text-anchor="middle" fill="${muted}" font-size="10">${name}</text>`;
|
||||
.map((category) => {
|
||||
const names = iconNames.filter(
|
||||
(name) => icons[name].category === category,
|
||||
),
|
||||
y = rowY;
|
||||
const rowCount = Math.ceil(names.length / 8);
|
||||
rowY += rowCount * 100 + 32;
|
||||
return `<text x="56" y="${y}" fill="${muted}" font-size="12">${groupNames[category]}</text>${names
|
||||
.map((name, index) => {
|
||||
const x = 56 + (index % 8) * 106,
|
||||
top = y + Math.floor(index / 8) * 100;
|
||||
return `<svg x="${x + 35}" y="${top + 18}" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="${ink}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">${icons[name].paths}</svg><text x="${x + 51}" y="${top + 76}" text-anchor="middle" fill="${muted}" font-size="10">${name}</text>`;
|
||||
})
|
||||
.join("")}<path d="M56 ${y + 96}H904" stroke="${line}"/>`;
|
||||
.join("")}<path d="M56 ${rowY - 18}H904" stroke="${line}"/>`;
|
||||
})
|
||||
.join("");
|
||||
const height = rowY + 40;
|
||||
await writeFile(
|
||||
new URL(`preview-${theme}.svg`, root),
|
||||
`<svg xmlns="http://www.w3.org/2000/svg" width="960" height="1140" viewBox="0 0 960 1140"><rect width="960" height="1140" fill="${bg}"/><g font-family="Trebuchet MS,Arial,sans-serif"><text x="56" y="66" font-size="25" font-weight="bold" fill="${accent}">a/</text><text x="56" y="110" font-size="32" font-weight="bold" fill="${ink}">Dock Icons</text><text x="904" y="108" text-anchor="end" font-size="13" fill="${muted}">64 SVG · 24 px · 1.5 px stroke</text><path d="M56 136H904" stroke="${line}"/>${rows}<text x="56" y="1122" font-size="11" fill="${muted}">ANIDEV / DESIGN SYSTEM</text></g></svg>\n`,
|
||||
`<svg xmlns="http://www.w3.org/2000/svg" width="960" height="${height}" viewBox="0 0 960 ${height}"><rect width="960" height="${height}" fill="${bg}"/><g font-family="Trebuchet MS,Arial,sans-serif"><text x="56" y="66" font-size="25" font-weight="bold" fill="${accent}">a/</text><text x="56" y="110" font-size="32" font-weight="bold" fill="${ink}">Dock Icons</text><text x="904" y="108" text-anchor="end" font-size="13" fill="${muted}">${iconNames.length} SVG · 24 px · 1.5 px stroke</text><path d="M56 136H904" stroke="${line}"/>${rows}<text x="56" y="${height - 18}" font-size="11" fill="${muted}">ANIDEV / DESIGN SYSTEM</text></g></svg>\n`,
|
||||
);
|
||||
}
|
||||
console.log(
|
||||
|
||||
@@ -89,6 +89,17 @@ for (const file of [
|
||||
"prompts/SSO.md",
|
||||
])
|
||||
await copy(file, path.join(pkg, "docs", file));
|
||||
const componentContract = await readFile(
|
||||
path.join(root, "components/CONTRACT.md"),
|
||||
"utf8",
|
||||
);
|
||||
await writeFile(
|
||||
path.join(pkg, "docs/components/CONTRACT.md"),
|
||||
componentContract.replaceAll(
|
||||
"(../docs/CONTENT-WORKSPACES.md)",
|
||||
"(../CONTENT-WORKSPACES.md)",
|
||||
),
|
||||
);
|
||||
await copy("docs/INTEGRATION.md", path.join(pkg, "docs/INTEGRATION.md"));
|
||||
const integration = await readFile(
|
||||
path.join(root, "docs/INTEGRATION.md"),
|
||||
@@ -98,6 +109,8 @@ await writeFile(
|
||||
path.join(pkg, "README.md"),
|
||||
integration
|
||||
.replaceAll("(PUBLIC-API.md)", "(docs/PUBLIC-API.md)")
|
||||
.replaceAll("(SCOPE-1.0.md)", "(docs/SCOPE-1.0.md)")
|
||||
.replaceAll("(CONTENT-WORKSPACES.md)", "(docs/CONTENT-WORKSPACES.md)")
|
||||
.replaceAll("(BACKEND-INTEGRATION.md)", "(docs/BACKEND-INTEGRATION.md)")
|
||||
.replaceAll("(../NOTICE.md)", "(NOTICE.md)"),
|
||||
);
|
||||
@@ -109,6 +122,7 @@ await writeFile(
|
||||
.replaceAll("(../patterns/", "(patterns/"),
|
||||
);
|
||||
await copy("docs/PANEL-API.md", path.join(pkg, "docs/PANEL-API.md"));
|
||||
await copy("docs/SCOPE-1.0.md", path.join(pkg, "docs/SCOPE-1.0.md"));
|
||||
await copy(
|
||||
"docs/CONTENT-WORKSPACES.md",
|
||||
path.join(pkg, "docs/CONTENT-WORKSPACES.md"),
|
||||
|
||||
@@ -46,6 +46,7 @@ try {
|
||||
});
|
||||
});
|
||||
const env = { ...process.env, BASE_URL: base };
|
||||
const failures = [];
|
||||
for (const name of [
|
||||
"browser",
|
||||
"dock",
|
||||
@@ -60,12 +61,28 @@ try {
|
||||
"package",
|
||||
"system-pages",
|
||||
"panel-navigation",
|
||||
"mobile-dock",
|
||||
"content-workspaces",
|
||||
"export",
|
||||
"skill",
|
||||
]) {
|
||||
if (
|
||||
process.env.QA_CHECKS &&
|
||||
!process.env.QA_CHECKS.split(",").includes(name)
|
||||
)
|
||||
continue;
|
||||
console.log(`\nChecking ${name}`);
|
||||
await run(`tests/${name}.mjs`, env);
|
||||
try {
|
||||
await run(`tests/${name}.mjs`, env);
|
||||
} catch (error) {
|
||||
failures.push(error.message);
|
||||
console.error(error.message);
|
||||
}
|
||||
}
|
||||
if (failures.length)
|
||||
throw Error(`Final verification failures:\n${failures.join("\n")}`);
|
||||
console.log(
|
||||
"Release checks passed. Browser coverage follows PLAYWRIGHT_EXECUTABLE_PATH; this does not certify other engines.",
|
||||
"Final checks passed; no release was published. Browser coverage follows PLAYWRIGHT_EXECUTABLE_PATH; this does not certify other engines.",
|
||||
);
|
||||
} finally {
|
||||
server.kill();
|
||||
|
||||
Reference in new issue
Block a user