feat: add reset buttons for heures/jours/doses stats, fix home button color
Frontend Admin - EAS Build / build (push) Failing after 59m23s
Frontend Client - EAS Build / build (push) Failing after 57m18s

- StatsScreen: SectionResetBtn for heures d'affluence, jours d'affluence, doses populaires
- api_admin.ts: extend StatSection and AdminStats with heures/jours/doses fields
- HomeScreen (mobile client): use colors.accent for Se connecter button

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-22 21:54:41 +02:00
co-authored by Claude Sonnet 4.6
parent 68bd0d57d6
commit 70988be353
3 changed files with 20 additions and 3 deletions
+4 -1
View File
@@ -104,7 +104,7 @@ export interface ProductQuantityBreakdown {
quantities: QuantityStat[];
}
export type StatSection = "commandes" | "revenus" | "produits";
export type StatSection = "commandes" | "revenus" | "produits" | "heures" | "jours" | "doses";
export interface AdminStats {
summary: StatsSummary;
@@ -117,6 +117,9 @@ export interface AdminStats {
reset_at_commandes?: string;
reset_at_revenus?: string;
reset_at_produits?: string;
reset_at_heures?: string;
reset_at_jours?: string;
reset_at_doses?: string;
}
export const getAdminStats = async (): Promise<AdminStats> => {