From d3f11e3a807a41bcd9de39c0ed68ef79c2485eb4 Mon Sep 17 00:00:00 2001 From: Thangaraj-Ideas2it Date: Wed, 8 Nov 2023 19:22:21 +0530 Subject: [PATCH] feat/project-contribution: Fixed resetissue --- .../components/members/member-enrollment/editmember.tsx | 4 +++- .../member-project-details/member-empty-project.tsx | 6 +++--- apps/web-app/constants.ts | 5 +++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/apps/web-app/components/members/member-enrollment/editmember.tsx b/apps/web-app/components/members/member-enrollment/editmember.tsx index ce80863b4..c8bdc980a 100644 --- a/apps/web-app/components/members/member-enrollment/editmember.tsx +++ b/apps/web-app/components/members/member-enrollment/editmember.tsx @@ -438,6 +438,8 @@ export function EditMemberModal({ setErrors([]); setBasicErrors([]); setSkillErrors([]); + setContributionErrors([]); + setContributionObjErrors([]) getMemberDetails(); setModified(false); setModifiedFlag(false); @@ -815,7 +817,7 @@ export function EditMemberModal({ } const onTabClicked = (tab) => { - const tabs = ['BASIC', 'SKILLS', 'SOCIAL']; + const tabs = ['BASIC', 'SKILLS', 'CONTRIBUTIONS', 'SOCIAL']; analytics.captureEvent( isUserProfile ? APP_ANALYTICS_EVENTS.SETTINGS_USER_PROFILE_EDIT_FORM diff --git a/apps/web-app/components/members/member-profile/member-project-details/member-empty-project.tsx b/apps/web-app/components/members/member-profile/member-project-details/member-empty-project.tsx index 63fc3932d..a4fafd5cb 100644 --- a/apps/web-app/components/members/member-profile/member-project-details/member-empty-project.tsx +++ b/apps/web-app/components/members/member-profile/member-project-details/member-empty-project.tsx @@ -14,7 +14,7 @@ export function MemberEmptyProject({ <> {userInfo?.uid == member?.id && member?.githubHandle ? (
-

No projects to display

+

No repositories to display

) : ( <> @@ -59,7 +59,7 @@ export function MemberEmptyProject({

{member?.githubHandle ? (

-

No projects to display

+

No repositories to display

) : ( <> @@ -75,7 +75,7 @@ export function MemberEmptyProject({ )} - +

)} diff --git a/apps/web-app/constants.ts b/apps/web-app/constants.ts index c2d6210d8..650c5d0d5 100644 --- a/apps/web-app/constants.ts +++ b/apps/web-app/constants.ts @@ -208,6 +208,11 @@ export const APP_ANALYTICS_EVENTS = { TEAM_EDIT_BY_LEAD: 'team-edit-by-lead', TEAM_EDIT_BY_ADMIN: 'team-edit-by-admin', + PR_CONRTIBUTIONS_LIST_ITEM_ADD: 'pr-contributions-list-item-add', + PR_CONRTIBUTIONS_LIST_ITEM_DELETE: 'pr-contributions-list-item-delete', + PR_CONRTIBUTIONS_LIST_ITEM_EXPANDED: 'pr-contributions-list-item-expanded', + PR_CONRTIBUTIONS_LIST_ITEM_COLLAPSED: 'pr-contributions-list-item-collapsed', + FILTERS_APPLIED: 'filters-applied', }