Skip to content

RI-6932: create btn open oauth modal #262

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

Merged
merged 9 commits into from
Mar 26, 2025

Conversation

dantovska
Copy link
Collaborator

Change the create button function action:
image
To open the Add database page AND immediately open the OAuth SSO dialog:
image

@dantovska dantovska requested a review from Copilot March 17, 2025 13:05
@dantovska dantovska self-assigned this Mar 17, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements functionality to open the Add Database page and immediately trigger the OAuth SSO dialog when the create button is clicked.

  • Extension changes to post a new message action to open the OAuth dialog.
  • UI changes to handle the new message action and pass the necessary data.
  • Updates to API interfaces and supporting modules to accommodate the new OAuth SSO flow.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/extension.ts Adds postMessage call to trigger 'OpenOAuthSsoDialog'.
src/webviews/src/index.tsx Handles new message action for initiating OAuth SSO dialog.
src/webviews/src/interfaces/vscode/api.ts Updates type definitions for the new message action.
src/webviews/src/modules/oauth/oauth-jobs/OAuthJobs.tsx Incorporates source checking to conditionally close the database panel.
src/webviews/src/modules/oauth/oauth-create-free-db/OAuthCreateFreeDb.tsx Passes the source property along with ssoFlow during creation.
src/utils/handleMessage.ts Forwards message.data to the addDatabase command.
src/webviews/src/constants/vscode/vscode.ts Adds the new VscodeMessageAction for OAuth SSO.

@dantovska dantovska marked this pull request as ready for review March 17, 2025 14:45
@dantovska dantovska merged commit 6aa6643 into main Mar 26, 2025
9 checks passed
@dantovska dantovska deleted the feature/RI-6932-simple-create-btn-open-oauth-modal branch March 26, 2025 08:27
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.

2 participants