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

オープン
#2,946 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

@RoeeSivan がすでに取り組んでいます。

2026年11月24日 から。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
react
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
TypeScript
スター
17k
フォーク
705
平均マージ
4日 13時間
マージ済み PR(30日)
47

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

suitenumerique/docs のほかの issue

suitenumerique/docs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。