Skip to content

feat(index): support isolated index in Vue - #7126

Draft
Haroenv wants to merge 1 commit into
masterfrom
feat/vue-isolated-index
Draft

feat(index): support isolated index in Vue#7126
Haroenv wants to merge 1 commit into
masterfrom
feat/vue-isolated-index

Conversation

@Haroenv

@Haroenv Haroenv commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

What

Adds an isolated prop to Vue's <ais-index> (AisIndex), threading it through to the index widget's isolated option (graduated from EXPERIMENTAL_isolated in #7117). This brings Vue to parity with JS and React, which already expose isolated.

  • indexName is no longer required on <ais-index>, since isolated indices don't need one. The underlying index widget already validates that either indexName or isolated is provided.
  • Vue never shipped the experimental EXPERIMENTAL_isolated, so only the stable isolated prop is exposed — no deprecated alias is needed (unlike JS/React, which kept aliases for their previously-shipped experimental names).

Test plan

  • yarn jest packages/vue-instantsearch/src/components/__tests__/Index.js — added a test asserting isolated: true is passed to widgetParams without an indexName.
  • Full vue-instantsearch suite green on Vue 2 and Vue 3.

Draft: opening early for review of the API shape.

🤖 Generated with Claude Code

Adds an `isolated` prop to `<ais-index>` (AisIndex), threaded through to the
index widget's `isolated` option. `indexName` is no longer `required` because
isolated indices don't need one — the underlying index widget validates that
either `indexName` or `isolated` is provided.

Vue never shipped the experimental `EXPERIMENTAL_isolated`, so only the stable
`isolated` prop is exposed; no deprecated alias is needed here.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

TIP This summary will be updated as you push new changes.

@Haroenv
Haroenv requested a review from Copilot July 22, 2026 09:59
@pkg-pr-new

pkg-pr-new Bot commented Jul 22, 2026

Copy link
Copy Markdown
More templates

algoliasearch-helper

npm i https://pkg.pr.new/algolia/instantsearch/algoliasearch-helper@7126

instantsearch-ui-components

npm i https://pkg.pr.new/algolia/instantsearch/instantsearch-ui-components@7126

instantsearch.css

npm i https://pkg.pr.new/algolia/instantsearch/instantsearch.css@7126

instantsearch.js

npm i https://pkg.pr.new/algolia/instantsearch/instantsearch.js@7126

react-instantsearch

npm i https://pkg.pr.new/algolia/instantsearch/react-instantsearch@7126

react-instantsearch-core

npm i https://pkg.pr.new/algolia/instantsearch/react-instantsearch-core@7126

react-instantsearch-nextjs

npm i https://pkg.pr.new/algolia/instantsearch/react-instantsearch-nextjs@7126

react-instantsearch-router-nextjs

npm i https://pkg.pr.new/algolia/instantsearch/react-instantsearch-router-nextjs@7126

vue-instantsearch

npm i https://pkg.pr.new/algolia/instantsearch/vue-instantsearch@7126

commit: dc32837

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates Vue InstantSearch (packages/vue-instantsearch) to expose the now-stable isolated option on <ais-index> (AisIndex), allowing creation of isolated indices without requiring an indexName, aligning Vue’s API with the index widget’s capabilities.

Changes:

  • Add an isolated boolean prop to AisIndex and forward it through widgetParams.
  • Make indexName optional on AisIndex to support isolated indices without an explicit index name.
  • Extend the AisIndex unit tests to cover isolated: true with no indexName.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/vue-instantsearch/src/components/Index.js Adds isolated prop support and makes indexName optional, forwarding both through widgetParams.
packages/vue-instantsearch/src/components/tests/Index.js Adds assertions ensuring isolated is reflected in computed widgetParams, including when indexName is omitted.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/vue-instantsearch/src/components/Index.js

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants