feat: support mention in Research descriptions, updates and comments#2072
feat: support mention in Research descriptions, updates and comments#2072davehakkens merged 10 commits intomasterfrom
Conversation
a4eaf75 to
04c1531
Compare
04c1531 to
cab3bf2
Compare
20a1449 to
16a2b20
Compare
Passing run #2920 ↗︎Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
|||||||||||||||
f3c4dec to
f464e51
Compare
|
Visit the preview URL for this PR (updated for commit fed2800): https://onearmy-next--pr2072-feat-research-mentio-rtlzpbzd.web.app (expires Mon, 20 Mar 2023 13:54:16 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 6d65e4f8fee2f6ab2da0c1c3b85b8797d66afa59 |
|
Thanks @thisislawatts nice feature!
|
|
@davehakkens what should the wording be for these notifications. Do we want to specify whether a user was mentioned in a Research description, Update or comment? |
|
We could make it very basic and say for all mentions (content + comment) the same: However you already made some better/ more advanced behaviour in the howto mentions. Separating a comment from the content.
So I would continue like this and do the same for research
|
f464e51 to
c3d80f2
Compare
|
When testing this manually with a URL like: http://localhost:3000/research/testing-mentions#update-0-comment-2, there is a UX problem here. The user has been mentioned in the 3rd comment under the 1st update. Whilst that information is present in the document fragment |
|
@davehakkens have you seen notifications that match the format you've described here?
Looking at the existing code I can't see anything which suggests the system is capable of generating them. This is the current implementation: case 'howto_mention':
return (
<Box>
You were mentioned in a
<InternalLink to={notification.relevantUrl || ''}>
how-to
</InternalLink>
by
<InternalLink to={'/u/' + notification.triggeredBy.userId}>
{notification.triggeredBy.displayName}
</InternalLink>
</Box>
)I agree that it would be good to distinguish between the different locations but perhaps that can be addressed in a follow up work item. This has already been dragging on for a while and it would be good to merge and unblock the email notifications work. |
1b5d2b6 to
8d94797
Compare
|
Ready for a re-review ✨ |
Pretty sure I did. but cant seem to find it anymore either 🤔 For how-to author: For being mentioned in how-to comment: But agree its good to release this one. Looks good like this. no.scroll.mov |
|
Good catch @davehakkens, I had adjusted the way we declare addresses for comments in Research articles. I've added a test to explicitly capture this behaviour. Please pull down and generate a new mention to test the behaviour. Any old notifications created locally will not work. This only impacts people who have been reviewing this branch. |
|
works now! |
chrismclarke
left a comment
There was a problem hiding this comment.
Thanks @thisislawatts , there's quite a bit here but it all makes sense to me so thanks for the addition.
I've added one (semi) blocking nit related to the regex used to check whether the page url references mentions, and then just a couple other minor bits of code tidying.
Let me know if you think you will get a chance to review these in the next week or so, if not I can just include my suggested fix for the regex and do any other tidying at some point in the future.
77e0aa4 to
8a4df92
Compare
23e260a to
58a873e
Compare
58a873e to
686091b
Compare
chrismclarke
left a comment
There was a problem hiding this comment.
Thanks for all the changes @thisislawatts, looks good to go to me!
|
🎉 This PR is included in version 1.38.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |

PR Checklist
PR Type
Description
What this PR does
Git Issues
Closes #
Screenshots/Videos
If useful, provide screenshot or capture to highlight main changes
What happens next?
Thanks for the contribution! We try to make sure all PRs are reviewed ahead of a monthly dev call (first Monday of the month, open to all!).
If the PR is working as intended it'll be merged and included in the next platform release, if not changes will be requested and re-reviewed once updated.
If you need more immediate feedback you can try reaching out on Discord in the Community Platform
developmentchannel.