feat: add display name support in GoalStats and provide user guidance in SiteSettingsPage

This commit is contained in:
Usman Baig
2026-02-04 15:37:18 +01:00
parent 97df5ee99b
commit c780d3a119
3 changed files with 3 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ export default function GoalStats({ goalCounts, siteId, dateRange }: GoalStatsPr
className="flex items-center justify-between py-2 px-3 rounded-lg bg-neutral-50 dark:bg-neutral-800/50 hover:bg-neutral-100 dark:hover:bg-neutral-800 transition-colors"
>
<span className="text-sm font-medium text-neutral-900 dark:text-white truncate">
{row.event_name.replace(/_/g, ' ')}
{row.display_name ?? row.event_name.replace(/_/g, ' ')}
</span>
<span className="text-sm font-semibold text-brand-orange tabular-nums">
{formatNumber(row.count)}