Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/embed/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAction'> {
/**
* The ID of the data source object. For example, Model, View, or Table. Spotter uses this object to query data and generate Answers.

Check warning on line 23 in src/embed/conversation.ts

View workflow job for this annotation

GitHub Actions / build

Comments may not exceed 90 characters
*/
worksheetId: string;
/**
Expand Down Expand Up @@ -103,6 +103,20 @@
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
*/
hideSampleQuestions?: boolean;
/**
* enablePastConversationsSidebar : Enable past conversations sidebar
*
* Supported embed types: `SpotterEmbed`
* @example
* ```js
* const embed = new SpotterEmbed('#tsEmbed', {
* ... //other embed view config
* enablePastConversationsSidebar : true,
* })
* ```
* @version SDK: 1.36.0 | ThoughtSpot: 10.5.0.cl
*/
enablePastConversationsSidebar?: boolean;
}

/**
Expand Down Expand Up @@ -143,6 +157,7 @@
hideSourceSelection,
dataPanelV2,
showSpotterLimitations,
enablePastConversationsSidebar,
hideSampleQuestions,
} = this.viewConfig;
const path = 'insights/conv-assist';
Expand Down Expand Up @@ -170,6 +185,10 @@
queryParams[Param.HideSampleQuestions] = !!hideSampleQuestions;
}

if (!isUndefined(enablePastConversationsSidebar)) {
queryParams[Param.EnablePastConversationsSidebar] = !!enablePastConversationsSidebar;
}

let query = '';
const queryParamsString = getQueryParamString(queryParams, true);
if (queryParamsString) {
Expand Down
3 changes: 2 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4211,7 +4211,8 @@ export enum Param {
isSpotterAgentEmbed = 'isSpotterAgentEmbed',
IsLiveboardStylingAndGroupingEnabled = 'isLiveboardStylingAndGroupingEnabled',
IsLazyLoadingForEmbedEnabled = 'isLazyLoadingForEmbedEnabled',
RootMarginForLazyLoad = 'rootMarginForLazyLoad'
RootMarginForLazyLoad = 'rootMarginForLazyLoad',
EnablePastConversationsSidebar = 'enablePastConversationsSidebar',
}

/**
Expand Down
Loading