Skip to content

[SCAL-336968] Add embed support for Spotter conversation search - #665

Open
heyimalaap wants to merge 1 commit into
mainfrom
SCAL-336968
Open

heyimalaap wants to merge 1 commit into
mainfrom
SCAL-336968

Conversation

@heyimalaap

Copy link
Copy Markdown
Collaborator
  • spotterSidebarConfig.enableConversationSearch view-config flag to show the search button in the sidebar (embed-only, off by default; forwarded via APP_INIT like the rest of the sidebar config)
  • HostEvent.OpenSpotterConversationSearch / CloseSpotterConversationSearch to open/close the search page (open works even with the button hidden)
  • EmbedEvent.SpotterConversationSearchToggled ({ open: boolean }) emitted on every open/close of the search page

@heyimalaap
heyimalaap requested a review from a team as a code owner September 10, 2026 23:42

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request introduces support for the Spotter conversation search feature, adding the enableConversationSearch configuration option, corresponding unit tests, the SpotterConversationSearchToggled embed event, and host events to open and close the search page. The feedback suggests changing the string value of the new SpotterConversationSearchToggled enum member to camelCase ('spotterConversationSearchToggled') to maintain consistency with existing Spotter embed events.

Comment thread src/types.ts Outdated
- spotterSidebarConfig.enableConversationSearch view-config flag to show
  the search button in the sidebar (embed-only, off by default; forwarded
  via APP_INIT like the rest of the sidebar config)
- HostEvent.OpenSpotterConversationSearch / CloseSpotterConversationSearch
  to open/close the search page (open works even with the button hidden)
- EmbedEvent.SpotterConversationSearchToggled ({ open: boolean }) emitted
  on every open/close of the search page

Co-Authored-By: Claude Fable 5 <[email protected]>
@pkg-pr-new

pkg-pr-new Bot commented Sep 10, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@thoughtspot/visual-embed-sdk@665

commit: 7f4d761

Comment thread src/types.ts
* spotterEmbed.trigger(HostEvent.OpenSpotterConversationSearch);
* ```
*/
OpenSpotterConversationSearch = 'OpenSpotterConversationSearch',

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.

add unit test for host event and embed event

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