Skip to content

SCAL-335430-POC Send embed config over postMessage instead of the iframe URL - #646

Open
shivam-kumar-ts wants to merge 6 commits into
mainfrom
SCAL-335430-POC
Open

SCAL-335430-POC Send embed config over postMessage instead of the iframe URL#646
shivam-kumar-ts wants to merge 6 commits into
mainfrom
SCAL-335430-POC

Conversation

@shivam-kumar-ts

Copy link
Copy Markdown
Contributor

No description provided.

@shivam-kumar-ts
shivam-kumar-ts requested a review from a team as a code owner August 31, 2026 11: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 refactors the full-height logic from AppEmbed and LiveboardEmbed into a new shared FullHeightController class, and introduces a sendConfigAsPostMessage option to transmit embed configurations via postMessage instead of URL query parameters. The review feedback highlights several style guide violations regarding American English spelling ('behavior' and 'honored') and JSDoc tag ordering. Additionally, it suggests incorporating defensive programming checks in the new controller to safely handle potentially null or undefined payload data and iframe references, preventing potential runtime crashes.

Comment thread src/full-height.ts Outdated
Comment thread src/full-height.ts
Comment thread src/types.ts Outdated
Comment thread src/types.ts
Comment thread src/full-height.ts Outdated
Comment thread src/full-height.ts
Comment thread src/full-height.ts Outdated
Comment thread src/full-height.ts Outdated
@pkg-pr-new

pkg-pr-new Bot commented Aug 31, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: efe910d

@shivam-kumar-ts
shivam-kumar-ts changed the base branch from main to SCAL-334772 August 31, 2026 15:27
@shivam-kumar-ts
shivam-kumar-ts changed the base branch from SCAL-334772 to main August 31, 2026 15:28
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