fix: remove hardcoded trend percentages and add debug logging

Chart Surat:
- Added console.log debugging to track API response and data mapping
- Helps identify if data is being received but not rendered

Stat Cards:
- Removed hardcoded trend='0%' and trendValue={0} props
- Cards now display clean without misleading 0% trends
- Trend feature can be re-added later with proper API support

Files changed:
- dashboard/chart-surat.tsx: Added debug logging
- dashboard-content.tsx: Removed hardcoded trend props

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
2026-03-27 14:50:34 +08:00
parent c6951dec80
commit c7a986aebc
2 changed files with 9 additions and 10 deletions

View File

@@ -76,8 +76,6 @@ export function DashboardContent() {
title="Surat Minggu Ini"
value={stats.weeklyService}
detail="Total surat diajukan"
trend="0%"
trendValue={0}
icon={<FileText style={{ width: "70%", height: "70%" }} />}
/>
</Grid.Col>
@@ -94,8 +92,6 @@ export function DashboardContent() {
title="Layanan Selesai"
value={stats.complaints.selesai}
detail="Total diselesaikan"
trend="+0%"
trendValue={0}
icon={<CheckCircle style={{ width: "70%", height: "70%" }} />}
/>
</Grid.Col>