Skip to content

Comments

feat: add ais.numericMenu widget support#43

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

feat: add ais.numericMenu widget support#43
sarahdayan wants to merge 1 commit intomainfrom
feat/numeric-menu-widget

Conversation

@sarahdayan
Copy link
Member

@sarahdayan sarahdayan commented Feb 24, 2026

Summary

  • Registers the ais.numericMenu widget in the runtime with transformParams that converts string start/end values from toolbar inputs to numbers
  • Enables the widget in the toolbar with attribute, items (label + min/max bounds), and cssClasses fields
  • Adds field behavior tests, AI tool dispatch tests, and toolbar popover test
Capture d’écran 2026-02-24 à 12 00 53

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

netlify bot commented Feb 24, 2026

Deploy Preview for algolia-experiences-js ready!

Name Link
🔨 Latest commit 551031e
🔍 Latest deploy log https://app.netlify.com/projects/algolia-experiences-js/deploys/699d84fdd0660b0007381a37
😎 Deploy Preview https://deploy-preview-43--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 24, 2026

Deploy Preview for algolia-experiences-react ready!

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

Comment on lines +246 to +252
label,
...(start !== undefined && start !== ''
? { start: Number(start) }
: {}),
...(end !== undefined && end !== ''
? { end: Number(end) }
: {}),
Copy link
Member

Choose a reason for hiding this comment

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

Should the label (and the numbers?) be sanitized?

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you mean sanitized as in, have the values completely removed when the 3 inputs are empty? If yes, that's already handled based on the component type.

Copy link
Member

Choose a reason for hiding this comment

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

In addition, we might want to sanitize them to prevent unwanted behavior when rendering them in the website (thinking this applies to sortby / hitsperpage as well)

@sarahdayan sarahdayan requested a review from dhayab February 24, 2026 14:56
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.

2 participants