generated from cfpb/open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[View Institution Profile] Language updates (#1024)
Closes #1013 ## Completed Changes - Updated the fallback values for most fields to "Not applicable" - Ensured `Type of Financial Institution`, `Federal Taxpayer Identification Number (TIN)` show as "Not provided" when missing - Updated language for `LEI Status` from "Active/Inactive" to "Issued/Lapsed" - Display alert for `Type of Financial Institution`, `Federal Taxpayer Identification Number (TIN)`, or `LEI Status` when missing/lapsed. ## How to test this PR ### Language updates ``` const testBlankValues = { lei: 'FI_LEI', name: 'FI_INSTITUTION_NAME', hq_address_street_1: 'HQ_ADDRESS_STREET_1', hq_address_city: 'HQ_ADDRESS_CITY', hq_address_state: 'HQ_ADDRESS_STATE', hq_address_state_code: 'HQ_ADDRESS_STATE_CODE', hq_address_zip: 'HQ_ADDRESS_ZIP', }; ``` 1. [ViewInstitutionProfile > index.tsx] Replace the `data` param highlighted in the screenshot below with the following. <img width="846" alt="Screenshot 2024-10-22 at 2 03 45 PM" src="https://github.com/user-attachments/assets/af4044c6-cc31-4799-870a-cc7fd5253315"> 2. Visit the Institution profile page - ex. http://localhost:8899/institution/123456789TESTBANK123 3. Confirm fields display the correct fallback value (blank or "Not applicable"). ## Screenshots ### Language updates - Fields marked as `Always populated` in the reference table are populated with their fieldname (i.e FI_INSTITUTION_NAME) - Field that were previously "blank" are displayed as "Not populated" (TIN, Types of Financial Institution). - Others are populated with the appropriate fallback value. <br/> ![screencapture-localhost-8899-institution-123456789TESTBANK123-2024-11-01-10_20_28](https://github.com/user-attachments/assets/2f979f9d-ebef-46b5-a5d7-0cee72e60cec)
- Loading branch information
Showing
8 changed files
with
96 additions
and
29 deletions.
There are no files selected for viewing
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
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
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
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