[SCAL-302340] - Add support for spotterSidebarConfig in AppEmbed and SpotterEmbed APP_INIT payloads#474
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the embedding capabilities for ThoughtSpot applications by introducing a dedicated configuration object for the Spotter sidebar. This change provides developers with more control over the embedded experience, ensuring consistency and flexibility in how the AI conversation features are presented. It also includes robust handling for a deprecated configuration flag and validation for URL inputs, improving the overall reliability and maintainability of the embed SDK. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds support for spotterSidebarConfig in AppEmbed and SpotterEmbed APP_INIT payloads. The implementation is generally good, but I've identified a few areas for improvement. There's a potential runtime error in both AppEmbed and SpotterEmbed when constructing embedParams due to spreading a potentially undefined value. I've suggested fixes for this. Additionally, there's significant code duplication between AppEmbed and SpotterEmbed for processing spotterSidebarConfig, which I recommend refactoring into a shared utility function for better maintainability. Lastly, I've noted that the test suite for AppEmbed is missing a case for handling an invalid spotterDocumentationUrl, which is already covered for SpotterEmbed.
commit: |
35feeec to
dbcd9bd
Compare
830bc5b to
5304077
Compare
5304077 to
0d7c71c
Compare
|
SonarQube Quality Gate
|








No description provided.