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

Tech - Nettoyage des states redux #3687

Merged
merged 13 commits into from
Sep 27, 2024
Merged

Tech - Nettoyage des states redux #3687

merged 13 commits into from
Sep 27, 2024

Conversation

louptheron
Copy link
Collaborator

@louptheron louptheron commented Sep 25, 2024

Linked issues


  • Tests E2E (Cypress)

Avantages :
1. Séparation claire des responsabilités : Chaque fenêtre a son propre cycle de vie et son propre DOM, ce qui rend la gestion des deux interfaces plus propre et modulaire.
2. Communication efficace : BroadcastChannel est conçu pour la synchronisation des états entre différentes fenêtres, ce qui permet une synchronisation rapide et efficace sans prop drilling ou complexité supplémentaire.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
3. Permet de tester les interactions main <-> side window via Cypress.
4. Permet d'utiliser des urls pour ouvrir directement les entités (`*/mission/123...`).
5. Permet le passage à Next (ou équivalent SSR) en bénéficiant du SSR aussi sur la side-window.
6. Permet de visualiser la side window dans les replays Sentry (?).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bien vu, sauf pour les 1er point point : ça ne change pas les tests d'interactions avec Cypress selon moi (sauf si j'ai raté quelque chose ?)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah non c'est moi qui ait sûrement mal compris, je pensais qu'on pouvait tester plusieurs tabs ouverts simultanément en utilisant Cypress.

Copy link

sonarcloud bot commented Sep 27, 2024

@louptheron louptheron merged commit 0abab7b into master Sep 27, 2024
3 checks passed
@louptheron louptheron deleted the loup/apply_refactoring branch September 27, 2024 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants