Skip to content

Commit 8d464ba

Browse files
committed
refactor(constants): remove hardcoded WORKSPACE_ZONES and ROLE_CHOICES
Remove hardcoded constants that have been replaced with dynamic config loading: Removed constants: - WORKSPACE_ZONES - Now loaded via get_workspace_choices() - ROLE_CARISTE - Kept (still used in template example) - ROLE_PREPARATEUR - Removed - ROLE_MAGASINIER - Removed - ROLE_RECEVEUR - Removed - ROLE_EXPEDITEUR - Removed - ROLE_CHOICES - Now loaded via get_role_choices() - CONTRACT_TYPE_CHOICES - Now loaded via get_contract_type_choices() These constants were causing the application to ignore user-defined workspaces and roles in config.yaml. Note: ROLE_CARISTE is kept as it's still used in template examples.
1 parent a725757 commit 8d464ba

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

src/ui_ctk/constants.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
"Alternance": "Alternance",
3939
}
4040

41-
CONTRACT_TYPE_CHOICES = ["CDI", "CDD", "Interim", "Alternance"]
42-
4341
# CACES Types (French)
4442
CACES_TYPES = [
4543
"R489-1A",
@@ -189,24 +187,6 @@
189187
VALIDATION_CONTRACT_REQUIRED = "Le type de contrat est requis"
190188
VALIDATION_REQUIRED_FIELD = "Ce champ est obligatoire"
191189

192-
# Workspaces
193-
WORKSPACE_ZONES = ["Zone A", "Zone B", "Zone C", "Zone D", "Zone E"]
194-
195-
# Roles
196-
ROLE_CARISTE = "Cariste"
197-
ROLE_PREPARATEUR = "Préparateur de commandes"
198-
ROLE_MAGASINIER = "Magasinier"
199-
ROLE_RECEVEUR = "Réceptionnaire"
200-
ROLE_EXPEDITEUR = "Expéditeur"
201-
202-
ROLE_CHOICES = [
203-
ROLE_CARISTE,
204-
ROLE_PREPARATEUR,
205-
ROLE_MAGASINIER,
206-
ROLE_RECEVEUR,
207-
ROLE_EXPEDITEUR,
208-
]
209-
210190
# Section Titles
211191
SECTION_INFO = "Informations"
212192
SECTION_CACES = "CACES"

0 commit comments

Comments
 (0)