Skip to content

Commit 0a88d8d

Browse files
committed
PROD-3808 - fix platform to platform-ui auth urls
1 parent 9fead9f commit 0a88d8d

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ PRs should also have a description that includes a link to the Jira ticket and a
4545

4646
All branches use `dev` as their source. All merges to `dev` should be made via [pull request](#pull-requests) and should be approved by application owner(s).
4747

48-
When working on Jira tickets, a branch should correspond with a single ticket.
48+
When working on Jira tickets, a branch should correspond with a single ticket.
4949

5050
When using subtasks, each parent ticket should have its own branch off `dev`, and all subtasks branches should be merged into the parent ticket branch instead of directly to `dev`.
5151

@@ -93,12 +93,12 @@ Use the [VS Code](https://code.visualstudio.com/download) IDE for MFE developmen
9393
### nvm
9494
Use the node version manager [nvm](https://github.com/nvm-sh/nvm/blob/master/README.md) to easily and safely manage the required version of NodeJS (aka, node). Download and install it per the instructions for your development operating system. Installing a version of node via `nvm` will also install `npm`.
9595

96-
Once nvm is installed, run:
96+
Once nvm is installed, run:
9797

9898
>% nvm install <insert node version>
9999
100100

101-
At the root of the project directory you'll notice a file called `.nvmrc` which specifies the node version used by the project. The command `nvm use` will use the version specified in the file if no version is supplied on the command line.
101+
At the root of the project directory you'll notice a file called `.nvmrc` which specifies the node version used by the project. The command `nvm use` will use the version specified in the file if no version is supplied on the command line.
102102
See [the nvm Github README](https://github.com/nvm-sh/nvm/blob/master/README.md#nvmrc) for more information on setting this up.
103103

104104
>**NOTE:** The current node version mentioned in the `.nvmrc` is `16.15.0`
@@ -120,7 +120,7 @@ export NVM_DIR=~/.nvm
120120

121121
If you don't have this set globally, you can create your own [personal config](#personal-config) to define your local nvm dir.
122122

123-
### Hosting
123+
### Hosting
124124
You will need to add the following line to your hosts file. The hosts file is normally located at `/etc/hosts` (Mac). Do not overwrite the existing localhost entry also pointing to 127.0.0.1.
125125

126126
```
@@ -145,13 +145,13 @@ You will need to add the following line to your hosts file. The hosts file is no
145145
146146
### Local SSL
147147

148-
SSL is required for authentication to work properly.
148+
SSL is required for authentication to work properly.
149149

150-
The `yarn start` command serves the site using the cert and key in the /ssl directory, which authorize the `https://local.topcoder-dev.com`URL.
150+
The `yarn start` command serves the site using the cert and key in the /ssl directory, which authorize the `https://local.topcoder-dev.com`URL.
151151

152152
By overriding the app to use <b>port 443</b>, you can use the authorized URL and trust the root CA to avoid SSL errors in the browser.
153153

154-
>**NOTE:** Mac users will require running the app with elevated permissions in order to use a port lower than 500.
154+
>**NOTE:** Mac users will require running the app with elevated permissions in order to use a port lower than 500.
155155
156156
For easier development, it is recommended that you add this certificate to your trusted root authorities and as a trused cert in your browser. Google your browser and OS for more info on how to trust cert authorities.
157157

@@ -168,7 +168,7 @@ Otherwise, you will need to override the exception each time you load the site.
168168
7. Prior to starting the server, set your host name:
169169
```% export REACT_APP_HOST_ENV=[hostname]```
170170

171-
>**NOTE:** Individual tools (e.g. [Learn tool](/src-ts/tools/learn/README.md)) can have their own configuration, which can be configured the same way as the global config.
171+
>**NOTE:** Individual tools (e.g. [Learn tool](/src-ts/tools/learn/README.md)) can have their own configuration, which can be configured the same way as the global config.
172172
173173
#### For further convenience
174174

@@ -196,7 +196,7 @@ Each [Tool](#tools) can have its own setup requirements. Please see each tool's
196196
| `yarn lint:js:fix` | Run eslint against js/x files, fixes auto-fixable issues, and outputs report |
197197
| `yarn lint` | Run eslint against js/x and ts/x files and outputs report |
198198
| `yarn lint:fix` | Run eslint against js/x and ts/x files, fixes auto-fixable issues, and outputs report |
199-
| `yarn test` | Run unit tests, watching for changes and re-running per your specifications |
199+
| `yarn test` | Run unit tests, watching for changes and re-running per your specifications |
200200
| `yarn test:no-watch` | Run unit tests once, without watching for changes or re-running |
201201
| `yarn cy:run` | Run e2e tests once in local command with the site is running |
202202
| `yarn cy:ci` | Run e2e tests once by circle ci |
@@ -271,8 +271,8 @@ The Tool Selectors on the site [Header](#src-tsheader) correlate 1:1 to director
271271
The name of a tool's directory should correlate w/the name of the tool and its url.
272272

273273
```
274-
i.e. /src-ts/tools/[tool-name] == platform.topcoder.com/[tool-name]
275-
e.g. /src-ts/tools/work == platform.topcoder.com/work
274+
i.e. /src-ts/tools/[tool-name] == platform-ui.topcoder.com/[tool-name]
275+
e.g. /src-ts/tools/work == platform-ui.topcoder.com/work
276276
```
277277

278278
>**NOTE:** Tools should not import modules from any directories other than lib. If it is necessary to import from outside the lib, the shared code should generally be moved to lib.
@@ -286,8 +286,8 @@ The Utility Selectors in the site [Header](#src-tsheader) correlate 1:1 to direc
286286
The name of a util's directory should correlate w/the name of the util and its url.
287287

288288
```
289-
i.e. /src-ts/utils/[util-name] == platform.topcoder.com/[util-name]
290-
e.g. /src-ts/utils/profile == platform.topcoder.com/profile
289+
i.e. /src-ts/utils/[util-name] == platform-ui.topcoder.com/[util-name]
290+
e.g. /src-ts/utils/profile == platform-ui.topcoder.com/profile
291291
```
292292

293293
>**NOTE:** Utils should not import modules from any directories other than lib. If it is necessary to import from outside the lib, the shared code should generally be moved to lib.
@@ -398,7 +398,7 @@ VS Code has several plugins and settings that make linting easy.
398398

399399
The most useful feature is to automatically apply all lint rules any time you save a file.
400400

401-
1) Code → Preferences → Settings
401+
1) Code → Preferences → Settings
402402

403403
2) Search for “save” to find the setting
404404
- Editor: Code Actions on Save
@@ -470,11 +470,11 @@ Colors and Gradients are defined as variables in `src-ts/lib/styles/_palette.scs
470470
471471
### Padding
472472
473-
Padding for various screen sizes are defined as variables in `src-ts/lib/styles/_layout.scss`. This file also contains a mixin called `pagePaddings` that determines the correct padding to use for the current screen size based on breakpoints.
473+
Padding for various screen sizes are defined as variables in `src-ts/lib/styles/_layout.scss`. This file also contains a mixin called `pagePaddings` that determines the correct padding to use for the current screen size based on breakpoints.
474474
475475
### Breakpoints
476476
477-
Breakpoint mixins are defined in `src-ts/lib/styles/_breakpoints.scss` and can be used to apply different styling based on the screen width.
477+
Breakpoint mixins are defined in `src-ts/lib/styles/_breakpoints.scss` and can be used to apply different styling based on the screen width.
478478
479479
Here is an example that applies a different height value than the default to a css class selector if the screen is considered small (376px - 464px).
480480
@@ -502,7 +502,7 @@ example.scss
502502
}
503503
```
504504
505-
Mobile UIs use xs, sm, and md breakpoints. Larger breakpoints are desktop UIs.
505+
Mobile UIs use xs, sm, and md breakpoints. Larger breakpoints are desktop UIs.
506506
507507
For specifying mobile CSS, you can use @include ltemd:
508508
```
@@ -525,7 +525,7 @@ For specifying mobile CSS, you can use @include ltemd:
525525
### Heroicons
526526
We use the SVG icons library [Heroicons](https://heroicons.com/), where each icon is available in an `outline` or `solid` version.
527527
528-
We import both sets of icons in the file `src-ts/lib/svgs/index.ts`.
528+
We import both sets of icons in the file `src-ts/lib/svgs/index.ts`.
529529
```
530530
import * as IconOutline from '@heroicons/react/outline'
531531
import * as IconSolid from '@heroicons/react/solid'
@@ -554,8 +554,8 @@ See the /src-ts/lib/svgs for an example.
554554
555555
### Styling Icons
556556
557-
You can style an SVG icon by overwritting its properties through CSS (height, width, fill, etc.).
558-
There are also existing mixins located in `src-ts/lib/styles/_icons.scss` with pre-defined widths and heights for various icon sizes.
557+
You can style an SVG icon by overwritting its properties through CSS (height, width, fill, etc.).
558+
There are also existing mixins located in `src-ts/lib/styles/_icons.scss` with pre-defined widths and heights for various icon sizes.
559559
560560
e.g.:
561561
```
@@ -568,7 +568,7 @@ e.g.:
568568
path {
569569
fill: $tc-white;
570570
}
571-
}
571+
}
572572
}
573573

574574
.no-logo-link {
@@ -589,7 +589,7 @@ e.g.:
589589
590590
# Tools
591591
592-
The following summarizes the various [tools](#adding-a-tool-or-util) in the Platform UI.
592+
The following summarizes the various [tools](#adding-a-tool-or-util) in the Platform UI.
593593
594594
- [Dev Center](#dev-center)
595595
- [Gamification Admin](#gamification-admin)

config/dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ module.exports = {
66
TERMS_URL:
77
"https://www.topcoder-dev.com/challenges/terms/detail/317cd8f9-d66c-4f2a-8774-63c612d99cd4",
88
PRIVACY_POLICY_URL: "https://www.topcoder-dev.com/policy",
9-
SIGN_IN_URL: `https://accounts-auth0.topcoder-dev.com/?retUrl=https%3A%2F%2Fplatform.topcoder-dev.com%2Fself-service%2Fwizard&regSource=selfService`,
10-
SIGN_UP_URL: `https://accounts-auth0.topcoder-dev.com/?retUrl=https%3A%2F%2Fplatform.topcoder-dev.com%2Fself-service%2Fwizard&regSource=selfService&mode=signUp`,
9+
SIGN_IN_URL: `https://accounts-auth0.topcoder-dev.com/?retUrl=https%3A%2F%2Fplatform-ui.topcoder-dev.com%2Fself-service%2Fwizard&regSource=selfService`,
10+
SIGN_UP_URL: `https://accounts-auth0.topcoder-dev.com/?retUrl=https%3A%2F%2Fplatform-ui.topcoder-dev.com%2Fself-service%2Fwizard&regSource=selfService&mode=signUp`,
1111
/**
1212
* URL of Topcoder Connect Website
1313
*/

config/prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ module.exports = {
66
TERMS_URL:
77
"https://www.topcoder.com/challenges/terms/detail/564a981e-6840-4a5c-894e-d5ad22e9cd6f",
88
PRIVACY_POLICY_URL: "https://www.topcoder.com/policy",
9-
SIGN_IN_URL: `https://accounts-auth0.topcoder.com/?retUrl=https%3A%2F%2Fplatform.topcoder.com%2Fself-service%2Fwizard&regSource=selfService`,
10-
SIGN_UP_URL: `https://accounts-auth0.topcoder.com/?retUrl=https%3A%2F%2Fplatform.topcoder.com%2Fself-service%2Fwizard&regSource=selfService&mode=signUp`,
9+
SIGN_IN_URL: `https://accounts-auth0.topcoder.com/?retUrl=https%3A%2F%2Fplatform-ui.topcoder.com%2Fself-service%2Fwizard&regSource=selfService`,
10+
SIGN_UP_URL: `https://accounts-auth0.topcoder.com/?retUrl=https%3A%2F%2Fplatform-ui.topcoder.com%2Fself-service%2Fwizard&regSource=selfService&mode=signUp`,
1111

1212
/**
1313
* URL of Topcoder Connect Website

0 commit comments

Comments
 (0)