From bbf07de59ad7b3dd3d12f27038f65be291650189 Mon Sep 17 00:00:00 2001
From: "guilhem.carron" <gcarron@grandlyon.com>
Date: Thu, 3 Mar 2022 10:00:14 +0100
Subject: [PATCH] feat(loader): Add doc for loader

---
 docs/ecolyo/functionalities/initialization.md | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/docs/ecolyo/functionalities/initialization.md b/docs/ecolyo/functionalities/initialization.md
index f33e023..bce2a11 100644
--- a/docs/ecolyo/functionalities/initialization.md
+++ b/docs/ecolyo/functionalities/initialization.md
@@ -139,3 +139,37 @@ UserDuelEntity {
 ### Data managment schema
 
 ![Data Scheme](/img/challengeFlow.png)
+
+### Loader
+
+The initialization process displays progression steps in the splash screen so the user can see what is happening while it is loading. Each initialization function set an error if it fails, which is shown on the Slpash error screnn.
+
+Available loading steps are the followings :
+
+````
+  MIGRATION = 0,
+  CONSENT = 1,
+  PROFILE = 2,
+  ECOGESTURE = 3,
+  CHALLENGES = 4,
+  PRICES = 5,
+  CONSOS = 6,
+
+```
+
+Possible errors are the followings :
+
+```
+  MIGRATION_ERROR = 'migration_error',
+  CONSENT_ERROR = 'consent_error',
+  PROFILE_ERROR = 'profile_error',
+  PROFILETYPE_ERROR = 'profileType_error',
+  ECOGESTURE_ERROR = 'ecogesture_error',
+  CHALLENGES_ERROR = 'challenges_error',
+  ANALYSIS_ERROR = 'analysis_error',
+  INDEX_ERROR = 'index_error',
+  PRICES_ERROR = 'prices_error',
+  CONSOS_ERROR = 'consos_error',
+  PARTNERS_ERROR = 'partners_error',
+  UNKNOWN_ERROR = 'unknown_error',
+```
-- 
GitLab