Repository navigation
feat(carousel): a slide that is one image shows the photo itself, filling the slide at one shape - #502
feat(carousel): a slide that is one image shows the photo itself, filling the slide at one shape#502onmax wants to merge 4 commits into
Conversation
…ling the slide at one shape (--cc-ratio) with no panel
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 closed. Final answersSession Pull request closed. Session Fixed the streaming regression and resolved the review thread. Linked photos now stay edge-to-edge when more text streams in, while slides with authored captions keep their panels. All 19 carousel tests passed, and lint completed with warnings outside the changed files. Pushed f8fc6dc; awaiting hosted checks. Session Waiting for review checks before the next pass. Session Waiting for review checks before the next pass. |
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
The photo layout works for a plain image, and zoom shows it uncropped. Before merging, fix how photo slides are identified and sized in mixed carousels, and update the existing browser test that still expects centering.
Approach: Applying the crop only inside the carousel grid is the right way to keep the zoomed view uncropped, but counting rendered elements is not enough to identify a photo-only slide.
Reviewed changes — I checked the shared CSS, the carousel documentation, and the rendering and browser tests.
- Photo layout: Single-image slides drop their panel and crop to
--cc-ratio(default4 / 3). I verified that a 4:1 image returns to its original ratio in the zoom dialog. - Coverage: All 14 carousel unit tests passed. In Chromium, 30 of 31 carousel browser tests passed; the photo-centering assertion is the failure.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
ℹ️ No new issues found in the test update. The earlier P1 findings remain open.
Reviewed changes — I reviewed the browser test update since 4395b662.
- Photo layout coverage: Replaced the centering assertions with checks that plain and linked photos span the slide width at
4 / 3without panel padding, while slides with titles or text keep their padding. All 31 carousel browser tests passed in Chromium, and all 14 carousel unit tests passed.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
Important
Appending text to a streaming document can turn an already-rendered linked photo back into a padded slide.
Approach: Classifying photo slides in the parser fixes the fresh-render cases, but the decision needs to survive reuse of a completed slide during streaming.
Reviewed changes — I reviewed 5688e200 since the previous Pullfrog review. All 18 carousel unit and framework tests and all 31 carousel Chromium tests passed; a separate streaming check reproduced the regression below.
- Photo classification: Moved the decision into the parser and passed it through all four renderers as
data-cc-photo. - Slide sizing: Kept photo slides at their own height beside taller content and overlaid the new-tab icon without adding space below the image.
- Docs and regression coverage: Updated the photo layout contract and added cases for links with generated warnings, links with authored captions, and taller neighboring slides.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
✅ No new issues found. No P0 or P1 findings remain.
Reviewed changes — I reviewed f8fc6dce since the prior Pullfrog review.
- Preserved photo layout across streaming updates. Completed slides keep their photo classification after link decoration, and slides still being written are reclassified when their content changes.
- Kept diagnostics tied to authored props. Reused nodes no longer report generated attributes as unknown, and an authored
:photocannot override the computed layout. - Added streaming regression coverage. All 19 carousel unit and framework tests passed, as did the package build. I also verified repeated appends with implicit and explicit slides and checked that adding a caption to an unfinished slide removes the photo layout.
gpt-6.2-sol(high) | 𝕏
|
Folded into #503, which now targets main with these commits. |

A carousel slide that is one image used to sit on the grey slide panel, with padding around it, so a photo carousel read as photos in boxes. Now such a slide is the photo itself: no panel, and the photo fills the slide edge to edge at one shape, cropped to fit, so photos of different shapes still line up.
--cc-ratio(default4 / 3) sets that shape.🤖 Generated with Claude Code