Skip to content

Comments

feat: add ais.stats widget support#31

Open
sarahdayan wants to merge 1 commit intomainfrom
feat/stats-widget
Open

feat: add ais.stats widget support#31
sarahdayan wants to merge 1 commit intomainfrom
feat/stats-widget

Conversation

@sarahdayan
Copy link
Member

@sarahdayan sarahdayan commented Feb 22, 2026

Summary

  • Registers the ais.stats widget in the runtime with passthrough transformParams (no serializable params beyond container)
  • Adds StatsWidget to the type union in types.ts
  • Enables ais.stats in the toolbar with cssClasses support (root, text) using disabledValue: undefined
  • Adds stats.test.tsx with 4 field behavior tests (cssClasses toggle on/off/absent/sub-field)
  • Adds AI tool tests for add and edit of stats widget (2 new tests)

Note

Partial prop support, only serializable props handled for now.

Note

This widget is index-dependent, meaning it will render differently (nested) when the index PRs are merged.

Capture d’écran 2026-02-22 à 14 43 29

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@netlify
Copy link

netlify bot commented Feb 22, 2026

Deploy Preview for algolia-experiences-js ready!

Name Link
🔨 Latest commit 0d5d005
🔍 Latest deploy log https://app.netlify.com/projects/algolia-experiences-js/deploys/699b06c49cc40700080f53a6
😎 Deploy Preview https://deploy-preview-31--algolia-experiences-js.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Feb 22, 2026

Deploy Preview for algolia-experiences-react ready!

Name Link
🔨 Latest commit 0d5d005
🔍 Latest deploy log https://app.netlify.com/projects/algolia-experiences-react/deploys/699b06c43e21470008b87814
😎 Deploy Preview https://deploy-preview-31--algolia-experiences-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant