Closed tapishr closed 1 year ago
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.
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. |
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.
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.
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 Quality Gate failed.
2 Bugs
0 Vulnerabilities
0 Security Hotspots
30 Code Smells
No Coverage information
0.0% Duplication
Catch issues before they fail your Quality Gate with our IDE extension SonarLint
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.
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
[x] Working with github
[x] Working buggy with bb, same as before this pr
[x] Broke contentscript and categorized similar functions into same scripts
[ ] Please ignore CodeRabbit and other bugs by sonarcloud, will address them in subsequent PRs. This is simple restructuring
Summary by CodeRabbit
New Feature: Added environment configuration for Chrome extension in
backgroundScript.js
.New Feature: Enhanced user authentication and session management in
popup/popup.js
.New Feature: Introduced general and on-premises API call functions in
scripts/api.js
.New Feature: Implemented code highlighting for pull requests and files on GitHub and Bitbucket in
scripts/highlighting.js
.Refactor: Improved script initialization and URL change detection in
scripts/init.js
.New Feature: Added URL-based action coordination in
scripts/orchestrator.js
.New Feature: Introduced repository tracking and visual indicators in
scripts/repoHandlers.js
.New Feature: Added utility functions for UI element creation, removal, and SHA-256 hashing in
scripts/utilities.js
.