Skip to content

Feat/snapshot voting reminder#243

Open
LeonardoVieira1630 wants to merge 27 commits intodevfrom
feat/snapshot_voting_reminder
Open

Feat/snapshot voting reminder#243
LeonardoVieira1630 wants to merge 27 commits intodevfrom
feat/snapshot_voting_reminder

Conversation

@LeonardoVieira1630
Copy link
Copy Markdown
Member

@LeonardoVieira1630 LeonardoVieira1630 commented Apr 1, 2026

This pr adds a voting reminder notification for snapshot proposals.

LeonardoVieira1630 and others added 11 commits April 1, 2026 11:29
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… config

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…hainProposalItemSchema

- Add `start` optional field to OffchainProposalItemSchema for Snapshot voting start time
- Add SafeOffchainProposalNonVotersResponseSchema with null-filtering transform
- Add getOffchainProposalNonVoters() method to AnticaptureClient
- Export QueryInput_Proposals_Status_Items and OrderDirection from anticapture-client index
- Fix breaking type changes from regenerated graphql.ts (unified OrderDirection enum,
  FeedEventType/FeedRelevance moved to top-level, number fields replacing string timestamps,
  GetProposalByIdQuery now returns union type with ErrorResponse)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…minderProposal interface

- Replace ProposalOnChain/ProposalDataSource with VotingReminderProposal/VotingReminderDataSource
- Add triggerIdPrefix constructor param (enables offchain-voting-reminder-75 IDs)
- Rename TRIGGER_ID_PREFIX -> DEFAULT_TRIGGER_ID_PREFIX constant
- Update field access: proposal.timestamp/endTimestamp -> proposal.startTime/endTime
- Add link and discussion fields to VotingReminderEvent; make description optional
- Update fetchData to call dataSource.listActiveForReminder()
- Add listActiveForReminder() to ProposalRepository implementing VotingReminderDataSource
- Update dispatcher VotingReminderEvent interface (description optional, add link/discussion)
- Fix createReminderMessage to handle optional description with ?? '' fallback
- Add address to replacePlaceholders call in dispatcher service
- Update tests to use VotingReminderProposal with startTime/endTime numbers

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ing reminder trigger

- OffchainProposalRepository now implements VotingReminderDataSource with listActiveForReminder()
- Added offchainVotingReminderTrigger75 (75% threshold) to App wiring in initializeRabbitMQ, start(), stop(), and resetTriggers()
- Added missing stop() calls for all voting reminder triggers in resetTriggers()

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…cher

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@LeonardoVieira1630 LeonardoVieira1630 self-assigned this Apr 1, 2026
@LeonardoVieira1630 LeonardoVieira1630 added the enhancement New feature or request label Apr 1, 2026
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flow-editor Ready Ready Preview, Comment Apr 9, 2026 5:30pm
notification-system-dashboard Ready Ready Preview, Comment Apr 9, 2026 5:30pm

Request Review

@LeonardoVieira1630 LeonardoVieira1630 marked this pull request as ready for review April 2, 2026 11:09
@LeonardoVieira1630 LeonardoVieira1630 requested review from PedroBinotto and pikonha and removed request for pikonha April 2, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants