You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -6,25 +6,75 @@ All future user interfaces at Topcoder will be implemented here. Pre-existing us
6
6
7
7
>**NOTE:** The information in this file describes our coding standards and best practices. All new code should follow these guidelines both when coding new features as well as porting old features. Please take the time to read through this file in detail.
PRs should also have a description that includes a link to the Jira ticket and a summary of what the PR is changing.
43
+
44
+
## Branching
45
+
46
+
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).
47
+
48
+
When working on Jira tickets, a branch should correspond with a single ticket.
49
+
50
+
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`.
51
+
52
+
Use the following naming convention for branches in order to link associated Git PRs and branches to the tickets:
53
+
54
+
`[TICKET-###]_[short-description]`
55
+
56
+
e.g.: `PROD-1516_work-issue`
57
+
58
+
## Commits
59
+
We use [Smart Commits](https://bigbrassband.com/git-integration-for-jira/documentation/smart-commits.html#bbb-nav-basic-examples) to link comments and time tracking to tickets. You would enter the following as your commit message:
@@ -127,28 +177,10 @@ Otherwise, you will need to override the exception each time you load the site.
127
177
3. Set the REACT_APP_HOST_ENV=[hostname]
128
178
4. Add "start:[hostname]": "sh start-ssl-[hostname].sh" to scripts in package.json
129
179
130
-
## Deployments
131
-
132
-
The app uses CircleCI for CI/CD.
133
-
134
-
The "dev" branch is auto-deployed to the dev environment: https://platform-mvp.topcoder-dev.com.
135
-
136
-
The "master" branch is auto-deployed to the production environment: https://platform-ui.topcoder.com.
137
-
138
-
## Developer Center Contentful API Key and Space Id
139
-
140
-
The app requires two environment variables, which contain the space id and the key used to access contentful and retrieve Thrive Articles.
141
-
142
-
You should create a file named `.env` in the root folder, and write inside the following lines:
143
-
144
-
```sh
145
-
REACT_APP_CONTENTFUL_EDU_SPACE_ID=<space-id>
146
-
REACT_APP_CONTENTFUL_EDU_CDN_API_KEY=<API Key>
147
-
```
148
180
149
-
We should use the same space ID and API Key as Topcoder Thrive, these are for fetching Thrive articles and videos in the landing page.
181
+
## Tool-specific setup
150
182
151
-
See the [Dev Center README](/src-ts/tools/dev-center/README.md) for further instructions on setting up the Dev Center.
183
+
Each [Tool](#tools) can have its own setup requirements. Please see each tool's [README](#tools) for further information.
152
184
153
185
## yarn Commands
154
186
@@ -169,6 +201,15 @@ See the [Dev Center README](/src-ts/tools/dev-center/README.md) for further inst
169
201
|`yarn report:coverage`| Generate e2e coverage report in html format |
170
202
|`yarn report:coverage:text`| Generate e2e coverage report in text format |
171
203
204
+
205
+
206
+
207
+
208
+
# Application Structure
209
+
210
+
-[Folder Structure](#folder-structure)
211
+
-[Adding a Tool or Util](#adding-a-tool-or-util)
212
+
172
213
## Folder Structure
173
214
174
215
The folder structure of the app has the following goals:
@@ -317,25 +358,14 @@ The PlatformRoute model has several useful options:
317
358
|`title: string`| The title property is the text that will appear in the Tools or Utils Selectors (this is irrelevant on hidden routes). |
318
359
|`rolesRequired: Array<string>`| Requiring roles for a route means that users who do not own the roles will be presented with restricted page when they try to access the route. |
319
360
320
-
## Git
321
-
322
-
### Branching
323
-
When working on Jira tickets, we link associated Git PRs and branches to the tickets. Use the following naming convention for branches:
324
-
325
-
`[TICKET #]_short-description`
326
-
327
-
e.g.: `PROD-1516_work-issue`
328
-
329
-
#### Branching strategy
330
-
TBD
331
361
332
-
### Commits
333
-
We use [Smart Commits](https://bigbrassband.com/git-integration-for-jira/documentation/smart-commits.html#bbb-nav-basic-examples) to link comments and time tracking to tickets. You would enter the following as your commit message:
>**NOTE** - all SVGs require explicit `width` and `height` in the Safari browser in order to be rendered properly, otherwise they'll be rendered to the _default_ size and probably will crop out of view
582
+
583
+
584
+
585
+
586
+
587
+
588
+
589
+
590
+
# Tools
591
+
592
+
The following summarizes the various [tools](#adding-a-tool-or-util) in the Platform UI.
593
+
594
+
- [Dev Center](#dev-center)
595
+
- [Gamification Admin](#gamification-admin)
596
+
- [Learn](#learn)
597
+
- [Work](#work)
598
+
599
+
## Dev Center
600
+
601
+
A community-led project to document how to work with Topcoder internal applications.
602
+
603
+
[Dev Center README](./src-ts/tools/dev-center/README.md)
604
+
[Dev Center Routes](./src-ts/tools/dev-center/dev-center.routes.tsx)
605
+
606
+
## Gamification Admin
607
+
608
+
Application that allows administrators to CRUD badges and de/assign them to specific users.
Copy file name to clipboardExpand all lines: src-ts/tools/dev-center/README.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,15 @@
1
1
# Dev Center Configuration
2
2
3
-
See the [main app README](/README.md#developer-center-contentful-api-key-and-space-id) for info regarding the environment variables required to run the DEV Center.
3
+
The app requires two environment variables, which contain the space id and the key used to access contentful and retrieve Thrive Articles.
4
+
5
+
You should create a file named `.env` in the root folder, and write inside the following lines:
6
+
7
+
```sh
8
+
REACT_APP_CONTENTFUL_EDU_SPACE_ID=<space-id>
9
+
REACT_APP_CONTENTFUL_EDU_CDN_API_KEY=<API Key>
10
+
```
11
+
12
+
We should use the same space ID and API Key as Topcoder Thrive, these are for fetching Thrive articles and videos in the landing page.
0 commit comments