Skip to content

Insertion : Ajout d'une page de visualisation d'une structure d'insertion#7838

Merged
ggounot merged 3 commits into
mainfrom
ggounot/fiche-structure
May 26, 2026
Merged

Insertion : Ajout d'une page de visualisation d'une structure d'insertion#7838
ggounot merged 3 commits into
mainfrom
ggounot/fiche-structure

Conversation

@ggounot

@ggounot ggounot commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

🤔 Pourquoi ?

Ajout d'une page de visualisation d'une structure d'insertion.

🍰 Comment ?

Implémentation basée sur un design Figma.

⚠️ Pour le moment, on n'implémente que l'affichage de la description. Les onglets et la liste des services sera implémentée une fois la fiche service implémentée.

  • Mutualisation de la fonction de formatage d'adresse sur une ligne ;
  • Conversion des numéros de téléphone français au format E.164 (+33...) vers le format national (0...) ;
  • Création de la vue dans itou/www/insertion_views/views.py ;
  • Création du gabarit itou/templates/insertion/structure_card.html.

🚨 À vérifier

  • Mettre à jour le CHANGELOG_breaking_changes.md ?
  • Ajouter l'étiquette « Bug » ?

🏝️ Comment tester ?

  1. Importer les données des offres d'insertion avec la commande import_structures_and_services ;
  2. Aller sur la page d'une structure, par exemple : http://localhost:8000/insertion/structure/soliguide--9997/card.

Exemples de page structure sur la recette jetable :

💻 Captures d'écran

@ggounot ggounot changed the title Ggounot/fiche structure Ajout d'une page de visualisation d'une structure d'insertion Apr 6, 2026
@ggounot ggounot changed the base branch from main to rsebille/services/import-di-data April 6, 2026 17:40
@ggounot ggounot force-pushed the ggounot/fiche-structure branch from e130602 to 67005f5 Compare April 6, 2026 17:43
@ggounot ggounot added the pending PR en attente, ne pas intégrer. label Apr 6, 2026
@ggounot ggounot force-pushed the ggounot/fiche-structure branch 4 times, most recently from 7fcd667 to 0745417 Compare April 8, 2026 12:56
@rsebille rsebille force-pushed the rsebille/services/import-di-data branch from b262e27 to b033f6f Compare April 14, 2026 07:43
@ggounot ggounot force-pushed the ggounot/fiche-structure branch from 0745417 to 560f022 Compare April 14, 2026 16:41
@rsebille rsebille force-pushed the rsebille/services/import-di-data branch 2 times, most recently from 8cba1de to 1c6d86a Compare April 21, 2026 10:35
@ggounot ggounot added the 1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC label Apr 21, 2026
@ggounot ggounot force-pushed the ggounot/fiche-structure branch from 560f022 to d6a11bd Compare April 21, 2026 14:03
@ggounot ggounot added the ajouté Ajouté dans le changelog. label Apr 21, 2026
@rsebille rsebille force-pushed the rsebille/services/import-di-data branch 4 times, most recently from a63e1f7 to 34b4b62 Compare April 23, 2026 09:32
@ggounot ggounot force-pushed the ggounot/fiche-structure branch 2 times, most recently from 67bb656 to 09b21fd Compare April 23, 2026 10:53
@rsebille rsebille force-pushed the rsebille/services/import-di-data branch 3 times, most recently from c33006d to fadfe40 Compare April 29, 2026 11:25
@ggounot ggounot force-pushed the ggounot/fiche-structure branch from 09b21fd to f28c448 Compare April 29, 2026 12:00
@rsebille rsebille added 1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC and removed 1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC labels Apr 29, 2026
@github-actions

Copy link
Copy Markdown

🥁 La recette jetable est prête ! 👉 Je veux tester cette PR !

@rsebille rsebille self-assigned this Apr 29, 2026

@rsebille rsebille left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pour les questions de fond (racine URL et dossier de l'app) je me dit qu'on peux éventuellement en discuter en synchrone pour éviter des allers-retours trop nombreux.

L'autre gros truc que j'ai vu mais pas commenter c'est qu'il n'y a pas de tests pour la vue structure ;).

Sinon après c'est surtout de la forme.

Comment thread itou/common_apps/address/display.py Outdated
Comment thread tests/common_apps/address/tests.py Outdated
Comment thread tests/common_apps/address/tests.py Outdated
Comment thread itou/utils/templatetags/format_filters.py
Comment thread config/urls.py Outdated
Comment thread itou/www/structures_views/views.py
Comment thread itou/www/structures_views/views.py Outdated
Comment thread itou/www/insertion_views/views.py Outdated
Comment thread itou/www/structures_views/urls.py Outdated
Comment thread itou/templates/structures/card.html Outdated
@ggounot ggounot force-pushed the ggounot/fiche-structure branch 3 times, most recently from c8f4434 to 34d4e11 Compare May 12, 2026 09:32
@ggounot

ggounot commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

@ggounot Je viens de pusher un commit de corrections ui (vu avec antoine). Je te laisse fixup comme tu le sens dans tes autres commits. Bon par contre, j'ai pas fix les tests (et j'espère que ça claque pas car j'ai du faire ça l'aveugle car je n'arrive toujours pas a lancer le truc en local)

C'est intégré. Merci !

J'ai aussi une question. C'est voulu que la fiche soit accessible même pas connecté ?

Oui.

@ggounot ggounot requested a review from hellodeloo May 12, 2026 09:43
@vperron vperron force-pushed the rsebille/services/import-di-data branch from 9cd1590 to 4adc7f9 Compare May 13, 2026 14:45
@ggounot ggounot force-pushed the ggounot/fiche-structure branch 3 times, most recently from 739b9b8 to 63ec6f1 Compare May 13, 2026 16:45
@vperron vperron force-pushed the rsebille/services/import-di-data branch 6 times, most recently from 1a525eb to a0f119c Compare May 19, 2026 12:03

@vperron vperron left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

pas de grands commentaires, juste un mini nit (pas compris pourquoi on faisait une fonction intermédiaire qui continue de s'appuyer sur un objet opaque ?!)

Par contre je veux bien qu'on mette sur une recette jetable et qu'on fasse des tests pour Gael.

Comment thread itou/common_apps/address/format.py Outdated
Comment thread itou/utils/templatetags/format_filters.py
Comment thread itou/templates/insertion/includes/structure_card_contact_modal.html Outdated
Comment thread itou/templates/insertion/structure_card.html
Comment thread tests/www/structures_views/test_views.py Outdated
@github-actions

Copy link
Copy Markdown

🥁 La recette jetable est prête ! 👉 Je veux tester cette PR !

Comment thread tests/common_apps/address/tests.py Outdated

@vperron vperron left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Niveau code pas d'inconvénient.

Niveau visuel je ne vois pas le lien canonical de la structure ici ? https://c1-review-ggounot-fiche-structure.cleverapps.io/insertion/structure/dora--86e1ddcb-6381-4116-95a4-af863b301723/card

Et la page est... très sommaire non ?

@ggounot

ggounot commented May 20, 2026

Copy link
Copy Markdown
Contributor Author

Niveau visuel je ne vois pas le lien canonical de la structure ici ? https://c1-review-ggounot-fiche-structure.cleverapps.io/insertion/structure/dora--86e1ddcb-6381-4116-95a4-af863b301723/card

❯ curl -s https://c1-review-ggounot-fiche-structure.cleverapps.io/insertion/structure/dora--86e1ddcb-6381-4116-95a4-af863b301723/card | grep canonical
        <link rel="canonical" href="https://dora.inclusion.gouv.fr/structures/ea-les-compagnons-de">

Et la page est... très sommaire non ?

Oui, pour le moment. La liste des services de la structure sera ajoutée quand la PR de la fiche service sera mergée.

@vperron

vperron commented May 20, 2026

Copy link
Copy Markdown
Contributor

Ah, oui, pas les yeux en face des trous. En effet le link est un header, pas visible.

Comment thread itou/templates/insertion/structure_card.html Outdated
Comment thread itou/templates/insertion/structure_card.html Outdated
Comment thread itou/www/insertion_views/urls.py Outdated
Comment thread itou/www/insertion_views/views.py Outdated
Comment thread tests/insertion/factories.py Outdated
Comment thread tests/www/structures_views/test_views.py Outdated

@xavfernandez xavfernandez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cela me semble bien 👍 . On est d'accord qu'actuellement rien ne mène à la vue ajoutée ?

Comment thread tests/insertion/test_models.py Outdated
Comment thread tests/www/structures_views/test_views.py Outdated
Comment thread itou/www/insertion_views/views.py Outdated
Comment thread itou/www/insertion_views/views.py Outdated
@ggounot

ggounot commented May 20, 2026

Copy link
Copy Markdown
Contributor Author

Cela me semble bien 👍 . On est d'accord qu'actuellement rien ne mène à la vue ajoutée ?

Nope, pas encore. C'est la PR sur la fiche service qui fera un lien vers la fiche structure. Mais il faut que cette PR soit mergée d'abord.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC ajouté Ajouté dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants