Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

[MM-20514] Migrates components/password reset send link to typescript #6584

Merged
merged 3 commits into from
Oct 13, 2020
Merged

[MM-20514] Migrates components/password reset send link to typescript #6584

merged 3 commits into from
Oct 13, 2020

Conversation

sikloidz
Copy link
Contributor

Summary

Migrates files under componentes/password_reset_send_link to typescript

Ticket Link

Fixes mattermost/mattermost#13726

Updates password_reset_send_link snapshot
@jfrerich jfrerich added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Sep 30, 2020
Copy link
Member

@devinbinnie devinbinnie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @sikloidz!

@jgilliam17 jgilliam17 added the Setup Cloud Test Server Setup a test server using Mattermost Cloud label Sep 30, 2020
Copy link
Contributor

@jgilliam17 jgilliam17 left a 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.

@jgilliam17 jgilliam17 added QA Review Done and removed 3: QA Review Requires review by a QA tester Setup Cloud Test Server Setup a test server using Mattermost Cloud labels Oct 2, 2020
@mm-cloud-bot
Copy link

Test server destroyed

Copy link
Member

@calebroseland calebroseland left a 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();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import {ComponentProps} from 'react';

Comment on lines +12 to +14
type Actions = {
sendPasswordResetEmail: (emal: string) => Promise<{data: any; error: ServerError}>;
}
Copy link
Member

@calebroseland calebroseland Oct 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import {ServerError} from 'mattermost-redux/types/errors';

@calebroseland calebroseland added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter QA Review Done labels Oct 6, 2020
@hanzei hanzei added 2: Dev Review Requires review by a core commiter 4: Reviews Complete All reviewers have approved the pull request and removed 4: Reviews Complete All reviewers have approved the pull request labels Oct 7, 2020
@hanzei
Copy link
Contributor

hanzei commented Oct 13, 2020

@sikloidz Just want to touch bases and check if you have any questions about the feedback above?

@devinbinnie
Copy link
Member

/update-branch

@devinbinnie
Copy link
Member

@hanzei I think we can just merge as-is.

@hanzei
Copy link
Contributor

hanzei commented Oct 13, 2020

@calebroseland Are you fine with merging this as it is?

@calebroseland
Copy link
Member

@hanzei as-is is fine, they were just small, non-blocking suggestions.

@hanzei hanzei added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter labels Oct 13, 2020
@hanzei hanzei merged commit 767ef1f into mattermost:master Oct 13, 2020
@hanzei
Copy link
Contributor

hanzei commented Oct 13, 2020

Thank you for the contribution @sikloidz 👍

@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Oct 13, 2020
Tak-Iwamoto pushed a commit to Tak-Iwamoto/mattermost-webapp that referenced this pull request Oct 14, 2020
…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)
  ...
jfrerich pushed a commit that referenced this pull request Oct 23, 2020
calebroseland added a commit that referenced this pull request Oct 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate 'components/password_reset_send_link' module and associated tests to TypeScript
9 participants