From 128e7fe522d500036c99e6d6b1fbad968819618a Mon Sep 17 00:00:00 2001 From: Awakich Date: Thu, 5 Feb 2026 12:46:58 +0300 Subject: [PATCH 1/5] add new layout for notifications from program --- .../src/app/office/services/invite.service.ts | 2 +- .../invite-manage-card.component.html | 27 +++++++++++++++++-- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/projects/social_platform/src/app/office/services/invite.service.ts b/projects/social_platform/src/app/office/services/invite.service.ts index 787186781..b8fe6193d 100644 --- a/projects/social_platform/src/app/office/services/invite.service.ts +++ b/projects/social_platform/src/app/office/services/invite.service.ts @@ -24,7 +24,7 @@ import { AuthService } from "@auth/services"; export class InviteService { private readonly INVITES_URL = "/invites"; - constructor(private readonly apiService: ApiService, private readonly authService: AuthService) {} + constructor(private readonly apiService: ApiService) {} /** * Отправляет приглашение пользователю для участия в проекте diff --git a/projects/ui/src/lib/components/layout/invite-manage-card/invite-manage-card.component.html b/projects/ui/src/lib/components/layout/invite-manage-card/invite-manage-card.component.html index ec54b368e..dbd8fa56c 100644 --- a/projects/ui/src/lib/components/layout/invite-manage-card/invite-manage-card.component.html +++ b/projects/ui/src/lib/components/layout/invite-manage-card/invite-manage-card.component.html @@ -8,20 +8,35 @@
+ {{ invite.sender.firstName }} {{ invite.sender.lastName }}
приглашает вас в проект
"{{ invite.project.name | truncate: 20 }}" + + +

В программе

+
+ "{{ invite.project.name | truncate: 20 }}" + +

выложили новый пост

+ + +

опубликован новый материал

-
+ +
+ принять + + + перейти в программу
} From 7cd78d5a38a8562d2a198179e637536680109b91 Mon Sep 17 00:00:00 2001 From: Awakich Date: Thu, 5 Feb 2026 12:47:56 +0300 Subject: [PATCH 2/5] fix position in team section --- .../project-team-step.component.html | 2 +- .../project-team-step.component.scss | 19 +++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/projects/social_platform/src/app/office/projects/edit/shared/project-team-step/project-team-step.component.html b/projects/social_platform/src/app/office/projects/edit/shared/project-team-step/project-team-step.component.html index a05acd5ff..5bb81d584 100644 --- a/projects/social_platform/src/app/office/projects/edit/shared/project-team-step/project-team-step.component.html +++ b/projects/social_platform/src/app/office/projects/edit/shared/project-team-step/project-team-step.component.html @@ -148,7 +148,7 @@ } -
+
diff --git a/projects/social_platform/src/app/office/projects/edit/shared/project-team-step/project-team-step.component.scss b/projects/social_platform/src/app/office/projects/edit/shared/project-team-step/project-team-step.component.scss index e088ef91f..54a86df08 100644 --- a/projects/social_platform/src/app/office/projects/edit/shared/project-team-step/project-team-step.component.scss +++ b/projects/social_platform/src/app/office/projects/edit/shared/project-team-step/project-team-step.component.scss @@ -4,7 +4,7 @@ @use "styles/typography"; .project { - position: relative; + max-width: 1280px; &__inner { width: 100%; @@ -73,15 +73,14 @@ transform: translateY(-50%); } - &__team { - position: relative; - - &-tooltip { - position: absolute; - right: 0; - bottom: 0; - transform: translateY(calc(var(--app-height) * 0.47)); - } + &__tooltip { + position: fixed; + right: + calc( + (100vw - 1080px) / 2 + ); + bottom: 24px; + z-index: 30; } } From 1fce821badedaf71e8809c09584d7964b5d78dc6 Mon Sep 17 00:00:00 2001 From: Awakich Date: Thu, 12 Feb 2026 11:19:05 +0300 Subject: [PATCH 3/5] add empty-manage-card for notification --- .../src/assets/icons/svg/empty-mail.svg | 17 +++++++++ .../assets/icons/symbol/svg/sprite.css.svg | 2 +- .../empty-manage-card.component.html | 16 ++++++++ .../empty-manage-card.component.scss | 38 +++++++++++++++++++ .../empty-manage-card.component.ts | 15 ++++++++ .../invite-manage-card.component.html | 13 ++++--- .../profile-control-panel.component.html | 2 + .../profile-control-panel.component.scss | 2 +- .../profile-control-panel.component.ts | 2 + 9 files changed, 99 insertions(+), 8 deletions(-) create mode 100644 projects/social_platform/src/assets/icons/svg/empty-mail.svg create mode 100644 projects/ui/src/lib/components/layout/empty-manage-card/empty-manage-card.component.html create mode 100644 projects/ui/src/lib/components/layout/empty-manage-card/empty-manage-card.component.scss create mode 100644 projects/ui/src/lib/components/layout/empty-manage-card/empty-manage-card.component.ts diff --git a/projects/social_platform/src/assets/icons/svg/empty-mail.svg b/projects/social_platform/src/assets/icons/svg/empty-mail.svg new file mode 100644 index 000000000..09aacae68 --- /dev/null +++ b/projects/social_platform/src/assets/icons/svg/empty-mail.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/projects/social_platform/src/assets/icons/symbol/svg/sprite.css.svg b/projects/social_platform/src/assets/icons/symbol/svg/sprite.css.svg index 06ed945ee..57e81601c 100644 --- a/projects/social_platform/src/assets/icons/symbol/svg/sprite.css.svg +++ b/projects/social_platform/src/assets/icons/symbol/svg/sprite.css.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/projects/ui/src/lib/components/layout/empty-manage-card/empty-manage-card.component.html b/projects/ui/src/lib/components/layout/empty-manage-card/empty-manage-card.component.html new file mode 100644 index 000000000..b2338a62f --- /dev/null +++ b/projects/ui/src/lib/components/layout/empty-manage-card/empty-manage-card.component.html @@ -0,0 +1,16 @@ + + +
+
+ + +
+ +

новых уведомлений пока нет

+
+ + начать действовать +
+
diff --git a/projects/ui/src/lib/components/layout/empty-manage-card/empty-manage-card.component.scss b/projects/ui/src/lib/components/layout/empty-manage-card/empty-manage-card.component.scss new file mode 100644 index 000000000..7522b7d36 --- /dev/null +++ b/projects/ui/src/lib/components/layout/empty-manage-card/empty-manage-card.component.scss @@ -0,0 +1,38 @@ +.card { + padding: 24px; + background-color: var(--light-white); + background-color: var(--light-white); + border: 0.5px solid var(--medium-grey-for-outline); + border-radius: var(--rounded-xl); + width: 100%; + position: relative; + max-width: 286px; + + &__inner { + display: flex; + flex-direction: column; + gap: 10px; + } + + &__info { + display: flex; + align-items: center; + gap: 15px; + } + + &__text { + color: var(--dark-grey); + width: 60%; + } + + &__cross { + position: absolute; + top: 10px; + right: 10px; + } + + i { + cursor: pointer; + color: var(--dark-grey); + } +} diff --git a/projects/ui/src/lib/components/layout/empty-manage-card/empty-manage-card.component.ts b/projects/ui/src/lib/components/layout/empty-manage-card/empty-manage-card.component.ts new file mode 100644 index 000000000..2e28f5c9b --- /dev/null +++ b/projects/ui/src/lib/components/layout/empty-manage-card/empty-manage-card.component.ts @@ -0,0 +1,15 @@ +/** @format */ + +import { CommonModule } from "@angular/common"; +import { Component } from "@angular/core"; +import { ButtonComponent, IconComponent } from "@ui/components"; +import { RouterLink } from "@angular/router"; + +@Component({ + selector: "app-empty-manage-card", + templateUrl: "./empty-manage-card.component.html", + styleUrl: "./empty-manage-card.component.scss", + imports: [CommonModule, ButtonComponent, IconComponent, RouterLink], + standalone: true, +}) +export class EmptyManageCardComponent {} diff --git a/projects/ui/src/lib/components/layout/invite-manage-card/invite-manage-card.component.html b/projects/ui/src/lib/components/layout/invite-manage-card/invite-manage-card.component.html index dbd8fa56c..5b455b07a 100644 --- a/projects/ui/src/lib/components/layout/invite-manage-card/invite-manage-card.component.html +++ b/projects/ui/src/lib/components/layout/invite-manage-card/invite-manage-card.component.html @@ -17,16 +17,17 @@ > -

В программе

+ + -

выложили новый пост

+ -

опубликован новый материал

+
- перейти в программу + > -->
} diff --git a/projects/ui/src/lib/components/layout/profile-control-panel/profile-control-panel.component.html b/projects/ui/src/lib/components/layout/profile-control-panel/profile-control-panel.component.html index 2cd95cf31..79fcab679 100644 --- a/projects/ui/src/lib/components/layout/profile-control-panel/profile-control-panel.component.html +++ b/projects/ui/src/lib/components/layout/profile-control-panel/profile-control-panel.component.html @@ -24,6 +24,8 @@ (reject)="rejectInvite.emit($event)" > + } @empty { + } diff --git a/projects/ui/src/lib/components/layout/profile-control-panel/profile-control-panel.component.scss b/projects/ui/src/lib/components/layout/profile-control-panel/profile-control-panel.component.scss index 5c0883d3c..7bb882fe9 100644 --- a/projects/ui/src/lib/components/layout/profile-control-panel/profile-control-panel.component.scss +++ b/projects/ui/src/lib/components/layout/profile-control-panel/profile-control-panel.component.scss @@ -27,7 +27,7 @@ &__notifications { position: absolute; top: 100%; - right: -10%; + right: 0%; z-index: 20; margin-top: 10px; } diff --git a/projects/ui/src/lib/components/layout/profile-control-panel/profile-control-panel.component.ts b/projects/ui/src/lib/components/layout/profile-control-panel/profile-control-panel.component.ts index 86cdcd27c..59f09f357 100644 --- a/projects/ui/src/lib/components/layout/profile-control-panel/profile-control-panel.component.ts +++ b/projects/ui/src/lib/components/layout/profile-control-panel/profile-control-panel.component.ts @@ -7,6 +7,7 @@ import { ClickOutsideModule } from "ng-click-outside"; import type { Invite } from "@office/models/invite.model"; import { RouterLink } from "@angular/router"; import type { User } from "../../../models/user.model"; +import { EmptyManageCardComponent } from "../empty-manage-card/empty-manage-card.component"; /** * Компонент панели управления профилем @@ -38,6 +39,7 @@ import type { User } from "../../../models/user.model"; ClickOutsideModule, IconComponent, RouterLink, + EmptyManageCardComponent, ], templateUrl: "./profile-control-panel.component.html", styleUrl: "./profile-control-panel.component.scss", From e1657e9bf841267fc8ec9c156a375f354bb50df4 Mon Sep 17 00:00:00 2001 From: Awakich Date: Thu, 12 Feb 2026 11:19:25 +0300 Subject: [PATCH 4/5] add styles for empty-manage-card --- .../empty-manage-card.component.scss | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/projects/ui/src/lib/components/layout/empty-manage-card/empty-manage-card.component.scss b/projects/ui/src/lib/components/layout/empty-manage-card/empty-manage-card.component.scss index 7522b7d36..8568223aa 100644 --- a/projects/ui/src/lib/components/layout/empty-manage-card/empty-manage-card.component.scss +++ b/projects/ui/src/lib/components/layout/empty-manage-card/empty-manage-card.component.scss @@ -1,12 +1,11 @@ .card { + position: relative; + width: 100%; + max-width: 286px; padding: 24px; background-color: var(--light-white); - background-color: var(--light-white); border: 0.5px solid var(--medium-grey-for-outline); border-radius: var(--rounded-xl); - width: 100%; - position: relative; - max-width: 286px; &__inner { display: flex; @@ -16,13 +15,13 @@ &__info { display: flex; - align-items: center; gap: 15px; + align-items: center; } &__text { - color: var(--dark-grey); width: 60%; + color: var(--dark-grey); } &__cross { @@ -32,7 +31,7 @@ } i { - cursor: pointer; color: var(--dark-grey); + cursor: pointer; } } From 57137a8c438bc396ca5dded711cfe70058b2f96d Mon Sep 17 00:00:00 2001 From: Awakich Date: Thu, 12 Feb 2026 11:38:34 +0300 Subject: [PATCH 5/5] fix netlify yml --- .github/workflows/pull_request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index f0d6f0e22..0e1c44005 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -33,7 +33,7 @@ jobs: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_ACCESS_TOKEN }} NETLIFY_PREVIEW_APP: true # or perhaps like this GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NETLIFY_PR_ID: ${{ github.pr_id }}-social + NETLIFY_PR_ID: ${{ github.event.pull_request.number }}-social - name: Publish preview skills uses: netlify/actions/cli@master id: publish_preview_skills @@ -44,7 +44,7 @@ jobs: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_ACCESS_TOKEN }} NETLIFY_PREVIEW_APP: true # or perhaps like this GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NETLIFY_PR_ID: ${{ github.pr_id }}-skills + NETLIFY_PR_ID: ${{ github.event.pull_request.number }}-skills - uses: mshick/add-pr-comment@v2 with: message: |