From 1500aa23c41c0f706b58ce28643a346f06610acd Mon Sep 17 00:00:00 2001 From: Awakich Date: Wed, 11 Feb 2026 13:58:26 +0300 Subject: [PATCH 1/2] fix naming of program add program & modal logic from edit project --- .../features/detail/detail.component.html | 2 +- .../app/office/projects/edit/edit.component.ts | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/projects/social_platform/src/app/office/features/detail/detail.component.html b/projects/social_platform/src/app/office/features/detail/detail.component.html index c0b5fa6a7..31198ab12 100644 --- a/projects/social_platform/src/app/office/features/detail/detail.component.html +++ b/projects/social_platform/src/app/office/features/detail/detail.component.html @@ -92,7 +92,7 @@ (click)="isProjectAssigned ? null : addNewProject()" customTypographyClass="text-body-12 bar__add-project" > - {{ isProjectAssigned ? "вы подали проект" : "подать проект" }} + {{ isProjectAssigned ? "вы подали проект" : "создать заявку" }} } @if ((isUserManager || isUserExpert) && isUserMember) { diff --git a/projects/social_platform/src/app/office/projects/edit/edit.component.ts b/projects/social_platform/src/app/office/projects/edit/edit.component.ts index 6a1ce268b..6cf76bc09 100644 --- a/projects/social_platform/src/app/office/projects/edit/edit.component.ts +++ b/projects/social_platform/src/app/office/projects/edit/edit.component.ts @@ -484,13 +484,18 @@ export class ProjectEditComponent implements OnInit, AfterViewInit, OnDestroy { this.isAssignProjectToProgramModalOpen.set(false); } - private getFromProgramSeenKey(): string { - return `project_fromProgram_modal_seen_${this.profileId}`; + private getFromProgramSeenKey(type: "program" | "project"): string { + if (type === "program") { + return `project_fromProgram_modal_seen_${this.profileId}`; + } else return `project_modal_seen_${this.profileId}`; } private hasSeenFromProgramModal(): boolean { try { - return !!localStorage.getItem(this.getFromProgramSeenKey()); + if (this.fromProgram) { + return !!localStorage.getItem(this.getFromProgramSeenKey("program")); + } + return !!localStorage.getItem(this.getFromProgramSeenKey("project")); } catch (e) { return false; } @@ -498,7 +503,10 @@ export class ProjectEditComponent implements OnInit, AfterViewInit, OnDestroy { private markSeenFromProgramModal(): void { try { - localStorage.setItem(this.getFromProgramSeenKey(), "1"); + if (this.fromProgram) { + localStorage.setItem(this.getFromProgramSeenKey("program"), "1"); + } + localStorage.setItem(this.getFromProgramSeenKey("project"), "1"); } catch (e) {} } @@ -679,7 +687,7 @@ export class ProjectEditComponent implements OnInit, AfterViewInit, OnDestroy { this.fromProgram = params["fromProgram"]; const seen = this.hasSeenFromProgramModal(); - if (this.fromProgram && !seen) { + if (!seen) { this.fromProgramOpen.set(true); this.markSeenFromProgramModal(); } else { From 59975357cde0c9aac6bd2f72ad5dc41fd3100490 Mon Sep 17 00:00:00 2001 From: Awakich Date: Thu, 12 Feb 2026 11:42:30 +0300 Subject: [PATCH 2/2] 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: |