Skip to content

SCAL-332974: Pass liveboardOverride via APP_INIT embedParams for LiveboardEmbed - #683

Merged
bishalts2019 merged 1 commit into
mainfrom
SCAL-332974
Sep 24, 2026
Merged

bishalts2019 merged 1 commit into
mainfrom
SCAL-332974

Conversation

@bishalts2019

Copy link
Copy Markdown
Contributor

In embed mode ThoughtSpot ignores the filter/parameter URL params and reads the Liveboard filter and Parameter override from embedParams.liveboardOverride instead (mirrors the LiveboardOverride message on LoadPinboardRequest).

  • Add LiveboardOverride, LiveboardDataSourceOverride, LiveboardFilterQuery and LiveboardParameterQuery public types, exported from both the main and React entry points.
  • Add liveboardOverride to LiveboardViewConfig and send it in the APP_INIT embedParams. It is omitted when unset or when dataSourceOverride is empty.

…boardEmbed

In embed mode ThoughtSpot ignores the filter/parameter URL params and
reads the Liveboard filter and Parameter override from
embedParams.liveboardOverride instead (mirrors the LiveboardOverride
message on LoadPinboardRequest).

- Add LiveboardOverride, LiveboardDataSourceOverride,
  LiveboardFilterQuery and LiveboardParameterQuery public types, exported
  from both the main and React entry points.
- Add liveboardOverride to LiveboardViewConfig and send it in the
  APP_INIT embedParams. It is omitted when unset or when
  dataSourceOverride is empty.
@bishalts2019
bishalts2019 requested a review from a team as a code owner September 23, 2026 09:22

@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 applying filters and parameters to an embedded Liveboard when it loads via the new liveboardOverride configuration. It adds the necessary TypeScript interfaces (LiveboardFilterQuery, LiveboardParameterQuery, LiveboardDataSourceOverride, and LiveboardOverride), utility functions, comprehensive unit tests, and exports these types for external use. Feedback on the changes suggests improving type safety in buildLiveboardOverrideAppInitData by constraining the generic parameter T to include embedParams, thereby eliminating an inline type assertion.

Comment thread src/embed/liveboard-override-utils.ts
@pkg-pr-new

pkg-pr-new Bot commented Sep 23, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: ea74fd7

@shivam-kumar-ts shivam-kumar-ts 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.

LGTM

@bishalts2019
bishalts2019 merged commit c6dabf5 into main Sep 24, 2026
10 checks passed
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.

3 participants