Repository navigation
feat(layout): headline figures on an edge sheet, and its kicker in capitals - #3128
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewBugs: None found. I checked the figure columns and the room check, the header-size and token handling in Security: None found. The new input is bounded (at most three figures, 2000 characters each via Performance: None found. The added statistic pass is one Quality:
AGENTS.md: No breaks found. Command surface and help text are updated, and the Twins checked: Prior concerns: There were no earlier review threads on this PR, so none were left alone. Change sizeCompared with main (merge base cb2b87f to PR head 0935a22). Whole PR, not the latest push.
|
Code reviewI read the full diff, the base AGENTS.md, the PR metadata and the prior review thread, and checked the surrounding code: Bugs: None found. The kicker case logic is sound. Security: None found. No new input path bypasses Performance: None found. The figure band is three columns at most, and Quality (low priority, for the release quality pass):
AGENTS.md: No breaks found. The checks I made:
Twins checked:
Prior reviews: One earlier thread, on the Change sizeCompared with the base branch: the whole PR against main (merge base cb2b87f to PR head 62349eb).
|
📖 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 |
|
On the summary of the review of 62349eb:
|
Code reviewI read the full diff, the base-branch AGENTS.md, and the surrounding code: the figure and kicker layout, token handling in Bugs: none found. Checked:
Security: none found. Hostile input is refused rather than cut: a non-array, more than three entries, an unknown key, a non-string value, and text over Performance: none found. The figure work is bounded by three entries of at most 2,000 characters each. Quality:
AGENTS.md: no breaks found. Twins checked:
Earlier concerns: one prior thread exists (the kicker's Change sizeCompared with the base branch (merge base cb2b87f to PR head 567a9ed), the whole PR.
|
Summary
Part 2 of #3104, and the fix for #3126.
layout.publicationtakes"figures"on an edge sheet: up to three{"value", "label"}, the label optional, in columns of one width between the map and the footer's rule. The value is large and bold, the label small under it, both in the paper's ink (light on a dark paper). The map is shorter by the band's height."paper"and"kicker","figures"([]too) is refused with the other styles and on figures. Without figures, or with[], an edge sheet is as before.{map},{crs}or a statistic fills in is drawn in capitals, and its box is measured in capitals. A saved project with such a kicker requireslayout-text-block, the existing capability for a text's case; a kicker without tokens sets no case."veil": falsekeeps the map unveiled.Surfaces: one more parameter of
layout.publication, so the desktop app, the browser, the command line, Python, scripts, plugins, the Assistant and MCP get it through the command (its help and theprint-layoutskill name it), in the same single undo step. The ribbon's menu and the wizard take no figures. The phone needs nothing of its own.Testing
crates/engine/src/tests/layout_edge.rs, written before the code and seen failing: one to three figures and none, their columns and order, statistic tokens, refused values, light and dark paper, every sheet size, a sheet with no room left for the map, refusal with the other styles and on figures, and the kicker's capitals and box with{map}and a statistic.cargo fmt, clippy with-D warnings,cargo nextest(10059 passed, 29 skipped), doctests,cargo xtask layersand the schema check. The two commits after that run change only when the kicker's case is set, and tidy its tests; on them, the edge and publication tests, clippy on the engine andcargo fmt.ui_shotreplay onmainand on this branch: an A4 portrait sheet on a light paper and an A3 landscape one on#0B1B2B, exported as PNG.UI evidence
Before (
main, which leaves"figures"out) and after.A4 portrait, light paper, kicker
{map} · day 22:A3 landscape on
#0B1B2B, kicker{map}:Related issue
Closes #3104
Closes #3126
Summary by CodeRabbit