Repository navigation
feat(polls): add poll manager - #1664
Merged
Merged
Conversation
hoangle398
requested review from
realcodesiman,
sung17 and
viethung0o0
and removed request for
sung17 and
viethung0o0
November 7, 2026 03:20
Workspaces create polls (2-10 candidates, start/end window, optional after-vote flow), share a link that opens the poll in any connected channel, and see vote analytics. - database: Poll, PollCandidate, PollVote tables and poll repository (race-safe vote upsert, vote breakdown, row-locked edits) - business: poll service and vote service, poll ref type (pl_), chat message builders for cards, candidates carousel and vote confirmation - builder: public and private poll API, Poll Manager list, form, Get Link dialog and analytics page - worker: poll link opens, vote taps, after-vote flow (deduplicated job id so a retried tap cannot lose or double it), polls list recovery for stale taps - CLI/MCP docs for the polls API - filesystem: normalize non-standard mime types like image/jpg on upload - whatsapp: re-host external media links served with an unsupported content type; storage URL match is path-bounded
hoangle398
force-pushed
the
feat/poll-manager
branch
from
November 7, 2026 05:37
09ae604 to
86fe3a9
Compare
hello-jackytruong
referenced
this pull request
in hello-jackytruong/ChatWorkAI
Nov 22, 2026
Workspaces create polls (2-10 candidates, start/end window, optional after-vote flow), share a link that opens the poll in any connected channel, and see vote analytics. - database: Poll, PollCandidate, PollVote tables and poll repository (race-safe vote upsert, vote breakdown, row-locked edits) - business: poll service and vote service, poll ref type (pl_), chat message builders for cards, candidates carousel and vote confirmation - builder: public and private poll API, Poll Manager list, form, Get Link dialog and analytics page - worker: poll link opens, vote taps, after-vote flow (deduplicated job id so a retried tap cannot lose or double it), polls list recovery for stale taps - CLI/MCP docs for the polls API - filesystem: normalize non-standard mime types like image/jpg on upload - whatsapp: re-host external media links served with an unsupported content type; storage URL match is path-bounded
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
Workspaces can create polls with 2–10 candidates, a start/end window, and an optional flow that runs after someone votes. They can share a link that opens the poll in any connected channel and view vote analytics.



Changes
Poll,PollCandidate,PollVotetables plus the poll repository (race-safe vote upsert, vote breakdown, edits that lock the row)pl_poll ref type, and chat message builders for poll cards, the candidates carousel, and the vote confirmationimage/jpgon uploadTest plan
pnpm lintpnpm check-typespnpm test(new: poll-service, poll-vote, poll-tap, polls-public-api, outbound-media)20261101144111_poll_managerbefore applying it🤖 Generated with Claude Code