Skip to content

Fix AI Transport filter not working on page refresh/direct links#3166

Merged
matt423 merged 1 commit intomainfrom
fix-ai-transport-filter
Feb 2, 2026
Merged

Fix AI Transport filter not working on page refresh/direct links#3166
matt423 merged 1 commit intomainfrom
fix-ai-transport-filter

Conversation

@matt423
Copy link
Member

@matt423 matt423 commented Jan 30, 2026

Description

Fixed the AI Transport filter on the examples page not working when refreshing the page or using direct links with ?product=ai_transport.

The issue was that the examples filter was using the products object from @ably/ui/core/ProductTile/data to validate product query parameters. This external products list doesn't include ai_transport, so it was filtered out as invalid when parsing the URL on page load.

The filter worked when clicked because the ExamplesFilter component uses the local products definition from src/data/examples/index.ts.

Changed ExamplesContent to use the same local products definition for URL validation, which includes all example products including ai_transport.

Review App

Checklist

@matt423 matt423 added the review-app Create a Heroku review app label Jan 30, 2026
@coderabbitai
Copy link

coderabbitai bot commented Jan 30, 2026

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.

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

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-ai-transport-filter

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

@ably-ci ably-ci temporarily deployed to ably-docs-fix-ai-transp-vcigwy January 30, 2026 10:01 Inactive
@matt423 matt423 marked this pull request as ready for review January 30, 2026 10:09
@GregHolmes GregHolmes force-pushed the fix-ai-transport-filter branch from 40c1f7f to 2d006ca Compare February 2, 2026 11:27
The examples filter was using the products list from @ably/ui package
which doesn't include ai_transport. Changed to use the local products
definition that includes all example products including ai_transport.
@matt423 matt423 force-pushed the fix-ai-transport-filter branch from 2d006ca to a4a25d9 Compare February 2, 2026 11:43
@matt423 matt423 enabled auto-merge February 2, 2026 11:44
@matt423 matt423 temporarily deployed to ably-docs-fix-ai-transp-vcigwy February 2, 2026 11:44 Inactive
@matt423 matt423 merged commit 7da6901 into main Feb 2, 2026
7 checks passed
@matt423 matt423 deleted the fix-ai-transport-filter branch February 2, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-app Create a Heroku review app

Development

Successfully merging this pull request may close these issues.

3 participants