-
Notifications
You must be signed in to change notification settings - Fork 11
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 hotjar package #264
Conversation
90cc131
to
78347fc
Compare
Codecov Report
@@ Coverage Diff @@
## master #264 +/- ##
==========================================
+ Coverage 75.99% 77.37% +1.38%
==========================================
Files 33 34 +1
Lines 604 641 +37
Branches 152 160 +8
==========================================
+ Hits 459 496 +37
Misses 132 132
Partials 13 13
Continue to review full report at Codecov.
|
78347fc
to
1dcd2d3
Compare
package.json
Outdated
@@ -16,6 +16,7 @@ | |||
"clean": "npm run clean --workspaces && rm -rf ./node_modules", | |||
"build": "npm run build --workspaces", | |||
"test": "npm run test --workspaces", | |||
"test:watch": "npm run test -- --watch", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this command be npm run test:watch --workspaces
to run test:watch
in each package in the workspace?
packages/hotjar/README.rst
Outdated
.. |Build Status| image:: https://github.com/edx/frontend-enterprise/actions/workflows/release.yml/badge.svg | ||
:target: https://github.com/edx/frontend-enterprise/actions | ||
.. |npm_version| image:: https://img.shields.io/npm/v/@edx/frontend-enterprise-utils.svg | ||
:target: @edx/frontend-enterprise-utils |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: @edx/frontend-enterprise-utils
-> @edx/frontend-enterprise-hotjar
throughout this file
@@ -0,0 +1,88 @@ | |||
/* eslint-disable no-console */ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be a good idea to drop a link to Github where we sourced/adapted this from for future reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Premature approval once any nits/suggestions are addressed 😄
1dcd2d3
to
38eaf6d
Compare
Add hotjar package so that we can move away from relying on
react-use-hotjar
which was causing dependency errors in our mfes. It will also give us control over hotjar functionality from now on.Will need to go back, fix hook errors, and remove /* eslint-disable react-hooks/exhaustive-deps */ from files.
Merge checklist:
frontend-app-learner-portal-enterprise
,frontend-app-admin-portal
, andfrontend-app-enterprise-public-catalog
). Will consumers safely be able to upgrade to this change without any breaking changes?BREAKING CHANGE
so the NPM package is released as such.Post merge:
chore(release): publish
) that incremented versions in relevant package.json and CHANGELOG files, and created Git tags for those versions.Publish from package.json
Github Action workflow to publish these new package versions to NPM.master
branch.npm view <package_name> versions --json
).