auto-sync: 2026-05-19 14:01:22
This commit is contained in:
@@ -14,6 +14,10 @@ export function setApiProjectId(pid: string | null) {
|
||||
_currentProjectId = pid;
|
||||
}
|
||||
|
||||
export function _getProjectId(): string | null {
|
||||
return _currentProjectId;
|
||||
}
|
||||
|
||||
function projectId(): string {
|
||||
if (!_currentProjectId) throw new Error('No project selected');
|
||||
return _currentProjectId;
|
||||
|
||||
@@ -21,18 +21,17 @@ const STATUS_META: Record<string, { color: string; label: string }> = {
|
||||
cancelled: { color: '#6b7280', label: '已取消' },
|
||||
};
|
||||
|
||||
// v2.8: 对齐设计文档的 Modal 完整按钮
|
||||
const VALID_TRANSITIONS: Record<string, string[]> = {
|
||||
pending: ['claimed', 'cancelled'],
|
||||
claimed: ['working', 'paused', 'cancelled'],
|
||||
working: ['review', 'paused', 'escalated', 'cancelled'],
|
||||
review: ['done', 'pending', 'failed', 'escalated'],
|
||||
claimed: ['working', 'pending', 'paused', 'cancelled'],
|
||||
working: ['review', 'blocked', 'failed', 'paused', 'escalated', 'waiting_human', 'cancelled'],
|
||||
paused: ['working', 'cancelled'],
|
||||
review: ['done', 'pending', 'failed', 'escalated', 'waiting_human', 'cancelled'],
|
||||
escalated: ['working', 'pending', 'cancelled'],
|
||||
waiting_human: ['done', 'pending'],
|
||||
done: [],
|
||||
failed: ['pending', 'escalated', 'cancelled'],
|
||||
waiting_human: ['working', 'done', 'cancelled'],
|
||||
blocked: ['pending', 'escalated', 'cancelled'],
|
||||
failed: ['pending', 'escalated', 'cancelled'],
|
||||
done: [],
|
||||
cancelled: [],
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user