Repository navigation
fix(layout): number map series pages whose name is empty (#1998) - #2145
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewI read the diff, the surrounding No prior review threads exist on this PR, so none were left out as already raised. Bugs: None found. The change is correct for the cases I traced:
Security: None found. Performance: None found. The per-row Quality (low confidence, no action needed):
AGENTS.md: Compliant. The new code has no I left no inline comments because I found nothing above nit level. Change sizeCompared with the base branch: the whole PR against main (merge base e5fb706 to PR head 141a0fb).
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the |
Summary
A map series page whose name field is empty showed
<Null>as its{pageName}(found while fixing #1998's guide items, in #2107's review). A page whose name value is null, empty or only whitespace now uses its row number, starting at 1, as a page already does when the name field doesn't exist. The page list, the current page's name and{pageName}in dynamic text all agree. The layouts guide says so.Testing
map_series_empty_names_use_row_numbers: namesA, null and""give pagesA,2,3in the page list,layout.seriesPageand{pageName}; whitespace-only text falls back, whileA,0,falseand the text<Null>keep their values; a removed name field numbers every page.cargo xtask cion the fork's CI.UI evidence
No visible UI change beyond the page names themselves.
Related issue
Part of #1998 (the map series
<Null>page name line).Summary by CodeRabbit
{pageName}uses label values and when it falls back to the row number.