Repository navigation
feat(quiz): columns lays a poll's or question's options out as a grid of picture cards - #520
Conversation
âĶ of cards, picture cards for options that start with an image
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. |
Latest result Pull request merged. Final answersSession Pull request merged. Session Pushed 1a0d770 and resolved the P1 review thread. Unchanged image-only row polls keep their saved votes, while image-only card polls still get distinct IDs. All 67 quiz tests passed, and lint completed with warnings outside the changed files. Waiting for CI on the repair commit. Session Pushed 1a0d770 and resolved the P1 review thread. Unchanged image-only row polls keep their saved votes, while image-only card polls still get distinct IDs. All 67 quiz tests passed, and lint completed with warnings outside the changed files. Waiting for CI on the repair commit. Session Pushed 1a0d770 and resolved the P1 review thread. Unchanged image-only row polls keep their saved votes, while image-only card polls still get distinct IDs. All 67 quiz tests passed, and lint completed with warnings outside the changed files. Waiting for CI on the repair commit. Session Pushed 1a0d770 and resolved the P1 review thread. Unchanged image-only row polls keep their saved votes, while image-only card polls still get distinct IDs. All 67 quiz tests passed, and lint completed with warnings outside the changed files. Waiting for CI on the repair commit. Session Pushed 1a0d770 and resolved the P1 review thread. Unchanged image-only row polls keep their saved votes, while image-only card polls still get distinct IDs. All 67 quiz tests passed, and lint completed with warnings outside the changed files. Waiting for CI on the repair commit. Session Pushed 1a0d770 and resolved the P1 review thread. Unchanged image-only row polls keep their saved votes, while image-only card polls still get distinct IDs. All 67 quiz tests passed, and lint completed with warnings outside the changed files. Waiting for CI on the repair commit. Session Pushed 1a0d770 and resolved the P1 review thread. Unchanged image-only row polls keep their saved votes, while image-only card polls still get distinct IDs. All 67 quiz tests passed, and lint completed with warnings outside the changed files. Waiting for CI on the repair commit. Session Pushed 1a0d770 and resolved the P1 review thread. Unchanged image-only row polls keep their saved votes, while image-only card polls still get distinct IDs. All 67 quiz tests passed, and lint completed with warnings outside the changed files. Waiting for CI on the repair commit. |
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: |
âĶ the docs link check finds no missing file
There was a problem hiding this comment.
Important
Reordering picture cards with the same caption can move saved votes to the wrong photo, and clicking a caption link selects the card instead of opening the link.
Approach: An opt-in grid that reuses the native quiz inputs and host protocol is the right fit, but the grid needs to preserve option identity and link behavior.
Reviewed changes â I traced the new layout from Markdown through HTML and the browser runtime. All 62 quiz unit tests and 43 Chromium quiz tests passed; the two cases above were reproduced separately.
- Parsing and validation: Reviewed
columns, leading-image extraction, zoom suppression, and the new diagnostics. - Rendering and interaction: Reviewed the responsive grid, native controls, descriptions, answer key, and host vote and result handling.
- Integration: Reviewed preset registration, component metadata, docs, and the row-output regression fixture.
pullfrog(medium) ï― ð
There was a problem hiding this comment.
Important
No new blocking issues found in this commit. The two existing P1 threads remain open.
Reviewed changes â I reviewed the URL changes in the two quiz Doctor pages.
- Updated image URLs: Replaced relative image paths in the
invalid-columnsandpicture-altexamples with external URLs. The docs link checker now skips those URLs because they are off-site.
Non-blocking
- P2 â Class: live examples reference missing images. Both new
example.comimage URLs return HTTP 404, so the Correct and Incorrect previews still show broken pictures. Use checked-in assets such as/before.pngand/after.png, with matching captions and alt text, so both pages demonstrate the cards and the link checker verifies the assets. Seeinvalid-columns.mdandpicture-alt.md.
pullfrog(medium) ï― ð
There was a problem hiding this comment.
Important
Adding columns to an existing picture poll can make saved votes disappear even though the poll and its options are unchanged.
Reviewed changes â I reviewed the picture key and caption link fixes and the Doctor example updates. All 63 quiz unit tests and 10 Chromium card tests passed.
- Disambiguated picture keys: Added the image source to the key so photos with the same caption retain their identities when reordered.
- Restored caption navigation: Raised caption links above the card overlay and verified that clicking the picture still selects the card.
- Replaced missing example images: Switched both Doctor pages to checked-in screenshots.
pullfrog(medium) ï― ð
There was a problem hiding this comment.
Important
Distinct picture-only polls can now share a generated ID and overwrite each otherâs saved votes.
Reviewed changes â I reviewed aeb4a9e against the previous review. All 65 quiz unit tests passed; I reproduced the generated-ID collision separately through the public renderer.
- Preserved existing option keys: Kept legacy keys for unambiguous options when toggling
columns, while retaining source-derived keys for cards with shared captions. - Moved generated ID calculation: Computed fallback IDs before extracting pictures and added row-to-grid identity tests for polls with and without explicit IDs.
pullfrog(medium) ï― ð
There was a problem hiding this comment.
Important
The collision fix changes the ID of existing image-only row polls, so saved votes no longer restore even when the Markdown is unchanged.
Reviewed changes â I reviewed d493a81 against the previous review. All 66 quiz unit tests passed; I verified the old and new IDs separately through the legacy formula and public renderer.
- Distinguished image-only polls: Added image sources to generated IDs for options without captions and tested that distinct polls get distinct IDs in both layouts.
pullfrog(medium) ï― ð
There was a problem hiding this comment.
â No new issues found.
Reviewed changes â No P0 or P1 findings remain, and all 67 quiz unit tests passed.
- Restored legacy row IDs. Unchanged image-only row polls keep their generated IDs and option keys, so saved votes still restore.
- Kept image-only card polls distinct. Generated card IDs still distinguish different photo sets and stay stable across column counts. The README documents using an explicit
#idwhen switching between rows and cards.
pullfrog(medium) ï― ð

A poll that asks reviewers to pick photos or screenshots had to be a column of text rows.
columnslays a::pollor::question's options out as a wrapping grid of cards instead:columnstakes 2 to 6, and a barecolumnsmeans 3. An option that starts with an image is a picture card: the image on top, every picture cropped to one shape (--cqz-picture-ratio, 4 / 3 by default), the label under it, and the checkbox or radio in the corner. Other options are text cards. The whole card is the label of a real checkbox or radio, so a click anywhere picks it and the keyboard works as in rows. The picked card gets a thicker border and the filled mark, not a color alone. The grid drops columns by the block's own width (a container query, so a card stays at least 8rem wide).multiple,{recommended},shuffle,number,closes,note, the results and right-answer states, print and dark mode work in cards. A>line under an option is the reason revealed after Check in a question, and the card's description in a poll (rows don't show one). A picture in a card doesn't zoom.Reported through
meta.issues: acolumnsoutside 2 to 6 or not a number (comark/quiz/invalid-columns, COMARK4018, the nearest valid number is used) and a picture option with no alt text (comark/quiz/picture-alt, COMARK4019). Both have doctor pages.Without
columnsthe HTML is unchanged: a test renders a fixture of polls, a question and a recall card, with and without pictures, and compares it with the output ofmainbyte for byte.Also in here: the
/infoentry,quiz-picturein comark-ui's tag list, the package page (aCardssection with a live example), the README and the comark-ui skill's quiz reference.Checked:
pnpm readypasses, and the quiz e2e files pass, including a newe2e/quiz-cards.e2e.ts(grid, columns dropping when narrow, click on a picture or caption, keyboard, check, poll results, dark mode).ðĪ Generated with Claude Code