fix: give Workbench conversation the full workspace
Pipelines as Code CI / hwlab-nc01-v03-ci-poll- Success

This commit is contained in:
root
2026-07-20 13:37:42 +02:00
parent 7098ef34f7
commit 68f57e0eb4
3 changed files with 17 additions and 17 deletions
@@ -0,0 +1,15 @@
// SPEC: PJ2026-010401 Web工作台.
// Responsibility: Keep the conversation as the dominant Workbench surface.
import assert from "node:assert/strict";
import fs from "node:fs";
import test from "node:test";
const viewSource = fs.readFileSync(new URL("../src/views/workbench/CodeWorkbenchView.vue", import.meta.url), "utf8");
const styleSource = fs.readFileSync(new URL("../src/styles/workbench.css", import.meta.url), "utf8");
test("Workbench gives the former node-ops pane width to the conversation", () => {
assert.doesNotMatch(viewSource, /HwpodNodeOpsPanel|workbench-tools-column/u);
assert.match(styleSource, /\.workbench-grid\s*\{[^}]*grid-template-columns:\s*auto minmax\(0, 1fr\);/su);
assert.doesNotMatch(styleSource, /\.workbench-tools-column\s*\{/u);
});
+2 -13
View File
@@ -5,7 +5,7 @@
display: grid;
min-height: 0;
height: 100%;
grid-template-columns: auto minmax(0, 1fr) minmax(280px, 360px);
grid-template-columns: auto minmax(0, 1fr);
gap: 8px;
}
@@ -115,15 +115,6 @@
overscroll-behavior: contain;
}
.workbench-tools-column {
display: grid;
min-height: 0;
min-width: 0;
grid-template-rows: minmax(260px, 0.95fr) minmax(240px, 1fr);
gap: 8px;
overflow: hidden;
}
.caserun-panel {
align-content: stretch;
grid-template-rows: auto auto auto minmax(96px, 1fr) auto;
@@ -1507,8 +1498,7 @@
.session-rail,
.workbench-center,
.hwpod-panel,
.caserun-panel,
.workbench-tools-column {
.caserun-panel {
min-height: 0;
}
@@ -1531,7 +1521,6 @@
grid-template-rows: auto minmax(0, 1fr);
}
.workbench-tools-column,
.hwpod-panel,
.caserun-panel {
display: none;
@@ -8,7 +8,6 @@ import CommandComposer from "@/components/workbench/CommandComposer.vue";
import ConversationPanel from "@/components/workbench/ConversationPanel.vue";
import SessionRail from "@/components/workbench/SessionRail.vue";
import WorkbenchKafkaDebugPanel from "@/components/workbench/WorkbenchKafkaDebugPanel.vue";
import HwpodNodeOpsPanel from "@/components/hwpod/HwpodNodeOpsPanel.vue";
import { useAutoRefresh } from "@/composables/useAutoRefresh";
import { shouldReflectWorkbenchSessionUrl } from "@/router/workbench-navigation";
import { workbenchDebugCapabilities } from "@/config/runtime";
@@ -150,9 +149,6 @@ async function reflectActiveSessionInUrl(value: string | null): Promise<void> {
</div>
<CommandComposer />
</main>
<div class="workbench-tools-column">
<HwpodNodeOpsPanel />
</div>
</div>
</section>
</template>