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

NPS Survey Form #987

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

NPS Survey Form #987

wants to merge 33 commits into from

Conversation

ritikramuka
Copy link
Contributor

This pull request includes changes primarily aimed at refactoring the handling of web extension scripts and the addition of a new dependency. The changes can be grouped into two main categories:

  1. Refactoring of the script fetching and handling mechanism in the web extension context.
  2. Addition of new dependencies and configuration changes in the package and build setup.

The most important changes include:

Refactoring of script handling:

Addition of new dependencies and configuration changes:

  • .npmrc: A new npm registry is added.
  • package.json: The copy-webpack-plugin and @gia/survey-sdk dependencies are added. [1] [2]
  • webpack.config.js: The copy-webpack-plugin is required and used in the webConfig to copy the survey SDK from node_modules to the dist/media directory. [1] [2]

ritikramuka and others added 4 commits June 28, 2024 11:47
…bpack-plugin, and used @gia/survey sdk to create NPS survey form
The NPSWebView has been updated to include a Content-Security-Policy meta tag in the head section of the HTML. This tag helps to improve the security of the web view by restricting the sources from which content can be loaded. The new meta tag specifies that only 'self' and 'unsafe-inline' sources are allowed for styles, and only 'self' sources are allowed for scripts. This helps to mitigate the risk of cross-site scripting (XSS) attacks.
@ritikramuka ritikramuka marked this pull request as ready for review July 4, 2024 09:53
@ritikramuka ritikramuka requested review from a team as code owners July 4, 2024 09:53
ritikramuka and others added 23 commits July 4, 2024 15:28
feat: Add NPS access token to WebExtensionContext

The WebExtensionContext class has been updated to include a new property, `npsAccessToken`, which stores the NPS access token. This allows the token to be accessed and used within the context of the extension. This change enables the NPS service to authenticate and send telemetry data.
The NPSWebView has been updated to include the NPS access token and user information retrieved from the WebExtensionContext. This allows the NPS service to authenticate the user and send telemetry data. Additionally, the code has been refactored to use template literals for improved readability and maintainability.
updated PR yml to Authenticate npm registry
@ritikramuka ritikramuka marked this pull request as draft July 12, 2024 09:37
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.

1 participant