feat: add reset buttons for heures/jours/doses stats, fix home button color
- 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:
@@ -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> => {
|
||||
|
||||
Reference in New Issue
Block a user