Skip to content

feat(carousel): a slide that is one image shows the photo itself, filling the slide at one shape - #502

Closed
onmax wants to merge 4 commits into
mainfrom
fix/carousel-photo-fill
Closed

onmax wants to merge 4 commits into
mainfrom
fix/carousel-photo-fill

Conversation

@onmax

@onmax onmax commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

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 (default 4 / 3) sets that shape.
  • Slides with text or code keep their panel.
  • Zooming a photo still shows it whole, since the zoomed copy sits outside the grid.
Before After
Photos on grey panels Photos filling their slides

🤖 Generated with Claude Code

…ling the slide at one shape (--cc-ratio) with no panel
@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-28T13:59:25.221622Z
We couldn’t complete this review. Comment @codex review to try again.
4395b66 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.

@vite-hub

vite-hub Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Cancelled 2026-11-28T15:25:52.210Z 3m 54s
View session Starting Not started —
View session Last seen running 2026-11-28T14:49:30.397Z 1s
View session Last seen running 2026-11-28T14:31:00.951Z 0s

Latest result

Pull request closed.

Final answers

Session

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.

@pkg-pr-new

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

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

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

comark-badge

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

comark-bundle

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

comark-cards

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

comark-carousel

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

comark-cast

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

comark-charts

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

comark-chat

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

comark-chips

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

comark-cjk

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

comark-code

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

comark-code-notes

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

comark-colors

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

comark-comments

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

comark-critic

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

comark-deflist

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

comark-details

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

comark-diagrams

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

comark-diff

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

comark-embed

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

comark-fields

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

comark-figure

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

comark-file-tree

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

comark-footnotes

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

comark-git-graph

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

comark-github

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

comark-icon

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

comark-include

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

comark-keys

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

comark-links

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

comark-linter

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

comark-magic-move

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

comark-mark

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

markdown-it-to-comark

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

marked-to-comark

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

comark-mathml

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

comark-media

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

comark-metrics

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

migrate-to-comark

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

comark-motion

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

comark-outline

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

comark-properties

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

comark-qr

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

comark-quiz

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

comark-reading-time

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

remark-to-comark

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

comark-social

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

comark-sources

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

comark-steps

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

comark-table

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

comark-tabs

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

comark-tests

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

comark-time

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

comark-ui

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

comark-xref

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

comark-zoom

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

commit: f8fc6dc

@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

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 (default 4 / 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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.2-sol(high) | 𝕏

Comment thread packages/carousel/src/styles.ts Resolved
Comment thread packages/carousel/src/styles.ts Resolved
Comment thread packages/carousel/test/carousel.test.ts Resolved
Comment thread packages/carousel/docs/index.md Resolved

@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 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 / 3 without 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.

Pullfrog  | Fix it ➔ | View workflow run | Using gpt-6.2-sol(high) | 𝕏

@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

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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.2-sol(high) | 𝕏

Comment thread packages/carousel/src/index.ts Resolved

@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 — 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 :photo cannot 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.

Pullfrog  | View workflow run | Using gpt-6.2-sol(high) | 𝕏

@onmax

onmax commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

Folded into #503, which now targets main with these commits.

@onmax onmax closed this Nov 28, 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