Skip to content
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

feat: [#188079116] Show the License Status Check in Renewal Events #8551

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cbrunefearless
Copy link
Contributor

@cbrunefearless cbrunefearless commented Sep 4, 2024

Description

User Story
As a Business.NJ.gov user, that has validated my license, I want to also see my status for my renewal calendar events

AC
Given my license status has been checked
when viewing my calendar renewal event
then the new design with my license status and renewal instructions are rendered on the page

Dev Note: At the very top on the page, there should be a field that contains the following default text, it can be overridden by content - "You can renew your license 60 days before it expires and up to 30 days after expiration. If you fail to renew your license at this point, your license will be suspended and you won't be able to provide your licensed services."

Also, pull in Jaime, we need to clean up the CMS Preview. - Done

Ticket

This pull request resolves #188079116.

Approach

Steps to Test

Notes

Code author checklist

  • I have rebased this branch from the latest main branch
  • I have performed a self-review of my code
  • I have created and/or updated relevant documentation on the engineering documentation website
  • I have not used any relative imports
  • I have pruned any instances of unused code
  • I have not added any markdown to labels, titles and button text in config
  • If I added/updated any values in userData (including profileData, formationData etc), then I added a new migration file
  • I have checked for and removed instances of unused config from CMS
  • If I added any new collections to the CMS config, then I updated the search tool and cmsCollections.ts (see CMS Additions in Engineering Reference/FAQ on the engineering documentation site)
  • I have updated relevant .env values in both .env-template and in Bitwarden

@cbrunefearless cbrunefearless reopened this Sep 5, 2024
@cbrunefearless cbrunefearless changed the title feat: [#188079116] Show the License Status Check in Renewal Events feat: [#188079116] Show the License Status Check in Renewal Events - DO NOT MERGE UNTIL JP AND FARAZ REVIEW Sep 5, 2024
urlSlug: health-care-services-firm-renewal
renewalEventDisplayName: Health Care Service Firm Renewal Deadline
expirationEventDisplayName: Health Care Service Firm Expiration
filename: health-care-services-firm-renewal
Copy link
Contributor

@FarazA22 FarazA22 Sep 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boulder: the goal of this ticket is to add the license status component to the [licenseUrlSlug] page. This page renders the content living within content/src/licenses. The user is able to access the calendar license page by clicking the renewal/expiration link on the filings calendar. Alot of the existing functionality you added can be removed because it's already existing (i.e. mgmt/search, loading files, etc)

Copy link
Contributor

@FarazA22 FarazA22 Sep 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One approach is to add the existing component to the [licenseUrlSlug] page and create tests to validate the data renders. All the other logic is not necessary because it's working. You may want to refactor the content/src/licenses to something like content/src/licenseCalendarEvents so it's more clear.

@jphechter jphechter changed the title feat: [#188079116] Show the License Status Check in Renewal Events - DO NOT MERGE UNTIL JP AND FARAZ REVIEW feat: [#188079116] Show the License Status Check in Renewal Events Sep 9, 2024
@jphechter
Copy link
Contributor

Appreciate the effort on this ahead of your trip. I think in working quickly we might have missed some of the overall goals of the ticket.

);

expect(applicationCheckListItems).toBeInTheDocument();
fireEvent.click(applicationCheckListItems);
Copy link
Contributor

@alexander-littleton alexander-littleton Sep 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[sand] Hey just a heads up, we should probably be using userEvent here since it more realistically simulates user interactions per the documentation. I believe fireEvent is recommended to be used as a last resort when an event is not covered by userEvent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants