chore: build
Backend - Build & Lint / build (push) Successful in 32m38s
Frontend Admin - EAS Build / build (push) Successful in 1h34m28s
Frontend Client - EAS Build / build (push) Successful in 1h30m42s
Frontend Web - Build & Lint / build (push) Canceled after 12m2s

This commit is contained in:
Xor290
2026-09-13 16:11:30 +02:00
parent f2f537a194
commit d7d7496a66
12 changed files with 631 additions and 52 deletions
+2
View File
@@ -56,6 +56,8 @@ export const logoutAdmin = async (): Promise<void> => {
export interface StatsSummary {
total_orders: number;
total_revenue: number;
total_promo_discount: number;
promo_orders_count: number;
peak_weekday: string;
top_product: string;
avg_per_day: number;
@@ -1643,6 +1643,20 @@ export default function StatsScreen() {
color={CHART_AMBER}
/>
</View>
<View style={styles.summaryRow}>
<SummaryCard
icon="pricetag-outline"
label="Économisé (promos)"
value={fmtEuro(s?.total_promo_discount ?? 0)}
color={CHART_GREEN}
/>
<SummaryCard
icon="gift-outline"
label="Commandes avec promo"
value={fmtNum(s?.promo_orders_count ?? 0)}
color={CHART_AMBER}
/>
</View>
{/* ── Activité du jour ── */}
{stats?.daily_detail && (