cisagov / crossfeed

External monitoring for organization assets
https://docs.crossfeed.cyber.dhs.gov
Creative Commons Zero v1.0 Universal
369 stars 54 forks source link

Add state input to the organization form #2583

Closed ameliav closed 7 months ago

ameliav commented 7 months ago

๐Ÿ—ฃ Description

Update the Create New Organization form by adding State Input and updating the styling.

๐Ÿ’ญ Motivation and context

Allows for a better user experience, for new organizations to be assigned to a region through the form.

๐Ÿงช Testing

Input field called "Organization State" is added to the form. Styling is updated.

๐Ÿ“ท Screenshots (if appropriate)

Old form image

New form

image

โœ… Pre-approval checklist

โœ… Pre-merge checklist

โœ… Post-merge checklist

ameliav commented 7 months ago

Todos/notes:

Matthew-Grayson commented 7 months ago

Looks great and allows us to use the UI to create organizations again. It's not updating the state / country fields in the organization table though. I think we should either fix that in this PR or create a new issue to do so.

EDIT: I updated the create organization endpoint to populate stateName and regionId. This will at least ensure that region admin dashboard will display the correct organizations. There are several fields that still need to be populated and I will create an issue for those.