vibinex / chrome-extension

This chrome extension adds actionable overlays based on the company's data (code, deployments and success metrics)
GNU General Public License v3.0
11 stars 7 forks source link

Break contentScript.js into multiple scripts #76

Closed tapishr closed 1 year ago

tapishr commented 1 year ago
coderabbitai[bot] commented 1 year ago

Walkthrough

The proposed changes introduce significant enhancements to a Chrome extension, improving its interaction with GitHub and Bitbucket. The updates include environment-based configuration, improved API handling, user session management, highlighting of relevant pull requests and files, tracking of repository changes, and floating UI elements for better user interaction.

Changes

File(s) Summary
backgroundScript.js Adds logic for environment setup, URL storage, and Rudderstack event creation on extension installation.
popup/popup.js Enhances user session management, fetches CSRF token, displays login options or user details, and shows extension version on window load.
scripts/api.js Introduces two new functions for making API calls with support for query parameters and authorization headers.
scripts/highlighting.js Adds functionality to highlight relevant pull requests, files, and code hunks on GitHub and Bitbucket.
scripts/init.js Initializes the script, retrieves data from local storage, logs user ID, checks document's URL, and sets up a MutationObserver.
scripts/orchestrator.js Coordinates actions based on the current URL, including checking user login status, retrieving local storage data, and executing actions for GitHub and Bitbucket URLs.
scripts/repoHandlers.js Adds functions to fetch tracked repositories, update visual indicators for tracked repositories, and display a floating action button on untracked repositories.
scripts/utilities.js Introduces functions to create and destroy floating UI elements and compute SHA-256 hashes.

Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - Mention `@coderabbitai` in any *review comment* for bot assistance. - Note: Review comments are made on code diffs or files, not on the PR overview. ### Pause Incremental Reviews - Insert `@coderabbitai: ignore` in the PR description to halt the bot's ongoing reviews. Remove the line to resume.
vibinex-code-review[bot] commented 1 year ago
Relevant users for this PR: Contributor Name/Alias Code Coverage
avikalpg 100.00%

Auto-assigning to following reviewers: avikalpg

Code coverage is calculated based on the git blame information of the PR. To know more, hit us up at contact@vibinex.com. To change comment and auto-assign settings, go to your Vibinex settings page.

vibinex-code-review[bot] commented 1 year ago
Relevant users for this PR: Contributor Name/Alias Code Coverage
avikalpg 100.00%

Auto-assigning to following reviewers: avikalpg

Code coverage is calculated based on the git blame information of the PR. To know more, hit us up at contact@vibinex.com. To change comment and auto-assign settings, go to your Vibinex settings page.

vibinex-code-review[bot] commented 1 year ago
Relevant users for this PR: Contributor Name/Alias Code Coverage
avikalpg 100.00%

Auto-assigning to following reviewers: avikalpg

Code coverage is calculated based on the git blame information of the PR. To know more, hit us up at contact@vibinex.com. To change comment and auto-assign settings, go to your Vibinex settings page.

sonarcloud[bot] commented 1 year ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 2 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 30 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

vibinex-code-review[bot] commented 1 year ago
Relevant users for this PR: Contributor Name/Alias Code Coverage
avikalpg 100.00%

Auto-assigning to following reviewers: avikalpg

Code coverage is calculated based on the git blame information of the PR. To know more, hit us up at contact@vibinex.com. To change comment and auto-assign settings, go to your Vibinex settings page.

vibinex-code-review[bot] commented 1 year ago
Coverage Report from Vibinex The following reviewers have approved the PR: Reviewer Name Review Coverage
avikalpg 100.00%

Total Coverage for PR = 100.0%

Code coverage is calculated based on the git blame information of the PR. To know more, hit us up at contact@vibinex.com. To change comment and auto-assign settings, go to your Vibinex settings page