fix(activities): put the priority flag on the date row and recolor medium and low

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-03 21:32:49 +03:30
co-authored by Cursor
parent 52edccf74e
commit 14f4e9d7d8
3 changed files with 11 additions and 11 deletions
@@ -66,8 +66,8 @@ const showTrash = computed(() => props.selectMode && props.selected);
const PRIORITY_FLAG: Record<ActivityPriority, { label: string; color: string }> = { const PRIORITY_FLAG: Record<ActivityPriority, { label: string; color: string }> = {
very_high: { label: 'خیلی زیاد', color: '#dc2626' }, very_high: { label: 'خیلی زیاد', color: '#dc2626' },
high: { label: 'زیاد', color: '#ea580c' }, high: { label: 'زیاد', color: '#ea580c' },
medium: { label: 'متوسط', color: '#0d9488' }, medium: { label: 'متوسط', color: '#eab308' },
low: { label: 'کم', color: '#2563eb' }, low: { label: 'کم', color: '#16a34a' },
very_low: { label: 'خیلی کم', color: '#94a3b8' }, very_low: { label: 'خیلی کم', color: '#94a3b8' },
}; };
const priorityFlag = computed(() => const priorityFlag = computed(() =>
@@ -153,11 +153,6 @@ const cardStyle = computed(() => ({
</a-typography-text> </a-typography-text>
</div> </div>
<a-tooltip v-if="priorityFlag" :title="`اولویت: ${priorityFlag.label}`">
<span :style="{ display: 'inline-flex', flexShrink: 0, lineHeight: 1 }">
<FlagFilled :style="{ color: priorityFlag.color, fontSize: '16px' }" />
</span>
</a-tooltip>
<span :data-card-id="deal.id"> <span :data-card-id="deal.id">
<a-button <a-button
v-if="showTrash" v-if="showTrash"
@@ -212,6 +207,11 @@ const cardStyle = computed(() => ({
{{ money.unit }} {{ money.unit }}
</a-typography-text> </a-typography-text>
</a-typography-text> </a-typography-text>
<a-tooltip v-if="priorityFlag" :title="`اولویت: ${priorityFlag.label}`">
<span :style="{ display: 'inline-flex', flexShrink: 0, lineHeight: 1 }">
<FlagFilled :style="{ color: priorityFlag.color, fontSize: '16px' }" />
</span>
</a-tooltip>
</a-flex> </a-flex>
</a-flex> </a-flex>
</a-card> </a-card>
+2 -2
View File
@@ -1036,12 +1036,12 @@ dd {
.flag.low, .flag.low,
.priority.low { .priority.low {
color: #64748b; color: #16a34a;
} }
.flag.medium, .flag.medium,
.priority.medium { .priority.medium {
color: #ea580c; color: #eab308;
} }
.flag.high, .flag.high,
+2 -2
View File
@@ -2257,11 +2257,11 @@ watch([id, isNew], () => void load(), { immediate: true });
} }
.pri.medium { .pri.medium {
color: #0d9488; color: #eab308;
} }
.pri.low { .pri.low {
color: #2563eb; color: #16a34a;
} }
.pri.very-low { .pri.very-low {