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

[ASAP-740] - add reminders for discussions #4518

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

AkosuaA
Copy link
Collaborator

@AkosuaA AkosuaA commented Feb 6, 2025

Copy link

codecov bot commented Feb 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.50%. Comparing base (961ae1f) to head (f15c294).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #4518    +/-   ##
========================================
  Coverage   99.49%   99.50%            
========================================
  Files        1088     1090     +2     
  Lines       21947    22232   +285     
  Branches     6950     7073   +123     
========================================
+ Hits        21836    22121   +285     
  Misses        111      111            

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AkosuaA AkosuaA marked this pull request as ready for review February 7, 2025 14:00
Copy link
Collaborator

@gabiayako gabiayako left a comment

Choose a reason for hiding this comment

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

Really nice! 🎉

Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to add item.entity !== 'Discussion' here as well https://github.com/yldio/asap-hub/blob/master/apps/crn-frontend/src/dashboard/Dashboard.tsx#L34:L36 so the reminders are behind a feature flag

};

test('the person who started the discussion should not see discussion started reminders', async () => {
const userId = 'user-who-created-manuscript';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
const userId = 'user-who-created-manuscript';
const userId = 'user-who-started-discussion';

${'asap-staff-user'} | ${'ASAP Staff'}
${'trainee-user'} | ${'Trainee'}
`(
'the team member with role $role should not see manuscript created reminders',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
'the team member with role $role should not see manuscript created reminders',
'the team member with role $role should not see the discussion ended reminders',

Comment on lines +423 to +429
repliesCollection(limit: 100) {
items {
sys {
id
}
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
repliesCollection(limit: 100) {
items {
sys {
id
}
}
}

I believe we're not using this repliesCollection :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants