Fix test failures and workload/websocket behavior

This commit is contained in:
beabigegg
2026-01-11 08:37:21 +08:00
parent 3bdc6ff1c9
commit f5f870da56
49 changed files with 3006 additions and 1132 deletions

View File

@@ -15,7 +15,91 @@
"capacityHelp": "Recommended: 40 hours (standard work week). Maximum: 168 hours (total hours in a week).",
"capacitySaved": "Capacity settings saved",
"capacityError": "Failed to save capacity settings",
"capacityInvalid": "Please enter a valid number of hours (0-168)"
"capacityInvalid": "Please enter a valid number of hours (0-168)",
"weeklyReportTitle": "Weekly Report",
"weeklyReportDescription": "Subscribe to receive a weekly in-app report for projects you own or are a member of.",
"weeklyReportSubscribe": "Weekly report subscription",
"weeklyReportEnabled": "Weekly report subscription enabled",
"weeklyReportDisabled": "Weekly report subscription disabled",
"weeklyReportError": "Failed to update weekly report subscription"
},
"triggers": {
"descriptionOptional": "Description (optional)",
"conditions": "Conditions",
"conditionsHint": "All conditions must match (AND).",
"field": "Field",
"operator": "Operator",
"value": "Value",
"addCondition": "Add condition",
"and": "AND",
"action": "Action",
"notify": "Notify",
"templateLabel": "Message template (optional)",
"templateHint": "Variables: {task_title}, {old_value}, {new_value}",
"selectCustomField": "Select custom field",
"saving": "Saving...",
"update": "Update",
"enable": "Enable",
"disable": "Disable",
"retry": "Retry",
"empty": "No triggers configured for this project.",
"when": "When",
"then": "Then",
"deleteTitle": "Delete Trigger",
"deleteMessage": "Are you sure you want to delete this trigger? This action cannot be undone.",
"fields": {
"status": "Status",
"assignee": "Assignee",
"priority": "Priority",
"startDate": "Start date",
"dueDate": "Due date",
"customField": "Custom field"
},
"operators": {
"equals": "equals",
"notEquals": "does not equal",
"changedTo": "changes to",
"changedFrom": "changes from",
"before": "before",
"after": "after",
"in": "in"
},
"targets": {
"assignee": "Task Assignee",
"creator": "Task Creator",
"projectOwner": "Project Owner",
"projectMembers": "Project Members",
"user": "Specific user",
"department": "Department",
"role": "Role"
},
"placeholders": {
"value": "Enter value",
"list": "Comma-separated values",
"user": "User ID",
"department": "Department ID",
"role": "Role name"
},
"range": {
"start": "Start",
"end": "End"
},
"toasts": {
"enabled": "Trigger enabled",
"disabled": "Trigger disabled",
"deleteSuccess": "Trigger deleted successfully"
},
"errors": {
"saveFailed": "Failed to save trigger",
"loadFailed": "Failed to load triggers",
"updateFailed": "Failed to update trigger",
"deleteFailed": "Failed to delete trigger",
"missingCustomField": "Please select a custom field",
"missingValue": "Please enter a value",
"missingDateRange": "Please select a start and end date",
"missingTargetValue": "Please enter a target value",
"missingConditions": "Please add at least one condition"
}
},
"tabs": {
"general": "General",

View File

@@ -15,7 +15,91 @@
"capacityHelp": "建議值40 小時標準工時。最大值168 小時(一週總時數)。",
"capacitySaved": "容量設定已儲存",
"capacityError": "儲存容量設定失敗",
"capacityInvalid": "請輸入有效的時數0-168"
"capacityInvalid": "請輸入有效的時數0-168",
"weeklyReportTitle": "每週報告",
"weeklyReportDescription": "訂閱後將收到你所擁有或參與專案的每週站內報告。",
"weeklyReportSubscribe": "每週報告訂閱",
"weeklyReportEnabled": "已開啟每週報告訂閱",
"weeklyReportDisabled": "已關閉每週報告訂閱",
"weeklyReportError": "更新每週報告訂閱失敗"
},
"triggers": {
"descriptionOptional": "描述(選填)",
"conditions": "觸發條件",
"conditionsHint": "所有條件需同時成立AND。",
"field": "欄位",
"operator": "運算子",
"value": "值",
"addCondition": "新增條件",
"and": "且",
"action": "動作",
"notify": "通知",
"templateLabel": "訊息模板(選填)",
"templateHint": "可用變數:{task_title}, {old_value}, {new_value}",
"selectCustomField": "選擇自訂欄位",
"saving": "儲存中...",
"update": "更新",
"enable": "啟用",
"disable": "停用",
"retry": "重試",
"empty": "此專案尚未設定觸發器。",
"when": "當",
"then": "則",
"deleteTitle": "刪除觸發器",
"deleteMessage": "確定要刪除此觸發器嗎?此操作無法復原。",
"fields": {
"status": "狀態",
"assignee": "負責人",
"priority": "優先度",
"startDate": "開始日期",
"dueDate": "截止日期",
"customField": "自訂欄位"
},
"operators": {
"equals": "等於",
"notEquals": "不等於",
"changedTo": "變更為",
"changedFrom": "變更自",
"before": "早於",
"after": "晚於",
"in": "包含於"
},
"targets": {
"assignee": "任務負責人",
"creator": "任務建立者",
"projectOwner": "專案負責人",
"projectMembers": "專案成員",
"user": "指定使用者",
"department": "部門",
"role": "角色"
},
"placeholders": {
"value": "輸入值",
"list": "以逗號分隔",
"user": "使用者 ID",
"department": "部門 ID",
"role": "角色名稱"
},
"range": {
"start": "開始",
"end": "結束"
},
"toasts": {
"enabled": "觸發器已啟用",
"disabled": "觸發器已停用",
"deleteSuccess": "觸發器已刪除"
},
"errors": {
"saveFailed": "儲存觸發器失敗",
"loadFailed": "載入觸發器失敗",
"updateFailed": "更新觸發器失敗",
"deleteFailed": "刪除觸發器失敗",
"missingCustomField": "請選擇自訂欄位",
"missingValue": "請輸入值",
"missingDateRange": "請選擇開始與結束日期",
"missingTargetValue": "請輸入通知對象",
"missingConditions": "請至少新增一個條件"
}
},
"tabs": {
"general": "一般",