Skip to content

Add header/footer block support - #12

Merged
eNeRGy164 merged 3 commits into
mainfrom
header-footer
Jan 18, 2026
Merged

eNeRGy164 merged 3 commits into
mainfrom
header-footer

Conversation

@eNeRGy164

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings January 18, 2026 19:40
… value objects for consistent formatting in extension methods
@coveralls

coveralls commented Jan 18, 2026 •

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 21117685909

Details

  • 68 of 68 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 21116767723: 0.0%
Covered Lines: 1769
Relevant Lines: 1769

💛 - Coveralls

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds header and footer block support with alignment options, pragma directive support, mainframe titles for sequence diagrams, and introduces an Alignment value object to standardize horizontal alignment across PlantUML commands.

Changes:

  • Added block-style header/footer commands (HeaderStart, FooterStart, EndHeader, EndFooter) and alignment support to existing header/footer methods
  • Added Pragma extension methods for pragma directives with string and boolean values
  • Added Mainframe method for sequence diagram titles and Alignment value object for standardizing horizontal alignment

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
tests/PlantUml.Builder.Tests/StringBuilderExtensions/PragmaTests.cs Adds comprehensive tests for pragma directives including validation
tests/PlantUml.Builder.Tests/StringBuilderExtensions/HeaderTests.cs Adds tests for newline escaping, alignment options, and header block methods
tests/PlantUml.Builder.Tests/StringBuilderExtensions/FooterTests.cs Adds tests for newline escaping, alignment options, and footer block methods
tests/PlantUml.Builder.Tests/SequenceDiagrams/StringBuilderExtensions/MainframeTests.cs Adds tests for mainframe titles with validation
tests/PlantUml.Builder.Tests/AlignmentTests.cs Tests Alignment value object construction and normalization
tests/PlantUml.Builder.Tests/Alignment.DefaultsTests.cs Tests static Alignment properties (Left, Center, Right)
tests/PlantUml.Builder.Examples/SequenceDiagramExampleTests.cs Adds mainframe example matching PlantUML documentation
src/PlantUml.Builder/StringBuilderExtensions/Pragma.cs Implements pragma directive rendering with string and boolean overloads
src/PlantUml.Builder/StringBuilderExtensions/Header.cs Adds alignment parameter, newline escaping, and block-style header methods
src/PlantUml.Builder/StringBuilderExtensions/Footer.cs Adds alignment parameter, newline escaping, and block-style footer methods
src/PlantUml.Builder/SequenceDiagrams/StringBuilderExtensions/Mainframe.cs Implements mainframe title rendering for sequence diagrams
src/PlantUml.Builder/Constant.cs Adds constants for Exclamation, Center, Mainframe, and Pragma
src/PlantUml.Builder/Alignment.cs New value object for normalizing horizontal alignment values
docs/commands.md Updates command documentation to reflect new implementations
docs/arc42/10_quality_requirements.md Adds documentation sample fidelity requirement
docs/arc42/09_architecture_decisions.md Documents centralized token management and value object patterns
docs/arc42/08_crosscutting_concepts.md Adds value object guidance and example test documentation
docs/arc42/04_solution_strategy.md Adds two-tier testing strategy documentation
AGENTS.md New file documenting repository structure and contribution guidelines
Comments suppressed due to low confidence (1)

docs/arc42/08_crosscutting_concepts.md:50

  • Grammar issue: "exact PlantUML output for method" should be "exact PlantUML output for the method" or "exact PlantUML output for each method".
Use the existing expectation helpers to assert the exact PlantUML output for method and cover representative input combinations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/commands.md Resolved
Comment thread src/PlantUml.Builder/Alignment.cs Resolved
Comment thread src/PlantUml.Builder/Constant.cs Resolved
@eNeRGy164
eNeRGy164 merged commit 5a03e3d into main Jan 18, 2026
1 check passed
@eNeRGy164
eNeRGy164 deleted the header-footer branch January 18, 2026 19:57
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.

3 participants