Skip to content

feat(quiz): send a poll's note without a vote - #508

Merged
vite-hub[bot] merged 2 commits into
mainfrom
feat/quiz-note-without-vote
Nov 29, 2026
Merged

vite-hub[bot] merged 2 commits into
mainfrom
feat/quiz-note-without-vote

Conversation

@onmax

@onmax onmax commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

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.

  • Send note with no vote sends { choice: [], note }. Drop already accepts choice: [] on a poll, keeps the note, and leaves it out of the counts (quizResults skips '[]', and read_drop lists it as "no vote now").
  • Until the reader votes, their note shows in the note row under Edit note. When they vote, it moves under their pick as before, and the vote doesn't send the note again.
  • A note restored with no vote stays visible after voting closes. Only the Edit note button goes away.
  • A reader can retry an unchanged note-only send. An empty note with no vote and nothing to take back sends nothing.
  • The pick-first prompt is gone. pickFirst remains a deprecated, unused label for compatibility. Unknown data-labels keys 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

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.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-29T11:10:46.980269Z
We couldn’t complete this review. Comment @codex review to try again.
246bdb7 PR opened
â„đïļ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@pkg-pr-new

pkg-pr-new Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@508

comark-badge

pnpm add https://pkg.pr.new/comark-badge@508

comark-bundle

pnpm add https://pkg.pr.new/comark-bundle@508

comark-cards

pnpm add https://pkg.pr.new/comark-cards@508

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@508

comark-cast

pnpm add https://pkg.pr.new/comark-cast@508

comark-charts

pnpm add https://pkg.pr.new/comark-charts@508

comark-chat

pnpm add https://pkg.pr.new/comark-chat@508

comark-chips

pnpm add https://pkg.pr.new/comark-chips@508

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@508

comark-code

pnpm add https://pkg.pr.new/comark-code@508

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@508

comark-colors

pnpm add https://pkg.pr.new/comark-colors@508

comark-comments

pnpm add https://pkg.pr.new/comark-comments@508

comark-critic

pnpm add https://pkg.pr.new/comark-critic@508

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@508

comark-details

pnpm add https://pkg.pr.new/comark-details@508

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@508

comark-diff

pnpm add https://pkg.pr.new/comark-diff@508

comark-embed

pnpm add https://pkg.pr.new/comark-embed@508

comark-fields

pnpm add https://pkg.pr.new/comark-fields@508

comark-figure

pnpm add https://pkg.pr.new/comark-figure@508

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@508

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@508

comark-git-graph

pnpm add https://pkg.pr.new/comark-git-graph@508

comark-github

pnpm add https://pkg.pr.new/comark-github@508

comark-icon

pnpm add https://pkg.pr.new/comark-icon@508

comark-include

pnpm add https://pkg.pr.new/comark-include@508

comark-keys

pnpm add https://pkg.pr.new/comark-keys@508

comark-links

pnpm add https://pkg.pr.new/comark-links@508

comark-linter

pnpm add https://pkg.pr.new/comark-linter@508

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@508

comark-mark

pnpm add https://pkg.pr.new/comark-mark@508

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@508

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@508

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@508

comark-media

pnpm add https://pkg.pr.new/comark-media@508

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@508

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@508

comark-motion

pnpm add https://pkg.pr.new/comark-motion@508

comark-outline

pnpm add https://pkg.pr.new/comark-outline@508

comark-properties

pnpm add https://pkg.pr.new/comark-properties@508

comark-qr

pnpm add https://pkg.pr.new/comark-qr@508

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@508

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@508

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@508

comark-social

pnpm add https://pkg.pr.new/comark-social@508

comark-sources

pnpm add https://pkg.pr.new/comark-sources@508

comark-steps

pnpm add https://pkg.pr.new/comark-steps@508

comark-table

pnpm add https://pkg.pr.new/comark-table@508

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@508

comark-tests

pnpm add https://pkg.pr.new/comark-tests@508

comark-time

pnpm add https://pkg.pr.new/comark-time@508

comark-ui

pnpm add https://pkg.pr.new/comark-ui@508

comark-xref

pnpm add https://pkg.pr.new/comark-xref@508

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@508

commit: f3c4118

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: ""`.

PullfrogÂ Â ï―œ Fix all ➔ ï―œ Fix 👍s ➔ ï―œ View workflow run ï―œ Using gpt-6.2-sol(high) ï―œ 𝕏

Comment thread packages/quiz/src/script.ts Resolved
Comment thread packages/quiz/src/labels.ts Resolved
@vite-hub

vite-hub Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Completed 2026-11-29T12:03:40.603Z 3m 4s
View session Cancelled 2026-11-29T11:43:03.878Z 11m 22s
View session Cancelled 2026-11-29T11:31:21.304Z 7m 31s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

View session

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.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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. pickFirst remains a deprecated public label without bringing back the prompt, and the runtime applies only recognized data-labels keys.
  • 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.

PullfrogÂ Â ï―œ View workflow run ï―œ Using gpt-6.2-sol(high) ï―œ 𝕏

@vite-hub
vite-hub Bot merged commit 3510e7c into main Nov 29, 2026
6 checks passed
@vite-hub
vite-hub Bot deleted the feat/quiz-note-without-vote branch November 29, 2026 12:12
@github-actions github-actions Bot mentioned this pull request Nov 29, 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