Skip to content

SCAL-326328 Fixed Flag is not passing when preRender when is true in full app emebd - #595

Open
shivam-kumar-ts wants to merge 2 commits into
mainfrom
SCAL-326328
Open

SCAL-326328 Fixed Flag is not passing when preRender when is true in full app emebd#595
shivam-kumar-ts wants to merge 2 commits into
mainfrom
SCAL-326328

Conversation

@shivam-kumar-ts

@shivam-kumar-ts shivam-kumar-ts commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Root Cause

AppEmbed only overrode getEmbedParams() (returns a string), not getEmbedParamsObject() (returns an object).

The prerender path calls getUpdateEmbedParamsObject()this.getEmbedParamsObject(). Since AppEmbed never overrode getEmbedParamsObject(), it fell back to the base class which has no fullHeight logic — so isFullHeightPinboard was never set in UpdateEmbedParams.

LiveboardEmbed was fine because it already overrode getEmbedParamsObject().

Fix

Split AppEmbed.getEmbedParams() into:

  • getEmbedParamsObject() — builds and returns the params object (with Param.fullHeightisFullHeightPinboard)
  • getEmbedParams() — calls getEmbedParamsObject() and converts to query string

Now both the normal render path (getEmbedParams) and the prerender path (getUpdateEmbedParamsObjectgetEmbedParamsObject) go through the same function, so isFullHeightPinboard is correctly populated in both cases.

@shivam-kumar-ts
shivam-kumar-ts requested a review from a team as a code owner July 27, 2026 06:33
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@pkg-pr-new

pkg-pr-new Bot commented Jul 27, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 0b0bc69

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.

1 participant