diff --git a/web/hwlab-cloud-web/scripts/r6-architecture-parity.test.ts b/web/hwlab-cloud-web/scripts/r6-architecture-parity.test.ts index 7b3bc780..2d69b01b 100644 --- a/web/hwlab-cloud-web/scripts/r6-architecture-parity.test.ts +++ b/web/hwlab-cloud-web/scripts/r6-architecture-parity.test.ts @@ -218,6 +218,46 @@ test("R6 MDTODO task rows expose opaque task references", () => { assert.match(taskTreeSource, /:data-task-ref="task\.taskRef"/u); }); +test("R2 console rewrite owns the final visual layer and removes private letter glyphs", () => { + const mainSource = read("src/main.ts"); + assert.match(mainSource, /console-shell\.css/u); + assert.match(mainSource, /console-r2\.css/u); + assert.doesNotMatch(mainSource, /console-legacy\.css/u); + + const iconSource = read("src/components/console/ConsoleIcon.vue"); + for (const icon of ["menu", "info", "logout", "empty", "project", "key", "provider", "skills"]) + assert.match(iconSource, new RegExp(`\\b${icon}:`, "u"), `ConsoleIcon should define ${icon}`); + + const migratedViews = [ + "src/components/common/EmptyState.vue", + "src/views/SkillsView.vue", + "src/views/projects/ProjectsView.vue", + "src/views/admin/ProviderProfilesView.vue", + "src/views/user/ApiKeysView.vue", + ]; + for (const relativePath of migratedViews) { + const source = read(relativePath); + assert.match(source, /ConsoleIcon/u, `${relativePath} should use the shared icon system`); + assert.doesNotMatch(source, />\s*(?:SK|PJ|AI|KEY|HW)\s* { const issueBody = readIssueBodyFixture(); assert.match(issueBody, /Wei-Shaw\/sub2api@v0\.1\.136=a2f76e4/u); diff --git a/web/hwlab-cloud-web/src/components/common/EmptyState.vue b/web/hwlab-cloud-web/src/components/common/EmptyState.vue index 28667557..36a9ae5b 100644 --- a/web/hwlab-cloud-web/src/components/common/EmptyState.vue +++ b/web/hwlab-cloud-web/src/components/common/EmptyState.vue @@ -1,14 +1,17 @@