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(components): move Aggregator to TypeScript and add tracking to it (via useClickTracker) #667

Merged
merged 1 commit into from
Aug 27, 2020

Conversation

fernandofleury
Copy link
Contributor

Purpose

In order to add tracking to the Aggregator, I've decided to move it to TS to standardize the component.

Approach and changes

  • Refactor Aggregator to use hooks instead of a class
  • Refactor Aggregator into TypeScript
  • Refactor Aggregator specs (hopefully simplifying it)
  • Add tracking (via useClickTracker)

Definition of done

  • Development completed
  • Reviewers assigned
  • Unit and integration tests
  • Meets minimum browser support
  • Meets accessibility requirements

move Aggregator to TS
add tracking (via useClickTracker) to the Aggregator component

feature/add-tracking-sidebar-aggregator
@vercel
Copy link

vercel bot commented Aug 27, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/sumup-oss/circuit-ui/g5w7tntc2
✅ Preview: https://circuit-ui-git-feature-add-tracking-sidebar-aggregator.sumup-oss.vercel.app

@fernandofleury fernandofleury added the feature A new feature or enhancement label Aug 27, 2020
@codecov
Copy link

codecov bot commented Aug 27, 2020

Codecov Report

Merging #667 into canary will decrease coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           canary     #667      +/-   ##
==========================================
- Coverage   93.54%   93.49%   -0.05%     
==========================================
  Files         131      131              
  Lines        2245     2245              
  Branches      657      654       -3     
==========================================
- Hits         2100     2099       -1     
- Misses        119      120       +1     
  Partials       26       26              
Impacted Files Coverage Δ
...nents/Sidebar/components/Aggregator/Aggregator.tsx 100.00% <100.00%> (ø)
src/components/Sidebar/components/NavItem/utils.js 93.75% <0.00%> (-6.25%) ⬇️

Copy link
Member

@connor-baer connor-baer left a comment

Choose a reason for hiding this comment

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

Thanks for refactoring this!

@fernandofleury fernandofleury merged commit 2b4ba29 into canary Aug 27, 2020
@fernandofleury fernandofleury deleted the feature/add-tracking-sidebar-aggregator branch August 27, 2020 13:38
@github-actions
Copy link
Contributor

🎉 This PR is included in version 2.1.0-canary.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

🎉 This PR is included in version 2.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants