Skip to content

Afficher une bannière de maintenance ProConnect sur toutes les pages#1506

Open
Isalafont wants to merge 1 commit intodevelopfrom
feature/dp-1682-mep-avant-le-2304-banniere-prevenant-de-lindispo-de
Open

Afficher une bannière de maintenance ProConnect sur toutes les pages#1506
Isalafont wants to merge 1 commit intodevelopfrom
feature/dp-1682-mep-avant-le-2304-banniere-prevenant-de-lindispo-de

Conversation

@Isalafont
Copy link
Copy Markdown
Contributor

@Isalafont Isalafont commented Apr 15, 2026

Capture d’écran 2026-04-15 à 13 33 04 Capture d’écran 2026-04-15 à 11 59 52

Contexte

ProConnect a prévenu d'une interruption de service le 23 avril à partir de 18h (durée estimée : 1h). Cette PR affiche une bannière d'information sur toutes les pages de DataPass pendant la fenêtre de maintenance.

Ce qui a été fait:

  • Bannière visible sur toutes les pages (connecté et non connecté), du 23/04 à 14h00 au 23/04 à 19h30
  • Fermable par l'utilisateur

Pour modifier la bannière (dates, titre, texte)

Un seul fichier à éditer : config/maintenance_banner.yml

  shared:                                                                                                                                       
    start: "2026-04-23T14:00:00+02:00"   # date et heure de début                                                                                 
    end: "2026-04-23T19:30:00+02:00"     # date et heure de fin                                                                                 
    title: "Maintenance ProConnect ce soir à 18h"                                                                                                 
    description: "Le texte affiché dans la bannière."

Format des dates : AAAA-MM-JJTHH:MM:SS+02:00 (heure Paris en été, +01:00 en hiver).
Pour désactiver la bannière sans deploy : mettre end à une date passée.
Pour une future maintenance : modifier les dates et le texte, ouvrir une PR.

@Isalafont Isalafont self-assigned this Apr 15, 2026
@linear
Copy link
Copy Markdown

linear bot commented Apr 15, 2026

@Isalafont Isalafont force-pushed the feature/dp-1682-mep-avant-le-2304-banniere-prevenant-de-lindispo-de branch from 000b6cd to 5bfbc20 Compare April 15, 2026 10:07
@Isalafont Isalafont added the enhancement New feature or request label Apr 15, 2026
@Isalafont Isalafont force-pushed the feature/dp-1682-mep-avant-le-2304-banniere-prevenant-de-lindispo-de branch 2 times, most recently from bcab01a to f37fe36 Compare April 15, 2026 11:34
skelz0r added a commit to datagouv/apistration that referenced this pull request Apr 15, 2026
Add a lightweight announcement system that displays a DSFR notice
banner (warning variant, dismissible) on every page of both
API Entreprise and API Particulier sites.

Inspired by etalab/data_pass#1506
which introduced the same mechanism on DataPass.
skelz0r added a commit to datagouv/apistration that referenced this pull request Apr 15, 2026
skelz0r added a commit to datagouv/apistration that referenced this pull request Apr 15, 2026
Add a lightweight announcement system that displays a DSFR notice
banner (warning variant, dismissible) on every page of both
API Entreprise and API Particulier sites.

Inspired by etalab/data_pass#1506
which introduced the same mechanism on DataPass.
skelz0r added a commit to datagouv/apistration that referenced this pull request Apr 15, 2026
skelz0r added a commit to datagouv/apistration that referenced this pull request Apr 15, 2026
Add a lightweight announcement system that displays a DSFR notice
banner (warning variant, dismissible) on every page of both
API Entreprise and API Particulier sites.

Inspired by etalab/data_pass#1506
which introduced the same mechanism on DataPass.
skelz0r added a commit to datagouv/apistration that referenced this pull request Apr 15, 2026
Bannière configurable via config/maintenance_banner.yml (dates, titre, description).
Active uniquement dans la plage horaire définie, fermable par l'utilisateur.
@Isalafont Isalafont force-pushed the feature/dp-1682-mep-avant-le-2304-banniere-prevenant-de-lindispo-de branch from f37fe36 to 55661b4 Compare April 15, 2026 14:54
Comment thread config/maintenance_banner.yml Outdated
@@ -0,0 +1,9 @@
shared:
start: "2026-04-23T11:00:00+02:00"
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.

J'arrive pas à récupérer la branche en local pour corriger, donc je mets juste un commentaire : ici c'est marqué 11h au lieu de 14h.

Comment thread config/maintenance_banner.yml Outdated
@@ -0,0 +1,9 @@
shared:
start: "2026-04-23T17:50:00+02:00"
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 14h ?

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants