Merge branch 'KIN-UI-024-frontend_dev'
This commit is contained in:
commit
d374604741
1 changed files with 7 additions and 2 deletions
|
|
@ -769,6 +769,11 @@ function taskStatusColor(s: string) {
|
||||||
return m[s] || 'gray'
|
return m[s] || 'gray'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function taskStatusLabel(s: string) {
|
||||||
|
if (s === 'revising') return t('projectView.status_revising')
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
|
||||||
function decTypeColor(t: string) {
|
function decTypeColor(t: string) {
|
||||||
const m: Record<string, string> = {
|
const m: Record<string, string> = {
|
||||||
decision: 'blue', gotcha: 'red', workaround: 'yellow',
|
decision: 'blue', gotcha: 'red', workaround: 'yellow',
|
||||||
|
|
@ -1183,7 +1188,7 @@ async function addDecision() {
|
||||||
class="flex items-center justify-between px-3 py-2 border border-orange-800/60 bg-orange-950/20 rounded text-sm hover:border-orange-600 no-underline block transition-colors">
|
class="flex items-center justify-between px-3 py-2 border border-orange-800/60 bg-orange-950/20 rounded text-sm hover:border-orange-600 no-underline block transition-colors">
|
||||||
<div class="flex items-center gap-2 min-w-0">
|
<div class="flex items-center gap-2 min-w-0">
|
||||||
<span class="text-gray-500 shrink-0 w-24">{{ t.id }}</span>
|
<span class="text-gray-500 shrink-0 w-24">{{ t.id }}</span>
|
||||||
<Badge :text="t.status" :color="taskStatusColor(t.status)" />
|
<Badge :text="taskStatusLabel(t.status)" :color="taskStatusColor(t.status)" />
|
||||||
<Badge v-if="t.category" :text="t.category" :color="CATEGORY_COLORS[t.category] || 'gray'" />
|
<Badge v-if="t.category" :text="t.category" :color="CATEGORY_COLORS[t.category] || 'gray'" />
|
||||||
<span class="text-orange-300 truncate">{{ t.title }}</span>
|
<span class="text-orange-300 truncate">{{ t.title }}</span>
|
||||||
<span v-if="t.parent_task_id" class="text-[10px] text-gray-600 shrink-0">escalated from {{ t.parent_task_id }}</span>
|
<span v-if="t.parent_task_id" class="text-[10px] text-gray-600 shrink-0">escalated from {{ t.parent_task_id }}</span>
|
||||||
|
|
@ -1211,7 +1216,7 @@ async function addDecision() {
|
||||||
</button>
|
</button>
|
||||||
<span v-else class="w-4 shrink-0"></span>
|
<span v-else class="w-4 shrink-0"></span>
|
||||||
<span class="text-gray-500 shrink-0 w-24">{{ t.id }}</span>
|
<span class="text-gray-500 shrink-0 w-24">{{ t.id }}</span>
|
||||||
<Badge :text="t.status" :color="taskStatusColor(t.status)" />
|
<Badge :text="taskStatusLabel(t.status)" :color="taskStatusColor(t.status)" />
|
||||||
<Badge v-if="t.category" :text="t.category" :color="CATEGORY_COLORS[t.category] || 'gray'" />
|
<Badge v-if="t.category" :text="t.category" :color="CATEGORY_COLORS[t.category] || 'gray'" />
|
||||||
<span class="text-gray-300 truncate">{{ t.title }}</span>
|
<span class="text-gray-300 truncate">{{ t.title }}</span>
|
||||||
<span v-if="t.execution_mode === 'auto_complete'"
|
<span v-if="t.execution_mode === 'auto_complete'"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue