🐛 (bug) Version history must stay reachable when the document fails to render

Abierto
#2,946 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

@RoeeSivan ya está trabajando en esto.

Desde el 24/11/2026.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
react
Área
frontend

Línea de trabajo

Start by locating the document page’s editor and the History modal, then trace how editor rendering failures and version previews are handled. Done means a broken document leaves the header, menu, and History available; authorized users can preview and restore a working version; users without version access are told to contact the owner; and failures are reported to Sentry and tracked as specified.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

frontend

Problem to solve

In order to recover their work when a document breaks, users must be able to reach the history and restore a previous version without opening the editor. Today the History entry only lives in the "..." menu of the document page, which is rendered with the editor. When the editor throws during render (e.g. #2945 ), the whole page is replaced by "An unexpected error occurred". The header, the menu and the history all disappear, so the user cannot restore or share the document, and support has to step in.

There is no React error boundary in the app today: any render error in a block takes the page down.

ex doc : https://docs.numerique.gouv.fr/docs/f5cfbffb-09c2-431a-b0a8-b85ba24ec256/

Acceptance criteria

Given a document whose content fails to render
When a user opens it
Then the page shows an error message in place of the editor
And the header, the "..." menu and the History entry stay available

Given a user with the right to see versions opens a document that fails to render
When they open History
Then they can preview and restore a previous version

Given a user cannot see versions
When the document fails to render
Then the error message tells them to contact the document owner

Given the restored version renders correctly
When the restore completes
Then the document opens normally for every collaborator

Event tracking

  • doc_render_failed: the editor error boundary catches an error (error_name, block_type)

Implementation

  • Add an error boundary around the editor in the document page, so the header and the toolbox stay mounted. Report to Sentry.
  • A version preview that fails to render should also show an error state, not crash the history modal.
Lenguaje dominante
TypeScript
Estrellas
17k
Forks
705
Merge medio
4 d 13 h
PR fusionados (30 d)
47

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de suitenumerique/docs

Todos los issues de suitenumerique/docs

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.