Repository navigation
feat(layout): headline figures on a publication's panel style - #3265
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewScope: 7 files, panel-style headline figures for BugsNone found. I traced the cut loop by hand. SecurityNone found. The new input is parsed and length-limited by the existing PerformanceNone found. The extra footer call is a few text-wrap operations on the first pass only. Quality
AGENTS.mdNo breaks found. Checked against:
Twins checked
Change sizeCompared: the whole PR against main (merge base 27ffc55 to PR head 286237c).
|
📖 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
layout.publication's panel style takes"figures", the headline figures an edge sheet already draws.{"value", "label"}, stacked in the panel under its title and subtitle, each value large and bold over its label, with the edge sheet's element names (Figure 1 Value,Figure 1 Label…). The locator and the legend take the room left under them."paper"and"kicker"stay an edge sheet's; the other styles and journal figures still refuse"figures".Not in this PR: a chart in the panel; the publication wizard does not ask for figures yet.
Testing
crates/engine/src/tests/layout_panel_figures.rs, written first; the edge style's refusal test now expects a panel to take"figures".20a8b697:fmt,clippy,cargo nextest run(10511 passed, 29 skipped), doctests, layer check and schema check all green. The one commit after it changes a comment (fmtandclippyofrustgis-enginegreen).ui_shot.UI evidence
Before (
main, no figures, since a panel refuses them) and after, the same A4 panel sheet:An area wider than tall, where the sheet is cut and centred:
Related issue
Closes #3263.
Summary by CodeRabbit