Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.1.2 #261

Merged
merged 694 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
694 commits
Select commit Hold shift + click to select a range
34cbbd9
Merge branch 'preprod' into doc-vercel
bjlaa Nov 16, 2023
fcbc730
Merge branch 'preprod' into fix-profil-2
bjlaa Nov 16, 2023
f3c3cec
Update SimulationBanner.tsx
bjlaa Nov 16, 2023
e9c6c2e
Remplace les mentions à Netlify par Vercel [NGC-196] (#222)
bjlaa Nov 16, 2023
48ef040
Merge branch 'preprod' into fix-profil-2
bjlaa Nov 16, 2023
d7409a0
Merge branch 'preprod' into dead-links
bjlaa Nov 16, 2023
302a59b
Merge remote-tracking branch 'origin/preprod' into undefined-option-b…
florianpanchout Nov 16, 2023
323eabf
feat: stop setting default value when passing question
florianpanchout Nov 16, 2023
d5bcf4e
chore: clean log
florianpanchout Nov 16, 2023
c098b53
feat: Ajoute la documentation affichée côté serveur
bjlaa Nov 16, 2023
7f1d178
fix: hide default values
florianpanchout Nov 16, 2023
edaad35
merge
bjlaa Nov 16, 2023
47cff15
Undefined option for booleans (NGC-214) (#220)
florianpanchout Nov 16, 2023
c3e481d
Merge branch 'preprod' into fix-profil-2
bjlaa Nov 16, 2023
70ba416
Merge branch 'preprod' into dead-links
bjlaa Nov 16, 2023
38f3e2f
Update landing.mdx
bjlaa Nov 16, 2023
96dbc58
Merge branch 'dead-links' of https://github.com/incubateur-ademe/nosg…
bjlaa Nov 16, 2023
7dc0b59
Ajoute redirections + workflow de détection de liens morts [NGC-174][…
bjlaa Nov 16, 2023
27d2041
feat: Améliore le comportement de redirection en cas de partage d'url…
bjlaa Nov 16, 2023
6787ad5
feat: Ajoute le tally - retire les anciens modes de retours
bjlaa Nov 16, 2023
6502253
Update redirects.js
bjlaa Nov 16, 2023
2ebd016
fix: Améliorations après relecture
bjlaa Nov 16, 2023
11c7567
feat: Modifie le style du footer
bjlaa Nov 16, 2023
2e41b23
Corrige erreur de style
bjlaa Nov 16, 2023
c539d78
style: Améliorations
bjlaa Nov 17, 2023
884a47b
feat: Improve
bjlaa Nov 17, 2023
2405081
chore: Move to group
bjlaa Nov 17, 2023
1a14224
Merge branch 'preprod' into 236
bjlaa Nov 17, 2023
83d5025
Update Footer.tsx
bjlaa Nov 17, 2023
85bc01a
feat: Supprime les enregistrement localStorage pour les trajets détai…
bjlaa Nov 17, 2023
0a4768f
feat: Déplace logique dans publicodes-states + corrige nombre de virg…
bjlaa Nov 17, 2023
3bf6490
💅 Corrige erreur de style sur le tutoriel [NGC-199] (#233)
bjlaa Nov 22, 2023
3272235
Merge branch 'preprod' into new-footer
bjlaa Nov 22, 2023
98d7b32
Merge branch 'preprod' into fix-redirect
bjlaa Nov 22, 2023
3e4ae65
Merge branch 'preprod' into fix-profil-2
bjlaa Nov 22, 2023
b9eafe2
Corrige une redirection [NGC-174] (#231)
bjlaa Nov 22, 2023
cdfc109
Merge branch 'preprod' into fix-tutoriel
bjlaa Nov 22, 2023
029a770
Merge branch 'preprod' into changement-de-liens
bjlaa Nov 22, 2023
c19fdff
feat: Ajoute RuleDetail
bjlaa Nov 22, 2023
cd3044e
chore: Déplace dans composant
bjlaa Nov 22, 2023
88e3d07
feat: Ajoute la liste de pages proches
bjlaa Nov 22, 2023
9f5c1d7
Merge branch 'preprod' into 236
bjlaa Nov 22, 2023
7f5a921
Ajoute le tally - retire les anciens modes de retours [NGC-104] (#230)
bjlaa Nov 22, 2023
aeafecb
Merge branch 'preprod' into 236
bjlaa Nov 22, 2023
2862d69
feat: Améliore le style
bjlaa Nov 22, 2023
4079d39
Merge branch 'preprod' into fix-profil-2
bjlaa Nov 22, 2023
b2f8dab
Merge branch 'preprod' into aide-saisie
bjlaa Nov 22, 2023
c8933be
fix: Corrige le style bouton mode groupe
bjlaa Nov 22, 2023
09eff5c
Merge branch 'preprod' into new-footer
bjlaa Nov 23, 2023
f308276
Merge branch 'preprod' into fix-tutoriel
bjlaa Nov 23, 2023
04c302d
feat: Désactive le changement de style du menu
bjlaa Nov 23, 2023
9efd0c8
fix: Corrige l'affichage de la page Plan du site
bjlaa Nov 23, 2023
d88af75
Supprime les enregistrement localStorage pour les trajets détaillés […
bjlaa Nov 23, 2023
708b5cd
Merge branch 'preprod' into fix-group-button
bjlaa Nov 23, 2023
2a8e554
feat: Ajoute trads manquantes
bjlaa Nov 23, 2023
a5a36f4
Merge branch 'preprod' into fix-profil-2
bjlaa Nov 23, 2023
4e9d710
refacto: Affichage des titres de liens pour rétablir la traduction
bjlaa Nov 23, 2023
767085e
feat: use the new API
EmileRolley Nov 11, 2023
ad09369
refactor: add usePersonas + use the right API
EmileRolley Nov 13, 2023
86e0c14
chore: merge artefacts + eslint errors
florianpanchout Nov 20, 2023
fe86b2e
feat: model indicator layout
florianpanchout Nov 21, 2023
f4b6845
Update globals.css
bjlaa Nov 23, 2023
8ffd727
refactor: clean nitpicks related to rules fetching
EmileRolley Nov 23, 2023
7c42b28
fix: test e2e
bjlaa Nov 23, 2023
c2dfc9e
Corrige le style bouton mode groupe [NGC-180] (#241)
bjlaa Nov 23, 2023
e48109f
Merge branch 'preprod' into 236
bjlaa Nov 23, 2023
6d25cce
Merge branch 'preprod' into fix-profil-2
bjlaa Nov 23, 2023
4b2f0d1
Merge branch 'preprod' into fix-tutoriel
bjlaa Nov 23, 2023
f9a65d8
fix: Retire bloc de feedback de la page de résultats amis
bjlaa Nov 23, 2023
2f0e5ab
fix: add a fallback when fetching rules
EmileRolley Nov 23, 2023
6a9b002
style: Harmonise la largeur du footer avec le reste du contenu
bjlaa Nov 23, 2023
4c5fc59
fix: use env to get rules local path
EmileRolley Nov 23, 2023
ff1bd52
fix: Page traduite challenger
bjlaa Nov 23, 2023
eca8e44
Update middleware.ts
bjlaa Nov 23, 2023
0f46a2e
Update middleware.ts
bjlaa Nov 23, 2023
21f1141
Retire bloc de feedback de la page de résultats amis [NGC-104] (#246)
bjlaa Nov 23, 2023
6608fc4
Merge branch 'preprod' into fix-tutoriel
bjlaa Nov 23, 2023
c5c50de
update
bjlaa Nov 23, 2023
f9bc173
Améliore le comportement de redirection en cas de partage d'url de fi…
bjlaa Nov 23, 2023
1a92c80
Merge branch 'preprod' into 236
bjlaa Nov 23, 2023
84f82e3
Update middleware.ts
bjlaa Nov 23, 2023
a4ff5ed
Merge branch 'preprod' into fix-profil-2
bjlaa Nov 23, 2023
aeb80c1
Update NavLink.tsx
bjlaa Nov 23, 2023
005ff53
Merge branch 'fix-profil-2' of https://github.com/incubateur-ademe/no…
bjlaa Nov 23, 2023
9072efa
add first version theodule.mdx
jeannelf Nov 23, 2023
a33b151
fix
bjlaa Nov 23, 2023
055e299
Update NavLink.tsx
bjlaa Nov 23, 2023
890fcc1
Merge branch 'preprod' into menu-fix
bjlaa Nov 23, 2023
e9d6fd9
chore: Ajoute les trads manquantes
bjlaa Nov 23, 2023
d51f0e0
Update buttons.js
bjlaa Nov 23, 2023
9412bd6
improve
bjlaa Nov 23, 2023
b32567a
🐛 Correction lien profil > fin + correction affichage nombre d'action…
bjlaa Nov 23, 2023
d712e3c
Merge branch 'preprod' into 236
bjlaa Nov 23, 2023
722191a
feat: add category colors in tailwind config
Clemog Nov 23, 2023
06564a2
Update theodule.mdx
jeannelf Nov 23, 2023
49e252f
Ajoute la documentation affichée côté serveur [NGC-236] [NGC-119] (#228)
bjlaa Nov 23, 2023
9bdb7b1
wip
bjlaa Nov 23, 2023
93a75a8
Update theodule.mdx
jeannelf Nov 23, 2023
b15d840
Update theodule.mdx
jeannelf Nov 23, 2023
4eb74b0
Update theodule.mdx
jeannelf Nov 23, 2023
b35348d
feat: change #5758BB to #491273
Clemog Nov 23, 2023
d8cabb0
[WIP]chore: refacto documentation landing
Clemog Nov 23, 2023
c2309f4
Update theodule.mdx
jeannelf Nov 23, 2023
dfe04ce
Update theodule.mdx
jeannelf Nov 23, 2023
cce9349
Update theodule.mdx
jeannelf Nov 23, 2023
be4c13d
Update theodule.mdx
jeannelf Nov 23, 2023
21c994a
fix: type for twconfig
Clemog Nov 23, 2023
4b6a741
Update e2e.yaml
bjlaa Nov 24, 2023
8f4f357
Update recursivelyFillSimulation.js
bjlaa Nov 24, 2023
3f68f49
test: retire le temps d'attente
bjlaa Nov 24, 2023
75f3ef0
Update recursivelyFillSimulation.js
bjlaa Nov 24, 2023
fc81c8b
Update recursivelyFillSimulation.js
bjlaa Nov 24, 2023
a0bd142
Update e2e.yaml
bjlaa Nov 24, 2023
c07be47
Update recursivelyFillSimulation.js
bjlaa Nov 24, 2023
eec1e0d
Désactive les tests e2e de personas hors preprod et prod (#251)
bjlaa Nov 24, 2023
7f1ff59
Merge branch 'preprod' into add-release-theodule
bjlaa Nov 24, 2023
4fcc98d
Update globals.css
bjlaa Nov 24, 2023
5cb958e
Update globals.css
bjlaa Nov 24, 2023
ee1f9dc
Update globals.css
bjlaa Nov 24, 2023
c637204
Merge branch 'preprod' into fix-plan
bjlaa Nov 24, 2023
5c0694a
Corrige l'affichage de la page Plan du site [NGC-212] (#243)
bjlaa Nov 24, 2023
0fac412
feat: Déplace la doc + corrige le bug client/server
bjlaa Nov 24, 2023
dd2275f
Update theodule.mdx
jeannelf Nov 24, 2023
c82bd48
Update theodule.mdx
jeannelf Nov 24, 2023
5c5a8cb
Update theodule.mdx
jeannelf Nov 24, 2023
58a2716
Merge branch 'preprod' into menu-fix
florianpanchout Nov 25, 2023
20775c0
Merge remote-tracking branch 'origin/preprod' into homemade-split
florianpanchout Nov 25, 2023
5608597
Merge branch 'homemade-split' of github.com:incubateur-ademe/nosgeste…
florianpanchout Nov 25, 2023
fa5fda1
feat: working split (maybe)
florianpanchout Nov 25, 2023
f29b093
fix: persist cookie between responses
florianpanchout Nov 25, 2023
35b0fb3
feat: separate personas test generation
florianpanchout Nov 25, 2023
b0c47d2
feat: use local build for tests
florianpanchout Nov 25, 2023
0631d2b
fix: remove wait on sleep
florianpanchout Nov 25, 2023
9a93f46
fix: typo in build order
florianpanchout Nov 25, 2023
372aadc
fix: wrong syntax for steps
florianpanchout Nov 25, 2023
72fafff
feat: use action to wait on vercel
florianpanchout Nov 25, 2023
1969a18
fix: up max timeout
florianpanchout Nov 25, 2023
fb4305f
fix: correct preview url
florianpanchout Nov 25, 2023
3ccbe05
feat: change wait pattern
florianpanchout Nov 25, 2023
7bcd8d9
feat: introduce change to time e2e tests
florianpanchout Nov 25, 2023
1403bc0
feat: disable record
florianpanchout Nov 25, 2023
518cbda
feat: enable e2e record
florianpanchout Nov 25, 2023
1e323d4
feat: up the number of containers
florianpanchout Nov 25, 2023
bbcc00b
feat: remove wait for groupe test
florianpanchout Nov 25, 2023
d54fbb5
feat: remove useless cy.wait
florianpanchout Nov 25, 2023
78ce92f
Revert "feat: remove useless cy.wait"
florianpanchout Nov 25, 2023
b5841da
fix: typo
florianpanchout Nov 25, 2023
457d47d
Merge branch 'preprod' into fix-doc-2
florianpanchout Nov 25, 2023
e09743e
Merge remote-tracking branch 'origin/preprod' into feat-use-new-api
florianpanchout Nov 25, 2023
d9dd111
feat: cleanup different workflows for rules fetching
florianpanchout Nov 25, 2023
6ca8b9c
fix: type and correct constant
florianpanchout Nov 25, 2023
b1f2d7a
Feat: use the new model API + add a search param to specify the versi…
florianpanchout Nov 25, 2023
a8f6f37
Merge remote-tracking branch 'origin/preprod' into category-colors
florianpanchout Nov 25, 2023
7bd723f
feat: take out color from publicodes-state
florianpanchout Nov 25, 2023
2206674
Merge branch 'preprod' into optim-e2e
florianpanchout Nov 26, 2023
5799ff6
fix: send correct format for ratings
florianpanchout Nov 26, 2023
4763b20
Merge remote-tracking branch 'origin/preprod' into menu-fix
florianpanchout Nov 26, 2023
876634b
fix: remove unwelcome props
florianpanchout Nov 26, 2023
d909af3
Désactive le changement de style du menu [NGC-199] (#242)
florianpanchout Nov 26, 2023
4fb9856
Merge branch 'preprod' into 270
florianpanchout Nov 26, 2023
150e42f
Merge branch 'preprod' into homemade-split
bjlaa Nov 27, 2023
de3666d
Update DocumentationRouter.tsx
bjlaa Nov 27, 2023
7f0f5bf
Merge branch 'preprod' into add-release-theodule
bjlaa Nov 27, 2023
1e1e798
fix: Images de blog manquantes + style
bjlaa Nov 27, 2023
98b6983
Merge branch 'add-release-theodule' of https://github.com/incubateur-…
bjlaa Nov 27, 2023
be58c43
feat: Ajoute le script de trad manquant
bjlaa Nov 27, 2023
39bba0c
fix: Problème de largeur de contenu (doc client)
bjlaa Nov 27, 2023
2d8b9ff
Tracking northstar 1 pété sur NextJS [NGC-270] (#256)
florianpanchout Nov 27, 2023
46b0f9a
fix: use correct env
florianpanchout Nov 27, 2023
e6328cb
fix: put back personas generation in e2e job
florianpanchout Nov 27, 2023
42c3a05
fix: remove useless need
florianpanchout Nov 27, 2023
dfebc4d
Merge branch 'preprod' into homemade-split
florianpanchout Nov 27, 2023
107d091
fix: Améliore comportement du menu hamburger
bjlaa Nov 27, 2023
a2fbc0e
fix: use 17 containers to gain 0% improvement
florianpanchout Nov 27, 2023
4dab03b
Merge branch 'preprod' into optim-e2e
florianpanchout Nov 27, 2023
48ca288
Optimisation test e2e (#254)
florianpanchout Nov 27, 2023
625fe9b
Merge branch 'preprod' into homemade-split
florianpanchout Nov 27, 2023
27247e0
Split testing, fait maison 🧑‍🍳 (#211)
florianpanchout Nov 27, 2023
4271913
Merge branch 'preprod' into category-colors
florianpanchout Nov 27, 2023
89b34a5
Merge branch 'preprod' into add-release-theodule
bjlaa Nov 27, 2023
5c017b5
feat: Ajoute lien vers la doc
bjlaa Nov 27, 2023
e9c75f3
Merge branch 'preprod' into new-footer
bjlaa Nov 27, 2023
bbf767c
Update Footer.tsx
bjlaa Nov 27, 2023
25b55bc
fix: use correct protocol in local mode
florianpanchout Nov 27, 2023
495da48
Update useTrackSplitTesting.ts
bjlaa Nov 27, 2023
40ce0a1
fix: use correct protocol in local mode (#258)
florianpanchout Nov 27, 2023
63fc347
Merge branch 'preprod' into category-colors
florianpanchout Nov 27, 2023
a772291
Merge branch 'preprod' into improve-burger
bjlaa Nov 27, 2023
3331690
Merge branch 'preprod' into new-footer
bjlaa Nov 27, 2023
6bc6bfa
feat: Utilise un style beaucoup mieux
bjlaa Nov 27, 2023
3a315c8
Set category colors in website config (NGC-317) (#248)
florianpanchout Nov 27, 2023
7ddc51f
Merge branch 'preprod' into improve-burger
bjlaa Nov 27, 2023
1e9c738
fix: doc rendue côté serveur
bjlaa Nov 27, 2023
be10d61
Update DocumentationRouter.tsx
bjlaa Nov 27, 2023
896e32d
merge
bjlaa Nov 27, 2023
0de1058
Merge branch 'preprod' into new-footer
bjlaa Nov 27, 2023
b988bab
fix: up timeout for Vercel build
florianpanchout Nov 27, 2023
d3de770
Améliore comportement du menu hamburger [NGC-326] (#257)
bjlaa Nov 27, 2023
c75b541
Merge branch 'preprod' into new-footer
bjlaa Nov 27, 2023
8fe1243
Merge branch 'preprod' into save-e2e-again
florianpanchout Nov 27, 2023
43b38c7
feat: up (again) the timeout
florianpanchout Nov 27, 2023
952d316
Merge branch 'save-e2e-again' of github.com:incubateur-ademe/nosgeste…
florianpanchout Nov 27, 2023
7e45296
feat: go back to 15 minutes and up interval to 10 seconds
florianpanchout Nov 27, 2023
b2d736d
Modifie le style du footer [NGC-245] (#232)
florianpanchout Nov 27, 2023
c0b1294
Merge branch 'preprod' into fix-doc-2
florianpanchout Nov 27, 2023
f295c60
Déplace la doc + corrige le bug client/server [NGC-318, NGC-236] (#253)
florianpanchout Nov 27, 2023
53e694e
pkg: upgrade to 18.17 in .nvmrc
EmileRolley Nov 17, 2023
aa49d90
refactor: add logging in useRules
EmileRolley Nov 17, 2023
482e4b4
fix: renable optim when being in the profil page
EmileRolley Nov 17, 2023
bbf7150
fix: show subcategory in the /fin page for the 'services sociétaux'
EmileRolley Nov 17, 2023
e0ce2d5
fix(types): useRules returns NGCRules
EmileRolley Nov 17, 2023
6819e64
perfs: add logging function to observe publicodes perfs
EmileRolley Nov 22, 2023
3aba6e5
refactor: clean the components used in the sub-categories charts
EmileRolley Nov 23, 2023
d102014
Fix: show subcategories in the /fin page for the 'services sociétaux'…
florianpanchout Nov 27, 2023
c0824cf
Merge remote-tracking branch 'origin/preprod' into 325
florianpanchout Nov 27, 2023
8af31d7
fix: router.push should never be in render
florianpanchout Nov 27, 2023
d16e75e
fix: Corrige la fonction de remplacement de locale dans l'url
bjlaa Nov 27, 2023
e734edb
fix: use correct order for categories
florianpanchout Nov 27, 2023
e088007
fix: hide panchouillades
florianpanchout Nov 27, 2023
d696f03
Retour intempestif au tutoriel depuis la page de fin [NGC-325] (#260)
florianpanchout Nov 27, 2023
956d1b5
fix: Emojis documentation card + burger menu infermable
bjlaa Nov 27, 2023
7b544a6
Merge branch 'main' into release-1-1-2
florianpanchout Nov 27, 2023
4bb9b6e
fix: Ajoute le footer dans la doc
bjlaa Nov 27, 2023
c86a747
Update theodule.mdx
jeannelf Nov 27, 2023
2a10e88
Merge branch 'preprod' into add-release-theodule
bjlaa Nov 27, 2023
8672680
fix: Emojis documentation card + burger menu infermable [NGC-199, NG…
bjlaa Nov 27, 2023
264e095
Corrige la fonction de remplacement de locale dans l'url [NGC-96] (#262)
bjlaa Nov 27, 2023
27fb83f
fix: layout of choices description
florianpanchout Nov 28, 2023
6652c53
fix: use static page for iframes demo
florianpanchout Nov 28, 2023
b057d7e
chore: cleanup
florianpanchout Nov 28, 2023
fd0f9ac
fix: delete group to redirect AFTER the navigation
florianpanchout Nov 28, 2023
0c8196d
fix: delete group to redirect AFTER the navigation
florianpanchout Nov 28, 2023
6510c56
fix: Améliore la mise en page des cartes de la landing documentation
bjlaa Nov 28, 2023
625f3bc
Release 1.1.2 / iframeSimulation - le footer apparaît [NGC-368] (#265)
florianpanchout Nov 28, 2023
ad8e2cb
Release 1.1.2 / design infobulles pétey [NGC-369] (#264)
florianpanchout Nov 28, 2023
1688260
fix: stop reorder of categories
florianpanchout Nov 28, 2023
567022d
Release 1.1.2 / Groupe ⇒ pb redirection fin de test [NGC-367] (#266)
florianpanchout Nov 28, 2023
f677e2f
fix: use copy of categories
florianpanchout Nov 28, 2023
1d75709
Retour intempestif au tutoriel depuis la page de fin (suite et fin) […
florianpanchout Nov 28, 2023
31449fc
feat: add back header for iframeSimulation
florianpanchout Nov 28, 2023
c6245f2
Release 1.1.2 / iframeSimulation - le header n'apparaît pas [NGC-368]…
florianpanchout Nov 28, 2023
623a846
Release-1-1-2/Améliore la mise en page des cartes de la landing docum…
bjlaa Nov 28, 2023
2d99850
feat: add `résumé` in site
Clemog Nov 29, 2023
62566a3
Merge branch 'release-1-1-2' into add-release-theodule
bjlaa Nov 29, 2023
eafbb08
Release-1-1-2 / nouvelle release theodule.mdx NGCR-1 (#247)
bjlaa Nov 29, 2023
db8de4e
fix: rename FIXED_CARD_SUMMARIES
Clemog Nov 29, 2023
8307633
fix: summary can only be a string
Clemog Nov 29, 2023
0a78023
fix: Corrige la util de décodage de rule name dans url
bjlaa Nov 29, 2023
dda862a
Release-1-1-2 /`résumé` dans le site (NGC-195) (#275)
Clemog Nov 29, 2023
b363b23
Release-1-1-2 / Corrige la util de décodage de ruleName dans URL (#277)
bjlaa Nov 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
},
"globals": {
"React": "writable",
"NodeJS": "writable"
"NodeJS": "writable",
"JSX": "writable"
},
"rules": {
"react/no-unescaped-entities": "off",
Expand All @@ -33,7 +34,7 @@
"jsx-a11y/label-has-associated-control": 1,
"react/jsx-no-target-blank": 1,
"no-unreachable": 1,
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"react-hooks/exhaustive-deps": "error"
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/check-links-validity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Check links validity
on:
workflow_dispatch:
schedule:
# https://crontab.guru/#0_11_*_*_2
- cron: '0 11 * * 2'
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install
- name: Install RipGrep
run: sudo apt install -y ripgrep
- id: invalid_links
run: node ./scripts/check-links-validity.mjs --ci
timeout-minutes: 15
- if: steps.invalid_links.outputs.comment
uses: ./.github/actions/reopen-issue-with-comment
with:
issue-number: 225
comment: ${{ steps.invalid_links.outputs.comment }}
2 changes: 1 addition & 1 deletion .github/workflows/e2e-snapshots.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
needs: sleep
container:
image: cypress/browsers:node18.12.0-chrome107
image: cypress/browsers:latest
options: --user 1001
strategy:
fail-fast: false
Expand Down
20 changes: 11 additions & 9 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,26 @@ on:

jobs:
sleep:
name: Wait 3 min for the Vercel preview to be deployed
name: Wait for the vercel build to complete
runs-on: ubuntu-latest
steps:
- name: Sleep for 90s
run: sleep 90s
shell: bash
- name: Waiting for Vercel Preview
uses: patrickedqvist/[email protected]
id: waitForVercel
with:
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 300

e2e:
cypress-run:
runs-on: ubuntu-latest
needs: sleep
needs: [sleep]
container:
image: cypress/browsers:node18.12.0-chrome107
image: cypress/browsers:latest
options: --user 1001
strategy:
fail-fast: false
matrix:
containers: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
containers: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
name: Testing e2e in worker ${{ matrix.containers }}
if: github.event.pull_request.draft == false
steps:
Expand All @@ -55,7 +58,6 @@ jobs:
- name: Test - e2e [${{ env.MODE }}]
uses: cypress-io/[email protected]
with:
install: true
build: yarn run e2e:generate:personas
browser: chrome
parallel: true
Expand Down
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ yarn-error.log
node_modules/
.env

# Local Netlify folder
.netlify

/cypress/videos/*
/cypress/screenshots/*
/cypress/snapshots/__all/__diff_output__/**/*
Expand All @@ -55,3 +52,5 @@ dist

# Sentry Config File
.sentryclirc

.vscode
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
18.17
64 changes: 64 additions & 0 deletions config/redirects.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
const redirects = [
{
source: '/actions/liste',
destination: '/actions',
permanent: true,
},
{
source: '/groupes/:path*',
destination: '/amis/:path*',
permanent: true,
},
{
source: '/conférence/:path*',
destination: 'https://sondages.nosgestesclimat.fr/conférence/:path*',
permanent: true,
},
{
source: '/sondage/:path*',
destination: 'https://sondages.nosgestesclimat.fr/sondage/:path*',
permanent: true,
},
{
source: '/mon-empreinte-carbone/:path*',
destination: '/fin/:path*',
permanent: true,
},
{
source: '/nouveaut%C3%A9s/:path*',
destination: '/nouveautes/:path*',
permanent: true,
},
{
source: '/vie-priv%C3%A9e',
destination: '/vie-privee',
permanent: true,
},
{
source: '/partenaires',
destination: '/diffuser',
permanent: true,
},
{
source: '/blog/journée-mondial-environnement',
destination: '/blog/journee-mondial-environnement',
permanent: true,
},
{
source: '/mod%C3%A8le',
destination: '/modele',
permanent: true,
},
{
source: '/%C3%A0-propos',
destination: '/a-propos',
permanent: true,
},
{
source: '/groupe/:path*',
destination: 'https://sondages.nosgestesclimat.fr/',
permanent: true,
},
]

module.exports = redirects
1 change: 0 additions & 1 deletion cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export default defineConfig({
experimentalRunAllSpecs: true,
specPattern: 'cypress/e2e/**/*.cy.js',
},

component: {
devServer: {
framework: 'next',
Expand Down
12 changes: 0 additions & 12 deletions cypress/e2e/integration/pages/groupes.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ describe(
'The Group creation page /amis/creer',
{ testIsolation: false },
() => {
let groupURL = ''

it('allows to create a new group and displays it afterwards', () => {
cy.visit('/amis')

Expand All @@ -22,14 +20,10 @@ describe(
)
cy.get('[data-cypress-id="button-create-group"]').click()

cy.wait(2000)

// Fill simulation
clickSkipTutorialButton()
recursivelyFillSimulation(null, 'group')

cy.wait(2000)

cy.get('[data-cypress-id="group-name"]')

// Check that we can create a second group
Expand Down Expand Up @@ -59,18 +53,12 @@ describe(
cy.clearLocalStorage()
cy.reload()

cy.wait(2000)

cy.get('[data-cypress-id="member-name"]').type('Jean-Claude')
cy.get('[data-cypress-id="button-join-group"]').click()

cy.wait(2000)

clickSkipTutorialButton()
recursivelyFillSimulation(null, 'group')

cy.wait(2000)

cy.get('[data-cypress-id="group-name"]')

// Check that the main sections are displayed
Expand Down
2 changes: 1 addition & 1 deletion cypress/helpers/elements/buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ export function clickDoTheTestLink() {
}

export function clickAmisLink() {
click(AMIS_LINK)
cy.get(`[data-cypress-id="${AMIS_LINK}"]`).eq(1).click()
}
4 changes: 2 additions & 2 deletions cypress/helpers/interactions/click.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export function click(elementId) {
cy.get(`[data-cypress-id="${elementId}"]`).click()
export function click(elementId, options = {}) {
cy.get(`[data-cypress-id="${elementId}"]`).first().click()
}
14 changes: 0 additions & 14 deletions cypress/helpers/simulation/recursivelyFillSimulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,13 @@ export async function recursivelyFillSimulation(persona = {}) {
function skipQuestion() {
clickNextButton()

cy.wait(1000)

answerCurrentQuestion()
}

// Is last question
if (dottedName === LAST_QUESTION_ID) {
clickNextButton()

cy.wait(1000)

return resolve()
}

Expand All @@ -54,8 +50,6 @@ export async function recursivelyFillSimulation(persona = {}) {
const [dottedNameWithoutValueSuffix, value] = dottedName.split('-')
if (persona?.situation?.[dottedNameWithoutValueSuffix] === value) {
cy.get(`label[data-cypress-id="${dottedName}-label"]`).click()

cy.wait(1000)
} else if (!dottedName === LAST_QUESTION_ID) {
skipQuestion()
}
Expand All @@ -72,8 +66,6 @@ export async function recursivelyFillSimulation(persona = {}) {
cy.get(`input[data-cypress-id="${dottedName}"]`).type(
persona.situation[dottedName]
)

cy.wait(1000)
}

const mosaicChildren = Object.keys(persona?.situation ?? {}).filter(
Expand All @@ -86,17 +78,11 @@ export async function recursivelyFillSimulation(persona = {}) {
cy.get(
`input[data-cypress-id="${mosaicItemDottedName}---${mosaicDottedName}"]`
).type(persona.situation[mosaicItemDottedName])

cy.wait(1000)
}
}

cy.wait(1000)

clickNextButton()

cy.wait(1000)

// Call itself recursively to go to the next question
answerCurrentQuestion()
})
Expand Down
5 changes: 0 additions & 5 deletions cypress/helpers/simulation/setupSimulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,5 @@ import {

export function setupSimulation() {
clickDoTheTestLink()

cy.wait(2000)

clickSkipTutorialButton()

cy.wait(2000)
}
6 changes: 0 additions & 6 deletions i18nConfig.js

This file was deleted.

56 changes: 9 additions & 47 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
/* eslint-disable @typescript-eslint/no-var-requires */

const withMDX = require('@next/mdx')({
extension: /\.mdx$/,
})

const redirects = require('./config/redirects.js')

/** @type {import('next').NextConfig} */
const nextConfig = {
// Configure pageExtensions to include md and mdx
Expand All @@ -13,6 +17,10 @@ const nextConfig = {
test: /\.ya?ml$/,
use: 'js-yaml-loader',
})
config.module.rules.push({
test: /\.publicodes$/,
use: 'js-yaml-loader',
})

config.resolve.fallback = {
// if you miss it, all the other options in fallback, specified
Expand Down Expand Up @@ -53,53 +61,7 @@ const nextConfig = {
],
},
async redirects() {
return [
{
source: '/actions/liste',
destination: '/actions',
permanent: true,
},
{
source: '/groupes/:path*',
destination: '/amis/:path*',
permanent: true,
},
{
source: '/conférence/:path*',
destination: 'https://sondages.nosgestesclimat.fr/conférence/:path*',
permanent: true,
},
{
source: '/sondage/:path*',
destination: 'https://sondages.nosgestesclimat.fr/sondage/:path*',
permanent: true,
},
{
source: '/mon-empreinte-carbone/:path*',
destination: '/fin/:path*',
permanent: true,
},
{
source: '/nouveaut%C3%A9s',
destination: '/nouveautes',
permanent: true,
},
{
source: '/vie-priv%C3%A9e',
destination: '/vie-privee',
permanent: true,
},
{
source: '/partenaires',
destination: '/diffuser',
permanent: true,
},
{
source: '/blog/journée-mondial-environnement',
destination: '/blog/journee-mondial-environnement',
permanent: true,
},
]
return redirects
},
experimental: {
mdxRs: true,
Expand Down
Loading