fix: keep growth impact labels grounded
This commit is contained in:
@@ -74,7 +74,10 @@
|
|||||||
if (event.insightBasis === 'HISTORICAL') {
|
if (event.insightBasis === 'HISTORICAL') {
|
||||||
return 'رفتار پرداخت در دوره مشابه قبلی، این مناسبت را برای برنامهریزی دوباره قابل بررسی میکند.';
|
return 'رفتار پرداخت در دوره مشابه قبلی، این مناسبت را برای برنامهریزی دوباره قابل بررسی میکند.';
|
||||||
}
|
}
|
||||||
if (event.profileEvidence.matchedSignals.length === 0) {
|
if (
|
||||||
|
event.insightBasis !== 'BUSINESS_PROFILE' ||
|
||||||
|
!event.profileEvidence?.matchedSignals?.length
|
||||||
|
) {
|
||||||
return 'این مناسبت با توجه به شناخت کلی ثبتشده از کسبوکار شما برای بررسی بیشتر انتخاب شده است.';
|
return 'این مناسبت با توجه به شناخت کلی ثبتشده از کسبوکار شما برای بررسی بیشتر انتخاب شده است.';
|
||||||
}
|
}
|
||||||
return 'ویژگیهای این مناسبت با نشانههای ثبتشده در پروفایل کسبوکار شما همخوانی دارد.';
|
return 'ویژگیهای این مناسبت با نشانههای ثبتشده در پروفایل کسبوکار شما همخوانی دارد.';
|
||||||
@@ -83,7 +86,7 @@
|
|||||||
const visibleEvents = $derived.by(() => {
|
const visibleEvents = $derived.by(() => {
|
||||||
const todayKey = tehranCalendarKey(now);
|
const todayKey = tehranCalendarKey(now);
|
||||||
const upcoming = events.filter((event) => {
|
const upcoming = events.filter((event) => {
|
||||||
const endKey = tehranCalendarKey(event.endDate);
|
const endKey = tehranCalendarKey(event.endDate ?? event.date);
|
||||||
return todayKey !== null && endKey !== null && endKey >= todayKey;
|
return todayKey !== null && endKey !== null && endKey >= todayKey;
|
||||||
});
|
});
|
||||||
const byEvidenceId = new Map(upcoming.map((event) => [event.evidenceId, event]));
|
const byEvidenceId = new Map(upcoming.map((event) => [event.evidenceId, event]));
|
||||||
@@ -252,12 +255,16 @@
|
|||||||
<h3 class="mt-1 text-sm font-black">{event.eventTitleFa}</h3>
|
<h3 class="mt-1 text-sm font-black">{event.eventTitleFa}</h3>
|
||||||
</div>
|
</div>
|
||||||
<span class="basis-badge shrink-0 rounded-full px-2 py-1 text-xs font-bold">
|
<span class="basis-badge shrink-0 rounded-full px-2 py-1 text-xs font-bold">
|
||||||
{event.insightBasis === 'HISTORICAL' ? 'بر پایه تجربه شما' : 'بر پایه شناخت کسبوکار'}
|
{event.insightBasis === 'HISTORICAL'
|
||||||
|
? 'بر پایه تجربه شما'
|
||||||
|
: event.insightBasis === 'BUSINESS_PROFILE'
|
||||||
|
? 'بر پایه شناخت کسبوکار'
|
||||||
|
: 'بر پایه تقویم رویدادها'}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="text-muted-foreground mt-2 text-xs">
|
<p class="text-muted-foreground mt-2 text-xs">
|
||||||
زمان رویداد: {dateRange(event.date, event.endDate)}
|
زمان رویداد: {dateRange(event.date, event.endDate ?? event.date)}
|
||||||
</p>
|
</p>
|
||||||
<p class="stance-label mt-3 text-xs font-bold">{stanceLabels[event.stance]}</p>
|
<p class="stance-label mt-3 text-xs font-bold">{stanceLabels[event.stance]}</p>
|
||||||
<p class="reason mt-3 border-r-2 py-1 pr-3 text-sm leading-7">{event.relevanceReason}</p>
|
<p class="reason mt-3 border-r-2 py-1 pr-3 text-sm leading-7">{event.relevanceReason}</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user