311-data icon indicating copy to clipboard operation
311-data copied to clipboard

Bugfix: SR RequesetDetail loading spinner not appearing on subsequent mouse-over popups

Open ryanfchase opened this issue 1 year ago • 6 comments

Overview

We need to fix a bug where the loading spinner on the Service Request inspect modal does not appear on subsequent mouse-overs.

Action Items

In Map.jsx

  • [x] Review usage of <RequestDetail/>
  • [x] Review usage of this.requesetDetail
  • [x] Correct loading behavior of RequestDetail
  • [x] Provide SCREEN CAPTURE of the correct behavior

Resources/Instructions

Abbreviations

  • Service Request = SR
  • Neighborhood Council = NC

Useful Files & Components

  • RequestDetail: components/Map/Map/RequestDetail.jsx
  • Map: components/Map/Map.jsx

Mapbox Docs:

  • API Reference: https://docs.mapbox.com/mapbox-gl-js/api/
  • Popup Example: https://docs.mapbox.com/mapbox-gl-js/example/popup/

Reproducing the Bug

  1. load the 311 Data site
  2. select an NC (e.g. Koreatown)
  3. Mouse-over to one SR 3.1. observe the loading spinner that appears immediately on hover 3.2. take note of the SR Type.
  4. Move-over to a new SR 4.1. Observe that there is no loading spinner, instead the SR modal is unchanged from step 3 4.2. Observe that the SR modal will quickly re-render with the correct SR information
Click to see finished result

[TODO: VIDEO GOES HERE]

ryanfchase avatar Sep 01 '24 21:09 ryanfchase

@bphan002 thanks for picking this up. When you can, please leave as a comment:

  • ETA
  • availability for comment/discussion

ryanfchase avatar Sep 04 '24 20:09 ryanfchase

ETA: Thursday 10/5 3 PM

Availability: Any time before 2 PM

bphan002 avatar Sep 04 '24 20:09 bphan002

ETA: Thursday 10/5 3 PM

Availability: Any time before 2 PM

@bphan002 did you mean 9/5? 🤣

We can always accommodate if you need more time ofc... 😁

ryanfchase avatar Sep 04 '24 20:09 ryanfchase

I did lol sorry

On Wed, Sep 4, 2024 at 1:56 PM Ryan Chase @.***> wrote:

ETA: Thursday 10/5 3 PM

Availability: Any time before 2 PM

@bphan002 https://github.com/bphan002 did you mean 9/5? 🤣

We can always accommodate if you need more time ofc... 😁

— Reply to this email directly, view it on GitHub https://github.com/hackforla/311-data/issues/1805#issuecomment-2330053250, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATZ7FSXARFO6VMYI4ZYTHZDZU5XY7AVCNFSM6AAAAABNPF742OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZQGA2TGMRVGA . You are receiving this because you were mentioned.Message ID: @.***>

bphan002 avatar Sep 06 '24 09:09 bphan002

@bphan002 moving this ticket to In Review since your PR is available

ryanfchase avatar Sep 06 '24 22:09 ryanfchase

Adding my review, eta this evening

ryanfchase avatar Sep 07 '24 00:09 ryanfchase

@bphan002 I've left you a review on your PR. Please provide an ETA for addressing the review, thanks!

ryanfchase avatar Sep 12 '24 01:09 ryanfchase

ETA: Thursday Sept 12 3 PM

bphan002 avatar Sep 12 '24 08:09 bphan002

Thank you @bphan002, merge when ready

ryanfchase avatar Sep 12 '24 18:09 ryanfchase