From 73b66dfeb0382bd967bbe28563230b02ccc0b865 Mon Sep 17 00:00:00 2001 From: himaniraghav3 Date: Mon, 19 Jan 2026 15:35:33 +0530 Subject: [PATCH 1/2] PM-2394 cleanup looker based member verification --- .../components/ProfilePage/Header/index.jsx | 77 +------------------ 1 file changed, 2 insertions(+), 75 deletions(-) diff --git a/src/shared/components/ProfilePage/Header/index.jsx b/src/shared/components/ProfilePage/Header/index.jsx index 8a932cfd7e..fe177a10bf 100644 --- a/src/shared/components/ProfilePage/Header/index.jsx +++ b/src/shared/components/ProfilePage/Header/index.jsx @@ -3,22 +3,12 @@ */ import React, { useEffect, useState } from 'react'; import PT from 'prop-types'; -import { connect } from 'react-redux'; - -import { actions } from 'topcoder-react-lib'; import { isomorphy } from 'topcoder-react-utils'; -import VerifiedBadge from 'assets/images/profile/verified-badge.svg'; -import InfoIcon from 'assets/images/profile/ico-info.svg'; -import Tooltip from 'components/Tooltip'; - import './styles.scss'; -const verifiedBadgeLookerId = '3322'; - -const ProfileHeader = ({ getLookerDone, lookerInfo, info }) => { +const ProfileHeader = ({ info }) => { const [imageUrl, setimageUrl] = useState(); - const [isMemberVerified, setIsMemberVerified] = useState(false); const { handle } = info; useEffect(() => { @@ -31,30 +21,10 @@ const ProfileHeader = ({ getLookerDone, lookerInfo, info }) => { setimageUrl(url); }, []); - useEffect(() => { - if (!lookerInfo || lookerInfo.error) { - getLookerDone(verifiedBadgeLookerId); - } - }, []); - - useEffect(() => { - if (!lookerInfo || lookerInfo.error) { - return; - } - const { lookerData } = lookerInfo; - const currentUserData = lookerData.find(x => x['user.handle'] === handle); - setIsMemberVerified(currentUserData && currentUserData['member_verification.status'] === 'Verified'); - }, [lookerInfo]); - const loadImageError = () => { setimageUrl(null); }; - const tooltipContent = ( -
This member is compliant with Topcoder policies
and is a trusted member of the Topcoder community.
- ); - - return (
@@ -73,23 +43,6 @@ const ProfileHeader = ({ getLookerDone, lookerInfo, info }) => {
{handle}
- - {isMemberVerified && ( -
- - - verified member - -
- - - -
-
- )}
@@ -102,34 +55,8 @@ ProfileHeader.defaultProps = { info: {}, }; -function mapStateToProps(state) { - const { - looker: { - dataSet, - }, - } = state; - return { - lookerInfo: dataSet[verifiedBadgeLookerId], - }; -} - -function mapDispatchToProps(dispatch) { - return { - getLookerDone: (lookerId) => { - dispatch(actions.looker.getLookerDone(lookerId)); - }, - }; -} - ProfileHeader.propTypes = { info: PT.shape(), - lookerInfo: PT.shape().isRequired, - getLookerDone: PT.func.isRequired, }; -const Container = connect( - mapStateToProps, - mapDispatchToProps, -)(ProfileHeader); - -export default Container; +export default ProfileHeader; From 86d4dc4db0da5466fbdd61dfc0b6ea2d45b9ad30 Mon Sep 17 00:00:00 2001 From: Kiril Kartunov Date: Tue, 20 Jan 2026 13:03:56 +0200 Subject: [PATCH 2/2] build fix for appirio-tech --- package-lock.json | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index d7229823c9..2df5409307 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25073,8 +25073,8 @@ } }, "tc-core-library-js": { - "version": "github:appirio-tech/tc-core-library-js#049c58633669e1a906ad5a6be08db817471e6ae6", - "from": "github:appirio-tech/tc-core-library-js#v2.6.3.1", + "version": "github:topcoder-platform/tc-core-library-js#049c58633669e1a906ad5a6be08db817471e6ae6", + "from": "github:topcoder-platform/tc-core-library-js#v2.6.3.1", "requires": { "auth0-js": "^9.4.2", "axios": "^0.19.0", @@ -25864,7 +25864,7 @@ "react-redux": "^6.0.1", "redux": "^3.7.2", "redux-actions": "^2.4.0", - "tc-core-library-js": "github:appirio-tech/tc-core-library-js#v2.6", + "tc-core-library-js": "github:topcoder-platform/tc-core-library-js#v2.6", "to-capital-case": "^1.0.0", "topcoder-react-utils": "github:topcoder-platform/topcoder-react-utils#v6" }, @@ -26100,8 +26100,8 @@ } }, "tc-core-library-js": { - "version": "github:appirio-tech/tc-core-library-js#d16413db30b1eed21c0cf426e185bedb2329ddab", - "from": "github:appirio-tech/tc-core-library-js#v2.6", + "version": "github:topcoder-platform/tc-core-library-js#d16413db30b1eed21c0cf426e185bedb2329ddab", + "from": "github:topcoder-platform/tc-core-library-js#v2.6", "requires": { "auth0-js": "^9.4.2", "axios": "^0.12.0", diff --git a/package.json b/package.json index b61a5d540b..2c4b5a0842 100644 --- a/package.json +++ b/package.json @@ -162,7 +162,7 @@ "showdown": "^1.8.6", "slick-carousel": "^1.8.1", "supertest": "^3.1.0", - "tc-core-library-js": "github:appirio-tech/tc-core-library-js#v2.6.3.1", + "tc-core-library-js": "github:topcoder-platform/tc-core-library-js#v2.6.3.1", "tc-ui": "^1.0.12", "topcoder-react-lib": "github:topcoder-platform/topcoder-react-lib#auth0", "topcoder-react-ui-kit": "2.0.1",