Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
25 changes: 25 additions & 0 deletions src/embed/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,22 @@ export enum HomePage {
Modular = 'v2',
}

/**
* Define the version of the list page
* @version SDK: 1.40.0 | ThoughtSpot: 10.12.0.cl
*/
export enum ListPage {
/**
* List (v2) is the traditional List Experience.
* It serves as the foundational version of the list page.
*/
List = 'v2',
/**
* ListWithUXChanges (v3) introduces the new updated list page with UX changes.
*/
ListWithUXChanges = 'v3',
}

/**
* Define the discovery experience
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
Expand All @@ -122,6 +138,10 @@ export interface DiscoveryExperience {
* homePage determines the version of the home page.
*/
homePage?: HomePage;
/**
* listPageVersion determines the version of the list page.
*/
listPageVersion?: ListPage;
}

/**
Expand Down Expand Up @@ -684,6 +704,11 @@ export class AppEmbed extends V1Embed {
if (discoveryExperience.homePage === HomePage.Modular) {
params[Param.ModularHomeExperienceEnabled] = true;
}

// listPageVersion v3 will enable the new list page
if (discoveryExperience.listPageVersion === ListPage.ListWithUXChanges) {
params[Param.ListPageVersion] = discoveryExperience.listPageVersion;
}
}

const queryParams = getQueryParamString(params, true);
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
HomePageSearchBarMode,
PrimaryNavbarVersion,
HomePage,
ListPage,
DataPanelCustomColumnGroupsAccordionState,
} from './embed/app';
import {
Expand Down Expand Up @@ -141,6 +142,7 @@ export {
HomePageSearchBarMode,
PrimaryNavbarVersion,
HomePage,
ListPage,
VizPoint,
CustomActionPayload,
UIPassthroughEvent,
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3896,6 +3896,7 @@ export enum Param {
Query = 'query',
HideHomepageLeftNav = 'hideHomepageLeftNav',
ModularHomeExperienceEnabled = 'modularHomeExperience',
ListPageVersion = 'listpageVersion',
PendoTrackingKey = 'additionalPendoKey',
LiveboardHeaderSticky = 'isLiveboardHeaderSticky',
IsProductTour = 'isProductTour',
Expand Down
Loading
Loading