Skip to content

Conversation

@annavik
Copy link
Member

@annavik annavik commented May 16, 2023

Summary of changes:

  • Setup map component
  • Add deployment details dialog
  • Use map component in details dialog and on overview page

For the map we use React Leaflet (https://react-leaflet.js.org/) with OpenStreetMap (https://www.openstreetmap.org/) as a tile provider. In upcoming PR:s we will setup forms for creating and updating deployments, in this one we only show the details.

Screenshots:

Overview with deployment map. This map uses multiple markers and the markers are also interactive. On click we show deployment info and on deployment name click we go to details view. Default zoom and bounds are set based on marker positions.
Screenshot 2023-05-16 at 11 36 35

Deployment details view. This marker is not interactive, we just use it to show the location.
Screenshot 2023-05-16 at 11 36 57

Deployment details view with editable location. This marker is interactive. On drag, latitude and longitude fields are updated and also the other way around (if fields are updated, the marker is updated). We also update map bounds on location change. This view can only be triggered from code for now.
Screenshot 2023-05-16 at 11 40 08

@netlify
Copy link

netlify bot commented May 16, 2023

Deploy Preview for ami-web ready!

Name Link
🔨 Latest commit 957d3df
🔍 Latest deploy log https://app.netlify.com/sites/ami-web/deploys/646360ddd259260008194999
😎 Deploy Preview https://deploy-preview-152--ami-web.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented May 16, 2023

Deploy Preview for ami-storybook ready!

Name Link
🔨 Latest commit 957d3df
🔍 Latest deploy log https://app.netlify.com/sites/ami-storybook/deploys/646360dd4bdc43000842fccd
😎 Deploy Preview https://deploy-preview-152--ami-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@annavik annavik requested a review from kimf May 17, 2023 14:03
@annavik annavik merged commit 54bf32c into main May 26, 2023
@annavik annavik deleted the web-ui-deployment-details-and-map branch June 13, 2023 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants