Skip to content

WIP: Fix Prince George court report Contact Dates column width (#6730)#6754

Draft
costajohnt wants to merge 1 commit intorubyforgood:mainfrom
costajohnt:fix/6730-prince-george-column-widths
Draft

WIP: Fix Prince George court report Contact Dates column width (#6730)#6754
costajohnt wants to merge 1 commit intorubyforgood:mainfrom
costajohnt:fix/6730-prince-george-column-widths

Conversation

@costajohnt
Copy link
Contributor

What github issue is this PR for, if any?

Resolves #6730

What changed, and why?

The contacts table in the Prince George report template had three equal-width columns (~2.2" each), making the Contact Dates column too narrow for entries with multiple dates. Stakeholders reported that dates were being cut off and the formatting was unusable, requiring manual workarounds (copying content out and reformatting with tabs).

Adjusted the column widths in the .docx template XML:

Column Before After
Name 2.28" (3277 twips) 1.33" (1920 twips)
Title/Relationship 2.16" (3107 twips) 1.34" (1926 twips)
Contact Dates 2.24" (3222 twips) 4.00" (5760 twips)

The total table width (9606 twips / ~6.67") is preserved. Only the Prince George template is modified — other county templates are unchanged.

How is this tested?

Added spec/documents/templates/prince_george_report_template_spec.rb which parses the .docx template XML and verifies:

  • The Contact Dates column is wider than the Name and Title columns
  • The Contact Dates column is at least 4 inches (5760 twips)
  • The total table width is preserved at 9606 twips

Screenshots please :)

This is a .docx template change — the visual result can be seen when generating a Prince George court report. The template's contacts table now allocates ~60% of width to the Contact Dates column instead of the previous ~33%.

@github-actions github-actions bot added ruby Pull requests that update Ruby code Tests! 🎉💖👏 labels Mar 9, 2026
Resolves rubyforgood#6730

The contacts table in the Prince George report template had three
equal-width columns (~2.2" each), making the Contact Dates column
too narrow. Adjusted to: Name 1.33" | Title 1.34" | Dates 4.00".
Total table width (9606 twips) preserved.

Added spec to verify column widths and prevent regressions.
@costajohnt costajohnt force-pushed the fix/6730-prince-george-column-widths branch from 34c69e3 to c44406a Compare March 9, 2026 02:26
@costajohnt costajohnt changed the title fix: widen Contact Dates column in Prince George court report template WIP: Fix Prince George court report Contact Dates column width (#6730) Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ruby Pull requests that update Ruby code Tests! 🎉💖👏

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Prince George - dates in document contact section ?

2 participants