Skip to content

feat: add NIP-88 poll creation and voting#256

Merged
barrydeen merged 1 commit intomainfrom
feat/nip88-polls
Mar 16, 2026
Merged

feat: add NIP-88 poll creation and voting#256
barrydeen merged 1 commit intomainfrom
feat/nip88-polls

Conversation

@barrydeen
Copy link
Copy Markdown
Owner

Summary

  • Add NIP-88 poll support: kind 1068 (polls) and kind 1018 (vote responses)
  • Poll creation UI in compose screen with single/multi choice, up to 10 options, and live preview
  • Poll display and voting in feed, threads, profile, notifications, search, hashtag, and bookmarks screens
  • Vote tracking in EventRepository with one-vote-per-pubkey enforcement and version-keyed reactivity
  • Bump version to 0.9.0

Test plan

  • Create a poll from compose screen — verify kind 1068 event with correct tags
  • See polls in feed with options displayed
  • Vote on a poll — verify kind 1018 event published, results shown
  • Verify singlechoice votes immediately, multiplechoice requires submit
  • Verify vote counts update and user's vote is highlighted
  • Verify poll preview appears in compose screen before publishing
  • Verify polls render on notifications, thread, profile, and search screens

Implement poll support with kind 1068 (poll events) and kind 1018
(vote responses). Users can attach single or multiple choice polls
when composing notes, vote on polls in the feed, and see live
results with vote counts and percentages across all screens.

Bump version to 0.9.0.
@barrydeen barrydeen merged commit d3992bd into main Mar 16, 2026
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.

1 participant