Skip to content

Commit

Permalink
Remove TaaS app links
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgasper committed Oct 23, 2023
1 parent 5b593a3 commit 72cfe6d
Show file tree
Hide file tree
Showing 13 changed files with 114 additions and 219 deletions.
1 change: 0 additions & 1 deletion config/constants/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ module.exports = {
CONTENTFUL_DELIVERY_KEY : process.env.CONTENTFUL_DELIVERY_KEY,
CONTENTFUL_SPACE_ID : process.env.CONTENTFUL_SPACE_ID,

TAAS_APP_URL: 'https://platform.topcoder-dev.com/taas',
DEFAULT_NDA_UUID: 'e5811a7b-43d1-407a-a064-69e5015b4900',
UNIVERSAL_NAV_URL: '//uni-nav.topcoder-dev.com/v1/tc-universal-nav.js',
HEADER_AUTH_URLS_HREF: `https://accounts-auth0.${DOMAIN}?utm_source=community-app-main`,
Expand Down
1 change: 0 additions & 1 deletion config/constants/master.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ module.exports = {
CONTENTFUL_DELIVERY_KEY : process.env.CONTENTFUL_DELIVERY_KEY,
CONTENTFUL_SPACE_ID : process.env.CONTENTFUL_SPACE_ID,

TAAS_APP_URL: 'https://platform.topcoder.com/taas',
DEFAULT_NDA_UUID: 'c41e90e5-4d0e-4811-bd09-38ff72674490',
UNIVERSAL_NAV_URL: '//uni-nav.topcoder.com/v1/tc-universal-nav.js',
HEADER_AUTH_URLS_HREF: `https://accounts-auth0.${DOMAIN}?utm_source=community-app-main`,
Expand Down
1 change: 0 additions & 1 deletion config/constants/qa.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ module.exports = {

TC_CDN_URL: process.env.TC_CDN_URL,

TAAS_APP_URL: 'https://platform.topcoder-dev.com/taas',
DEFAULT_NDA_UUID: 'e5811a7b-43d1-407a-a064-69e5015b4900',
UNIVERSAL_NAV_URL: '//uni-nav.topcoder-dev.com/v1/tc-universal-nav.js',
HEADER_AUTH_URLS_HREF: `https://accounts-auth0.${DOMAIN}?utm_source=community-app-main`,
Expand Down
3 changes: 1 addition & 2 deletions connect-automation/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@
"accountAndSecurityUrl": "https://connect.topcoder-dev.com/settings/account",
"notificationsUrl": "https://connect.topcoder-dev.com/notifications",
"allProjectsUrl": "https://connect.topcoder-dev.com/projects",
"expiredProjectUrl": "https://connect.topcoder-dev.com/projects/17236",
"platformUrl": "https://platform.topcoder-dev.com/taas/myteams"
"expiredProjectUrl": "https://connect.topcoder-dev.com/projects/17236"
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ export class CreateProjectPageHelper {
await this.createProjectPageObject.submitJobRequest.click();
const message = await CommonHelper.getAlertMessageAndClosePopup();
expect(message).toContain(`PROJECT '${taasData.title.toUpperCase()}' CREATED`);

await this.createProjectPageObject.viewTalentRequestButton.click();
await CommonHelper.verifyPageUrl(ConfigHelper.getPlatformUrl());
}

private static createProjectPageObject: CreateProjectPageObject;
Expand Down Expand Up @@ -240,7 +237,7 @@ export class CreateProjectPageHelper {

await this.createProjectPageObject.skillsInput.click();
await CommonHelper.waitForListToGetLoaded('xpath', this.createProjectPageObject.multiSelectOptionClassName, 2);

const elements = await this.createProjectPageObject.multiSelectOption;
await elements[1].click();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,6 @@ export class CreateProjectPageObject {
return ElementHelper.getElementByButtonText('Submit job request');
}

/**
* Get view Talent Request button
*/
public get viewTalentRequestButton() {
return ElementHelper.getElementByCss('.go-to-project-dashboard-btn');
}

/**
* Get Current Form Page's title element
*/
Expand Down
7 changes: 0 additions & 7 deletions connect-automation/utils/config-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,4 @@ export const ConfigHelper = {
getExpiredProjectUrl(): string {
return this.getConfig().expiredProjectUrl;
},

/**
* Get platform URL
*/
getPlatformUrl(): string {
return this.getConfig().platformUrl;
},
};
5 changes: 0 additions & 5 deletions src/config/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -1134,11 +1134,6 @@ export const PROFILE_FIELDS_CONFIG = {
*/
export const PROJECT_TYPE_TALENT_AS_A_SERVICE = 'talent-as-a-service'

/**
* URL to the Topcoder TaaS App
*/
export const TAAS_APP_URL = process.env.TAAS_APP_URL || 'https://platform.topcoder-dev.com/taas'

/**
* Milestone Types
*/
Expand Down
25 changes: 9 additions & 16 deletions src/projects/create/components/ProjectSubmitted.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,17 @@ import qs from 'query-string'

require('./ProjectSubmitted.scss')
import {
CONNECT_MAIN_PAGE_URL, PROJECT_TYPE_TALENT_AS_A_SERVICE, TAAS_APP_URL
CONNECT_MAIN_PAGE_URL, PROJECT_TYPE_TALENT_AS_A_SERVICE
} from '../../../config/constants'

class ProjectSubmitted extends React.Component {
/**
* Build project URL based on the `type` query param in URL.
*
* @param {boolean} isTaas
* @param {String} projectId project id
*/
getProjectUrl(isTaas, projectId = '') {
const url = isTaas
// if the project type is TaaS, then use link to TaaS App
? `${TAAS_APP_URL}/myteams/${projectId}`
// otherwise use link inside Connect App
: `${CONNECT_MAIN_PAGE_URL}/projects/${projectId}`

return url
getProjectUrl(projectId = '') {
return `${CONNECT_MAIN_PAGE_URL}/projects/${projectId}`
}

getPageConfiguration() {
Expand All @@ -45,12 +38,12 @@ In the meantime, get a jump on the process by inviting your coworkers to your pr
leftButton: {
header: 'All Projects',
subText: 'View all of your projects',
url: this.getProjectUrl(isTaas)
url: this.getProjectUrl()
},
rightButton: {
header: 'Go to Project',
subText: 'Invite your team members and share requirements',
url: this.getProjectUrl(isTaas, projectId)
url: this.getProjectUrl(projectId)
},
}

Expand All @@ -64,12 +57,12 @@ In the meantime, get a jump on the process by inviting your coworkers to your pr
leftButton: {
header: 'All Projects',
subText: 'View all of your projects',
url: this.getProjectUrl(false) // also showing link to Connect App Project List
url: this.getProjectUrl() // also showing link to Connect App Project List
},
rightButton: {
header: 'View Talent Request',
subText: 'Modify your request and track fulfillment',
url: this.getProjectUrl(isTaas, projectId)
header: 'Go to Project',
subText: 'Invite your team members and share requirements',
url: this.getProjectUrl(projectId)
},
}

Expand Down

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions src/projects/detail/components/TaasProjectWelcome/index.js

This file was deleted.

Loading

0 comments on commit 72cfe6d

Please sign in to comment.