Skip to content

Comments

feat: add ais.hits widget support#28

Open
sarahdayan wants to merge 4 commits intomainfrom
feat/hits-widget
Open

feat: add ais.hits widget support#28
sarahdayan wants to merge 4 commits intomainfrom
feat/hits-widget

Conversation

@sarahdayan
Copy link
Member

@sarahdayan sarahdayan commented Feb 21, 2026

Summary

  • Register ais.hits in the runtime with a passthrough transformParams (only serializable param is escapeHTML)
  • Add HitsWidget type to the $$supportedWidgets union
  • Enable the widget in the toolbar with escapeHTML switch, cssClasses object field (with disabledValue: undefined), and descriptions
  • Add field behavior tests (hits.test.tsx), AI tool dispatch tests, and toolbar popover test

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 à 11 13 13

@netlify
Copy link

netlify bot commented Feb 21, 2026

Deploy Preview for algolia-experiences-js ready!

Name Link
🔨 Latest commit d18b40e
🔍 Latest deploy log https://app.netlify.com/projects/algolia-experiences-js/deploys/699ad80cf080e0000891c7c0
😎 Deploy Preview https://deploy-preview-28--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 21, 2026

Deploy Preview for algolia-experiences-react ready!

Name Link
🔨 Latest commit d18b40e
🔍 Latest deploy log https://app.netlify.com/projects/algolia-experiences-react/deploys/699ad80c5dee790008b7495e
😎 Deploy Preview https://deploy-preview-28--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.

sarahdayan and others added 2 commits February 22, 2026 10:47
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Change cssClasses from false to undefined with disabledValue: undefined
- Add field behavior tests (hits.test.tsx)
- Update AI tools test fixture

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
sarahdayan and others added 2 commits February 22, 2026 11:13
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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