chore: add mobile app

This commit is contained in:
2026-02-07 22:33:02 +01:00
parent db34640acc
commit e89384ad4e
29327 changed files with 3886944 additions and 12 deletions
+46
View File
@@ -0,0 +1,46 @@
import type { Colors } from "../theme/colors";
export const STATUS_LABELS: Record<string, string> = {
pending: "En attente",
assigned: "Assignée",
support: "Support",
preparing: "En préparation",
ready: "Prêt",
en_route: "En route",
arrived: "Arrivée",
livre: "Livrée",
delivered: "Livré",
approved: "Terminée",
cancelled: "Annulé",
available: "Disponible",
busy: "Occupé",
offline: "Hors ligne",
};
export const getStatusColors = (colors: Colors): Record<string, string> => ({
pending: colors.warning,
assigned: colors.info,
support: colors.warning,
preparing: colors.info,
ready: colors.accent,
en_route: colors.info,
arrived: colors.accent,
livre: colors.success,
delivered: colors.success,
approved: colors.successDark,
cancelled: colors.danger,
available: colors.success,
busy: colors.warning,
offline: colors.textMuted,
});
export const getCategoryColor = (category: string, colors: Colors): string => {
const map: Record<string, string> = {
"weed&hash": colors.categoryWeedHash,
tous: colors.categoryTous,
"zipette&co": colors.categoryZipette,
"gros&semi": colors.categoryGros,
};
const key = category?.toLowerCase().trim();
return map[key] || colors.accent;
};