Skip to content

Commit 419acce

Browse files
committed
fix(task-orchestration): remove default chat templates
1 parent 2b19c22 commit 419acce

4 files changed

Lines changed: 11 additions & 148 deletions

File tree

tests/unit/config-tabs-ui.test.mjs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,15 @@ test('config template keeps expected config tabs in top and side navigation', ()
132132
assert.match(orchestrationPanel, /class="task-chat-context-chip"/);
133133
assert.match(orchestrationPanel, /class="task-chat-context-chip task-chat-context-action" @click="taskOrchestration\.settingsOpen = true"><\/button>/);
134134
assert.match(orchestrationPanel, /@change="taskOrchestration\.selectedEngine === 'workflow' \? null : taskOrchestration\.workflowIdsText = ''"/);
135-
assert.match(orchestrationPanel, /class="task-quick-template-grid"/);
136-
assert.match(orchestrationPanel, /taskOrchestration\.planFingerprint = ''/);
137-
assert.match(orchestrationPanel, /taskOrchestration\.lastError = ''/);
135+
assert.doesNotMatch(orchestrationPanel, /task-thread-suggestion-card/);
136+
assert.doesNotMatch(orchestrationPanel, /task-thread-readiness-card/);
137+
assert.doesNotMatch(orchestrationPanel, /class="task-quick-template-grid"/);
138+
assert.doesNotMatch(orchestrationPanel, /orchestration\.templates\.reviewFix\.label/);
139+
assert.doesNotMatch(orchestrationPanel, /orchestration\.quick\.templates\.planOnly\.meta/);
138140
assert.match(orchestrationPanel, /class="task-workflow-suggestions"/);
139141
assert.match(orchestrationPanel, /@click="appendTaskWorkflowId\(workflow.id \|\| workflow.name\)"/);
140-
assert.match(orchestrationPanel, /class="[^"]*task-draft-overview[^"]*"/);
142+
assert.doesNotMatch(orchestrationPanel, /class="[^"]*task-draft-overview[^"]*"/);
143+
assert.doesNotMatch(orchestrationPanel, /task-quick-readiness/);
141144
assert.match(orchestrationPanel, /class="[^"]*task-side-settings-card[^"]*task-advanced-panel[^"]*" :open="taskOrchestration\.settingsOpen" @toggle="taskOrchestration\.settingsOpen = \$event\.target\.open"/);
142145
assert.doesNotMatch(orchestrationPanel, /class="[^"]*task-thread-message-card[^"]*task-thread-settings-card[^"]*"/);
143146
assert.match(orchestrationPanel, /taskOrchestrationDraftReadiness.summary/);
@@ -187,6 +190,9 @@ test('config template keeps expected config tabs in top and side navigation', ()
187190
assert.doesNotMatch(styles, /task-panel-config-action/);
188191
assert.doesNotMatch(styles, /task-chat-status-strip/);
189192
assert.doesNotMatch(styles, /task-chat-config-link/);
193+
assert.doesNotMatch(styles, /task-thread-suggestion-card/);
194+
assert.doesNotMatch(styles, /task-thread-readiness-card/);
195+
assert.doesNotMatch(styles, /task-thread-checklist/);
190196
assert.match(styles, /\.task-chat-context-action\s*\{[\s\S]*cursor:\s*pointer;/);
191197
assert.doesNotMatch(styles, /#panel-orchestration \.task-quick-side-card\s*\{\s*display:\s*none;\s*\}/);
192198
assert.match(styles, /#panel-orchestration \.task-side-workbench-card,[\s\S]*#panel-orchestration \.task-side-settings-card\s*\{[\s\S]*max-height:\s*min\(560px, calc\(100vh - 220px\)\);[\s\S]*overflow:\s*auto;/);

web-ui/partials/index/panel-orchestration.html

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -57,45 +57,6 @@
5757
<div v-if="taskOrchestrationDraftMetrics.followUpCount" class="task-chat-bubble-meta">{{ t('orchestration.chat.input.sequenceHint', { count: taskOrchestrationDraftMetrics.followUpCount + 1 }) }}</div>
5858
</div>
5959
</div>
60-
<section v-if="!taskOrchestrationDraftMetrics.hasTarget" class="selector-section task-thread-message-card task-thread-suggestion-card task-template-block task-quick-template-block">
61-
<div class="task-thread-card-label">AI · suggestions</div>
62-
<div class="task-template-label">{{ t('orchestration.templates.title') }}</div>
63-
<div class="task-quick-template-grid">
64-
<button type="button" class="task-quick-template-card" @click="taskOrchestration.target = t('orchestration.templates.reviewFix.target'); taskOrchestration.selectedEngine = 'openai-chat'; taskOrchestration.workflowIdsText = ''; taskOrchestration.notes = t('orchestration.templates.reviewFix.notes'); taskOrchestration.followUpsText = t('orchestration.templates.reviewFix.followUps'); taskOrchestration.plan = null; taskOrchestration.planIssues = []; taskOrchestration.planWarnings = []; taskOrchestration.planFingerprint = ''; taskOrchestration.lastError = ''">
65-
<strong>{{ t('orchestration.templates.reviewFix.label') }}</strong>
66-
<span>{{ t('orchestration.quick.templates.reviewFix.meta') }}</span>
67-
</button>
68-
<button type="button" class="task-quick-template-card" @click="taskOrchestration.target = t('orchestration.templates.planOnly.target'); taskOrchestration.selectedEngine = 'openai-chat'; taskOrchestration.workflowIdsText = ''; taskOrchestration.notes = t('orchestration.templates.planOnly.notes'); taskOrchestration.followUpsText = ''; taskOrchestration.plan = null; taskOrchestration.planIssues = []; taskOrchestration.planWarnings = []; taskOrchestration.planFingerprint = ''; taskOrchestration.lastError = ''">
69-
<strong>{{ t('orchestration.templates.planOnly.label') }}</strong>
70-
<span>{{ t('orchestration.quick.templates.planOnly.meta') }}</span>
71-
</button>
72-
<button type="button" class="task-quick-template-card" @click="taskOrchestration.target = t('orchestration.templates.workflowBatch.target'); taskOrchestration.selectedEngine = 'workflow'; taskOrchestration.workflowIdsText = t('orchestration.templates.workflowBatch.workflowIds'); taskOrchestration.notes = t('orchestration.templates.workflowBatch.notes'); taskOrchestration.followUpsText = ''; taskOrchestration.plan = null; taskOrchestration.planIssues = []; taskOrchestration.planWarnings = []; taskOrchestration.planFingerprint = ''; taskOrchestration.lastError = ''">
73-
<strong>{{ t('orchestration.templates.workflowBatch.label') }}</strong>
74-
<span>{{ t('orchestration.quick.templates.workflowBatch.meta') }}</span>
75-
</button>
76-
</div>
77-
</section>
78-
79-
<section
80-
v-if="taskOrchestrationDraftMetrics.hasTarget && !(taskOrchestration.plan || taskOrchestration.planIssues.length || taskOrchestration.planWarnings.length || taskOrchestration.lastError)"
81-
class="selector-section task-thread-message-card task-thread-readiness-card">
82-
<div class="task-thread-card-label">AI · next step</div>
83-
<div class="task-draft-overview task-draft-inline task-quick-readiness">
84-
<div class="task-draft-inline-head">
85-
<span :class="['pill', taskOrchestrationDraftReadiness.tone]">{{ taskOrchestrationDraftReadiness.title }}</span>
86-
<div class="task-readiness-copy task-draft-inline-copy">{{ taskOrchestrationDraftReadiness.summary }}</div>
87-
</div>
88-
</div>
89-
<div class="task-readiness-grid task-quick-checklist task-thread-checklist">
90-
<div v-for="item in taskOrchestrationDraftChecklist" :key="item.key" :class="['task-readiness-item', { done: item.done }]">
91-
<strong>{{ item.label }}</strong>
92-
<span>{{ item.detail }}</span>
93-
</div>
94-
</div>
95-
</section>
96-
97-
98-
9960
<section
10061
v-if="taskOrchestration.plan || taskOrchestration.planIssues.length || taskOrchestration.planWarnings.length || taskOrchestration.lastError"
10162
class="selector-section task-plan-card task-thread-message-card task-thread-plan-card">

web-ui/res/web-ui-render.precompiled.js

Lines changed: 1 addition & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -4078,71 +4078,9 @@ return function render(_ctx, _cache) {
40784078
])
40794079
]))
40804080
: _createCommentVNode("v-if", true),
4081-
(!_ctx.taskOrchestrationDraftMetrics.hasTarget)
4082-
? (_openBlock(), _createElementBlock("section", {
4083-
key: 1,
4084-
class: "selector-section task-thread-message-card task-thread-suggestion-card task-template-block task-quick-template-block"
4085-
}, [
4086-
_createElementVNode("div", { class: "task-thread-card-label" }, "AI · suggestions"),
4087-
_createElementVNode("div", { class: "task-template-label" }, _toDisplayString(_ctx.t('orchestration.templates.title')), 1 /* TEXT */),
4088-
_createElementVNode("div", { class: "task-quick-template-grid" }, [
4089-
_createElementVNode("button", {
4090-
type: "button",
4091-
class: "task-quick-template-card",
4092-
onClick: $event => {_ctx.taskOrchestration.target = _ctx.t('orchestration.templates.reviewFix.target'); _ctx.taskOrchestration.selectedEngine = 'openai-chat'; _ctx.taskOrchestration.workflowIdsText = ''; _ctx.taskOrchestration.notes = _ctx.t('orchestration.templates.reviewFix.notes'); _ctx.taskOrchestration.followUpsText = _ctx.t('orchestration.templates.reviewFix.followUps'); _ctx.taskOrchestration.plan = null; _ctx.taskOrchestration.planIssues = []; _ctx.taskOrchestration.planWarnings = []; _ctx.taskOrchestration.planFingerprint = ''; _ctx.taskOrchestration.lastError = ''}
4093-
}, [
4094-
_createElementVNode("strong", null, _toDisplayString(_ctx.t('orchestration.templates.reviewFix.label')), 1 /* TEXT */),
4095-
_createElementVNode("span", null, _toDisplayString(_ctx.t('orchestration.quick.templates.reviewFix.meta')), 1 /* TEXT */)
4096-
], 8 /* PROPS */, ["onClick"]),
4097-
_createElementVNode("button", {
4098-
type: "button",
4099-
class: "task-quick-template-card",
4100-
onClick: $event => {_ctx.taskOrchestration.target = _ctx.t('orchestration.templates.planOnly.target'); _ctx.taskOrchestration.selectedEngine = 'openai-chat'; _ctx.taskOrchestration.workflowIdsText = ''; _ctx.taskOrchestration.notes = _ctx.t('orchestration.templates.planOnly.notes'); _ctx.taskOrchestration.followUpsText = ''; _ctx.taskOrchestration.plan = null; _ctx.taskOrchestration.planIssues = []; _ctx.taskOrchestration.planWarnings = []; _ctx.taskOrchestration.planFingerprint = ''; _ctx.taskOrchestration.lastError = ''}
4101-
}, [
4102-
_createElementVNode("strong", null, _toDisplayString(_ctx.t('orchestration.templates.planOnly.label')), 1 /* TEXT */),
4103-
_createElementVNode("span", null, _toDisplayString(_ctx.t('orchestration.quick.templates.planOnly.meta')), 1 /* TEXT */)
4104-
], 8 /* PROPS */, ["onClick"]),
4105-
_createElementVNode("button", {
4106-
type: "button",
4107-
class: "task-quick-template-card",
4108-
onClick: $event => {_ctx.taskOrchestration.target = _ctx.t('orchestration.templates.workflowBatch.target'); _ctx.taskOrchestration.selectedEngine = 'workflow'; _ctx.taskOrchestration.workflowIdsText = _ctx.t('orchestration.templates.workflowBatch.workflowIds'); _ctx.taskOrchestration.notes = _ctx.t('orchestration.templates.workflowBatch.notes'); _ctx.taskOrchestration.followUpsText = ''; _ctx.taskOrchestration.plan = null; _ctx.taskOrchestration.planIssues = []; _ctx.taskOrchestration.planWarnings = []; _ctx.taskOrchestration.planFingerprint = ''; _ctx.taskOrchestration.lastError = ''}
4109-
}, [
4110-
_createElementVNode("strong", null, _toDisplayString(_ctx.t('orchestration.templates.workflowBatch.label')), 1 /* TEXT */),
4111-
_createElementVNode("span", null, _toDisplayString(_ctx.t('orchestration.quick.templates.workflowBatch.meta')), 1 /* TEXT */)
4112-
], 8 /* PROPS */, ["onClick"])
4113-
])
4114-
]))
4115-
: _createCommentVNode("v-if", true),
4116-
(_ctx.taskOrchestrationDraftMetrics.hasTarget && !(_ctx.taskOrchestration.plan || _ctx.taskOrchestration.planIssues.length || _ctx.taskOrchestration.planWarnings.length || _ctx.taskOrchestration.lastError))
4117-
? (_openBlock(), _createElementBlock("section", {
4118-
key: 2,
4119-
class: "selector-section task-thread-message-card task-thread-readiness-card"
4120-
}, [
4121-
_createElementVNode("div", { class: "task-thread-card-label" }, "AI · next step"),
4122-
_createElementVNode("div", { class: "task-draft-overview task-draft-inline task-quick-readiness" }, [
4123-
_createElementVNode("div", { class: "task-draft-inline-head" }, [
4124-
_createElementVNode("span", {
4125-
class: _normalizeClass(['pill', _ctx.taskOrchestrationDraftReadiness.tone])
4126-
}, _toDisplayString(_ctx.taskOrchestrationDraftReadiness.title), 3 /* TEXT, CLASS */),
4127-
_createElementVNode("div", { class: "task-readiness-copy task-draft-inline-copy" }, _toDisplayString(_ctx.taskOrchestrationDraftReadiness.summary), 1 /* TEXT */)
4128-
])
4129-
]),
4130-
_createElementVNode("div", { class: "task-readiness-grid task-quick-checklist task-thread-checklist" }, [
4131-
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.taskOrchestrationDraftChecklist, (item) => {
4132-
return (_openBlock(), _createElementBlock("div", {
4133-
key: item.key,
4134-
class: _normalizeClass(['task-readiness-item', { done: item.done }])
4135-
}, [
4136-
_createElementVNode("strong", null, _toDisplayString(item.label), 1 /* TEXT */),
4137-
_createElementVNode("span", null, _toDisplayString(item.detail), 1 /* TEXT */)
4138-
], 2 /* CLASS */))
4139-
}), 128 /* KEYED_FRAGMENT */))
4140-
])
4141-
]))
4142-
: _createCommentVNode("v-if", true),
41434081
(_ctx.taskOrchestration.plan || _ctx.taskOrchestration.planIssues.length || _ctx.taskOrchestration.planWarnings.length || _ctx.taskOrchestration.lastError)
41444082
? (_openBlock(), _createElementBlock("section", {
4145-
key: 3,
4083+
key: 1,
41464084
class: "selector-section task-plan-card task-thread-message-card task-thread-plan-card"
41474085
}, [
41484086
_createElementVNode("div", { class: "task-thread-card-label" }, "AI · " + _toDisplayString(_ctx.t('orchestration.plan.title')), 1 /* TEXT */),

web-ui/styles/task-orchestration.css

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,55 +1796,13 @@
17961796
line-height: 1.2;
17971797
}
17981798

1799-
#panel-orchestration .task-thread-suggestion-card,
1800-
#panel-orchestration .task-thread-readiness-card {
1801-
display: block;
1802-
width: min(100%, 660px);
1803-
}
1804-
1805-
#panel-orchestration .task-thread-suggestion-card .task-template-label,
18061799
#panel-orchestration .task-side-settings-card .task-advanced-summary {
18071800
margin: 0 0 8px;
18081801
color: var(--color-text-primary);
18091802
font-size: 0.86rem;
18101803
font-weight: 750;
18111804
}
18121805

1813-
#panel-orchestration .task-thread-suggestion-card .task-quick-template-grid {
1814-
grid-template-columns: 1fr;
1815-
gap: 6px;
1816-
}
1817-
1818-
#panel-orchestration .task-thread-suggestion-card .task-quick-template-card {
1819-
padding: 8px 10px;
1820-
border-radius: 12px;
1821-
background: rgba(248, 250, 252, 0.68);
1822-
box-shadow: none;
1823-
}
1824-
1825-
#panel-orchestration .task-thread-readiness-card .task-draft-overview,
1826-
#panel-orchestration .task-thread-readiness-card .task-readiness-grid {
1827-
margin: 0;
1828-
}
1829-
1830-
#panel-orchestration .task-thread-readiness-card .task-config-strip {
1831-
margin-top: 8px;
1832-
}
1833-
1834-
#panel-orchestration .task-thread-checklist {
1835-
display: grid;
1836-
grid-template-columns: repeat(2, minmax(0, 1fr));
1837-
gap: 6px;
1838-
margin-top: 8px;
1839-
}
1840-
1841-
#panel-orchestration .task-thread-checklist .task-readiness-item {
1842-
padding: 7px 8px;
1843-
border-radius: 11px;
1844-
background: rgba(248, 250, 252, 0.66);
1845-
box-shadow: none;
1846-
}
1847-
18481806
#panel-orchestration .task-side-settings-card:not([open]) {
18491807
padding: 8px 10px;
18501808
}

0 commit comments

Comments
 (0)