Repository navigation
Sort sidebar items on label for the docs page - #3320
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: adc5ed5e4c
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2bb8befce8
ℹ️ 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".
| function sortByLabel( | ||
| items: NormalizedSidebarItem[], | ||
| ): NormalizedSidebarItem[] { | ||
| const normalizedItems = items.map((item): NormalizedSidebarItem => | ||
| item.type === "category" | ||
| ? { ...item, items: sortByLabel(item.items) } |
There was a problem hiding this comment.
Add tests for recursive sidebar ordering
This introduces recursive sorting and explicit-position preservation for both autogenerated sidebars, but the commit adds no test that exercises the generator; a repo-wide search finds only the implementation and its Docusaurus configuration reference. Add focused tests covering nested label ordering and preservation of sidebarPosition, so future changes cannot silently reorder the published navigation while the site still builds successfully.
AGENTS.md reference: AGENTS.md:L48-L48
Useful? React with 👍 / 👎.
No description provided.