Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
profile: show warning and option to reactivate when contact method is…
… disabled (#28) * update gql schema * add verification form and dialog components * adjust warning tooltip prop name * call new verification dialog from relevant components * delete old verification dialog/form * add graphql2 mutations for verifying and testing contact method phone numbers * remove old graphql mutations * update verify and send mutations on ui to reference new code * use formcontainer and add field error checks to verification code field - using a string as input as this allows us to expand past digits in the future if we want to, as well as the fact that in a browser a user can still type "e" in as a valid number in a type="number" textfield * use else * update verification smoketest * update other smoketests * update schema from pr comments * move field error to graphql layer and remove references to the resend bool * rename verification form and dialog with User prefixed to match other components * rename warning "tooltip" text prop to "message" and add a proptype for it * reword a CM's disabled warning message to be type agnostic * modify db statement to only reactivate that single contact method, and use within the opened transaction * create migration to update verification table update mutation variable on UI and update relevant store functions * fix smoketests using incorrect variable name for the verification code * give each action menu it's own state via a new component * set verification text field to type number * disable submit button until code has been sent at least once * delete dupe function and fix india phone number formatting * render subtitle properly in verification form * add a caption for UNSTOP use cases * add apollo hooks library * add apollo hooks provider - uses graphql2 client only * update FlatList avatar/icon padding * add reactivate button directly to CM list item if disabled * send code immediately as dialog opens to reactivate * only call the useEffect hook once, after render * don't show reactivate button on enabled CMs * address no-op setState warning * fix deleting a contact method if a verification code is in flight * fix for closing delete contact method dialog manually * don't show UNSTOP message for voice calls * add avatar and icon support to PaginatedList * remove tx from graphql funcs * lock apollo hooks version in package.json * remove sendAttempted and default the button to say "resend" * send verification code from form * pr comment: remove references to using an avatar * pr comment: adjust FlatList action prop names * remove unused state vars * remove submitDisabled from FormDialog * fix spacing * better error message * Show disabled attributes on unowned profiles * remove unused proptype * pr comment: remove tertiary action * pr comment: move open verify dialog logic * use @apollo/react-hooks instead of react-apollo-hooks * refactor contact method list to use hooks * use hook mutation for sending the verification code on button * add no type submit option to loading button * use hook mutation to submit verification form * update too many messages error message * fix phone number formatting in test * don't show spacing if no icon specified on paginated lists * fix avatar * fix code types on smoketests * spacing * remove code expiration function * don't recalculate when verification code expires * update stmt call to use stmtContext function * remove duplicate permissions check * adjust func definition * remove redundant console.error * cleanup getIcon func * consolidate duplicate lines into function * fix status reference when sending a verification code * rename migration such that it's the most recent one * only use international formats for all supported phone numbers * refactor how a test message is sent * re-add user id lookup * sending a test should fail if the CM is disabled * update enable voice sms test * update enable by sms test * update sms verification smoketest * update voice verification smoketest * update variable names for better readabilitiy * gofmt * clear send error when attempting to verify
- Loading branch information