Merged
Conversation
Add comment support to the polls feed page and replace per-poll vote subscriptions with an efficient batched vote cache that uses Primal caching servers for fast initial load and a single live subscription for real-time updates. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Remove unused imports (userPublickey, ndkConnected) from polls page - Use `import type` for NDKEvent in voteCache (type-only usage) - Chunk large vote batches (max 50 IDs per request) to avoid relay rejections and oversized Primal requests - Fix timer leak in relay fetch: clear timeout on eose, use settled flag to prevent double-resolve - Only mark polls as fetched after successful relay completion (not on timeout) so future mounts can retry the backfill - Cap fetchVoteEvents limit to 5000 to keep request size predictable - Fix fetchPolls pending request type from 'articles' to 'feed' - Fix rate limit window to bound upper end at event.created_at so out-of-order events don't incorrectly filter polls from other hours Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Record fetch start time before the Primal+relay phases and pass it to the live subscription so votes arriving during the fetch window are not missed. Reduce Primal vote limit from 5000 to 2000 to keep request sizes predictable. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
frontend | 9045b74 | Mar 26 2026, 02:39 AM |
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.
No description provided.