Allow quickly viewing which pages have changed in a CR/revision#4348
Allow quickly viewing which pages have changed in a CR/revision#4348viktorrenkema wants to merge 1 commit into
Conversation
🦋 Changeset detectedLatest commit: a2b0eb9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 24cc9c2315
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| context: GitBookSiteContext | ||
| ): Promise<MinimalChangedPages | null> { | ||
| const changes = context.changeRequest | ||
| ? await getDataOrNull( |
There was a problem hiding this comment.
Isolate failures from changed-pages fetches
In CR/revision previews, this optional toolbar query now runs during AdminToolbar server rendering, but getDataOrNull only suppresses 404s; a transient 5xx/403 from the semantic-changes endpoint (the revision branch below uses the same pattern) will throw and fail rendering of the whole site page instead of just hiding the changed-pages button. Wrap these optional fetches so non-critical API errors degrade to null.
Useful? React with 👍 / 👎.
24cc9c2 to
a2b0eb9
Compare
What changed
Adds a changed-pages button to the AdminToolbar for change request and revision previews. Clicking it opens a compact dropdown listing changed document pages, with links back to the relevant preview page.
Deleted pages are included too, but route to the editor change instead of the preview since they may no longer exist in the published page tree.
CleanShot.2026-06-29.at.13.25.59.mp4
Notes
Closes https://linear.app/gitbook-x/issue/RND-11620/show-a-list-of-changed-pages-in-gbos-toolbar