Skip to content

[Bug]: project.openText steps don't require layout-legend-counts or layout-legend-subtitle #3598

Done

Description

@jgregoriorincon

command_uses_legend_counts and command_uses_legend_subtitle (crates/engine/src/project_capabilities.rs) have no "project.openText" arm, unlike command_uses_legend_one_row and command_uses_legend_patch_size. A step that opens a project text with show_counts or a legend subtitle requires neither capability, so an older release opens it and drops those fields without refusing.

Fix: add the arm with a text_… reader like text_lays_a_legend_in_one_row, plus a test per capability.

Activity

  1. jgregoriorincon commented on Dec 2, 2026

    @jgregoriorincon
    ContributorAuthor

    I'm taking this one.

  2. jgregoriorincon commented on Dec 2, 2026

    @jgregoriorincon
    ContributorAuthor

    Fixed by #3608 (e1b5334): opening_a_project_from_its_text_requires_what_it_requires covers the layout_legend_counts and layout_legend_subtitle fixtures through project.openText and project.fromTemplate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions