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
Map Circle Warning #1456
Map Circle Warning #1456
Conversation
…ge to make sure the circle is not centered over the address..
… this one due to how many editable options there are.
@AllhandsNoFeet thoughts? |
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.
Seems good to me for now.
Could you change ConfirmationDialogWrapper.tsx
so it has a prop that lets you choose between "Okay" and "Yes" as the 'accept button'. Like confirmButtonLabel
I also noticed that if there's a server error ("you must be 18 yo to sign up"), it is hard to notice because the submit button is at the bottom of a long form.
Could you add this to signup.tsx
useEffect(() => {
if (authState.error) window.scroll({ top: 0, behavior: "smooth" });
}, [authState.error]);
@@ -363,6 +364,9 @@ function RadiusSlider({ commit, initialRadius, redrawMap }: RadiusSliderProps) { | |||
const [radius, setRadius] = useState(initialRadius); | |||
return ( | |||
<> | |||
<Typography color="secondary" gutterBottom={true}> |
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.
<Typography color="secondary" gutterBottom={true}> | |
<Typography variant="body2" gutterBottom> |
I think that's sufficient
Cool on it! |
…to signup, made the adjustment on EditLocationMap
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.
Tiny thing but looks good!
@@ -37,7 +39,9 @@ export default function ConfirmationDialogWrapper({ | |||
<DialogContentText>{message}</DialogContentText> | |||
</DialogContent> | |||
<DialogActions> | |||
<Button onClick={handleConfirm}>Yes</Button> | |||
<Button onClick={handleConfirm}> | |||
{confirmButtonLabel ? confirmButtonLabel : "Yes"} |
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.
Better move the default to a constant (sorry)
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.
👍
Is this ready to merge? If so, feel free to merge it yourself @JGibbsWork |
Sorry about that! All set now! |
Updated signup to include a confirmation dialogue wrapper warning about the circle surrounding the address. Not sure if we want to create a barrier for signing up, but it did seem like a more direct way to solve the problem for new users. Also added text below the map when editing your profile. More than happy to change either accordingly.
Frontend checklist
yarn format && yarn lint --fix
yarn lint