-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve visual design of "Next Steps" page in PDF download #18315
Merged
opticbob
merged 10 commits into
master
from
88986_improve_2122a_next_steps_pdf_page_visuals
Sep 10, 2024
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
006051a
[WIP] Converting next steps to use same fonts as web page
opticbob a062a41
Abstract out all font, style, and size changes then move down
opticbob c35a487
Copy PDF fonts into the representation_management module
opticbob 3e430fd
Font formatting and copy updates
opticbob d58ae69
Replace fixture files to account for recent changes
opticbob aaf8224
Remove debugging output
opticbob 750275b
Merge branch 'master' into 88986_improve_2122a_next_steps_pdf_page_vi…
opticbob 2c4a528
Refactor text_with_spacing method to fix linting error
opticbob 2ac8883
Document new methods
opticbob 7174cf6
Merge branch 'master' into 88986_improve_2122a_next_steps_pdf_page_vi…
opticbob File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+64.1 KB
modules/representation_management/lib/fonts/sourcesanspro-regular-webfont.ttf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,18 +20,20 @@ def next_steps_contact(pdf, data) | |
#{data.representative_middle_initial} | ||
#{data.representative_last_name} | ||
HEREDOC | ||
pdf.text(rep_name) | ||
pdf.text(data.representative_address_line1) | ||
pdf.text(data.representative_address_line2) | ||
city_state_zip = <<~HEREDOC.squish | ||
#{data.representative_city}, | ||
#{data.representative_state_code} | ||
#{data.representative_zip_code} | ||
HEREDOC | ||
pdf.text(city_state_zip) | ||
pdf.move_down(5) | ||
pdf.text(data.representative_phone) | ||
pdf.text(data.representative_email_address) | ||
add_text_with_spacing(pdf, rep_name, style: :bold, move_down: 8) | ||
pdf.font('soursesanspro') do | ||
pdf.text(data.representative_address_line1) | ||
pdf.text(data.representative_address_line2) | ||
city_state_zip = <<~HEREDOC.squish | ||
#{data.representative_city}, | ||
#{data.representative_state_code} | ||
#{data.representative_zip_code} | ||
HEREDOC | ||
pdf.text(city_state_zip) | ||
pdf.move_down(5) | ||
pdf.text(format_phone_number(data.representative_phone)) | ||
pdf.text(data.representative_email_address) | ||
end | ||
Comment on lines
+24
to
+36
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't use the new |
||
end | ||
|
||
def template_path | ||
|
Binary file modified
BIN
+18 KB
(100%)
...es/representation_management/spec/fixtures/21-22A/v0/2122a_conditions_and_limitations.pdf
Binary file not shown.
Binary file modified
BIN
+18 KB
(100%)
...ation_management/spec/fixtures/21-22A/v0/2122a_conditions_and_limitations_no_claimant.pdf
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Calls 'rails.root' 3 times - DuplicateMethodCall