Skip to content

feat(layout): an edge-to-edge publication style on a light or dark paper - #3107

Merged
jgregoriorincon merged 7 commits into
opengeos:mainfrom
jgregoriorincon:feat/3104-edge-style
Nov 27, 2026
Merged

jgregoriorincon merged 7 commits into
opengeos:mainfrom
jgregoriorincon:feat/3104-edge-style

Conversation

@jgregoriorincon

@jgregoriorincon jgregoriorincon commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Part 1 of #3104: layout.publication takes "style": "edge" for sheets.

  • The map runs from the left edge of the page to the right, with no frame border and no neatline. The legend, locator, north arrow and scale bar go over it, placed as they already are.
  • Above the map, at the left: "kicker" (new, spaced capitals in the accent colour), the title and the subtitle.
  • Under the map, a thin rule, then the sources and the reference side by side with no boxes, the note and the authorship.
  • "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.
  • The style shows in New Layout › Publication's menu and in the wizard's style step, with an outline of its own; the step is taller so seven styles fit without scrolling.
  • No new project state: no field, capability or schema change. The other six styles are unchanged.
  • The style's new description in the menu waits for the release translation pass.

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 the print-layout skill name them), as one undo step like the other styles. The ribbon's menu and the wizard list the style; the wizard gets no paper or kicker fields here. The phone needs nothing of its own.

Not in this PR

Testing

  • New tests in 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/kicker refused elsewhere, undo and duplication. The {map} title test of layout_title.rs now covers the style too.
  • cargo fmt, clippy with -D warnings, cargo nextest (9959 passed, 29 skipped), doctests, cargo xtask layers and the schema check.
  • Headless ui_shot replay: 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:

3104-edge-sheets.png

The wizard's style step, before and after:

3104-wizard-outlines.png

Related issue

Part of #3104

Summary by CodeRabbit

  • New Features
    • Added an edge-to-edge publication layout with a full-width, borderless map, title and subtitle, and an unboxed footer.
    • Customize the page color and add a short accent-colored kicker above the title. Dark page colors use light text for contrast.
    • Page color and kicker options are available only for the edge style. Graticule labels may be clipped when printing without bleed.
  • Documentation
    • Updated the publication layout guide and walkthrough to include the new style and its options.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The publication command adds an edge sheet style with a full-width map, configurable paper color, and optional kicker. The change updates style listings and documentation and adds tests for layout, option validation, and related behavior.

Changes: Edge publication layout

Layer / File(s) Summary
Add the edge style and options
crates/engine/src/cmd/layout/publication/sheet.rs, crates/engine/command-surface.txt, crates/engine/src/cmd/layout.rs, crates/engine/src/cmd/layout/publication/mod.rs
The publication style choices include edge. The command adds paper and kicker options for edge sheets and rejects their use in other supported contexts.
Compose and validate the edge sheet
crates/engine/src/cmd/layout/publication/mod.rs, crates/engine/src/tests.rs, crates/engine/src/tests/layout_edge.rs, crates/engine/src/tests/layout_title.rs
The edge layout places its heading above a full-width map and an unboxed footer. Tests cover paper colors, kicker placement, layout bounds, option restrictions, undo, and duplication.
Add the style to previews and guidance
crates/ui-egui/src/publicationwizard/style.rs, crates/ui-egui/src/publicationwizard/mod.rs, crates/ui-egui/src/ribbon.rs, crates/assistant/skills/print-layout/SKILL.md, docs/getting-started.md, docs/user-guide/layouts.md
The wizard preview and ribbon include the edge style. The assistant skill and user documentation describe the style, its options, and the updated style count.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Possibly related issues

  • opengeos/RustGIS#2850 — The change adds the edge style to the wizard’s style choices.
  • opengeos/RustGIS#3104 — The change adds the edge style, paper color, and kicker requested by the issue. Figures under the map remain outside this change.
  • opengeos/RustGIS#2855 — The paper option adds page-color control for publication sheets, which addresses part of the issue’s request for page color.

Possibly related PRs

  • opengeos/RustGIS#2333 — This change adds an edge style to the publication sheet profiles and style structure introduced by that PR.
  • opengeos/RustGIS#698 — This change extends the layout.publication command and sheet implementation introduced by that PR.
  • opengeos/RustGIS#874 — This change adds the edge style to the publication style submenu introduced by that PR.

Suggested reviewers: giswqs, deniial00, mavrick-f

Merge Risk: Minimal · up to 35a6c

This adds a new opt-in edge publication style with validation, tests and docs. The other six styles are unchanged, and no concrete merge-blocking defect was established.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change, a new edge-to-edge publication style for layout.publication, and the light or dark paper option that the diff adds. It is concise and specific, so a teammate scanning …
Description check Passed The description follows the template's Summary, Testing, UI evidence, and Related issue sections. It explains the new edge style, the paper and kicker parameters, and the refusal rules. It lists the t…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change, a new edge-to-edge publication style for layout.publication, and the light or dark paper option that the diff adds. It is concise and specific, so a teammate scanning history can tell what changed.

Full details: Description check

Explanation

The description follows the template's Summary, Testing, UI evidence, and Related issue sections. It explains the new edge style, the paper and kicker parameters, and the refusal rules. It lists the tests and validation run, and it includes before and after screenshots for the UI change. The Related issue section links Part of #3104.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit sketches maps that meet the page’s edge,
Then tucks a little kicker just above the view.
The paper shifts from pale to night beneath the lines,
A borderless map stretches wide and true.
Beneath a quiet rule, the footer finds its place,
And seven styles now greet the rabbit’s nose.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 99be3bf8-5681-41b0-aea5-f52fc8557bc4
Commits

Reviewing files that changed from the base of the PR and between 8b09d4f and 35a6cf7.

Files selected for processing: 6

  • crates/assistant/skills/print-layout/SKILL.md
  • crates/engine/command-surface.txt
  • crates/engine/src/cmd/layout.rs
  • crates/engine/src/cmd/layout/publication/mod.rs
  • crates/engine/src/tests.rs
  • docs/user-guide/layouts.md

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.

@github-actions

Copy link
Copy Markdown
Contributor

Code review

I 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.

Bugs

None found.

Security

None found. The new paper value goes through opaque_color, which refuses anything other than six hex digits. The kicker text goes through texts_of, which caps its length.

Performance

None found.

Quality

  • Accent doc does not match the code (sheet.rs:121, inline comment posted). The doc says the edge accent is fainter on a dark paper, but accent() ignores the paper. On the dark example paper (#0B1B2B) the default kicker comes out at about 3.1:1 contrast by my estimate, for 9 pt text. Confidence: high that the doc is wrong; medium on the contrast figure.
  • paper is shadowed at publication/mod.rs:890 by let paper = Rgba::new(0xFF, 0xFF, 0xFF, 225). The earlier paper is an Option<Rgba>. The uses before line 890 are correct, but the reuse is easy to misread. Nit, confidence high.

AGENTS.md

None found. Checked against the rules:

  • Never silent: paper and kicker are refused on other styles and on figures, and "style": "edge" on a figure warns.
  • Tests cover lossy and clean input, and the {map} kicker keeps its token and wraps as drawn.
  • command-surface.txt is updated for the new parameters.
  • No saved state is added, so no schema change is needed. Layout.paper already exists and is covered by the layout-page-color capability.
  • Interface text uses tl! in the ribbon.
  • No unwrap, panic or unsafe outside tests, and the clippy config allows them in tests.
  • No new cfg(target_arch) branches, so the wasm build is not affected.

Twins checked

  • Existing styles and the footer change: the boxed change only affects looks with neither fill nor outline. I checked every existing look (plain, poster, modular, panel, banner, classic). Each keeps a fill or an outline, so their output is unchanged, as the PR states.
  • Style lists: the wizard, ribbon menu and tests all read PUBLICATION_STYLES, so edge reaches them.
  • Paper rendering: the renderer, SVG export and layout view all read Layout.paper.
  • White paper: layout.page and layout.publication both store white as None.

Change size

Compared: the whole PR against main (merge base 0235f78 to PR head fa2bf3a).

Files changed Added Modified Removed Renamed Size before Size after Total change
12 1 11 0 0 4.27 MB 4.28 MB +15.7 KB
File Before After Change
crates/engine/src/tests/layout_edge.rs 0 B 8.9 KB +8.9 KB
crates/engine/src/cmd/layout/publication/mod.rs 121.1 KB 126.2 KB +5.1 KB
docs/user-guide/layouts.md 74.4 KB 75.0 KB +542 B
crates/engine/src/cmd/layout/publication/sheet.rs 7.3 KB 7.8 KB +463 B
crates/engine/src/cmd/layout.rs 49.6 KB 50.0 KB +429 B
crates/assistant/skills/print-layout/SKILL.md 3.9 KB 4.1 KB +152 B
crates/ui-egui/src/ribbon.rs 310.7 KB 310.8 KB +138 B
crates/engine/src/tests.rs 3.65 MB 3.65 MB +51 B
crates/engine/command-surface.txt 25.6 KB 25.6 KB +15 B
crates/engine/src/tests/layout_title.rs 17.4 KB 17.4 KB +8 B
crates/ui-egui/src/publicationwizard/mod.rs 22.4 KB 22.4 KB +2 B
docs/getting-started.md 4.3 KB 4.3 KB +2 B

@jgregoriorincon
jgregoriorincon marked this pull request as draft November 27, 2026 11:21
@github-actions

Copy link
Copy Markdown
Contributor

Code review

Reviewed 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:

  • capitals keeps {map} and other tokens, so the kicker's live-name wrapping still works.
  • paper and kicker are refused on other styles and on figures, and paper goes through opaque_color, which rejects translucent colours.
  • The footer's new boxed check does not change existing output. plain, poster and modular all have a nonzero fill or outline.
  • The edge frame cannot go below 40 mm, because room() returns an error first.
  • The letter-spacing unit (points × 1.33) matches the renderer in textbox.rs.
  • Confidence: high.

Security: None found. The new inputs are a colour and a text, bounded by the existing opaque_color and texts_of. Confidence: high.

Performance: None found. Confidence: high.

Quality:

  • Inline comment posted on crates/engine/src/cmd/layout/publication/mod.rs:558. The kicker's width estimate hard-codes the renderer's point and pixel conversion, which could drift. Confidence: medium.
  • Nit: paper on layout.publication and color on layout.page name the same page colour. The help text cross-references them, so this is minor.
  • Nit: "kicker": "" is refused on other styles, while an empty author or text is silently left out. The rule is defensible, but the two behave differently.
  • Note, not a defect: on a printer with no bleed, the graticule labels at the page edges can be clipped. The guide says so. No notice is needed, since no data is dropped.

AGENTS.md: No rule break found. Checked:

  • The command surface snapshot is updated for paper? and kicker?.
  • No project-saved state is added, so no schema change is needed. Layout.paper and the text fields already exist.
  • The ribbon, wizard, skill and docs list the seventh style.
  • Desktop-only code is not added, so the wasm build is unaffected.
  • The ribbon description uses tl!.

Twins checked:

  • The six existing styles: the ribbon, wizard, skill, docs, command surface and the layout_title loop all list edge.
  • The other Look users (plain, poster, modular, panel, editorial) for the footer boxed change.
  • The figure path, which refuses paper and kicker and warns on edge.
  • The format read routes, overlay tools, add and open commands, and wasm branches are not touched by this diff, so they need no twin change.

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 size

Compared: the whole PR against main (merge base 0235f78 to PR head 7a0efa9).

Measure Value
Files changed 12 (1 added, 11 modified, 0 removed, 0 renamed)
Size before 4.27 MB
Size after 4.28 MB
Total size change +15.7 KB
Path Before After Change
crates/engine/src/tests/layout_edge.rs 0 B 8.9 KB +8.9 KB
crates/engine/src/cmd/layout/publication/mod.rs 121.1 KB 126.2 KB +5.1 KB
docs/user-guide/layouts.md 74.4 KB 75.0 KB +542 B
crates/engine/src/cmd/layout.rs 49.6 KB 50.0 KB +429 B
crates/engine/src/cmd/layout/publication/sheet.rs 7.3 KB 7.7 KB +411 B
crates/assistant/skills/print-layout/SKILL.md 3.9 KB 4.1 KB +152 B
crates/ui-egui/src/ribbon.rs 310.7 KB 310.8 KB +138 B
crates/engine/src/tests.rs 3.65 MB 3.65 MB +51 B
crates/engine/command-surface.txt 25.6 KB 25.6 KB +15 B
crates/engine/src/tests/layout_title.rs 17.4 KB 17.4 KB +8 B
crates/ui-egui/src/publicationwizard/mod.rs 22.4 KB 22.4 KB +2 B
docs/getting-started.md 4.3 KB 4.3 KB +2 B

@github-actions

Copy link
Copy Markdown
Contributor

Code review

I read the diff, the staged metadata and prior threads, and the surrounding code (publication/mod.rs, texts.rs, sheet.rs, render/report.rs, render/layout/textbox.rs, the wizard style.rs). I could not build or run the tests (no shell here), so the findings below come from reading the code.

Bugs

  • None confirmed. The paper and kicker refusals, the figure warning, the {map} token handling, the capitals token preservation and the undo/duplicate paths all read as correct.

Security

  • None found. The new inputs go through texts_of (length-capped) and opaque_color (strict six-digit hex).

Performance

  • None found. The edge branch adds no work that grows with the input beyond the existing text measuring.

Quality

  • Kicker box height on the live path ({map} or a layer statistic) comes from an advance-width estimate (wrap_with with width_mm plus spacing), not the renderer's own wrap. The box may not match the drawn lines. Inline comment posted on crates/engine/src/cmd/layout/publication/mod.rs:568. Confidence: medium that the measures differ, low that it shows. The estimate is probably conservative, so the likely effect is a gap, not an overlap. Nothing tests it.
  • Naming: layout.publication takes "paper" where layout.page takes "color", and the doc cross-references the two. Consider the same key name. Confidence: high that they differ, low that it matters.
  • Test readability: the loop in a_kicker_sits_over_the_title_in_spaced_capitals_of_the_accent builds its parameters through an awkward extra object, and paper_and_kicker_are_refused_with_another_style_and_on_a_figure nests a second loop to set style. Both would read more simply as plain tuples.
  • Test magic number: a_sheet_with_no_header_starts_its_map_at_the_top_margin asserts frame.y <= 15.0, which is 10·k + 5·k on A4. A named expression would say why.
  • Doc width: the comment at crates/ui-egui/src/publicationwizard/style.rs:52 runs past the file's usual line width.

AGENTS.md

  • None found. Checked against the rules:
    • No unwrap, expect or panic in non-test code.
    • command-surface.txt updated for paper and kicker.
    • "edge" reaches the ribbon, the wizard, the command help, the Assistant skill and the docs.
    • Interface strings use tl!.
    • Nothing new is saved, so no schema change is needed.
    • Nothing below apps/ depends on desktop-only code.
  • Earlier concerns: two prior threads already exist. The kicker constants thread (mod.rs:558) is outdated; the code now uses PT_PER_MM, and I left it alone. The sheet accent doc thread is resolved by the author's fix, which I checked, so I left it alone too.

Change size

Compared 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.

Measure Value
Files changed 13 (added 1, modified 12, removed 0, renamed 0)
Size before 4.29 MB
Size after 4.30 MB
Total size change +17.0 KB
File Before After Change
crates/engine/src/tests/layout_edge.rs 0 B 8.8 KB +8.8 KB
crates/engine/src/cmd/layout/publication/mod.rs 121.1 KB 126.3 KB +5.2 KB
crates/ui-egui/src/publicationwizard/style.rs 18.9 KB 20.1 KB +1.2 KB
docs/user-guide/layouts.md 74.7 KB 75.2 KB +0.5 KB
crates/engine/src/cmd/layout.rs 49.6 KB 50.0 KB +0.4 KB
crates/engine/src/cmd/layout/publication/sheet.rs 7.3 KB 7.7 KB +0.4 KB
crates/assistant/skills/print-layout/SKILL.md 3.9 KB 4.1 KB +152 B
crates/ui-egui/src/ribbon.rs 310.7 KB 310.8 KB +138 B
crates/engine/src/tests.rs 3.65 MB 3.65 MB +51 B
crates/engine/command-surface.txt 25.6 KB 25.6 KB +15 B
crates/engine/src/tests/layout_title.rs 17.4 KB 17.4 KB +8 B
crates/ui-egui/src/publicationwizard/mod.rs 22.8 KB 22.8 KB +2 B
docs/getting-started.md 4.3 KB 4.3 KB +2 B

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

📖 Docs preview

Item Value
Preview https://preview.rustgis.app/pr-3107/
Web app https://preview.rustgis.app/pr-3107/app/
Commit 35a6cf7

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 preview label (once per commit).

@jgregoriorincon
jgregoriorincon marked this pull request as ready for review November 27, 2026 12:13
@jgregoriorincon

Copy link
Copy Markdown
Contributor Author

On the last summary: no code change, as the PR is approved. The box of a kicker holding {map} or a statistic is sized from an estimate that adds the letter spacing to the text's advance; nothing has shown a mismatch, though no test compares it with the drawn lines. paper is the name #3104 asks for. The test-readability, magic-number and comment-width points stay as they are.

@github-actions

Copy link
Copy Markdown
Contributor

Code review

Read the full diff, the AGENTS.md copy, the prior threads and the surrounding code (publication mod.rs, texts.rs, textbox.rs, page.rs, the wizard style.rs). I had no shell, so nothing was compiled or run. Everything below is from reading the code.

Bugs: None found. I checked:

  • The kicker's letter-spacing width (added = spacing * 1.33 / PT_PER_MM) against the renderer's wrapped(), which uses WRAP_PX_PER_MM / PT_PER_MM and the same 1.33 factor as svg.rs. They agree, so the kicker box matches what is drawn.
  • capitals() keeps {map} and statistic tokens intact, so the live-kicker branch stores {map}.
  • The edge branch's footer, rule and map-frame arithmetic, which has no overlap. room() errors instead of drawing a negative frame.
  • paper/kicker refusal covers every non-edge style and figures, and null is accepted. White is stored as None, the same as layout.page.
  • opaque_color errors on non-string and translucent values. hostile_params_never_panic covers junk input.

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 MAX_PUBLICATION_TEXT.

Quality:

  • publicationwizard/style.rs:52: the doc comment line is about 115 columns, longer than the surrounding comments. Nit.
  • Low confidence: graticule labels sit in the strips inside the edge-to-edge map frame, so they reach the page's side edges. A printer with no bleed may clip them. The layouts guide discloses this, but the command gives no notice. This is a design limit, not a silent data loss.
  • Already raised and left alone: the default brick-red kicker has weak contrast on a dark paper (accent() ignores the paper). The earlier thread was resolved by changing the doc, not the default. Still open on the code side, and the author may want to revisit it.

AGENTS.md: No breaks found.

  • The Assistant skill, the command help, command-surface.txt, the ribbon's publication_style, the wizard outline and the docs all reach the new style. Every consumer of PUBLICATION_STYLES picks it up.
  • No new saved field is added. Layout.paper already exists, so no schema change is expected. I did not check the schema JSON itself.
  • No cfg(wasm32) branch changed. The file-read and project-open twins are not touched.

Prior reviews: Two threads, both resolved and outdated.

  • The doc-accuracy point was fixed in 7a0efa9.
  • The constants point was fixed in 8b09d4f, which now uses PT_PER_MM, and I confirmed it matches the renderer.
  • I left both alone. The contrast question above is the only part still open on the code side, and I did not post it again.

No inline comments were posted: nothing reaches bug level, and the nits are grouped above.

Change size

Compared with main (merge base da4a833 to PR head 8b09d4f). Sizes are file sizes, not line counts.

Measure Value
Files changed 13 (1 added, 12 modified, 0 removed, 0 renamed)
Size before 4.29 MB
Size after 4.30 MB
Total size change +17.0 KB
Path Before After Change
crates/engine/src/tests/layout_edge.rs 0 B 8.9 KB +8.9 KB
crates/engine/src/cmd/layout/publication/mod.rs 121.1 KB 126.3 KB +5.2 KB
crates/ui-egui/src/publicationwizard/style.rs 18.9 KB 20.1 KB +1.2 KB
docs/user-guide/layouts.md 74.7 KB 75.2 KB +0.5 KB
crates/engine/src/cmd/layout.rs 49.6 KB 50.0 KB +0.4 KB
crates/engine/src/cmd/layout/publication/sheet.rs 7.3 KB 7.7 KB +0.4 KB
crates/assistant/skills/print-layout/SKILL.md 3.9 KB 4.1 KB +0.1 KB
crates/ui-egui/src/ribbon.rs 310.7 KB 310.8 KB +0.1 KB
crates/engine/src/tests.rs 3.65 MB 3.65 MB +51 B
crates/engine/command-surface.txt 25.6 KB 25.6 KB +15 B
crates/engine/src/tests/layout_title.rs 17.4 KB 17.4 KB +8 B
crates/ui-egui/src/publicationwizard/mod.rs 22.8 KB 22.8 KB +2 B
docs/getting-started.md 4.3 KB 4.3 KB +2 B

@github-actions

Copy link
Copy Markdown
Contributor

Code review

I read the diff, the staged AGENTS.md, and the surrounding code (style list, footer, landscape_suits, capitals, broken/texts_of, the wizard outline, every Style:: match and style list). I could not build or run the tests here, so the findings below come from reading the code.

Bugs

None found. I checked the edge geometry (map from x = 0 to page_w, footer rule, room errors when the header is too tall), the paper and kicker refusals on other styles and on figures, the figure path that warns and leaves edge out, and the footer change. The boxed check only drops boxes when a look has neither fill nor outline, and every other look still has one, so their output is unchanged. The layout_title.rs index shift (6 → 7) is correct. Undo and duplicate are covered by tests.

Security

None found. The new parameters go through opaque_color and within/texts_of, which bound them.

Performance

None found. The kicker is capped by MAX_PUBLICATION_TEXT (2000 characters).

Quality

  • {map} kicker is not capitalised (crates/engine/src/cmd/layout/publication/mod.rs:577, confidence about 50%). The token is kept in the map's own case, so the name is drawn as "Piauí" rather than in the spaced capitals the docs promise. Posted inline.
  • Nits, not posted, for the release quality pass: the comment in ui-egui/src/publicationwizard/style.rs ("would run the placement that many times") reads awkwardly, and layout_edge.rs::a_kicker_sits_over_the_title… builds its accent through a side JSON value, which is harder to follow than it needs to be.

AGENTS.md

None found. Checked:

  • No unwrap/expect/panic in non-test code, and no new cfg(wasm32) branches.
  • command-surface.txt matches the new paper? and kicker? keys.
  • The desktop app, CLI, Python, Assistant skill, MCP, ribbon and wizard all reach the new style through the command or its style list.
  • No new saved field, so no schema change is needed. Layout.paper already exists.

Twins: the "family" here is the styles inside layout.publication, not a format read. I checked every style match and list (cards(), landscape_suits, PUBLICATION_STYLES, publication_style, the wizard outline, the style-iterating tests and hostile-params test). paper matches layout.page's handling of white as None.

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 size

Compared with the base branch: the whole PR, main (merge base b49bbae) to PR head 35a6cf7.

Measure Value
Files changed 13 (1 added, 12 modified, 0 removed, 0 renamed)
Size before 4.29 MB
Size after 4.31 MB
Total size change +17.0 KB
File Before After Change
crates/engine/src/tests/layout_edge.rs 0 B 8.9 KB +8.9 KB
crates/engine/src/cmd/layout/publication/mod.rs 122.7 KB 127.9 KB +5.2 KB
crates/ui-egui/src/publicationwizard/style.rs 18.9 KB 20.1 KB +1.2 KB
docs/user-guide/layouts.md 75.6 KB 76.1 KB +542 B
crates/engine/src/cmd/layout.rs 50.7 KB 51.1 KB +429 B
crates/engine/src/cmd/layout/publication/sheet.rs 7.3 KB 7.7 KB +411 B
crates/assistant/skills/print-layout/SKILL.md 4.2 KB 4.3 KB +152 B
crates/ui-egui/src/ribbon.rs 310.6 KB 310.8 KB +138 B
crates/engine/src/tests.rs 3.65 MB 3.65 MB +51 B
crates/engine/command-surface.txt 25.6 KB 25.6 KB +15 B
crates/engine/src/tests/layout_title.rs 17.4 KB 17.4 KB +8 B
crates/ui-egui/src/publicationwizard/mod.rs 22.8 KB 22.8 KB +2 B
docs/getting-started.md 4.3 KB 4.3 KB +2 B

@jgregoriorincon
jgregoriorincon added this pull request to the merge queue Nov 27, 2026
Merged via the queue into opengeos:main with commit 128f6c1 Nov 27, 2026
30 checks passed
@jgregoriorincon
jgregoriorincon deleted the feat/3104-edge-style branch November 27, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant