fix: show page title in insight heading
This commit is contained in:
@@ -23,6 +23,15 @@
|
||||
let sequence = 0;
|
||||
let activeScope = '';
|
||||
|
||||
const pageTitles: Record<AIInsightModule, string> = {
|
||||
overview: 'پیشخوان',
|
||||
payments: 'عملکرد پرداخت',
|
||||
fees: 'کارمزدها',
|
||||
peers: 'همگروهها',
|
||||
transactions: 'تراکنشها',
|
||||
growth: 'مربی رشد',
|
||||
};
|
||||
|
||||
async function load(
|
||||
requestedModule: AIInsightModule,
|
||||
requestedTerminalId?: string,
|
||||
@@ -108,7 +117,7 @@
|
||||
<CardHeader class="bg-primary/[.035] -mt-4 border-b pt-4">
|
||||
<div class="flex min-h-6 flex-wrap items-center justify-between gap-3">
|
||||
<CardTitle class="flex h-6 items-center gap-2 text-base leading-none">
|
||||
<SparklesIcon class="text-primary size-5" /> خلاصه ساده این صفحه
|
||||
<SparklesIcon class="text-primary size-5" /> خلاصهای از {pageTitles[module]}
|
||||
</CardTitle>
|
||||
{#if periodLabel}<Badge class="h-6 leading-none" variant="secondary">{periodLabel}</Badge>{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user