Repository navigation
feat(layout): an edge-to-edge publication style on a light or dark paper - #3107
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewI found no bugs, security issues, performance problems or AGENTS.md breaks. I did not compile or run the tests (no shell here), so the checks below come from reading the code. BugsNone found. SecurityNone found. The new PerformanceNone found. Quality
AGENTS.mdNone found. Checked against the rules:
Twins checked
Change sizeCompared: the whole PR against main (merge base 0235f78 to PR head fa2bf3a).
|
Code reviewReviewed the whole PR (12 files) against the base branch. I could not build or run the tests in this environment, so the findings below come from reading the code. Bugs: None found. Checked:
Security: None found. The new inputs are a colour and a text, bounded by the existing Performance: None found. Confidence: high. Quality:
AGENTS.md: No rule break found. Checked:
Twins checked:
Earlier concerns left alone: 1. The outdated github-actions thread on the default kicker colour's contrast on a dark paper (about 3:1 for 9 pt text). The doc sentence now matches the code. The contrast issue itself is still present and is already raised in that thread, so I did not repeat it. Change sizeCompared: the whole PR against main (merge base 0235f78 to PR head 7a0efa9).
|
…ts per millimetre (opengeos#3104)
Code reviewI read the diff, the staged metadata and prior threads, and the surrounding code ( Bugs
Security
Performance
Quality
AGENTS.md
Change sizeCompared with main (merge base da4a833 to PR head 8b09d4f). 13 files changed: 1 added, 12 modified, 0 removed, 0 renamed. Total size before 4.29 MB; after 4.30 MB; change +17.0 KB.
|
📖 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 last summary: no code change, as the PR is approved. The box of a kicker holding |
Code reviewRead the full diff, the AGENTS.md copy, the prior threads and the surrounding code (publication Bugs: None found. I checked:
Security: None. The new inputs are text and an opaque colour, both bounded by existing validators. Performance: None. The new work is one more style arm and a per-character width sum over a kicker of at most Quality:
AGENTS.md: No breaks found.
Prior reviews: Two threads, both resolved and outdated.
No inline comments were posted: nothing reaches bug level, and the nits are grouped above. Change sizeCompared with
|
Code reviewI read the diff, the staged AGENTS.md, and the surrounding code (style list, BugsNone found. I checked the edge geometry (map from SecurityNone found. The new parameters go through PerformanceNone found. The kicker is capped by Quality
AGENTS.mdNone found. Checked:
Twins: the "family" here is the styles inside Prior reviews: two threads, both resolved and outdated, both answered by the PR author with fixes. I left both alone (2 concerns not re-raised). Change sizeCompared with the base branch: the whole PR, main (merge base b49bbae) to PR head 35a6cf7.
|
Summary
Part 1 of #3104:
layout.publicationtakes"style": "edge"for sheets."kicker"(new, spaced capitals in the accent colour), the title and the subtitle."paper"(new) sets the page's colour ([Feature]: A layout's page takes a colour #2855). When it is dark (luminance below 140, the rule a presentation's blank page uses) the sheet's own texts are light. The graticule labels, legend and scale bar keep their look, as they sit on the map."paper"and"kicker"are refused with the other styles and on figures."style": "edge"on a figure warns and is left out, as every style does.One limit, said in the guide: the graticule labels sit at the page's side edges, so a printer with no bleed may clip them.
Surfaces: it is one more value and two parameters 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 them), as one undo step like the other styles. The ribbon's menu and the wizard list the style; the wizard gets nopaperorkickerfields here. The phone needs nothing of its own.Not in this PR
"figures", the headline figures under the map: part 2 of [Feature]: Publication Layout: an edge-to-edge style on a light or dark page, with headline figures #3104.Testing
crates/engine/src/tests/layout_edge.rs, the behaviour ones written before the code and seen failing (the style was unknown): edge to edge on every sheet size, light, dark and white paper, refused papers, the kicker (capitals, spacing, accent, wrapping, the map token), no header,paper/kickerrefused elsewhere, undo and duplication. The{map}title test oflayout_title.rsnow covers the style too.cargo fmt, clippy with-D warnings,cargo nextest(9959 passed, 29 skipped), doctests,cargo xtask layersand the schema check.ui_shotreplay: an A4 portrait sheet on white and an A3 landscape sheet on#0B1B2B.UI evidence
An A4 portrait edge sheet on white and an A3 landscape one on
#0B1B2B, as exported:The wizard's style step, before and after:
Related issue
Part of #3104
Summary by CodeRabbit