feat(agents, config, dashboard, i18n): add agent line provision wizard, site deletion, and site dashboard with multi-language support
Added agent line provision wizard page with permission gating, replacing redirect placeholder. Introduced site deletion API and UI with confirmation dialog in integration sites management. Added new site-scoped dashboard panel showing bet metrics, P/L trends, active players, and quick links. Enhanced chart tooltip to support custom formatters and fix indicator color
This commit is contained in:
@@ -21,6 +21,7 @@ import {
|
||||
} from "@/components/ui/select";
|
||||
import { Skeleton } from "@/components/ui/skeleton";
|
||||
import { getAdminRequestLocale } from "@/lib/admin-locale";
|
||||
import { signedMoneyClass } from "@/lib/admin-signed-money";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { DashboardKpiCard } from "@/modules/dashboard/dashboard-visuals";
|
||||
import { DASHBOARD_CHART_COLORS } from "@/modules/dashboard/dashboard-chart-config";
|
||||
@@ -241,6 +242,7 @@ export function DashboardAnalyticsMain({ analytics }: { analytics: DashboardAnal
|
||||
: t("analytics.summaryProfit")
|
||||
}
|
||||
value={formatSignedMoney(summary.approx_house_gross_minor, currency)}
|
||||
valueClassName={signedMoneyClass(summary.approx_house_gross_minor, true)}
|
||||
hint={
|
||||
profitScope === "share_profit"
|
||||
? t("analytics.shareProfitHint")
|
||||
@@ -452,7 +454,14 @@ export function DashboardAgentRankingCard({
|
||||
) : null}
|
||||
</div>
|
||||
</div>
|
||||
<div className="shrink-0 text-right text-xs font-semibold tabular-nums">
|
||||
<div
|
||||
className={cn(
|
||||
"shrink-0 text-right text-xs font-semibold tabular-nums",
|
||||
rankingMetric === "profit"
|
||||
? signedMoneyClass(row.approx_house_gross_minor, true)
|
||||
: undefined,
|
||||
)}
|
||||
>
|
||||
{formatRowValue(row)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user