-
Notifications
You must be signed in to change notification settings - Fork 18
Tip video comment created #366
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
base: master
Are you sure you want to change the base?
Conversation
Lezek123
left a 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.
Thank you for making the PR, I left a small comment regarding notification tests, as there have been some changes related to those in Orion 5.0.
It seems like your branch fails to build after you updated it from master: https://github.com/Joystream/orion/actions/runs/15605914961/job/44001244476?pr=366, so please fix the code in notifications.test.ts.
| } | ||
| case 'CommentPostedToVideo': { | ||
| const { videoId, videoTitle, memberId, memberHandle } = notificationType | ||
| const { videoId, videoTitle, memberId, memberHandle, comentId } = notificationType |
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.
| const { videoId, videoTitle, memberId, memberHandle, comentId } = notificationType | |
| const { videoId, videoTitle, memberId, memberHandle, commentId } = notificationType |
| return { | ||
| icon: await getNotificationIcon(em, 'follow'), | ||
| link: await getNotificationLink(em, 'nft-page', [videoId]), | ||
| link: await getNotificationLink(em, 'video-page', [videoId, comentId]), |
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.
| link: await getNotificationLink(em, 'video-page', [videoId, comentId]), | |
| link: await getNotificationLink(em, 'video-page', [videoId, commentId]), |
| }, | ||
| } | ||
| before(async () => { | ||
| nextNotificationIdPre = await getNextNotificationId(overlay, true) |
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 will no longer work in Orion v5, as the notification ids are randomly generated, please see the adjustments to notifications tests that I made here: https://github.com/Joystream/orion/pull/365/files#diff-4ecb12693f9548f4c9bf50d647cf34ac9bd0f648f61151c72cda0c2d2fbc139a
fix for #352