AOEpeople/desk-compass

feat: Locations: Marker endpoints

resah opened this issue · 0 comments

resah commented

This issue belongs to the feature "Multiple locations": Since many offices consist of multiple floors or even different locations, it should be possible to create location with their dedicated floor plan.


Backend

Adjust existing marker endpoints

  • GET /api/locations/:id/markers - get markers for location
  • POST /api/locations/:id/markers - add new marker
  • GET /api/locations/:id/markers/:markerId - get marker by ID
  • PUT /api/locations/:id/markers/:markerId - update a marker
  • DELETE /api/locations/:id/markers/:markerId - delete a marker

Frontend

  • Adjust endpoints
  • Adjust share links and routes with location
  • List locations in nav bar
    • Show long name in expanded nav bar
    • Show short name in collapsed nav bar
  • CRUD
  • Allow selecting one location
  • Switch floorplan image on selection
  • Selected location is marked
  • Only markers for the selected location are shown
  • Number of (visible) markers is shown for each location