-
Notifications
You must be signed in to change notification settings - Fork 5
SCAL-279427 Manual clients registration #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Summary of ChangesHello @ashubham, 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 OAuth client management capabilities by introducing a dedicated web UI for manual client registration. This feature is particularly useful for environments that do not support dynamic client registration or require static configuration. Furthermore, it improves the user experience during authorization by allowing clients to be pre-associated with a ThoughtSpot instance, which then pre-fills the instance URL in the approval dialog. 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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
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 a manual client registration page and updates the OAuth flow to pre-fill the ThoughtSpot instance URL. The changes are a good addition, but there are a few issues to address. I've found a critical bug where the logic to extract the instance URL will fail due to a prefix mismatch. Additionally, the new registration page contains hardcoded URLs that will cause problems in non-production environments. I've also noted a broken link in the README and a potential broken image link on the new page. My review includes suggestions to fix these issues.
| <div className="container"> | ||
| <div className="header"> | ||
| <div className="header-logo"> | ||
| <img src="/ThoughtSpot Logo 40px.svg" alt="ThoughtSpot Logo" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The src attribute for the logo image is set to a root-relative path (/ThoughtSpot Logo 40px.svg). This may result in a broken image if the file is not served from the root of the domain. If the image is located within the static directory, consider using a relative path. If it's hosted externally, a full URL would be more reliable.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
No description provided.