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

feat(header): enhanced information sent to tracking function #214

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

nathanjamal
Copy link
Collaborator

Pull Request

Description

added a lot more information to the tracking function to help i15 meet their tracking requirements

HEYUI-350

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation change

How do I test this

  • Add steps to test
  • in bullet point format
  • preferably you can add link to the storybook build in the PR

Checklist

Did you remember to take care of the following?

  • npm i – for new NPM dependencies.
  • npm run lint - to check for linting issues
  • npm run test - to run unit tests
  • npm run test:sh:docker - to run screenshot tests, detail instruction

New Feature / Bug Fix

  • Run unit tests to ensure all existing tests are still passing.
  • Add new passing unit tests to cover the code introduced by your pr.

Thanks for contributing!

added a lot more information to the tracking function to help i15 meet their tracking requirements

HEYUI-350
@nathanjamal nathanjamal self-assigned this May 31, 2023
@auto-assign auto-assign bot requested a review from esraltintas May 31, 2023 14:13
@@ -102,7 +102,12 @@ const Header = React.forwardRef<HTMLElement, HeaderProps>(
aria-label={locale.logoLabel}
className={styles.logo}
href={logoHref}
onClick={() => itemOnClick('Logo', trackingFn)}
onClick={() =>
itemOnClick({
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tracking is now sent with an object of values, not just a label

@github-actions
Copy link

Pull Request Test Coverage Report for Build 5133953363

  • 9 of 19 (47.37%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.8%) to 92.445%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/header/src/components/NavigationDropdown.tsx 2 3 66.67%
packages/header/src/components/SubNav.tsx 0 2 0.0%
packages/header/src/components/NavigationBurgerMenu.tsx 2 5 40.0%
packages/header/src/Header.tsx 3 7 42.86%
Totals Coverage Status
Change from base Build 5081105607: -0.8%
Covered Lines: 1607
Relevant Lines: 1668

💛 - Coveralls

@github-actions
Copy link

Compiled a new version demo.

@github-actions
Copy link

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 96.16% 1801/1873
🟢 Branches
81.99% (-1.89% 🔻)
510/622
🟢 Functions 82.16% 152/185
🟢 Lines 96.34% 1607/1668
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / Header.tsx
86.67% (-1% 🔻)
83.93% (-3.11% 🔻)
44.44%
83.05% (-1.16% 🔻)
🟢
... / headerItemHelpers.tsx
100%
96.15% (-3.85% 🔻)
100% 100%
🟢
... / NavigationBurgerMenu.tsx
90.7% (-4.42% 🔻)
61.54% (-8.64% 🔻)
66.67%
89.74% (-4.85% 🔻)
🟢
... / SubNav.tsx
93.33% (-3.22% 🔻)
69.23% (-12.59% 🔻)
60% (-15% 🔻)
92.31% (-3.69% 🔻)

Test suite run success

377 tests passing in 53 suites.

Report generated by 🧪jest coverage report action from 75a9b58

@nathanjamal nathanjamal merged commit eeae6be into main Jun 1, 2023
5 checks passed
@nathanjamal nathanjamal deleted the HEYUI-350 branch June 1, 2023 09:11
supcar pushed a commit that referenced this pull request Jun 1, 2023
# [8.5.0](v8.4.1...v8.5.0) (2023-06-01)

### Features

* **header:** enhanced information sent to tracking function ([#214](#214)) ([eeae6be](eeae6be))
@supcar
Copy link
Collaborator

supcar commented Jun 1, 2023

🎉 This PR is included in version 8.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@supcar supcar added the released label Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants