feat(web): add Ant workspace tabs and harden page chrome

Persist workspace tabs in the app shell with Ant Design styling aligned to the desktop top bar, and fix tab bar layout flicker on select. Add shared PageHeader components, query helpers, and missing header state across CRM views; improve mobile shell layout and Vite HMR stability on Windows.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-25 16:53:04 +03:30
co-authored by Cursor
parent 1992474273
commit cc68b2d9f3
86 changed files with 5446 additions and 3885 deletions
-72
View File
@@ -1,72 +0,0 @@
import { execFileSync } from 'node:child_process';
import { writeFileSync } from 'node:fs';
function gitShow(stage, file) {
return execFileSync('git', ['show', `${stage}:${file}`], {
encoding: 'utf8',
maxBuffer: 32 * 1024 * 1024,
});
}
/** Extract top-level SFC blocks; nested <template> inside root template is kept intact. */
function extractSfc(src) {
const scripts = [];
const styles = [];
let template = null;
const scriptRe = /<script\b[^>]*>[\s\S]*?<\/script>/gi;
let m;
while ((m = scriptRe.exec(src))) scripts.push(m[0]);
const styleRe = /<style\b[^>]*>[\s\S]*?<\/style>/gi;
while ((m = styleRe.exec(src))) styles.push(m[0]);
const start = src.search(/<template\b/i);
if (start >= 0) {
const end = src.toLowerCase().lastIndexOf('</template>');
if (end > start) {
template = src.slice(start, end + '</template>'.length);
}
}
return { scripts, template, styles };
}
/** Script/logic from main (theirs=:3), template+style from local/dev (ours=:2). */
function hybrid(oursSrc, theirsSrc) {
const ours = extractSfc(oursSrc);
const theirs = extractSfc(theirsSrc);
const scripts = theirs.scripts.length ? theirs.scripts : ours.scripts;
const template = ours.template || theirs.template;
const styles = ours.styles.length ? ours.styles : theirs.styles;
return [...scripts, template, ...styles].filter(Boolean).join('\n\n') + '\n';
}
const files = process.argv.slice(2);
if (!files.length) {
console.error('Usage: node _hybrid-vue-merge.mjs <file>...');
process.exit(1);
}
for (const file of files) {
const ours = gitShow(':2', file);
const theirs = gitShow(':3', file);
const merged = hybrid(ours, theirs);
const check = extractSfc(merged);
if (!check.scripts.length || !check.template) {
console.error('invalid hybrid result for', file, {
scripts: check.scripts.length,
hasTemplate: Boolean(check.template),
});
process.exit(2);
}
writeFileSync(file, merged, 'utf8');
execFileSync('git', ['add', file]);
console.log(
'hybrid-resolved',
file,
`scripts=${check.scripts.length}`,
`styles=${check.styles.length}`,
`tplLen=${check.template.length}`,
);
}