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

Track user count #552

Merged
merged 9 commits into from
Mar 31, 2021
Merged

Track user count #552

merged 9 commits into from
Mar 31, 2021

Conversation

BeroBurny
Copy link
Collaborator

@BeroBurny BeroBurny commented Mar 30, 2021

Short description of work done

  • implement user count tracking
  • refactor consent screen

PR Checklist

  • I have run type check locally
  • I have run linter locally
  • I have run unit and integration tests locally
  • Rebased to master branch / merged master

Changes

  • implement matomo tracker sdk
  • refactor consent
  • implement tracking

Example

Screenshot from 2021-03-31 10-22-48

Issues

Closes #540

@BeroBurny BeroBurny added the enhancement New feature or request label Mar 30, 2021
@BeroBurny BeroBurny self-assigned this Mar 30, 2021
@codecov
Copy link

codecov bot commented Mar 30, 2021

Codecov Report

Merging #552 (0e76444) into develop (d637cdb) will not change coverage.
The diff coverage is 50.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #552   +/-   ##
========================================
  Coverage    58.59%   58.59%           
========================================
  Files           75       75           
  Lines         1256     1256           
  Branches       151      151           
========================================
  Hits           736      736           
  Misses         492      492           
  Partials        28       28           
Flag Coverage Δ
unit 58.59% <50.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
.../renderer/services/db/api/repositories/settings.ts 60.00% <0.00%> (ø)
src/renderer/models/types/settings.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d637cdb...0e76444. Read the comment docs.

src/renderer/containers/Consent/Consent.tsx Outdated Show resolved Hide resolved
@@ -14,7 +15,12 @@ function* loadAccountSettings(): Generator<PutEffect | Promise<Settings | null>,
function* saveAccountSettings(action: {payload: ISettings}): Generator<PutEffect | Promise<void>> {
yield database.settings.set(DEFAULT_ACCOUNT, action.payload);

if (action.payload.reporting !== undefined) yield put(setReporting(action.payload.reporting));
if (action.payload.reporting !== undefined) {
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't this prevent changing reporting from true to false or reverse?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ISettings all params are optional and this cover a case if is reporting not provided

@BeroBurny BeroBurny marked this pull request as ready for review March 31, 2021 08:32
@BeroBurny BeroBurny requested a review from a team as a code owner March 31, 2021 08:32
@BeroBurny BeroBurny merged commit 061ad59 into develop Mar 31, 2021
@BeroBurny BeroBurny deleted the beroburny/tracking branch March 31, 2021 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants