Browse Source

Added update notes

Arnaud Vergnet 3 years ago
parent
commit
4228a5555d
4 changed files with 65 additions and 20 deletions
  1. 13
    9
      src/components/Overrides/CustomIntroSlider.js
  2. 24
    7
      src/constants/Update.js
  3. 14
    2
      translations/en.json
  4. 14
    2
      translations/fr.json

+ 13
- 9
src/components/Overrides/CustomIntroSlider.js View File

@@ -85,15 +85,19 @@ export default class CustomIntroSlider extends React.Component<Props> {
85 85
                 colors: ['#37c13e', '#1a5a1d'],
86 86
             },
87 87
         ];
88
-        this.updateSlides = [
89
-            {
90
-                key: '1',
91
-                title: Update.getInstance().title,
92
-                text: Update.getInstance().description,
93
-                icon: Update.icon,
94
-                colors: ['#e01928', '#be1522'],
95
-            },
96
-        ];
88
+        this.updateSlides = [];
89
+        for (let i = 0; i < Update.slidesNumber; i++) {
90
+            this.updateSlides.push(
91
+                {
92
+                    key: i.toString(),
93
+                    title: Update.getInstance().titleList[i],
94
+                    text: Update.getInstance().descriptionList[i],
95
+                    icon: Update.iconList[i],
96
+                    colors: Update.colorsList[i],
97
+                },
98
+            );
99
+        }
100
+
97 101
         this.aprilFoolsSlides = [
98 102
             {
99 103
                 key: '1',

+ 24
- 7
src/constants/Update.js View File

@@ -14,21 +14,38 @@ import i18n from "i18n-js";
14 14
 export default class Update {
15 15
 
16 16
     // Increment the number to show the update slide
17
-    static number = 5;
18
-    // Change the icon to be displayed on the update slide
19
-    static icon = 'surround-sound-2-0';
17
+    static number = 6;
18
+    // Change the number of slides to display
19
+    static slidesNumber = 4;
20
+    // Change the icons to be displayed on the update slide
21
+    static iconList = [
22
+        'star',
23
+        'clock',
24
+        'qrcode-scan',
25
+        'account',
26
+    ];
27
+    static colorsList = [
28
+        ['#e01928', '#be1522'],
29
+        ['#7c33ec', '#5e11d1'],
30
+        ['#337aec', '#114ed1'],
31
+        ['#e01928', '#be1522'],
32
+    ]
20 33
 
21 34
     static instance: Update | null = null;
22 35
 
23
-    title: string;
24
-    description: string;
36
+    titleList: Array<string>;
37
+    descriptionList: Array<string>;
25 38
 
26 39
     /**
27 40
      * Init translations
28 41
      */
29 42
     constructor() {
30
-        this.title = i18n.t('intro.updateSlide.title');
31
-        this.description = i18n.t('intro.updateSlide.text');
43
+        this.titleList = [];
44
+        this.descriptionList = [];
45
+        for (let i = 0; i < Update.slidesNumber; i++) {
46
+            this.titleList.push(i18n.t('intro.updateSlide'+ i + '.title'))
47
+            this.descriptionList.push(i18n.t('intro.updateSlide'+ i + '.text'))
48
+        }
32 49
     }
33 50
 
34 51
     /**

+ 14
- 2
translations/en.json View File

@@ -56,9 +56,21 @@
56 56
       "title": "More to come...",
57 57
       "text": "New features are coming soon, do not hesitate to give us feedback to improve the app"
58 58
     },
59
-    "updateSlide": {
59
+    "updateSlide0": {
60 60
       "title": "New in this update!",
61
-      "text": "The app got a new UI ! Faster, prettier and more modern, we hope you'll love it!"
61
+      "text": "Faster than ever and easier to use!\nThis update includes lots of changes to improve your experience.\nUse the brand new feedback button on the home screen to talk to the developer!"
62
+    },
63
+    "updateSlide1": {
64
+      "title": "Improved Planex!",
65
+      "text": "You now have access to new controls, improved display, and you can also mark groups as favorites."
66
+    },
67
+    "updateSlide2": {
68
+      "title": "Scanotron 3000!",
69
+      "text": "Say hello to Scanotron 3000!\nAvailable from the Qr-Code button on the home screen, it will help you get information about clubs and events around the campus.\n(Useless right now but we have hope for next year)"
70
+    },
71
+    "updateSlide3": {
72
+      "title": "Amicale Account!",
73
+      "text": "You can now connect to your Amicale INSAT account from within the app! See all available clubs and more to come!\nClick on the login button from the home screen."
62 74
     },
63 75
     "aprilFoolsSlide": {
64 76
       "title": "New in this update!",

+ 14
- 2
translations/fr.json View File

@@ -56,9 +56,21 @@
56 56
       "title": "Plus à venir...",
57 57
       "text": "D'autres fonctionnalités arrivent bientôt, n'hésitez pas à nous donner votre avis pour améliorer l'appli"
58 58
     },
59
-    "updateSlide": {
59
+    "updateSlide0": {
60 60
       "title": "Nouveau dans cette mise à jour !",
61
-      "text": "L'appli fait peau neuve ! Avec une interface plus rapide, plus jolie et moderne, nous espérons que vous allez l'apprécier !"
61
+      "text": "Plus rapide que jamais et plus simple à utiliser !\nCette mise à jour contient de nombreux changements pour améliorer votre expérience.\nUtilisez le tout nouveau bouton de Feedback pour parler directement au développeur!"
62
+    },
63
+    "updateSlide1": {
64
+      "title": "Planex tout beau !",
65
+      "text": "Vous avez maintenant accès à de nouveaux contrôles, un affichage amélioré, et vous pouvez marquer des groupes en favoris."
66
+    },
67
+    "updateSlide2": {
68
+      "title": "Scanotron 3000 !",
69
+      "text": "Dites bonjour à Scanotron 3000 !\nDisponible depuis le bouton Qr-Code sur le menu principal, il vous aidera à avoir des informations sur les clubs et les événements du campus.\n(Inutile tout de suite mais on verra l'année pro)"
70
+    },
71
+    "updateSlide3": {
72
+      "title": "Compte Amicale !",
73
+      "text": "Vous pouvez maintenant vous connecter à votre compte Amicale depuis l'appli ! Accédez à la liste des clubs et plus à venir !\nCliquez sur le bouton Se Connecter dans le menu principal."
62 74
     },
63 75
     "aprilFoolsSlide": {
64 76
       "title": "Nouveau dans cette mise à jour !",

Loading…
Cancel
Save