Skip to content

Conversation

@nedaKaighobadi
Copy link
Contributor

@nedaKaighobadi nedaKaighobadi commented Jan 16, 2026

Various states:
Screenshot 2026-01-20 at 12 14 55
Screenshot 2026-01-20 at 12 15 13
Screenshot 2026-01-20 at 12 25 53
Screenshot 2026-01-20 at 12 41 56
Screenshot 2026-01-20 at 12 52 59
Screenshot 2026-01-20 at 12 53 25
Screenshot 2026-01-20 at 16 22 50

Different themes:
Screenshot 2026-01-20 at 13 03 19

Copilot AI review requested due to automatic review settings January 16, 2026 08:58
@nedaKaighobadi nedaKaighobadi changed the title feat: add setup webview feat: add setup webview CF-2150 Jan 16, 2026
@codacy-production
Copy link

codacy-production bot commented Jan 16, 2026

Codacy's Analysis Summary

3 new issues (≤ 1 medium issue)
0 new security issue (≤ 0 issue)
128 complexity
2 duplications

Review Pull Request in Codacy →

AI Reviewer available: add the codacy-review label to get contextual insights without leaving GitHub.

Copy link
Contributor

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 adds a new setup webview to the Codacy extension that displays when users are not authenticated. The webview shows an upgrade prompt that is conditionally hidden when the user is logged in.

Changes:

  • Added a new setup webview with TypeScript provider and JavaScript client-side script
  • Added CSS styles for the webview UI
  • Upgraded VS Code engine version from 1.99.0 to 1.102.0
  • Added @eslint/js v9.39.2 as a dependency

Reviewed changes

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

Show a summary per file
File Description
src/views/SetupView.ts Implements the webview provider with login state management
src/views/scripts/setupScript.js Client-side script for handling login state changes
src/views/styles/vscode.css VS Code theme-aware styling for the webview
src/views/styles/reset.css CSS reset for the webview
src/views/styles/main.css Custom styles for setup list and upgrade box
src/extension.ts Activates the setup webview on extension load
package.json Updates VS Code version and adds new dependency
package-lock.json Lock file updates for dependencies

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 19, 2026 09:22
Copy link
Contributor

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

Copilot reviewed 9 out of 13 changed files in this pull request and generated 24 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 19, 2026 09:35
Copy link
Contributor

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

Copilot reviewed 9 out of 13 changed files in this pull request and generated 14 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 19, 2026 11:32
Copy link
Contributor

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

Copilot reviewed 9 out of 13 changed files in this pull request and generated 13 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 19, 2026 11:55
Copy link
Contributor

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

Copilot reviewed 9 out of 13 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 19, 2026 13:21
Copilot AI review requested due to automatic review settings January 20, 2026 11:07
Copy link
Contributor

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

Copilot reviewed 9 out of 13 changed files in this pull request and generated 12 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

if [ "$#" -eq 1 ] && [ "$1" = "download" ]; then
echo "Codacy cli v2 download succeeded"
else
eval "$run_command $*"
Copy link

Copilot AI Jan 20, 2026

Choose a reason for hiding this comment

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

Using eval with user-provided arguments ($*) is a security risk as it can lead to command injection. Consider using direct command execution instead, such as "$run_command" "$@" which properly handles arguments without eval.

Suggested change
eval "$run_command $*"
"$run_command" "$@"

Copilot uses AI. Check for mistakes.
element.innerHTML = loadingHtml
return
}
linkNode.textContent = params.user ?? ''
Copy link
Contributor

Choose a reason for hiding this comment

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

is it a possibility for textContent to be empty? :O

inesgomas
inesgomas previously approved these changes Jan 20, 2026
inesgomas
inesgomas previously approved these changes Jan 20, 2026
Copy link
Contributor

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

Copilot reviewed 10 out of 14 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

inesgomas
inesgomas previously approved these changes Jan 20, 2026
Copy link
Contributor

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

Copilot reviewed 10 out of 14 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

4 participants