Skip to content
This repository has been archived by the owner on Feb 5, 2023. It is now read-only.

Rework add hours component #181

Merged
merged 37 commits into from
Aug 23, 2021
Merged

Conversation

tsinevik
Copy link
Collaborator

  1. Updated add hours layout to new design
  2. Connected component with backend

# Conflicts:
#	src/app/modules/user/components/add-hours/add-hours.component.ts
#	src/app/modules/user/components/attendance/attendance.component.ts
# Conflicts:
#	src/app/core/services/user/user.service.ts
#	src/app/modules/user/components/attendance/attendance.component.ts
# Conflicts:
#	src/app/modules/user/components/add-hours/add-hours.component.ts
#	src/app/shared/shared.module.ts
…dd-hours-layout

# Conflicts:
#	src/app/modules/user/components/add-hours/add-hours.component.html
#	src/app/modules/user/components/add-hours/add-hours.component.ts
#	src/app/modules/user/components/attendance/attendance.component.html
# Conflicts:
#	src/app/modules/user/components/add-hours/add-hours.component.html
#	src/app/modules/user/components/add-hours/add-hours.component.ts
#	src/app/modules/user/components/attendance/attendance.component.ts
# Conflicts:
#	src/app/data/api/time-service/models/leave-time-info.ts
@tsinevik tsinevik added the enhancement New feature or request label Aug 18, 2021
@tsinevik tsinevik added this to the v0.3.0 milestone Aug 18, 2021
@tsinevik tsinevik self-assigned this Aug 18, 2021
Copy link
Contributor

@Dimokku Dimokku left a comment

Choose a reason for hiding this comment

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

Было бы прикольно, если бы ты вкратце объяснил, какая последовательность происходит при работе с блоком добавления часов, типа что за getRecommendedDate и прочие

[timePeriodSelected]='timePeriodSelected'
[projects]='projects$ | async'
></do-user-tasks>
<do-user-tasks class="tasks" [timePeriodSelected]="timePeriodSelected" [projects]="projects$ | async"></do-user-tasks>
Copy link
Contributor

Choose a reason for hiding this comment

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

timePeriodSelected и projects можно не передавать, в компоненте дата сама инициализируется и проекты с отсутствиями сами подтягиваются с сервера. И класс тоже вроде ни на что не влияет

task: ['', Validators.required],
description: [''],
});
this.workTimes$ = this._getWorkTimes(3);
Copy link
Contributor

Choose a reason for hiding this comment

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

Тут должен быть номер текущего месяца или всё же константный третий?

@tsinevik tsinevik merged commit 33f7c44 into develop Aug 23, 2021
@tsinevik tsinevik deleted the improvement/update-add-hours-layout branch August 23, 2021 12:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants