Skip to content

Commit 8c6bce4

Browse files
authored
Merge pull request #247 from PROCOLLAB-github/rating-updates
Rating updates
2 parents 9b5621f + c8b2f0c commit 8c6bce4

17 files changed

Lines changed: 410 additions & 210 deletions

projects/social_platform/src/app/office/features/info-card/info-card.component.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,17 +239,19 @@ <h3>Вы действительно хотите отписаться от пр
239239
<div class="unsubscribe-modal__buttons">
240240
<app-button
241241
color="red"
242+
size="big"
242243
customTypographyClass="unsubscribe-modal-btn__typography"
243244
(click)="onUnsubscribe($event, info?.id!)"
244245
[disabled]="!info?.id"
245246
>
246-
Отписаться
247+
отписаться
247248
</app-button>
248249
<app-button
250+
size="big"
249251
customTypographyClass="unsubscribe-modal-btn__typography"
250252
(click)="onCloseUnsubscribeModal()"
251253
>
252-
Отменить
254+
отменить
253255
</app-button>
254256
</div>
255257
</div>

projects/social_platform/src/app/office/features/project-rating/components/range-criterion-input/range-criterion-input.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
[min]="0"
88
[max]="max"
99
[step]="1"
10+
[disabled]="disabled"
1011
(input)="onInput($event)"
1112
(keydown)="onKeydown($event)"
1213
(blur)="onBlur()"

projects/social_platform/src/app/office/features/project-rating/project-rating.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
class="rating__input"
88
[max]="criterion.maxValue!"
99
[formControlName]="criterion.id"
10+
[disabled]="disabled"
1011
></app-range-criterion-input>
1112
<label class="text-body-10">{{ criterion.name }}</label>
1213
</div>
@@ -15,6 +16,7 @@
1516
<app-boolean-criterion
1617
class="rating__input"
1718
[formControlName]="criterion.id"
19+
[disabled]="disabled"
1820
></app-boolean-criterion>
1921
<label class="text-body-10">{{ criterion.name }}</label>
2022
</div>

projects/social_platform/src/app/office/features/project-rating/project-rating.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ export class ProjectRatingComponent implements OnDestroy, ControlValueAccessor,
102102

103103
private _disabled = false;
104104

105+
@Input() currentUserId!: number;
106+
105107
/** Сигнал для хранения критериев оценки */
106108
_criteria = signal<ProjectRatingCriterion[]>([]);
107109

projects/social_platform/src/app/office/program/detail/list/list.component.html

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</div>
1414

1515
<div class="filter-toggle page__filter-toggle" (click)="isFilterOpen = !isFilterOpen">
16-
<span>Фильтр</span>
16+
<span>Фильтры</span>
1717
<i appIcon icon="filter" appSquare="34"></i>
1818
</div>
1919

@@ -40,7 +40,7 @@
4040
@if (listType !== 'members') {
4141
<div class="page__create">
4242
<div class="page__left">
43-
@if (listType === 'projects') {
43+
@if (listType === 'projects' || listType === 'rating') {
4444
<div class="filter page__filter" [class.page__filter--open]="isFilterOpen">
4545
<div class="filter__overlay" (click)="isFilterOpen = false"></div>
4646
<div class="filter__body" #filterBody>
@@ -50,19 +50,13 @@
5050
(touchmove)="onSwipeMove($event)"
5151
(touchend)="onSwipeEnd($event)"
5252
></div>
53-
<app-projects-filter (closeFilter)="closeFilter()"></app-projects-filter>
53+
<app-projects-filter
54+
[listType]="listType"
55+
(closeFilter)="closeFilter()"
56+
(clear)="onClearFilters()"
57+
></app-projects-filter>
5458
</div>
5559
</div>
56-
} @else {
57-
<form class="filter__form" [formGroup]="filterForm">
58-
<p class="text-body-12">фильтр</p>
59-
<div class="filter__controls">
60-
<label class="filter__tags" (click)="setValue($event)">
61-
<app-checkbox [checked]="this.filterForm.get('filterTag')?.value"></app-checkbox>
62-
<p class="text-body-12">проекты с оценкой</p>
63-
</label>
64-
</div>
65-
</form>
6660
}
6761
</div>
6862
</div>

projects/social_platform/src/app/office/program/detail/list/list.component.scss

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -87,23 +87,6 @@
8787
}
8888
}
8989

90-
&__controls {
91-
display: flex;
92-
flex-direction: column;
93-
gap: 14px;
94-
margin-top: 18px;
95-
}
96-
97-
&__tags {
98-
display: flex;
99-
gap: 12px;
100-
align-items: center;
101-
102-
p {
103-
color: var(--grey-for-text);
104-
}
105-
}
106-
10790
&__bar {
10891
position: fixed;
10992
display: flex;

0 commit comments

Comments
 (0)