Repository navigation
feat(quiz): send a poll's note without a vote - #508
Conversation
A note is an answer of its own. Send note no longer asks the reader to pick an option first: it sends choice [] with the note, which Drop already stores without counting a vote. The note shows in the note row until the reader votes, then moves under their pick.
Codex Review Summary: â FailedThis comment shows the latest Codex review activity on this pull request.
âđïļ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with ð while any review is running, comments if it has suggestions, and reacts with ð once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
comark-annotate
comark-badge
comark-bundle
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-git-graph
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-motion
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-social
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |
There was a problem hiding this comment.
Important
A note-only submission cannot be retried unchanged after a failed save, and removing pickFirst breaks existing TypeScript configurations.
Approach: Reusing the existing poll answer event with choice: [] is the right approach: a host can store the note without counting a vote or introducing a new event.
Reviewed changes
- Submission: Reviewed note-only sends, empty drafts, and votes after a note, including which events carry
note. - Display: Reviewed how the saved note moves between the note row and a selected option and stays visible when voting closes.
- Public API: Checked the host documentation, component metadata, and compatibility of the exported labels.
- Verification: All 49 quiz package tests and 29 Playwright tests passed. Separate Chromium and TypeScript checks reproduced the two regressions above.
âđïļ Host restore docs still describe note-only state as no answer
P2 · Class: stale note-only documentation. The host state docs say an empty choice takes the answer back and describe notes only under a pick. A host restoring { choice: [], note: "Please cover auth" } needs to retain and return that record, not treat it as a deleted answer.
Technical details
# Document note-only state on restore
## Affected sites
- `packages/quiz/docs/index.md:516â517` â The state bullets describe an empty choice as taking the whole answer back and mention only notes under a selected option.
- `skills/comark-ui/references/quiz.md:41,44` â The agent reference still describes notes only in connection with a vote.
## Required outcome
- Clarify that `choice: []` removes or represents the absence of a vote, while the note can still be stored, restored, and displayed on its own. Preserve the distinction between an omitted `note` and `note: ""`.gpt-6.2-sol(high) ï― ð
Latest result Pull request merged. Final answersSession Pull request merged. PR #508 is ready to merge. The current head already fixes unchanged note-only retries, preserves the deprecated pickFirst label without restoring its prompt, and clarifies how hosts restore notes without votes. Both review threads are resolved and all hosted checks passed. All 50 quiz tests passed locally, and lint passed with warnings. No repair commit was needed. |
There was a problem hiding this comment.
â No new issues found. No P0 or P1 findings remain.
Reviewed changes since 246bdb7:
- Restored note retries. An unchanged nonempty note can be resent without a vote or a host response. Clearing an existing note still sends an empty string, while an initial blank send does nothing.
- Preserved label compatibility.
pickFirstremains a deprecated public label without bringing back the prompt, and the runtime applies only recognizeddata-labelskeys. - Clarified host restoration. The docs and agent reference distinguish no vote (
choice: []), an omitted note, and an explicitly cleared note.
Verified with 50 quiz package tests, 30 Chromium tests, and the built package declarations.
gpt-6.2-sol(high) ï― ð

A poll's note was tied to a vote: Send note with no option picked showed "Pick an option to send your note" and sent nothing. Now the note counts as an answer of its own.
{ choice: [], note }. Drop already acceptschoice: []on a poll, keeps the note, and leaves it out of the counts (quizResultsskips'[]', andread_droplists it as "no vote now").pickFirstremains a deprecated, unused label for compatibility. Unknowndata-labelskeys are ignored.Tests:
vp test run packages/quiz(49 passed),playwright test e2e/quiz.e2e.ts(29 passed on the original PR head). The pick-first tests are replaced by coverage for sending, retrying, and clearing a note without a vote, voting after sending a note, and closing voting. The added browser coverage awaits CI.ðĪ Generated with Claude Code