Skip to content
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

[GH87] Add "receive reminder" setting to login flow #117

Merged
merged 4 commits into from
May 28, 2020

Conversation

larkox
Copy link
Contributor

@larkox larkox commented May 6, 2020

Summary

Add "receive reminder" setting to login flow

Ticket Link

Fix #87

@larkox larkox requested a review from mickmister as a code owner May 6, 2020 08:55
@larkox larkox added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels May 6, 2020
@larkox larkox requested a review from iomodo May 6, 2020 10:19
Copy link
Contributor

@mickmister mickmister left a comment

Choose a reason for hiding this comment

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

@larkox I don't see where this value is being used to conditionally deliver the reminder. Is that intentional?

@@ -76,6 +76,14 @@ func (wf *welcomeFlow) makeSteps() {
FalseButtonMessage: "No - Do not notify me of new events",
TrueResponseMessage: "Great, you will receive a message any time you receive a new event.",
FalseResponseMessage: "Great, you will not receive any notification on new events.",
}, &flow.SimpleStep{
Title: "Receive reminder",
Message: "Do you want to receive reminder of upcoming events?",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Message: "Do you want to receive reminder of upcoming events?",
Message: "Do you want to receive a reminder for upcoming events?",

TrueButtonMessage: "Yes - I would like to receive reminders for upcoming events",
FalseButtonMessage: "No - Do not notify me of upcoming events",
TrueResponseMessage: "Great, you will receive a message before your meetings.",
FalseResponseMessage: "Great, you will not receive any notification on upcoming events.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
FalseResponseMessage: "Great, you will not receive any notification on upcoming events.",
FalseResponseMessage: "Great, you will not receive any notification for upcoming events.",

default:
return fmt.Errorf("property %s not found", propertyName)
if user.WelcomeFlowStatus.PostIDs == nil {
user.WelcomeFlowStatus.PostIDs = make(map[string]string)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice cleanup here!

@larkox
Copy link
Contributor Author

larkox commented May 6, 2020

All the logic for receive reminder was already in place. It was only missing the setting on the login flow.

Copy link

@iomodo iomodo left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@mickmister mickmister left a comment

Choose a reason for hiding this comment

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

I'll leave the wording suggestions to @aaronrothschild. LGTM!

@mickmister mickmister added 1: PM Review Requires review by a product manager and removed 2: Dev Review Requires review by a core committer labels May 7, 2020
@codecov-io
Copy link

Codecov Report

Merging #117 into master will decrease coverage by 0.07%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #117      +/-   ##
==========================================
- Coverage   24.19%   24.12%   -0.08%     
==========================================
  Files          64       64              
  Lines        2529     2537       +8     
==========================================
  Hits          612      612              
- Misses       1841     1849       +8     
  Partials       76       76              
Impacted Files Coverage Δ
server/mscalendar/welcome_flow.go 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6336c0e...ac88d77. Read the comment docs.

@codecov-commenter
Copy link

codecov-commenter commented May 21, 2020

Codecov Report

Merging #117 into master will decrease coverage by 0.07%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #117      +/-   ##
==========================================
- Coverage   25.01%   24.94%   -0.08%     
==========================================
  Files          65       65              
  Lines        2550     2558       +8     
==========================================
  Hits          638      638              
- Misses       1832     1840       +8     
  Partials       80       80              
Impacted Files Coverage Δ
server/mscalendar/welcome_flow.go 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8fbe2c8...766f89f. Read the comment docs.

@aaronrothschild aaronrothschild modified the milestones: v0.2.0, 0.1.0 May 26, 2020
@larkox larkox removed the 1: PM Review Requires review by a product manager label May 26, 2020
@larkox larkox requested a review from DHaussermann May 26, 2020 14:12
Copy link
Contributor

@aaronrothschild aaronrothschild left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -84,6 +84,14 @@ func (wf *welcomeFlow) makeSteps() {
FalseButtonMessage: "No - Do not notify me of new events",
Copy link
Contributor

Choose a reason for hiding this comment

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

This may not be in the scope of this PR, but I was thinking we should use the language "when you are invited to an event", instead of "when you receive a new event", in the prompts above this line, as it is clearer what we mean by "event".

Also, above we use the language "while you are on a meeting", versus "while you are in a meeting". Just some small improvements for wordings. @larkox Thoughts on this?

@DHaussermann
Copy link

Tested and passed

  • Reminders added to login flow
  • Both yes and no options set value correctly
    LGTM!

@DHaussermann DHaussermann added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester labels May 28, 2020
@larkox larkox merged commit c252ee0 into mattermost:master May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow user setting for receiving notifications for upcoming events
7 participants