Skip to content

Commit ec14ec1

Browse files
committed
SCAL-259434 Added list page flag
1 parent 175b2ed commit ec14ec1

4 files changed

Lines changed: 362 additions & 262 deletions

File tree

src/embed/app.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,22 @@ export enum HomePage {
109109
Modular = 'v2',
110110
}
111111

112+
/**
113+
* Define the version of the list page
114+
* @version SDK: 1.40.0 | ThoughtSpot: 10.12.0.cl
115+
*/
116+
export enum ListPage {
117+
/**
118+
* List (v2) introduces the updated List Experience.
119+
* It serves as the foundational version of the list page.
120+
*/
121+
List = 'v2',
122+
/**
123+
* ListWithUXChanges (v3) introduces UX changes to the list page.
124+
*/
125+
ListWithUXChanges = 'v3',
126+
}
127+
112128
/**
113129
* Define the discovery experience
114130
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
@@ -122,6 +138,10 @@ export interface DiscoveryExperience {
122138
* homePage determines the version of the home page.
123139
*/
124140
homePage?: HomePage;
141+
/**
142+
* listPageVersion determines the version of the list page.
143+
*/
144+
listPageVersion?: ListPage;
125145
}
126146

127147
/**
@@ -698,6 +718,11 @@ export class AppEmbed extends V1Embed {
698718
if (discoveryExperience.homePage === HomePage.Modular) {
699719
params[Param.ModularHomeExperienceEnabled] = true;
700720
}
721+
722+
// listPageVersion will set the version of the list page experience
723+
if (discoveryExperience.listPageVersion) {
724+
params[Param.ListPageVersion] = discoveryExperience.listPageVersion;
725+
}
701726
}
702727

703728
const queryParams = getQueryParamString(params, true);

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
HomePageSearchBarMode,
1616
PrimaryNavbarVersion,
1717
HomePage,
18+
ListPage,
1819
DataPanelCustomColumnGroupsAccordionState,
1920
} from './embed/app';
2021
import {
@@ -141,6 +142,7 @@ export {
141142
HomePageSearchBarMode,
142143
PrimaryNavbarVersion,
143144
HomePage,
145+
ListPage,
144146
VizPoint,
145147
CustomActionPayload,
146148
UIPassthroughEvent,

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3876,6 +3876,7 @@ export enum Param {
38763876
Query = 'query',
38773877
HideHomepageLeftNav = 'hideHomepageLeftNav',
38783878
ModularHomeExperienceEnabled = 'modularHomeExperience',
3879+
ListPageVersion = 'listPageVersion',
38793880
PendoTrackingKey = 'additionalPendoKey',
38803881
LiveboardHeaderSticky = 'isLiveboardHeaderSticky',
38813882
IsProductTour = 'isProductTour',

0 commit comments

Comments
 (0)