From aa0f4740b2ed67e3bc76bb3896eaa513a9dc6621 Mon Sep 17 00:00:00 2001
From: Awakich {{ webinar.title }}
>
{{ (user.birthday | yearsFromBirthday) ?? "не указан" }}
+ @if (user.city) {{{ user.city ?? "не указан" }}
@@ -31,9 +32,11 @@
+ заполните профиль и начните пользоваться PROCOLLAB +
+вышла неточность...
всё верно! так держать
{{ info.name.slice(0, 12) }}...
} @else {{{ info.name }}
@@ -138,7 +138,7 @@ проект - @if (info.partnerProgramId) { + @if (info.partnerProgram) { } } diff --git a/projects/social_platform/src/app/office/features/info-card/info-card.component.scss b/projects/social_platform/src/app/office/features/info-card/info-card.component.scss index 9bb411c62..fa065a8b7 100644 --- a/projects/social_platform/src/app/office/features/info-card/info-card.component.scss +++ b/projects/social_platform/src/app/office/features/info-card/info-card.component.scss @@ -59,7 +59,7 @@ &--project-partner { position: absolute; - top: 67%; + top: 63%; left: 30%; padding: 3px 5px; border: 0.5px solid var(--medium-grey-for-outline); @@ -152,6 +152,14 @@ } } + &__invite-actions { + display: flex; + flex-direction: column; + gap: 3px; + align-items: center; + justify-content: center; + } + &__user { margin-bottom: 2px; color: var(--grey-for-text); diff --git a/projects/social_platform/src/app/office/feed/models/feed-item.model.ts b/projects/social_platform/src/app/office/feed/models/feed-item.model.ts index 0c1af9bc8..14dd6cbeb 100644 --- a/projects/social_platform/src/app/office/feed/models/feed-item.model.ts +++ b/projects/social_platform/src/app/office/feed/models/feed-item.model.ts @@ -2,6 +2,7 @@ import { FeedNews } from "@office/projects/models/project-news.model"; import { Vacancy } from "@models/vacancy.model"; +import { Program } from "@office/program/models/program.model"; /** * МОДЕЛИ ДАННЫХ ДЛЯ ЭЛЕМЕНТОВ ЛЕНТЫ @@ -36,6 +37,10 @@ export interface FeedProject { imageAddress: string; viewsCount: number; leader: number; + partnerProgram: { + id: Program["id"]; + name: Program["name"]; + } | null; } /** diff --git a/projects/social_platform/src/app/office/models/project.model.ts b/projects/social_platform/src/app/office/models/project.model.ts index eead36f68..0fe689d4f 100644 --- a/projects/social_platform/src/app/office/models/project.model.ts +++ b/projects/social_platform/src/app/office/models/project.model.ts @@ -58,7 +58,6 @@ export class Project { leader!: number; leaderInfo?: { firstName: string; lastName: string }; partnerProgramsTags?: string[]; - partnerProgramId!: number | null; partnerProgram!: PartnerProgramInfo | null; vacancies!: Vacancy[]; isCompany!: boolean; @@ -83,7 +82,6 @@ export class Project { industry: 0, viewsCount: 0, links: [], - partnerProgramId: null, partnerProgram: null, cover: null, coverImageAddress: null, diff --git a/projects/social_platform/src/app/office/office.component.html b/projects/social_platform/src/app/office/office.component.html index 9fd78ca19..8d0c98b96 100644 --- a/projects/social_platform/src/app/office/office.component.html +++ b/projects/social_platform/src/app/office/office.component.html @@ -18,6 +18,7 @@ class="office__sidebar" logoSrc="/assets/images/shared/logo.svg" [navItems]="navItems" + style="align-self: flex-start" > diff --git a/projects/social_platform/src/app/office/program/shared/rating-card/rating-card.component.scss b/projects/social_platform/src/app/office/program/shared/rating-card/rating-card.component.scss index 3a5755d5e..bd130c2fc 100644 --- a/projects/social_platform/src/app/office/program/shared/rating-card/rating-card.component.scss +++ b/projects/social_platform/src/app/office/program/shared/rating-card/rating-card.component.scss @@ -191,4 +191,12 @@ color: var(--dark-grey); text-align: center; } + + &__buttons { + display: flex; + flex-direction: column; + gap: 10px; + align-items: center; + justify-content: center; + } } diff --git a/projects/social_platform/src/app/office/program/shared/rating-card/rating-card.component.ts b/projects/social_platform/src/app/office/program/shared/rating-card/rating-card.component.ts index 58f936dfe..9b4cd0275 100644 --- a/projects/social_platform/src/app/office/program/shared/rating-card/rating-card.component.ts +++ b/projects/social_platform/src/app/office/program/shared/rating-card/rating-card.component.ts @@ -19,7 +19,16 @@ import { CommonModule } from "@angular/common"; import { ProjectRate } from "@office/program/models/project-rate"; import { ControlErrorPipe, ParseBreaksPipe, ParseLinksPipe } from "projects/core"; import { expandElement } from "@utils/expand-element"; -import { debounceTime, finalize, fromEvent, map, Observable, Subscription } from "rxjs"; +import { + debounceTime, + filter, + finalize, + fromEvent, + map, + Observable, + Subscription, + tap, +} from "rxjs"; import { BreakpointObserver } from "@angular/cdk/layout"; import { IndustryService } from "@office/services/industry.service"; import { ProjectRatingComponent } from "@office/features/project-rating/project-rating.component"; @@ -28,6 +37,7 @@ import { ProjectRatingService } from "@office/program/services/project-rating.se import { RouterLink } from "@angular/router"; import { TagComponent } from "@ui/components/tag/tag.component"; import { ModalComponent } from "@ui/components/modal/modal.component"; +import { ProgramDataService } from "@office/program/services/program-data.service"; /** * Компонент карточки оценки проекта @@ -92,6 +102,7 @@ export class RatingCardComponent implements OnInit, AfterViewInit, OnDestroy { constructor( public industryService: IndustryService, private projectRatingService: ProjectRatingService, + private readonly programDataService: ProgramDataService, private breakpointObserver: BreakpointObserver, private cdRef: ChangeDetectorRef ) {} @@ -128,6 +139,8 @@ export class RatingCardComponent implements OnInit, AfterViewInit, OnDestroy { isProjectCriterias = signal(0); + programDateFinished = signal(false); + desktopMode$: Observable+ проект привязан к программе, но дополнительных полей для заполнения нет +
+ +пока ты не участвуешь ни в одной программе
@@ -112,7 +119,7 @@- {{ project.name }} + {{ + project.name.length > 20 + ? project.name.slice(0, 16) + "..." + : project.name + }}
проект привязан к программе {{ info.partnerProgram.name }}
+проект привязан к программе {{ info.partnerProgram.name }}
++ @if (info.draft) { проект пока еще не опубликовали. } @else { проект привязан к программе + {{ info.partnerProgram.name }} + } +
оценка проекта
-подтвердите оценку
- + +{{ project.name }}
+