-
Notifications
You must be signed in to change notification settings - Fork 129
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
[GH-1003] Update Readme 'What are notifications?' section screenshot #1005
[GH-1003] Update Readme 'What are notifications?' section screenshot #1005
Conversation
Hello @chriswachira, Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here. |
cfe65b6
to
25479a3
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1005 +/- ##
=======================================
Coverage 33.32% 33.32%
=======================================
Files 53 53
Lines 7944 7944
=======================================
Hits 2647 2647
Misses 5070 5070
Partials 227 227 ☔ View full report in Codecov by Sentry. |
@cwarnermm Thank you for your approval. Is it possible to retry the failed job from your end? |
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.
Thanks for this contribution @chriswachira! I have just one suggestion to avoid putting user-identifying data in the screenshots
assets/attach-from-post.png
Outdated
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.
Not sure if we have a direct policy on this, but ideally we don't have user-identifiable data in the screenshots. In this case, your username. Maybe we can instead have sysadmin
or something like that. LMK what you think @chriswachira. Not a requirement to change it
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.
Hi, Mick. This is understandable. Fixing in a few...
readme.md
Outdated
@@ -159,7 +159,7 @@ Jira notifications are messages sent to a Mattermost channel when a particular e | |||
|
|||
Notifications and webhooks can be used together or you can opt for one of them. | |||
|
|||
![This is a channel notification of a new bug that was created in Jira](https://github.com/mattermost/mattermost-plugin-jira/assets/74422101/e7020c3e-48f6-4825-8193-6a189f6c96eb) | |||
![This is a channel notification of a new bug that was created in Jira](https://github.com/mattermost/mattermost-plugin-jira/assets/19710961/fc19bb59-260f-4904-8887-b8de41421bf6) |
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.
This screenshot is actually not showing a channel notification. It's instead showing the "Attach to Jira Issue" feature. So the original screenshot was incorrect for that reason as well. I think we can use the screenshot in the repo's README for this image.
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.
@mickmister I've updated the PR with your suggested changes.
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.
@chriswachira - I believe 2 screenshots are expected as part of this PR. One which you've updated and then another showing a channel notification.
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.
@cwarnermm I've updated the PNG file under assets showing the new location for the Jira actions and I've also updated the screenshot link in the readme section to display the ticket-created.png
image under assets which shows a Jira channel notification on . Please let me know if I'm missing something.
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.
Thanks, @chriswachira! It was a misunderstanding on my part! I expected to see two image assets, but was able to verify the second asset by URL. Nicely done on this PR, and thank you so much!
e41482b
to
2f6df2c
Compare
2f6df2c
to
be0e53c
Compare
@mickmister - Are you open to helping address the failing checks on this PR? |
@toninis Any ideas on if something may have changed about how plugin-ci sets up its linting or something similar? There are a lot of (seemingly incorrect) linting errors that have come up recently in all the plugin repos
|
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
Any updates on the CI issue? |
/update-branch |
readme.md
Outdated
@@ -159,7 +159,7 @@ Jira notifications are messages sent to a Mattermost channel when a particular e | |||
|
|||
Notifications and webhooks can be used together or you can opt for one of them. | |||
|
|||
![This is a channel notification of a new bug that was created in Jira](https://github.com/mattermost/mattermost-plugin-jira/assets/74422101/e7020c3e-48f6-4825-8193-6a189f6c96eb) | |||
![This is a channel notification of a new bug that was created in Jira](https://github.com/mattermost/mattermost-plugin-jira/assets/74422101/e15de4fe-1cb3-47d1-9b0d-538ab82ec91d) |
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.
I'm curious what's going on with this long hash here. @chriswachira Do you know how this URL is generated?
I wonder if this would also work:
![This is a channel notification of a new bug that was created in Jira](https://github.com/mattermost/mattermost-plugin-jira/assets/74422101/e15de4fe-1cb3-47d1-9b0d-538ab82ec91d) | |
![This is a channel notification of a new bug that was created in Jira](./assets/attach-from-post.png) |
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.
Hello and Happy New Year!
Uploading the image as an attachment on a PR description (even without posting the PR) generates such a URL when you select "Copy link address" from the browser's menu.
Yes, your suggestion also works.
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.
@chriswachira Happy New Year! Hope you're doing well
On the subject of how to reference to the image, I think we would prefer the ./assets/attach-from-post.png
approach, as it's easier to trace where the image is coming from. I applied the suggestion above, but the image is not shown properly in the readme, so I've reverted that change. The current change seems to not render the image properly either, when I look at the "rich diff" in the Files Changed view. @chriswachira Do you know why this might be the case?
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.
I've applied the relative path suggestion and it seems to be okay
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.
Hi @mickmister! Kindly let me know if I should proceed to squash the commits for a final review.
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
@mickmister @cwarnermm Hello to you all! I believe this PR is complete and can be merged. Kindly review. |
Hi @chriswachira, I see this blank image in the "rich diff" view of the PR. Do you know why this may be the case? @cwarnermm Do you have any thoughts on this? |
@@ -159,7 +159,7 @@ Jira notifications are messages sent to a Mattermost channel when a particular e | |||
|
|||
Notifications and webhooks can be used together or you can opt for one of them. | |||
|
|||
![This is a channel notification of a new bug that was created in Jira](https://github.com/mattermost/mattermost-plugin-jira/assets/74422101/e7020c3e-48f6-4825-8193-6a189f6c96eb) | |||
![This is a channel notification of a new bug that was created in Jira](./assets/ticket-created.png) |
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.
Should this path point to the attach-from-post.png
image file rather than ticket-created.png
?
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.
I believe it should be the ticket-created.png
image since we want to show a sample notification triggered from Jira
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.
The image file committed to this PR is named attach-from-post.png
, but the code to display an image is a different file name. An incorrect file name would be one reason we're seeing an image error placeholder in a rich preview.
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.
This PR was supposed to have two changes:
- Change
attach-from-post.png
image to show the new location of the Jira actions buttons. - Update the image in the "What are notifications?" section to show a notification triggered from Jira.
Please see this conversation we had earlier: #1005 (comment)
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.
@mickmister I'm not sure why the rich diff is displaying a broken image; the image is being rendered correctly if you click on "View file"
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.
Summary
This PR updates the screenshot in the 'What are notifications?' section which shows the new location of Jira actions at the Message actions button.
Ticket Link
Fixes #1003