UI编辑器一批细节优化 #278

Merged
kdletters merged 44 commits from fix/ui-editor-minor-adjusts into master 2026-09-08 11:56:36 +08:00
2 changed files with 1 additions and 5 deletions
Showing only changes of commit fe813802a5 - Show all commits
@@ -9,7 +9,6 @@ export type WorkflowCompletionNotice = {
export function appendWorkflowCheckPrompt(message: string): string {
const trimmed = message.trim();
if (!trimmed) return '请检查。';
if (trimmed.includes('请检查')) return trimmed;
return `${trimmed.replace(/[!?]+$/u, '')}`;
}
@@ -6,13 +6,10 @@ import {
} from '../src/view/ui-editor/components/workflowCompletionNotice';
describe('workflow completion notice helpers', () => {
it('appends the review prompt without duplicating it', () => {
it('appends the review prompt to a terminal status', () => {
expect(appendWorkflowCheckPrompt('已应用 3 条建议。')).toBe(
'已应用 3 条建议,请检查。',
);
expect(appendWorkflowCheckPrompt('已应用 3 条建议,请检查。')).toBe(
'已应用 3 条建议,请检查。',
);
});
it('maps every workflow step to a user-facing label', () => {