Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 84f8ab8

Browse files
Merge pull request #143 from topcoder-platform/PROD-2399_urls
PROD-2399 Map Work to Platform UI -> dev
2 parents 9b59f10 + 87c80b3 commit 84f8ab8

File tree

5 files changed

+29
-15
lines changed

5 files changed

+29
-15
lines changed

config/dev.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = {
77
COMMUNITY_DOMAIN: "https://www.topcoder-dev.com",
88
PLATFORM_DOMAIN: "https://platform.topcoder-dev.com",
99
TAAS_APP: "https://platform.topcoder-dev.com/taas/myteams",
10+
PLATFORM_UI: "https://platform-ui.topcoder-dev.com",
1011
},
1112
API: {
1213
V3: "https://api.topcoder-dev.com/v3",

config/prod.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = {
77
COMMUNITY_DOMAIN: "https://www.topcoder.com",
88
PLATFORM_DOMAIN: "https://platform.topcoder.com",
99
TAAS_APP: "https://platform.topcoder.com/taas/myteams",
10+
PLATFORM_UI: "https://platform-ui.topcoder.com",
1011
},
1112
API: {
1213
V3: "https://api.topcoder.com/v3",

src/components/AllAppsMenu/index.jsx

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,29 @@ const AllAppsMenu = () => {
7676
}
7777
return (
7878
<li className="all-apps-menu-app" key={app.path}>
79-
<Link
80-
to={app.path}
81-
onClick={(e) => closeMenu(e, app)}
82-
>
83-
<img src={app.icon} alt={`${app.title} Icon`} />
84-
<span>{app.title}</span>
85-
</Link>
79+
{!!app.link && (
80+
<a
81+
alt={app.title}
82+
href={app.link}
83+
>
84+
<img
85+
alt={`${app.title} Icon`}
86+
src={app.icon}
87+
/>
88+
<span>
89+
{app.title}
90+
</span>
91+
</a>
92+
)}
93+
{!app.link && (
94+
<Link
95+
to={app.path}
96+
onClick={(e) => closeMenu(e, app)}
97+
>
98+
<img src={app.icon} alt={`${app.title} Icon`} />
99+
<span>{app.title}</span>
100+
</Link>
101+
)}
86102
</li>
87103
);
88104
})}

src/components/AllAppsMenu/styles.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,6 @@
165165
font-size: 24px;
166166
}
167167

168-
.all-apps-menu-app {
169-
width: 100%;
170-
margin: 0;
171-
}
172-
173168
.all-apps-menu-popover-content {
174169
padding: 0;
175170
padding-top: 30px;

src/constants/apps.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/**
22
* Config for the All Apps menu.
33
*/
4+
import config from "../../config";
45
import appDocumentationIcon from "../assets/images/learn.svg";
56
import appTaasIcon from "../assets/images/integrations.svg";
67
import appTaasAdminIcon from "../assets/images/taas-admin.png";
@@ -61,12 +62,12 @@ export const APP_CATEGORIES = [
6162
],
6263
},
6364
{
64-
category: "Self Service",
65+
category: "Work",
6566
apps: [
6667
{
67-
title: "Work",
68+
title: "Self Service",
6869
icon: earnIcon,
69-
path: "/self-service",
70+
link: `${config.URL.PLATFORM_UI}/work/dashboard`,
7071
menu: [],
7172
},
7273
],

0 commit comments

Comments
 (0)