feat: notify token holders before governance voting deadline closes#1012
Open
sammajayi wants to merge 1 commit into
Open
feat: notify token holders before governance voting deadline closes#1012sammajayi wants to merge 1 commit into
sammajayi wants to merge 1 commit into
Conversation
Add a scheduled worker that scans proposals approaching their deadline and sends reminders to governance participants who haven't voted yet. - New migration 024: adds deadline_reminder_level to proposals and voting_deadline_reminder preference to notification_preferences - deadline-reminder.service.ts: core logic to find non-voters and send in-app/push/email notifications at 24h and 1h thresholds - deadline-reminder-worker.ts: setInterval worker (default 30min, configurable) - Enhanced ProposalCountdown with urgent pulsing red style for <1h - Added voting_deadline_reminder to notification preferences UI Closes bakeronchain#1002
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a scheduled worker that scans proposals approaching their deadline and sends reminders to governance participants who haven't voted yet.
What's included
deadline_reminder_leveltoproposalsandvoting_deadline_reminder/email_voting_deadline_remindertonotification_preferencesdeadline-reminder.service.ts: core logic to find non-voters and send in-app/push/email notifications at 24h and 1h thresholdsdeadline-reminder-worker.ts:setIntervalworker (default 30min, configurable viaDEADLINE_REMINDER_INTERVAL_MS)ProposalCountdown: enhanced with urgent pulsing red style for <1h remainingvoting-deadline-remindertemplateHow it works
votes+ proposal authors) who haven't voteddeadline_reminder_leveltracks what's been sent per proposal — no duplicate notificationsCloses #1002