Repository navigation
feat(quiz): mark a poll's recommended option with a pill, and put it first - #498
Conversation
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-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 blank line before an option’s rationale can silently disable {recommended}. Please handle that layout before merging.
Approach: Sorting after the vote keys are computed is the right way to put recommendations first without changing stored answers.
Reviewed changes across quiz parsing, HTML rendering, and authoring tools:
- Parsing and vote identity: Checked recommendation detection, stable ordering, and the keys used by hosts.
- Rendering and localization: Checked the pill, custom and translated labels,
data-recommended, and narrow-screen rendering. - Validation and authoring: Checked the question diagnostic, Doctor examples, component metadata, docs, and skill reference.
- Verification: The workspace build, 41 quiz tests, and 19 focused Doctor tests passed. Separate parse-and-render and Chromium checks reproduced the two findings below.
gpt-6.2-sol(high) | 𝕏
Latest result Pull request merged. Final answersSession Pull request merged. PR #498 is ready to merge. Its parent #497 is in main, all hosted checks passed, and both resolved findings remain fixed: loose task items retain their recommendations, and long pills wrap at narrow widths. All 44 quiz tests passed locally, and lint exited successfully with warnings. No repair push was needed. Session Resolved the merge conflicts and pushed f807904, preserving multiline option labels, recommendation pills, and stable vote keys. All 44 quiz tests and formatting passed. The pnpm wrapper hit a local SQLite error, but lint ran directly and reported warnings only. Both historical Pullfrog threads were already resolved, and their fixes remain intact. Awaiting hosted checks. Resolved the merge conflicts and pushed f807904, preserving multiline option labels, recommendation pills, and stable vote keys. All 44 quiz tests and formatting passed. The pnpm wrapper hit a local SQLite error, but lint ran directly and reported warnings only. Both historical Pullfrog threads were already resolved, and their fixes remain intact. Awaiting hosted checks. Session Updated the branch with feat/quiz-multiline-options because feat/quiz-multiline-options changed e2e/quiz.e2e.ts after its checks ran; waiting for checks on the new head. Session Updated the branch with feat/quiz-multiline-options because feat/quiz-multiline-options changed e2e/quiz.e2e.ts after its checks ran; waiting for checks on the new head. PR #498 is ready with no further repair. The loose-list recommendation and narrow-screen pill fixes are already in the reviewed commit, and both threads are resolved. All hosted checks and 43 local quiz tests passed. Local lint passed with warnings; the sandbox blocked Playwright’s local server, but hosted E2E passed. |
There was a problem hiding this comment.
✅ No new issues found. No P0 or P1 findings remain.
Reviewed changes in f5b81f9:
- Recognized recommendations in loose task lists. The parser reads the checkbox paragraph, not the rationale, and still reports and drops recommendations on questions.
- Wrapped long recommendation pills. The pill stays within its option label at a 320px viewport.
- Verified both fixes. All 43 quiz parse-and-render tests and 16 Chromium quiz tests passed.
gpt-6.2-sol(high) | 𝕏

A poll had no way to say which option the author picks.
- [ ] Neon {recommended}now draws a "Recommended" pill after the option's text, and{recommended="My pick"}sets the pill's words. Stacked on #497.Comark already moves an attribute after a task item's text onto its
liand drops it from the text, in tight and loose lists and before a>reason, so the parse plugin reads it there and the option's key stays the hash of its text alone. A poll lists its recommended options first, in the order written, then the rest. The option getsdata-recommendedwith the pill's words, and the pill is.cqz-pill(data-slot="recommended") inside the label, so a screen reader hears it with the option.On a
::questionthe mark would give the answer away, so it's dropped and reported ascomark/quiz/recommended-in-question(COMARK4017), with a doctor page.Decisions:
.cqz-label, after the text, so it wraps with it. It's--comark-accenton--comark-foreground, a 0.75rem rounded pill, no motion.labelsoption gainsrecommended, so a translated page can say "Recomendado".data-keyfrom the options, so the pill's text doesn't reach stored answers.Checked:
packages/quiz/test/quiz.test.ts: the recommended option renders first with the pill anddata-recommended, a custom pill label, thelabelsoption, the key and id unchanged by the mark, the question issue, and the mark dropped on a question.test/doctor.test.tsfor the quiz rules (the new page's incorrect example reports only its rule, the correct one nothing), format, lint, typecheck of quiz and the lint rules,vite-doctoron the package andpnpm run lint:docs.Docs: a "Recommended" section under Poll, the
recommendedlabel, the slot and the attribute, and the comark-ui skill reference.Plan: https://drop.vitehub.dev/d/wtn1zg3tajmt/social-poll-drop-plan