platform-coop-toolkit / coop-map-directory-index

The Map/Directory/Index component of the Platform Cooperative Development Kit.
https://directory.platform.coop
BSD 3-Clause "New" or "Revised" License
1 stars 3 forks source link

feat: rebuild home page cards as Svelte components #152

Closed greatislander closed 4 years ago

greatislander commented 4 years ago

Description

Rebuilds home page cards as Svelte components. Rather than rebuilding the entire list of cards using string concatenation when the map view changes, the Svelte store for map features is updated and individual cards are added or removed from the card grid.

Updates serializers to provide more detailed/required information for user and organization endpoints to support card generation.

Steps to test

  1. Check out branch.
  2. npm ci && npm run dev
  3. Zoom and pan home page map view.

Expected behavior: Cards update as expected.

Additional information

This PR does not add individuals to the map. Individuals were adding during development to test the functionality. That will be addressed in a separate PR.

Related issues

Not applicable.