PublicDataWorks / complaint-manager

Apache License 2.0
5 stars 0 forks source link

Housing unit dropdown takes a long time to load #641

Open christina-luong opened 4 months ago

christina-luong commented 4 months ago

Describe the bug

When switching between facilities, the housing unit dropdown can take up to 20 seconds to update. Anything that was previously selected before the switch is not saved. This is disruptive to user workflow and can result in data loss.

Steps to reproduce

List any steps to reproduce behavior

  1. Select a facility and housing unit.
  2. Select a different facility and attempt to select a housing unit right after.
  3. You will see the housing units for Facility A instead of Facility B until it updates.
  4. If you attempt to save before Housing Units B shows up, the housing unit will not be saved.
  5. If you save after selecting the intended facility and housing unit, it can take up to 20 seconds to process.

Screen recording examples here: https://github.com/PublicDataWorks/complaint-manager/assets/167580943/e4cec6cb-1ccf-485a-aa44-021cdf6cbf3b https://github.com/PublicDataWorks/complaint-manager/assets/167580943/1ae4b5ce-daa1-4807-8437-d38b20a865b5 https://github.com/PublicDataWorks/complaint-manager/assets/167580943/829baefe-3f95-4de8-b268-fed9312e2156

Expected behavior

When Facility A is selected, Housing Units A should update soon after (tentative goal of 3 seconds load time?). When switching to Facility B, we should only see Housing Units B.

Checklist

Additional context Add any other context or screenshots about the feature request here.