hackgvl / open-map-data-multi-layers-demo

A bookmarkable map displaying all layers from HackGreenville Labs' Open Map Data
https://hackgvl.github.io/open-map-data-multi-layers-demo/
MIT License
2 stars 2 forks source link

Add Contribution Banner #30

Closed ThorntonMatthewD closed 8 months ago

ThorntonMatthewD commented 8 months ago

Summary

Screenshots

_ Desktop Mobile
Banner Screenshot_2023-10-15_21-36-06 Screenshot_2023-10-15_21-37-01
Maintainer Pop-up Screenshot_2023-10-15_21-36-40 Screenshot_2023-10-15_21-37-15

Testing Plan

  1. Contributor Banner
    1. Verify that the banner is present at the top of the map page.
    2. Navigate to the "About" page and verify that it appears there also.
    3. Click the "X" icon on the right side of the banner.
    4. Refresh the page. The banner should not reappear.
    5. Open the page in an incognito tab. The banner shouild be back!
    6. Return back to your first window. Open your browser's dev tools and run the following in the console:
      sessionStorage.removeItem("disableHGLabsMapBanner");
    7. Refresh the page, and the banner should be back again. :partying_face:
  2. Maintainer Pop-up
    1. Enable at least one feature set on the map
    2. Hover over the maintainers control icon (second one down on the right)
    3. Click on the "Click here to learn how to contribute!" button
    4. It should have taken you here in a new tab.