Skip to content

Commit

Permalink
PROD-4399 - remove sprig integration
Browse files Browse the repository at this point in the history
  • Loading branch information
vas3a committed Oct 2, 2023
1 parent f41d6b8 commit d2f56ae
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 22 deletions.
1 change: 0 additions & 1 deletion config/backup-default.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,5 +473,4 @@ module.exports = {
},
/* development id - makes surveys have warning about environment */
UNIVERSAL_NAV_URL: '//uni-nav.topcoder-dev.com/v1/tc-universal-nav.js',
SPRIG_ENVIRONMENT_ID: 'bUcousVQ0-yF',
};
1 change: 0 additions & 1 deletion config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,5 +477,4 @@ module.exports = {
MEMBER_PROFILE_REDIRECT_URL: 'https://profiles.topcoder-dev.com',
MEMBER_SEARCH_REDIRECT_URL: 'https://talent-search.topcoder-dev.com',
ACCOUNT_SETTINGS_REDIRECT_URL: 'https://account-settings.topcoder-dev.com',
SPRIG_ENVIRONMENT_ID: 'bUcousVQ0-yF',
};
1 change: 0 additions & 1 deletion config/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,5 @@ module.exports = {
UNIVERSAL_NAV_URL: '//uni-nav.topcoder.com/v1/tc-universal-nav.js',
MEMBER_PROFILE_REDIRECT_URL: 'https://profiles.topcoder.com',
MEMBER_SEARCH_REDIRECT_URL: 'https://talent-search.topcoder.com',
SPRIG_ENVIRONMENT_ID: 'a-IZBZ6-r7bU',
ACCOUNT_SETTINGS_REDIRECT_URL: 'https://account-settings.topcoder.com',
};
5 changes: 0 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"dependencies": {
"@hapi/joi": "^16.1.4",
"@optimizely/react-sdk": "^2.5.0",
"@sprig-technologies/sprig-browser": "^2.20.1",
"@topcoder-platform/tc-auth-lib": "topcoder-platform/tc-auth-lib#1.0.4",
"aos": "^2.3.4",
"atob": "^2.1.1",
Expand Down
6 changes: 0 additions & 6 deletions src/client/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@ import {
} from '@topcoder-platform/tc-auth-lib';
import { actions, logger, errors } from 'topcoder-react-lib';
import { client, redux, config } from 'topcoder-react-utils';
import { sprig } from '@sprig-technologies/sprig-browser/dist';

import './styles.scss';

const Sprig = sprig.configure({
environmentId: config.SPRIG_ENVIRONMENT_ID,
});

const { setErrorsStore } = errors;

/**
Expand Down Expand Up @@ -60,7 +55,6 @@ function identify(profile, roles, userIdHash) {
integrations: { All: false, Chameleon: true },
},
);
Sprig('setUserId', profile.handle);
}

/**
Expand Down
7 changes: 0 additions & 7 deletions src/shared/containers/SubmissionPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ import { connect } from 'react-redux';
import SubmissionsPage from 'components/SubmissionPage';
import AccessDenied, { CAUSE as ACCESS_DENIED_REASON } from 'components/tc-communities/AccessDenied';
import LoadingIndicator from 'components/LoadingIndicator';
import { sprig } from '@sprig-technologies/sprig-browser/dist';

export const Sprig = sprig.configure({
environmentId: config.SPRIG_ENVIRONMENT_ID,
});

/**
* SubmissionsPage Container
Expand Down Expand Up @@ -71,8 +66,6 @@ class SubmissionsPageContainer extends React.Component {
track,
} = this.props;

// On final upload, the survey should appear
Sprig('track', 'onUploadSubmission');
submit(tokenV3, tokenV2, challengeId, body, isMM(challenge) ? 'DEVELOP' : track);
}

Expand Down

0 comments on commit d2f56ae

Please sign in to comment.