Skip to content

Conversation

@ludtkemorgan
Copy link
Collaborator

@ludtkemorgan ludtkemorgan commented Dec 11, 2025

This PR addresses #(insert-number-here)

  • Addresses the issue in full
  • Addresses only certain aspects of the issue

Description

During the development of the non-regulated listing functionality, a number of edge cases were identified related to users switching their selection between "regulated" and "non-regulated" after partially completing the form. This is particularly problematic for unit data and could result in corrupted data, leading to listings that are a hybrid of regulated and non-regulated states.

To prevent this problem we can make the listing type selection earlier in the flow utilizing the new jurisdiction selection modal.

image

If the user only has access to one jurisdiction and that jurisdiction has enableNonRegulatedListings turned on they will only see the Listing Type question
image

How Can This Be Tested/Reviewed?

Multiple jurisdictions

  1. Seed the staging data
  2. Log into partners as an admin and click "add listing" on the listings page
  3. The select jurisdiction modal should appear without the "What kind of listing is this?" showing immediately
  4. Select any jurisdiction besides "Lakeview" and the "What kind of listing is this?" question shouldn't show
  5. Select "Lakeview" and the "What kind of listing is this?" question should show
  6. Select "Non-regulated" and "Get started"
  7. Non-regulated should be shown and you can't change it

One jurisdiction

With the default seeded data this can be hard to test without making some changes since jurisdictional admin is disabled for Lakeview. You can do one of the following steps:

  1. Enable jurisdictional admin for lakeview and create that a jurisdictional admin for that jurisdiction
  2. Turn on enableNonRegulatedListings for a different jurisdiction (Note they will also need to have unit groups enabled)

Once the above is done you should be able to go through the "add listing" flow and just see the one question on the modal

additional testing

The following should also be tested

  • Create a "Regulated" listing
  • Open already created listings and correct listing type should be selected (or not shown if enableNonRegulatedListings is turned off)

Author Checklist:

  • Added QA notes to the issue with applicable URLs
  • Reviewed in a desktop view
  • Reviewed in a mobile view
  • Reviewed considering accessibility
  • Added tests covering the changes
  • Made corresponding changes to the documentation
  • Ran yarn generate:client and/or created a migration when required

Review Process:

  • Read and understand the issue
  • Ensure the author has added QA notes
  • Review the code itself from a style point of view
  • Pull the changes down locally and test that the acceptance criteria is met
  • Either (1) explicitly ask a clarifying question, (2) request changes, or (3) approve the PR, even if there are very small remaining changes, if you don't need to re-review after the updates

@netlify
Copy link

netlify bot commented Dec 11, 2025

Deploy Preview for bloom-lakeview ready!

Name Link
🔨 Latest commit f2d84aa
🔍 Latest deploy log https://app.netlify.com/projects/bloom-lakeview/deploys/69403df3d23bd30008a84017
😎 Deploy Preview https://deploy-preview-5690--bloom-lakeview.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 project configuration.

@netlify
Copy link

netlify bot commented Dec 11, 2025

Deploy Preview for partners-bloom-dev ready!

Name Link
🔨 Latest commit 0ad54c1
🔍 Latest deploy log https://app.netlify.com/projects/partners-bloom-dev/deploys/694172d9afa60f00080a3b9a
😎 Deploy Preview https://deploy-preview-5690--partners-bloom-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 project configuration.

@netlify
Copy link

netlify bot commented Dec 11, 2025

Deploy Preview for bloom-flagly canceled.

Name Link
🔨 Latest commit 0ad54c1
🔍 Latest deploy log https://app.netlify.com/projects/bloom-flagly/deploys/694172d99f0ee40008fbefc7

@netlify
Copy link

netlify bot commented Dec 11, 2025

Deploy Preview for bloom-angelopolis canceled.

Name Link
🔨 Latest commit 0ad54c1
🔍 Latest deploy log https://app.netlify.com/projects/bloom-angelopolis/deploys/694172d99fdb3d0008b372e1

@netlify
Copy link

netlify bot commented Dec 11, 2025

Deploy Preview for bloom-public-seeds ready!

Name Link
🔨 Latest commit f2d84aa
🔍 Latest deploy log https://app.netlify.com/projects/bloom-public-seeds/deploys/69403df3d7947500089614ff
😎 Deploy Preview https://deploy-preview-5690--bloom-public-seeds.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 project configuration.

@netlify
Copy link

netlify bot commented Dec 11, 2025

Deploy Preview for bloom-exygy-dev ready!

Name Link
🔨 Latest commit f2d84aa
🔍 Latest deploy log https://app.netlify.com/projects/bloom-exygy-dev/deploys/69403df35049ab0008dc0d99
😎 Deploy Preview https://deploy-preview-5690--bloom-exygy-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 project configuration.

@ludtkemorgan ludtkemorgan force-pushed the non-regulated-modal branch 2 times, most recently from 320128f to f2d84aa Compare December 15, 2025 16:57
@ludtkemorgan ludtkemorgan marked this pull request as ready for review December 15, 2025 18:38
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.

Nit non-blocking (because smaller screen size on partners) we could add some padding between the options when it switches to vertical
Image

Could we have the order in which the questions appear be the same between the detail and edit pages? Imagining on the detail page we would move up the listing type question
Image
Image

@netlify
Copy link

netlify bot commented Jan 6, 2026

Deploy Preview for bloom-flagly canceled.

Name Link
🔨 Latest commit 23892e9
🔍 Latest deploy log https://app.netlify.com/projects/bloom-flagly/deploys/695d5adfa28c38000800550b

@netlify
Copy link

netlify bot commented Jan 6, 2026

Deploy Preview for bloom-angelopolis canceled.

Name Link
🔨 Latest commit 23892e9
🔍 Latest deploy log https://app.netlify.com/projects/bloom-angelopolis/deploys/695d5adf791c8000084351c5

@netlify
Copy link

netlify bot commented Jan 6, 2026

Deploy Preview for partners-bloom-dev ready!

Name Link
🔨 Latest commit 23892e9
🔍 Latest deploy log https://app.netlify.com/projects/partners-bloom-dev/deploys/695d5adfe25a300008803140
😎 Deploy Preview https://deploy-preview-5690--partners-bloom-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 project configuration.

@ludtkemorgan ludtkemorgan added the 1 review needed Requires 1 more review before ready to merge label Jan 6, 2026
@ludtkemorgan
Copy link
Collaborator Author

@emilyjablonski Thanks for the review. This is ready to be re-looked at

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.

This lgtm! The last piece is I think we just introduced some unnecessary padding underneath the dropdown.
PR:
Image
Prod:
Image

@emilyjablonski emilyjablonski removed the 1 review needed Requires 1 more review before ready to merge label Jan 6, 2026
@ludtkemorgan ludtkemorgan merged commit a9114d7 into main Jan 6, 2026
35 of 36 checks passed
@ludtkemorgan ludtkemorgan deleted the non-regulated-modal branch January 6, 2026 19:25
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.

3 participants