rohitsar567 Claude Opus 4.7 (1M context) commited on
Commit
d59cfe2
·
1 Parent(s): 0693bf9

fix(ui): KI-120 — unify policy/insurer counts from /api/coverage

Browse files

Top nav badge showed "223 POLICIES · 20 INSURERS" (hardcoded/stale).
Subtext line below correctly showed "166 policies across 20 insurers
indexed" from /api/coverage. Wired the badge to the same live source.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files changed (1) hide show
  1. frontend/src/app/page.tsx +4 -4
frontend/src/app/page.tsx CHANGED
@@ -600,15 +600,15 @@ export default function Page() {
600
  <div className="text-[10px] uppercase tracking-wider opacity-85 leading-none">{t("header.policy_library_kicker")}</div>
601
  <div className="text-xs font-bold leading-tight whitespace-nowrap">{t("header.policy_library")}</div>
602
  </div>
603
- {marketplace && (
604
  <div className="flex flex-col items-center justify-center px-3 py-1 bg-white/15 border-l border-white/20">
605
- <div className="text-sm font-bold leading-none">{marketplace.total}</div>
606
  <div className="text-[9px] uppercase tracking-wider opacity-90 leading-none mt-0.5">{t("header.policies_label")}</div>
607
  </div>
608
  )}
609
- {marketplace && (
610
  <div className="hidden sm:flex flex-col items-center justify-center px-3 py-1 bg-black/10">
611
- <div className="text-sm font-bold leading-none">{marketplace.insurers_indexed}</div>
612
  <div className="text-[9px] uppercase tracking-wider opacity-90 leading-none mt-0.5">{t("header.insurers_label")}</div>
613
  </div>
614
  )}
 
600
  <div className="text-[10px] uppercase tracking-wider opacity-85 leading-none">{t("header.policy_library_kicker")}</div>
601
  <div className="text-xs font-bold leading-tight whitespace-nowrap">{t("header.policy_library")}</div>
602
  </div>
603
+ {coverage && (
604
  <div className="flex flex-col items-center justify-center px-3 py-1 bg-white/15 border-l border-white/20">
605
+ <div className="text-sm font-bold leading-none">{coverage.total_policies}</div>
606
  <div className="text-[9px] uppercase tracking-wider opacity-90 leading-none mt-0.5">{t("header.policies_label")}</div>
607
  </div>
608
  )}
609
+ {coverage && (
610
  <div className="hidden sm:flex flex-col items-center justify-center px-3 py-1 bg-black/10">
611
+ <div className="text-sm font-bold leading-none">{coverage.total_insurers}</div>
612
  <div className="text-[9px] uppercase tracking-wider opacity-90 leading-none mt-0.5">{t("header.insurers_label")}</div>
613
  </div>
614
  )}