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

CP-9664: Add Support for New Notification Types #2180

Merged
merged 13 commits into from
Jan 8, 2025
Merged

Conversation

ruijialin-avalabs
Copy link
Contributor

@ruijialin-avalabs ruijialin-avalabs commented Jan 8, 2025

Description

Ticket: CP-9664

  • use a single feature flag (all-notifications) to control all in-app notifications
    • turn on/off ff will show/hide the notifications from drawer
    • subscribe/unsubscribe all notifications
  • add news notification subscribe/unsubscribe endpoints
  • removed balance-change-notifications ff logic since all notifications is controlled with all-notifications ff

Screenshots/Videos

videos in Jira comment: https://ava-labs.atlassian.net/browse/CP-9664?focusedCommentId=44642

Checklist

Please check all that apply (if applicable)

  • I have performed a self-review of my code
  • I have verified the code works
  • I have added/updated necessary unit tests
  • I have updated the documentation

@ruijialin-avalabs ruijialin-avalabs marked this pull request as ready for review January 8, 2025 16:43
}
global.fetch = jest.fn(() => Promise.resolve(mockResponse)) as jest.Mock

await expect(
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice test

atn4z7
atn4z7 previously approved these changes Jan 8, 2025
@ruijialin-avalabs ruijialin-avalabs merged commit 5daebec into main Jan 8, 2025
4 checks passed
@ruijialin-avalabs ruijialin-avalabs deleted the cp-9664 branch January 8, 2025 20:32
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