-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: using alertdialog versus popup #1156
base: develop
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@vnugent Looks like I might be getting the same errors as the last pr, preventing the preview from deploying. Not necessarily done with this pr or ready for review, but is there anything I can do to get the preview working? |
@@ -0,0 +1,67 @@ | |||
import React, { useState, cloneElement } from 'react' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to give an alternative approach to using the alertdialog also. I was curious about how to make a custom control and also use the control positions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vnugent sorry I kind of let this pr sit for several weeks. Do you have any input on using a custom control versus the AlertDialog component like we had originally discussed? I'm fine either way, I have always been curious about how to make a maplibre custom control, so I explored doing that.
in addition, I'm not sure why the preview is not working. I see the CI jobs are showing that docker-compose isn't found.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can use the existing AlertDialog. We should do UI cleanup/overhaul at some point.
The Vercel preview works for me. The docker-compose GitHub action may be broken. We can ignore it for now as long as Vercel build is green.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vnugent sounds good, I'll remove the custom control and use the AlertDialog component.
In addition, I can't promise a time commitment (it's about to be climbing season 😄), but I would like to be involved in the ui cleanup effort.
@clintonlunn thanks for the fix. I did a quick test notice the picker doesn't set initial location based on the form state:
I think the fix may be having initializing the drop pin (in a |
… the form context has changed
@vnugent |
name: Pull request
about: Create a pull request
title: ''
labels: ''
assignees: ''
What type of PR is this?(check all applicable)
Description
Related Issues
Issue #1145
What this PR achieves
Screenshots, recordings
Notes