hackforla / hackforla/tdm-calculator

Bug: Add missing fields in the printed PDF

Open
#3,336 0 comments 0 reactions 1 assignee Claimed by @eburdekin View on GitHub
bug deck: staging level: easy p-feature: PDF print/download priority: MUST HAVE role: front-end size: 1pt
Dominant language
JavaScript
Stars
68
Forks
47
Avg merge
3d 9h
Merged PRs (30d)
25

Description

### Overview
The Address and AIN number fields don't show up on the printed PDF if they are left blank on Page 1 while creating project.

### Details
We need to add "ADDRESS" (mapping to Address in Page 1) and "PARCEL # (AIN)" (mapping to AIN/APN (Assessor’s Identification Number) in Page 1) fields to the printed PDF even when these fields are not populated through Calculator Page 1 to ensure consistency with PDFs generated when the concerned fields are populated.

#### Steps to Reproduce
- Go to "Create Project" tab https://tdm-dev.azurewebsites.net/calculation/1/0
- add the name
```
test project 3336
```
- do not add any other details to page 1
- go to page 2
- add `100` to the "Condominium Units" field
- add `100` to the "..... Required Number of Parking Spaces" field
- go to Page 5
- Click the "ACTION" button
- Choose "Print Summary"
- See that the fields are missing for "ADDRESS" and "PARCEL # (AIN)"

Please note: its looks fine on page 5, problem can only be see if you print via the Print Summary, which makes the PDF.

#### Actual Behavior

When Address and AIN fields are not populated on page 1

Image

When Address and AIN fields are populated on page 1

Image

#### Expected Behavior

- All fields should show up on PDF even if they don't have any content in them

Image

### Action Items
- [x] Fix bug.
- [ ] Review with development lead.
- [ ] Review with product, development, and research teams. Update if needed based on feedback.
- [ ] Once finalized, add a slide to the staging deck (see resources)
- [ ] Get Stakeholder sign-off via the stakeholder meeting slide deck.

### Resources/Instructions

#### Staging and Release decks
- [Staging Deck](https://docs.google.com/presentation/d/1crZ3IxqA4hAu3qzD7ns93Ieuqjwh6wyEtuX_46cP-fg/)
- [Staging slide, 3336](https://docs.google.com/presentation/d/1crZ3IxqA4hAu3qzD7ns93Ieuqjwh6wyEtuX_46cP-fg/edit?slide=id.g3f2afe8206d_0_101#slide=id.g3f2afe8206d_0_101)
- Release Deck
- [2025-MM-DD Release deck, slide ISSUE NUMBER]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.