Skip to content

Add warning message when post is rejected #23

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

Merged
merged 8 commits into from
Oct 8, 2020
Merged

Add warning message when post is rejected #23

merged 8 commits into from
Oct 8, 2020

Conversation

nathanaelhoun
Copy link
Contributor

@nathanaelhoun nathanaelhoun commented Sep 22, 2020

Summary

  • Send an ephemeral post to the user when his post is rejected,
  • The content of the warning post is configurable in config.json,
  • README.md updated with gifs.

image

Ticket Link

Fixes #21

@codecov-commenter
Copy link

codecov-commenter commented Sep 22, 2020

Codecov Report

Merging #23 into master will decrease coverage by 4.24%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #23      +/-   ##
==========================================
- Coverage   39.02%   34.78%   -4.25%     
==========================================
  Files           3        3              
  Lines          41       46       +5     
==========================================
  Hits           16       16              
- Misses         22       27       +5     
  Partials        3        3              
Impacted Files Coverage Δ
server/configuration.go 13.63% <ø> (ø)
server/plugin.go 56.52% <0.00%> (-15.71%) ⬇️

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 3aeb251...f8ad5f9. Read the comment docs.

Copy link
Contributor

@hanzei hanzei left a comment

Choose a reason for hiding this comment

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

Thanks for jumping on this 👍

@hanzei hanzei added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels Sep 22, 2020
@hanzei hanzei added this to the v1.0.0 milestone Sep 22, 2020
@nathanaelhoun nathanaelhoun marked this pull request as draft September 23, 2020 05:54
@nathanaelhoun nathanaelhoun marked this pull request as ready for review September 25, 2020 12:41
Copy link
Contributor

@hanzei hanzei left a comment

Choose a reason for hiding this comment

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

🎉

@hanzei hanzei requested a review from jfrerich September 25, 2020 16:02
@hanzei hanzei mentioned this pull request Sep 25, 2020
3 tasks
@DHaussermann DHaussermann self-requested a review October 5, 2020 17:26
@hanzei
Copy link
Contributor

hanzei commented Oct 7, 2020

@nathanaelhoun Heads up that there is a merge conflict

@nathanaelhoun
Copy link
Contributor Author

@hanzei Thanks for the heads up! This has been fixed :-)

Copy link

@DHaussermann DHaussermann left a comment

Choose a reason for hiding this comment

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

Tested and passed

  • Rejected post UI is clear
  • Tested on desktop and mobile
  • No issues found

LGTM!

@DHaussermann DHaussermann added QA Review Done PR has been approved by QA and removed 3: QA Review Requires review by a QA tester labels Oct 8, 2020
Copy link

@larkox larkox left a comment

Choose a reason for hiding this comment

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

LGTM

@jfrerich jfrerich removed the 2: Dev Review Requires review by a core committer label Oct 8, 2020
@mickmister
Copy link
Contributor

mickmister commented Oct 8, 2020

It looks like in the post-rejected.gif that the post is still posted, above the ephemeral message. Is this post supposed to be removed from the user's UI after being rejected?

image

@hanzei hanzei added the 4: Reviews Complete All reviewers have approved the pull request label Oct 8, 2020
@hanzei hanzei merged commit f33bfde into mattermost-community:master Oct 8, 2020
@nathanaelhoun nathanaelhoun deleted the gh-21-give-feedback branch October 8, 2020 17:03
@nathanaelhoun
Copy link
Contributor Author

nathanaelhoun commented Oct 8, 2020

@mickmister You are right, I shouldn't have cut the right side of the capture. Should I submit a PR to replace with this one?

ezgif com-optimize(2)

The post isn't posted, and it diseappear when reloading / clicking "cancel"

@mickmister
Copy link
Contributor

@nathanaelhoun It would seem that webapp itself displays the Retry - Cancel appears when a given post fails for any reason? This functionality seems fine to me.

Up to you whether you want to create a PR for the gif change :)

@nathanaelhoun
Copy link
Contributor Author

nathanaelhoun commented Oct 8, 2020

@mickmister Exactly, the webapp itself provide the Retry - Cancel button, for a post blocked for any reason (at least for network issue, db issue, or rejected by a plugin).

It was already the case before, but the user wasn't able to distinguish this from a network issue: now he knows he has to watch his language ;-)

I know best is the enemy of good, but I want to make the work correctly: I have submitted #29 :D

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 QA Review Done PR has been approved by QA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reject Posts option should give feedback explaining that it is related to the post content
7 participants