chore: delete support preparing status

This commit is contained in:
2026-03-09 21:07:12 +01:00
parent 7c04e61eb2
commit f6b3948839
7 changed files with 19 additions and 64 deletions
@@ -49,7 +49,6 @@ function getToastType(
case "assigned":
return "success";
case "en_route":
case "support":
return "info";
case "livre":
return "success";
@@ -39,11 +39,8 @@ const TIMELINE_STEPS = [
const STATUS_INDEX: Record<string, number> = {
pending: 0,
assigned: 1,
support: 1,
preparing: 1,
en_route: 2,
arrived: 3,
ready: 3,
livre: 4,
delivered: 4,
approved: 5,
@@ -47,7 +47,6 @@ type Nav = NativeStackNavigationProp<ClientStackParamList>;
const STATUS_PROGRESS: Record<string, number> = {
pending: 15,
assigned: 25,
support: 35,
en_route: 60,
arrived: 85,
livre: 95,
@@ -393,7 +392,6 @@ export default function OrderTrackingScreen() {
const canCancel = [
"pending",
"assigned",
"support",
"en_route",
].includes(order.status);
-6
View File
@@ -3,9 +3,6 @@ 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",
@@ -20,9 +17,6 @@ export const STATUS_LABELS: Record<string, string> = {
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,