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

🖼️ Appeler iframeResize après le chargement effectif de l'iframe dans le parent #1360

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

fabienheureux
Copy link
Member

@fabienheureux fabienheureux commented Feb 17, 2025

Description succincte du problème résolu

Carte Notion/Mattermost/Sentry : https://www.notion.so/accelerateur-transition-ecologique-ademe/IFRAME-Probl-mes-restants-sur-les-iFrames-suite-MEP-hors-Ecologie-gouv-Investigation-1996523d57d780d5a4c9c9f289da9847?pvs=4

🗺️ contexte: post mise en production assistant v2

💡 quoi: modification de la manière dont les iframes se redimensionnent

🎯 pourquoi: les iframes se dimensionnent mal sur certains réutilisateurs

🤔 comment: on s'assure que l'iframe ait envoyé l'événement "load" avant de déclencher son resize.

Exemple résultats / UI / Data

Note : les tests locaux ne sont pas forcément iso avec les modes de survenue du bug en production.
J'ai tenté de reproduire ses conditions d'execution mais il est probable que le bug vienne d'autres causes, auquel cas ce correctif nécessitera p-e des ajustements

En local - AVANT

image

En local - APRÈS

image

Auto-review

Les trucs à faire avant de demander une review :

  • J'ai bien relu mon code
  • La CI passe bien
  • En cas d'ajout de variable d'environnement, j'ai bien mis à jour le .env.template
  • J'ai ajouté des tests qui couvrent le nouveau code

✅ Reste à faire (PR en cours)

📆 A faire (prochaine PR)

@fabienheureux fabienheureux added the bug Something isn't working label Feb 17, 2025
@fabienheureux fabienheureux marked this pull request as ready for review February 17, 2025 15:07
@fabienheureux fabienheureux requested a review from a team as a code owner February 17, 2025 15:07
@fabienheureux fabienheureux requested review from kolok and maxcorbeau and removed request for a team February 17, 2025 15:07
@fabienheureux fabienheureux changed the title Call iframe resize after iframe load Appeler iframeResize après le chargement effectif de l'iframe dans le parent Feb 17, 2025
@fabienheureux fabienheureux changed the title Appeler iframeResize après le chargement effectif de l'iframe dans le parent 🖼️ Appeler iframeResize après le chargement effectif de l'iframe dans le parent Feb 17, 2025
Copy link
Contributor

@maxcorbeau maxcorbeau left a comment

Choose a reason for hiding this comment

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

GO, clair.

@fabienheureux fabienheureux force-pushed the debug-iframes-post-mep branch 2 times, most recently from d0c6261 to 459f204 Compare February 20, 2025 14:35
@kolok kolok enabled auto-merge (squash) March 4, 2025 11:25
@kolok kolok force-pushed the debug-iframes-post-mep branch from 459f204 to 272fe1b Compare March 4, 2025 11:29
@kolok kolok merged commit 790d3c7 into main Mar 4, 2025
10 of 11 checks passed
@kolok kolok deleted the debug-iframes-post-mep branch March 4, 2025 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants