Show a list of facilities successfully claimed by the current contributor #573
Conversation
4f53f86
to
9ce2457
Compare
fd5b808
to
af25c5b
Compare
I made #586 for the wire-frame-related updates. |
I tested this out and it's working almost perfectly! There are two small UI things that may not be blocking on merging, but which I did want to surface in case we would like to address them here or subsequently: First: in Firefox the "no claimed facilities" message doesn't place the button beneath the message. I think this can be fixed just by putting the two elements in a common container, then giving it Second, also in Firefox: when I click a row to go to a facility details page and then click the back button to return to the list page, for a split second I can see the "no claimed facilities" message before searching commences and it changes to the CircularProgress spinner. The back button seemed to be the only condition in which I could create the split-second quirk. It's not a show-stopper, though, so we could live with it if it's not easy to remedy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 This is working well! I made a note of two style-issues that we may want to remedy before merging. One should be fairly simple; the other seems to be related to Redux actions sequences and I couldn't readily see why it was doing what it was doing when stepping through with redux-devtools.
af25c5b
to
a836431
Compare
Thanks for review and pointing out those two issues. We paired on the flash of submit button issues and solved it by paying attention to whether data is null or an empty list. |
Ooof -- sorry about this but I introduced a merge conflict by merging #575 |
We want to provide a logged in contributor with a list of all the facilities they have successfully claimed.
Repurposes the "My Facilities" link the navbar to show a page listing all approved facility claims. Items in the list link to the facility profile page where additional information about the facility can be collected. The "My Facilities" link now depends on the claim a facility feature so we have updated the `NavbarLoginButtonGroup` to only show the link when the feature flag is enabled.
This additional information helps to identify the facility when there may be more than one claimed facility with the same name.
a836431
to
90119a0
Compare
Overview
Change the "My Facilities" link in the navbar to link to a new page showing a list of all approved facility claims for the currently logged in contributor.
Connects #543
Demo
My Facilities
Empty List
Claim A Facility Disabled
Notes
The wireframes include showing the status of a claim and removing the claim but these are out of scope of #543 which specifies showing only approved claims.
Testing Instructions
This assumes that the fixture data is loaded and processed
./scripts/manage waffle_switch claim_a_facility off
. Restart `./scripts.server.c2@example.com
and verify that "My Facilities" does not appear in the navbar dropdown../scripts/manage waffle_switch claim_a_facility on
. Restart `./scripts.server.c2@example.com
, search for a facility, and submit a claim.c1@example.com
and browse http://localhost:6543/dashboard/claims. Approve the facility claim.Checklist
fixup!
commits have been squashed