-
Notifications
You must be signed in to change notification settings - Fork 17
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
[SMS delivery pickup] Build basic UI for accepting delivery #132
Conversation
87b829e
to
a8dafaa
Compare
a8dafaa
to
3f4c59a
Compare
hey! i just took a quick look and everything looks good so far! i see that you introduced a context and there's some weird circular dependency happening. i'll also be introducing another context in a future PR that's for a different flow. |
i'll update my context to be in webapp/context so we don't end up with duplicated dirs! |
@piratefsh woohoo! thanks for taking a look. Excited for more context wowow. The dialog UI probably looks a little rough without copy, but hoping it's a step in the right direction! |
dc7fb8b
to
0b82586
Compare
li: ListItem, | ||
}; | ||
|
||
const Instructions = () => { |
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.
lmk if i over-engineered this 👀 happy to walk through how this works and will add helpful comments before merging if we decide to keep this
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.
not at all! having instructions in a separate JSON file will make it easier for future copy updates. i only worry about doing this alongside the use of i18n might be confusing to other mutual aids that forked from us, so we should make sure to document why we're doing this (i imagine to allow for flexibility in structuring the content).
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.
lgtm! looks like a solid start! i had one comment re: documenting the use of the rich-text JSON style of managing copy.
in terms of UX, i didn't add this as a requirement (my bad!) but we should also handle the following:
- on success, indicate that the request had been assigned to you. instead of straight up removing the request, im thinking we can just disable the claim delivery button on that popup.
- error state in FinishStep, what if that request failed? we will need an error state to retry or contact #wg_tech on Slack.
These can be fixed in a future PR, not blocking for this since this feature is hidden anyway
Also we may have some merge conflicts from my recent PR, happy to help fix those once I merge to master: #137
li: ListItem, | ||
}; | ||
|
||
const Instructions = () => { |
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.
not at all! having instructions in a separate JSON file will make it easier for future copy updates. i only worry about doing this alongside the use of i18n might be confusing to other mutual aids that forked from us, so we should make sure to document why we're doing this (i imagine to allow for flexibility in structuring the content).
import DialogContent from "@material-ui/core/DialogContent"; | ||
import DialogActions from "@material-ui/core/DialogActions"; | ||
import Button from "@material-ui/core/Button"; | ||
import instrutions from "./instructions.json"; |
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.
small nit: typo here
0b82586
to
473935d
Compare
473935d
to
5d780c4
Compare
df823ee
to
c6761ca
Compare
* implement assign delivery enddpoint * add error screen in delivery dialog; misc cleanup and bug fixes * better error messages; restrict phone number form to US country code only * refetch data after delivery is successfully claimed; claim delivery before texting; update find volunteer by phone logic * better client error messages * Update twilio endpoint * Cleanup copy and refactor out claim delivery button to reusable component * add loading state to deliver dialog * add intake volunteer to twilio request body * use volunteer field name string instead of map * Use TWILIO_SMS_DELIVERY_ENPOINT as env var * Add env var to .env.example + linting fix Co-authored-by: Angelique De Castro <angelique.decastro@nytimes.com> Co-authored-by: Sher Minn Chong <sherminn.chong@gmail.com>
TODO:
sms_pickup=true
param is presentcloses #122
closes #133