Skip to content

refactor(notifications): extract notification creation helper#399

Open
Gezziy wants to merge 1 commit into
code-flexing:mainfrom
Gezziy:extract-notifs
Open

refactor(notifications): extract notification creation helper#399
Gezziy wants to merge 1 commit into
code-flexing:mainfrom
Gezziy:extract-notifs

Conversation

@Gezziy
Copy link
Copy Markdown

@Gezziy Gezziy commented May 30, 2026

closes #371
Summary of Changes
Added NotificationHelper to centralize reusable notification DTO creation.
Replaced duplicated inline notification object construction in vault, insurance, and rewards services.
Added focused unit tests for notification helper output.
Removed an unused NotificationType import from NotificationsService.

Reason for the Changes
Duplicated notification-building logic made templates harder to keep consistent. Centralizing the templates in a shared helper keeps notification titles, messages, types, and audience fields aligned when future changes are needed.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2026

@TochukwuJustice is attempting to deploy a commit to the vic's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@Gezziy Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

#636 Extract notification creation to NotificationHelper

2 participants