feat: public listing detail page supports external listings#6525
Open
mcgarrye wants to merge 1 commit into
Open
feat: public listing detail page supports external listings#6525mcgarrye wants to merge 1 commit into
mcgarrye wants to merge 1 commit into
Conversation
✅ Deploy Preview for bloom-angelopolis ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for partners-bloom-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for bloom-exygy-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
ludtkemorgan
left a comment
Collaborator
There was a problem hiding this comment.
This looks good after a padding is added to the new disclaimer
| "listings.apply.applicationSeason": "Residents should apply in", | ||
| "listings.apply.applicationWillBeAvailableOn": "Application will be available for download and pick up on %{openDate}", | ||
| "listings.apply.applyOnline": "Apply online", | ||
| "listings.apply.applyOnlineMessage": "* This button brings you to an external website where you can create an account and apply for this listing.", |
Collaborator
There was a problem hiding this comment.
I know this is existing language so we should probably keep it. However, accounts aren't required in San Jose so this is kind of misleading.
Comment on lines
+111
to
115
| <div className="text-gray-800 text-sm"> | ||
| {props.isExternal && | ||
| (props.strings?.applyOnlineMessage ?? t("listings.apply.applyOnlineMessage"))} | ||
| </div> | ||
| </div> |
Collaborator
There was a problem hiding this comment.
nit: It's ok to have this here since you already implemented it. But we don't support the non-seeds view anymore so it would have been ok to not implement this
| <>{onlineApplicationUrl ? ApplyOnlineButton : DownloadApplicationButton}</> | ||
| <> | ||
| {onlineApplicationUrl ? ApplyOnlineButton : DownloadApplicationButton} | ||
| {listing.externalURL && t("listings.apply.applyOnlineMessage")} |
Collaborator
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

This PR addresses #(6367)
Description
For external listings ingested by the system, they need to be displayed on the listing details page. To do this, the system fetches the live data from the external system. If the listing has a common app, it will reroute the user to the external site to apply.
How Can This Be Tested/Reviewed?
With
Bloomington: Runyarn setupWith
Bridge Bay: Runyarn db:setup:staging-regionSign in as an admin through the partners site or the api
Through the api, call the /externalListings/ingest endpoint with the relevant data (found below)
On the public site, navigate to the listings browse page
Click on a internal listing, confirm listing detail page loads as expected. Click Apply now and confirm start page loads
Return to the listings browse page
Click on a external listing, confirm listing detail page loads as expected. Click Apply now and confirm you are redirected and start page loads
Call the ingest endpoint with the following payload, using the desired jurisdiction id to associate the listings with:
{ "externalURL": "https://hba-0-3-alameda-staging.herokuapp.com/", "jurisdictionId": "{id}", "targetName": "San Jose" }Author Checklist:
yarn generate:clientand/or created a migration when requiredReview Process: