Skip to content
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

feat: add login button to plugin welcome page [IDE-798] #248

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

andrewrobinsonhodges-snyk
Copy link
Contributor

@andrewrobinsonhodges-snyk andrewrobinsonhodges-snyk commented Dec 17, 2024

Description

Added a "Trust project and scan" button to the Eclipse plugin Welcome Panel, which launches the Authentication Wizard.

Also tidied up the HTML (fixing the indentation) and spacing to closer match the layout and behaviour of the equivalent panel in the IntelliJ plugin.

Note that we might commonise the HTML between the plugins in the future, so I deliberately avoided changing how the HTML is constructed for now.

Checklist

  • [n/a] Tests added and all succeed
  • [n/a] Linted
  • [n/a] CHANGELOG.md updated
  • [n/a] README.md updated, if user-facing

Screenshots / GIFs

image

@andrewrobinsonhodges-snyk andrewrobinsonhodges-snyk marked this pull request as ready for review December 18, 2024 14:24
@andrewrobinsonhodges-snyk andrewrobinsonhodges-snyk requested a review from a team as a code owner December 18, 2024 14:24
@andrewrobinsonhodges-snyk andrewrobinsonhodges-snyk changed the title feat: add login button to plugin welcome page feat: add login button to plugin welcome page [IDE-798] Dec 18, 2024
snyk.trust.dialog.warning.text=When scanning project files for vulnerabilities, Snyk may automatically execute code such as invoking the package manager to get dependency information.<br><br>You should only scan projects you trust.<br><br>


snyk.panel.auth.trust.warning.text=When scanning project files, Snyk may automatically execute code such as invoking the package manager to get dependency information.<br/>You should only scan projects you trust. <a href="https://docs.snyk.io/ide-tools/jetbrains-plugins/folder-trust">More info</a>
Copy link
Contributor

Choose a reason for hiding this comment

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

The jetbrains link does not look right :)

Comment on lines +73 to +78
SnykWizard wizard = new SnykWizard();
WizardDialog dialog = new WizardDialog(Display.getDefault().getActiveShell(),wizard);

dialog.setBlockOnOpen(true);
dialog.open();
return null;
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: don't duplicate the code, but move SnykExtendedLanguageClient.runSnykWizard() to a central place and use it from all places where the Wizard is launched.

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