Skip to content

Report Builder: band keep-together toggle in the builder UI #599

Description

@nielsdrost7

Parent: #130 (Report Builder) · Related: #95 · Hanging item from #608

Story
As a company admin, I want to mark a band as "keep together" from the builder, so that band never splits across a page boundary in the PDF (e.g. the totals block).

Current state (as of PR #608)
The renderer already honors it: ReportRenderer::keepsTogether() wraps a band in page-break-inside: avoid when manifest.band_options.<band>.keep_together is true (covered by ReportRendererTest::it_marks_keep_together_bands_with_page_break_css). But nothing writes that flag — today it only works by hand-editing manifest.json. This is the remaining builder-side portion of the #95 page-break work (the manual PageBreak/Spacer bricks already shipped).

Acceptance criteria

  • Each band in the builder page has a "keep together on one page" toggle (per-band, stored in manifest.band_options)
  • Saving the builder persists the flag through ReportTemplateStorage::save() and it survives clone/rename
  • Toggled bands render with page-break-inside: avoid; untoggled bands are unchanged
  • PHPUnit: builder page test toggling the flag and asserting the persisted manifest + rendered CSS

Activity

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

    refinedRefined with SMART plan / test suggestions

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions