Skip to content

fix(examples): show product badge for AI Transport and LiveObjects cards#3483

Open
rainbowFi wants to merge 1 commit into
mainfrom
fix-examples-product-badge
Open

fix(examples): show product badge for AI Transport and LiveObjects cards#3483
rainbowFi wants to merge 1 commit into
mainfrom
fix-examples-product-badge

Conversation

@rainbowFi

Copy link
Copy Markdown
Contributor

What

AI Transport and LiveObjects example-gallery cards render with no product badge. The example product keys (ai_transport, liveobjects) don't match @ably/ui's ProductTile keys (aiTransport, liveObjects), so the badge lookup misses. This maps them in ExamplesGrid so the badge renders.

Scope

One file: src/components/Examples/ExamplesGrid.tsx.

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 07d34072-0d55-49e1-87d5-5b83e79e1397

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-examples-product-badge

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

ExamplesGrid drew badge labels from the homepage ProductTile map, whose
keys (aiTransport, liveObjects) don't match the example product keys, so
AI Transport and LiveObjects cards rendered no badge. Use the examples
domain's own products map instead, consistent with ExamplesFilter and
ExamplesContent.

Rename the 'auth' filter to 'platform' (label "Platform") with its own
badge colour, and order the product filters platform, pubsub, chat, AI
Transport, spaces, LiveObjects.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@m-hulbert
m-hulbert force-pushed the fix-examples-product-badge branch from cce90c4 to 1cfbc2d Compare July 23, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants