feat: 完善 Prompt 管理与生成流程配置

This commit is contained in:
王鹏
2026-07-15 17:31:13 +08:00
parent 84d3c8fc05
commit de98ea59b1
93 changed files with 3474 additions and 980 deletions

View File

@@ -440,12 +440,15 @@ test('generate page keeps visual themes compact and removes the large impact pre
assert.doesNotMatch(source, /class="style-theme-note"/)
})
test('generate page gives every visual theme card the same dimensions', () => {
test('generate page keeps visual theme cards readable and aligned in the new settings grid', () => {
const source = readSource('views/GenerateView.vue')
assert.match(source, /grid-template-columns: repeat\(auto-fill, minmax\(min\(220px, 100%\), 1fr\)\)/)
assert.match(source, /\.style-theme-option \{[\s\S]*?width: 100%;[\s\S]*?height: 112px;/)
assert.match(source, /class="advanced-settings-body"/)
assert.match(source, /class="advanced-secondary-grid"/)
assert.match(source, /grid-template-columns: repeat\(auto-fill, minmax\(min\(260px, 100%\), 1fr\)\)/)
assert.match(source, /\.style-theme-option \{[\s\S]*?width: 100%;[\s\S]*?min-height: 138px;/)
assert.match(source, /\.style-theme-card \{[\s\S]*?width: 100%;[\s\S]*?height: 100%;/)
assert.match(source, /\.style-solution-tags \{[\s\S]*?display: grid;/)
})
test('generate page displays one-click business loop report', () => {