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

1337/homepage coming soon #1370

Merged
merged 27 commits into from
Jul 19, 2022
Merged

1337/homepage coming soon #1370

merged 27 commits into from
Jul 19, 2022

Conversation

ColinBuyck
Copy link
Collaborator

@ColinBuyck ColinBuyck commented Jul 4, 2022

Issue

Closes #1337

Description

This PR adds the 'Coming Soon' section to Detroit's public homepage. This section is designed to show three listings that are marked as coming soon and having the closest opening date appear first. It also includes a 'See All Coming Soon' button that takes the user to the filtered page. This button is visible even when there are 3 or less listings marked as Coming Soon to encourage the user to go to the listings page and potentially explore other filters.

Update: This PR also refactors the Regions section to no longer use the Horizontal Scroll component and rather follow a similar pattern that the Coming Soon section does. NOTE: in order to have the region images scale dynamically while remaining the same relative size, I used the aspect-ratio which is a newer css property. From my testing and their documentation, it is supported on every browser expect for Internet Explorer. On the off chance that a user has an outdated browser that doesn't support this property, the only difference is that the region images would be slightly taller overall and could show gently different heights in certain mid-sized screen sizes. These differences would be difficult to notice and the homepage remains presentable either way.

How Can This Be Tested/Reviewed?

This can be tested and reviewed by going to the Detroit Public homepage viewing the section in different screen dimensions. Then click the See All Coming Soon button and verify that you land on the listings page with the Coming Soon filter set to true. Additionally, go the partner's side and vary the amount of public listings marked as Coming Soon and their publishing dates to see the affect on the home page.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have reviewed the changes in a desktop view
  • I have reviewed the changes in a mobile view
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have assigned reviewers
  • I have run yarn generate:client and/or created a migration if I made backend changes that require them
  • I have exported any new pieces added to ui-components
  • My commit message(s) is/are polished, and any breaking changes are indicated in the message and are well-described
  • Commits made across packages purposefully have the same commit message/version change, else are separated into different commits

Reviewer Notes:

Steps to review a PR:

  • Read and understand the issue
  • Review the code itself from a style point of view
  • Pull the changes down locally and test that the acceptance criteria is met
  • Also review the acceptance criteria on the Netlify deploy preview (noting that these do not yet include any backend changes made in the PR)
  • Either explicitly ask a clarifying question, request changes, or approve the PR if there are small remaining changes but the PR is otherwise good to go

On Merge:

If you have one commit and message, squash. If you need each message to be applied, rebase and merge.

@netlify
Copy link

netlify bot commented Jul 4, 2022

Deploy Preview for detroit-public-dev ready!

Name Link
🔨 Latest commit 05b3041
🔍 Latest deploy log https://app.netlify.com/sites/detroit-public-dev/deploys/62cf40faa39d010009448a22
😎 Deploy Preview https://deploy-preview-1370--detroit-public-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jul 4, 2022

Deploy Preview for detroit-storybook-dev ready!

Name Link
🔨 Latest commit 05b3041
🔍 Latest deploy log https://app.netlify.com/sites/detroit-storybook-dev/deploys/62cf40fa79c2c40009754d82
😎 Deploy Preview https://deploy-preview-1370--detroit-storybook-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jul 4, 2022

Deploy Preview for detroit-partners-dev ready!

Name Link
🔨 Latest commit 05b3041
🔍 Latest deploy log https://app.netlify.com/sites/detroit-partners-dev/deploys/62cf40faf4437500076ada76
😎 Deploy Preview https://deploy-preview-1370--detroit-partners-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@emilyjablonski
Copy link
Collaborator

Colin & I paired, and the next step is to reach out to Jesse for some unresolved questions about some pieces of the UX

Copy link
Collaborator

@emilyjablonski emilyjablonski left a comment

Choose a reason for hiding this comment

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

Screen Shot 2022-07-11 at 3 42 27 PM
Looking great! One small visual comment from Jesse's thread is a little bit more padding between the regions sections on mobile to differentiate them and then LGTM!

))}
</HorizontalScrollSection>
{comingSoonListings?.items?.length > 0 && (
<div className={styles["section-container"]}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

love the shared class!

@@ -75,12 +74,23 @@ export default function Home({ latestListings }) {
href={`/listings/filtered?page=1${encodeToFrontendFilterString({
region: props.region[1],
})}`}
style={{ backgroundImage: `url(${regionImageUrls.get(props.region[1])})` }}
// style={{ backgroundImage: `url(${regionImageUrls.get(props.region[1])})` }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

🧹

Copy link
Collaborator

@emilyjablonski emilyjablonski left a comment

Choose a reason for hiding this comment

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

LGTM! A great UX improvement for the homepage 👋 🪗

@seanmalbert seanmalbert merged commit 08ebefb into dev Jul 19, 2022
@seanmalbert seanmalbert deleted the 1337/homepage-coming-soon branch July 19, 2022 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Detroit - Add Coming Soon to Homepage
4 participants