Skip to content

7103 - Shorten and order generated court reports - #7107

Open
Guflly wants to merge 1 commit into
rubyforgood:mainfrom
Guflly:7103-fix-court-report
Open

7103 - Shorten and order generated court reports#7107
Guflly wants to merge 1 commit into
rubyforgood:mainfrom
Guflly:7103-fix-court-report

Conversation

@Guflly

@Guflly Guflly commented Aug 8, 2026

Copy link
Copy Markdown

What github issue is this PR for, if any?

Resolves #7103

What changed, and why?

Court reports now omit unanswered sections and volunteer guidance by default. Both report dialogs include an opt-in checkbox for empty sections. Topic sections, org settings topics, and interviewed-person rows now use stable alphabetical grouping and ordering.

How is this tested? (please write rspec and jest tests!)

  • bundle exec rspec spec/models/case_court_report_context_spec.rb spec/services/case_contacts_contact_dates_spec.rb spec/models/case_court_report_spec.rb
  • Focused request specs for the report option and settings order
  • System expectations for both unchecked dialog checkboxes
  • Real DOCX rendering with the default, Montgomery, and Prince George templates
  • StandardRB and ERB Lint

Screenshots please :)

Not included; the checkbox follows the existing dialog field styling.

Feelings gif (optional)

@github-actions github-actions Bot added 🧪 Tests Tests ruby Touches Ruby code erb Touches ERB templates labels Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

erb Touches ERB templates ruby Touches Ruby code 🧪 Tests Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: generated court report is bloated by unanswered topic sections (and its guidance text), and interviewee rows have no stable order

1 participant