From 247f81f733868666806ef363ebf96488aa16f258 Mon Sep 17 00:00:00 2001
From: Kifungo A <45813955+adkif@users.noreply.github.com>
Date: Mon, 26 Aug 2024 21:17:43 +0200
Subject: [PATCH] Feat/weekly recap (#8093)
* feat: improve date range picker module
* feat: improve progress status
* feat: add event emitter output event date range picker
* feat: use percent pipe
* feat: create dayjs pipe
* fix: report heigth
* feat: add start current week and end current week
* feat: create weekly features
* feat: add weekly recap to tab
* feat: translated hardcoded strings in weekly-statistic.component.html to use translation keys
* feat: update date range picker, segmented control, weekly calendar, and weekly recap components; refactored organization selector component.
---
.../recap/features/recap/recap.component.html | 4 +-
.../recap/features/recap/recap.component.ts | 8 +-
.../time-tracking-charts.component.html | 2 +-
.../time-tracking-charts.component.ts | 4 +-
.../src/lib/recap/recap.module.ts | 12 +-
.../activity-report.component.scss | 2 +-
.../date-range-picker/date-picker.utils.ts | 23 +-
.../date-range-picker.component.html | 2 +-
.../date-range-picker.component.scss | 17 +
.../date-range-picker.component.ts | 108 ++++--
.../date-range-picker.module.ts | 2 +
.../segmented-control.component.scss | 2 +-
.../progress-status.component.html | 6 +-
.../progress-status.component.scss | 10 +-
.../progress-status.component.ts | 23 +-
.../lib/recap/weekly/+state/weekly.query.ts | 16 +
.../lib/recap/weekly/+state/weekly.service.ts | 98 +++++
.../lib/recap/weekly/+state/weekly.store.ts | 38 ++
.../weekly-calendar.component.html | 2 +
.../weekly-calendar.component.scss | 0
.../weekly-calendar.component.ts | 22 ++
.../weekly-progress.component.html | 20 +
.../weekly-progress.component.scss | 35 ++
.../weekly-progress.component.ts | 30 ++
.../weekly-recap/weekly-recap.component.html | 15 +
.../weekly-recap/weekly-recap.component.scss | 11 +
.../weekly-recap/weekly-recap.component.ts | 44 +++
.../weekly-statistic.component.html | 38 ++
.../weekly-statistic.component.scss | 36 ++
.../weekly-statistic.component.ts | 33 ++
.../lib/services/time-tracker-date.manager.ts | 38 +-
.../organization-selector.component.ts | 26 +-
.../src/lib/time-tracker/pipes/dayjs.pipe.ts | 11 +
.../src/lib/time-tracker/pipes/pipe.module.ts | 3 +-
.../time-tracker/time-tracker.component.html | 344 +++++-------------
.../time-tracker/time-tracker.component.scss | 2 +-
36 files changed, 740 insertions(+), 347 deletions(-)
create mode 100644 packages/desktop-ui-lib/src/lib/recap/weekly/+state/weekly.query.ts
create mode 100644 packages/desktop-ui-lib/src/lib/recap/weekly/+state/weekly.service.ts
create mode 100644 packages/desktop-ui-lib/src/lib/recap/weekly/+state/weekly.store.ts
create mode 100644 packages/desktop-ui-lib/src/lib/recap/weekly/features/weekly-calendar/weekly-calendar.component.html
create mode 100644 packages/desktop-ui-lib/src/lib/recap/weekly/features/weekly-calendar/weekly-calendar.component.scss
create mode 100644 packages/desktop-ui-lib/src/lib/recap/weekly/features/weekly-calendar/weekly-calendar.component.ts
create mode 100644 packages/desktop-ui-lib/src/lib/recap/weekly/features/weekly-progress/weekly-progress.component.html
create mode 100644 packages/desktop-ui-lib/src/lib/recap/weekly/features/weekly-progress/weekly-progress.component.scss
create mode 100644 packages/desktop-ui-lib/src/lib/recap/weekly/features/weekly-progress/weekly-progress.component.ts
create mode 100644 packages/desktop-ui-lib/src/lib/recap/weekly/features/weekly-recap/weekly-recap.component.html
create mode 100644 packages/desktop-ui-lib/src/lib/recap/weekly/features/weekly-recap/weekly-recap.component.scss
create mode 100644 packages/desktop-ui-lib/src/lib/recap/weekly/features/weekly-recap/weekly-recap.component.ts
create mode 100644 packages/desktop-ui-lib/src/lib/recap/weekly/features/weekly-statistic/weekly-statistic.component.html
create mode 100644 packages/desktop-ui-lib/src/lib/recap/weekly/features/weekly-statistic/weekly-statistic.component.scss
create mode 100644 packages/desktop-ui-lib/src/lib/recap/weekly/features/weekly-statistic/weekly-statistic.component.ts
create mode 100644 packages/desktop-ui-lib/src/lib/time-tracker/pipes/dayjs.pipe.ts
diff --git a/packages/desktop-ui-lib/src/lib/recap/features/recap/recap.component.html b/packages/desktop-ui-lib/src/lib/recap/features/recap/recap.component.html
index 9ab9ad1da4e..c8381f4f55b 100644
--- a/packages/desktop-ui-lib/src/lib/recap/features/recap/recap.component.html
+++ b/packages/desktop-ui-lib/src/lib/recap/features/recap/recap.component.html
@@ -5,8 +5,8 @@