-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[MM-20514] Migrates components/password reset send link to typescript #6584
Conversation
Updates password_reset_send_link snapshot
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! Thanks @sikloidz!
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.
Thank you @sikloidz
Tested, looks good to merge.
- Verified password reset link functionality - as expected.
Test server destroyed |
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! Just two minor suggestions, but also fine as-is
e.preventDefault(); | ||
|
||
const email = this.emailInput.current.value.trim().toLowerCase(); | ||
const email = this.emailInput.current!.value.trim().toLowerCase(); |
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.
const email = this.emailInput.current!.value.trim().toLowerCase(); | |
const email = this.emailInput.current?.value.trim().toLowerCase(); |
Minor: I think ?
would be a bit more appropriate
@@ -0,0 +1,22 @@ | |||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. | |||
// See LICENSE.txt for license information. | |||
|
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.
import {ComponentProps} from 'react'; |
type Actions = { | ||
sendPasswordResetEmail: (emal: string) => Promise<{data: any; error: ServerError}>; | ||
} |
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.
type Actions = { | |
sendPasswordResetEmail: (emal: string) => Promise<{data: any; error: ServerError}>; | |
} | |
type Actions = ComponentProps<typeof PasswordResetSendLink>['actions']; |
Minor: could be de-duped
import {connect} from 'react-redux'; | ||
import {sendPasswordResetEmail} from 'mattermost-redux/actions/users'; | ||
import {GenericAction, ActionFunc} from 'mattermost-redux/types/actions'; | ||
import {ServerError} from 'mattermost-redux/types/errors'; |
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.
import {ServerError} from 'mattermost-redux/types/errors'; |
components/password_reset_send_link/password_reset_send_link.tsx
Outdated
Show resolved
Hide resolved
@sikloidz Just want to touch bases and check if you have any questions about the feedback above? |
/update-branch |
@hanzei I think we can just merge as-is. |
@calebroseland Are you fine with merging this as it is? |
@hanzei as-is is fine, they were just small, non-blocking suggestions. |
Co-authored-by: Caleb Roseland <[email protected]>
Thank you for the contribution @sikloidz 👍 |
…o MM-20457 * 'master' of github.com:Tak-Iwamoto/mattermost-webapp: (87 commits) MM-T644 Integrations display on team where they were created (mattermost#6752) [MM-20478] Migrate post_header module to TypeScript (mattermost#6631) [MM-20599] Migrated select_team component to Typescript (mattermost#6574) MM-20554 Migrate 'components/delete_post_modal' module and associated tests to TypeScript (mattermost#6656) [MM-24436]- Add a threshold from bottom for new messages toast (mattermost#5828) [MM-20489] Migrate failed_post_options and its tests to typescript (mattermost#6717) [MM-28063] Cloud Telemetry - Admin Console (mattermost#6762) [MM-29559][MM-29558] Company Info Fixes (mattermost#6764) [MM-29557] [MM-29590] Update subscription when purchase modal closes (mattermost#6765) [MM-29615] Fixed subscription page so it doesn't load until subscription info is loaded (mattermost#6766) [MM-28064] Add telemetry in various places around cloud message banners (mattermost#6763) migrate changeCSS function CSS variable for mobile CSS .tutorial-steps__container selector. (mattermost#6743) [MM-27231]: cypress test for MM-T1837 (mattermost#6676) [MM-28062] Add telemetry for in-app purchase flow (mattermost#6760) MM-27454 - Contact Us and Billing Documentation Links (mattermost#6731) [MM-20514] Migrates components/password reset send link to typescript (mattermost#6584) Cloud Billing polish Soft GA (mattermost#6740) [MM-28221] Payment Info Edit/View (mattermost#6709) MM-T636 Description field for incoming and outgoing webhooks can hold 500 characters (mattermost#6682) Translations update from Weblate (mattermost#6748) ...
…#6584) Co-authored-by: Caleb Roseland <[email protected]> Co-authored-by: Ben Schumacher <[email protected]>
…#6584) Co-authored-by: Caleb Roseland <[email protected]> Co-authored-by: Ben Schumacher <[email protected]>
Summary
Migrates files under
componentes/password_reset_send_link
to typescriptTicket Link
Fixes mattermost/mattermost#13726