Skip to content

Support new coverDefinitionDark for cards & image type #3547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 8, 2025

Conversation

nolannbiron
Copy link
Member

No description provided.

Copy link

changeset-bot bot commented Aug 8, 2025

🦋 Changeset detected

Latest commit: dbb4d2f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
gitbook Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for a new coverDefinitionDark field for table view cards, enabling different cover images for light and dark themes. The changes also introduce a new image column type for table records.

  • Add getRecordCardCovers utility function to extract both light and dark cover images
  • Implement new image column type with proper image display and linking
  • Update RecordCard component to handle dark theme covers with responsive layout considerations

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
packages/gitbook/src/components/DocumentView/Table/utils.ts Adds getRecordCardCovers function and imports for new dark cover support
packages/gitbook/src/components/DocumentView/Table/RecordColumnValue.tsx Implements new image column type with proper image rendering and link handling
packages/gitbook/src/components/DocumentView/Table/RecordCard.tsx Updates card rendering to support both light and dark covers with responsive behavior
.changeset/serious-pumas-clap.md Documents the feature addition for changelog generation

Copy link

argos-ci bot commented Aug 8, 2025

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
customers-v2 (Inspect) 👍 Changes approved 6 changed Aug 8, 2025, 4:00 PM
v2-cloudflare (Inspect) 👍 Changes approved 2 changed Aug 8, 2025, 4:07 PM
v2-vercel (Inspect) ✅ No changes detected - Aug 8, 2025, 4:02 PM

@nolannbiron nolannbiron merged commit ff96bb5 into main Aug 8, 2025
16 checks passed
@nolannbiron nolannbiron deleted the nolann/support-image-cards branch August 8, 2025 16:08
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.

2 participants