Element84 / filmdrop-ui

A web UI to search and display results from the FilmDrop STAC API.
Other
23 stars 1 forks source link

Ba/feature/refactor popup results with cart options #226

Closed bradleyandrick closed 1 year ago

bradleyandrick commented 1 year ago

Related Issue(s):

Proposed Changes:

  1. Cart button to Add all to cart & Add/Remove scene from cart added to search bar if CART_ENABLED set to true in config.json
  2. Button clicks add and/or remove items from cart per AC
  3. Fix map legend to always show 'Scenes in Cart' symbology when CART_ENABLED set to true in config.json and Items exist in cart

BONUS 1: PopupResults component updated to allow users to minimize/maximize popup results component content

BONUS 2: Cart items are now shown in layer on map if CART_ENABLED set to true in config.json and Items exist in cart (not this was out of scope so placeholder solution implemented in this ticket but will be revisited in future team discussions for follow up with better UX)

NOTE: number of diffs is inflated by adding mocks, real number of diffs is closer to 900 additions (this subtracts the 1,960 coming from shared-mocks.js) šŸ˜„

To test:

Test cart not enabled

Test cart enabled buttons in popup

Test Add/remove scene to cart button

Test Add all to cart button

Test BONUS 1: minimize popup result

Test BONUS 2: persisted cart map layer

PR Checklist: