Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
172 commits
Select commit Hold shift + click to select a range
7f26191
integrate cy dashboard
LieutenantRoger Sep 1, 2022
dc8b73b
refine ci
LieutenantRoger Sep 1, 2022
f1fcdc8
refine command
LieutenantRoger Sep 1, 2022
1924926
report integration
LieutenantRoger Sep 2, 2022
3e97d80
success tests
LieutenantRoger Sep 2, 2022
37d0a32
integrate test report
LieutenantRoger Sep 2, 2022
0840b7c
test with failure case
LieutenantRoger Sep 2, 2022
2015563
Merge branch 'dev' into circle-ci-setup-v5
LieutenantRoger Sep 2, 2022
7aff7c1
skip failed e2e test cases
LieutenantRoger Sep 2, 2022
e4f4305
finalize yarn.lock file
LieutenantRoger Sep 2, 2022
ef0ddb1
Merge pull request #288 from topcoder-platform/circle-ci-setup-v5
brooketopcoder Sep 2, 2022
a1abe2f
try workflow
LieutenantRoger Sep 5, 2022
d7eb09e
correct action
LieutenantRoger Sep 5, 2022
844928f
add sudo in lib installation
LieutenantRoger Sep 5, 2022
c5efbb5
store testing result
LieutenantRoger Sep 5, 2022
648375b
correct command
LieutenantRoger Sep 5, 2022
a77f304
check failed test case
LieutenantRoger Sep 5, 2022
8934154
continue on error
LieutenantRoger Sep 5, 2022
629c933
enable cache operation
LieutenantRoger Sep 5, 2022
f757bf2
yarn cache id update
LieutenantRoger Sep 5, 2022
550330f
TCA-400 - update behavior for fcc sidebar (course outline navigation)
vas3a Sep 7, 2022
97d9287
lint
vas3a Sep 7, 2022
5cf3d8f
TCA-404 #comment This commit tweaks for formatting of the cypress con…
brooketopcoder Sep 7, 2022
11fb137
TCA-404 #comment This commit does a little bit more clean-up #time 10m
brooketopcoder Sep 7, 2022
f95d26f
TCA-404 #comment This comment removes extraneous code that was in the…
brooketopcoder Sep 7, 2022
33952f5
TCA-404 #comment This commit fixes the base url in source control #ti…
brooketopcoder Sep 7, 2022
b835cfe
TCA-404 fix base url
brooketopcoder Sep 7, 2022
5f784fd
Merge pull request #290 from topcoder-platform/TCA-404_cypress-tweaks
brooketopcoder Sep 7, 2022
ea43c8a
TCA-400 - use the clickoutside hook
vas3a Sep 7, 2022
0b30d96
Merge remote-tracking branch 'origin/dev' into TCA-400_update-fcc-sid…
vas3a Sep 7, 2022
8a26d92
Merge pull request #289 from topcoder-platform/TCA-400_update-fcc-sid…
vas3a Sep 7, 2022
c6b0434
TCA-336 #comment This commit forces a dev deployment to see if it's a…
brooketopcoder Sep 7, 2022
1e2fdcc
TCA-400 #comment This commit temporarily skips the cypress test bc th…
brooketopcoder Sep 8, 2022
0ea5ece
Merge pull request #291 from topcoder-platform/TCA-400_update-fcc-sid…
brooketopcoder Sep 8, 2022
9823c1a
refine e2e
LieutenantRoger Sep 9, 2022
d77db70
include env var
LieutenantRoger Sep 9, 2022
db39b00
env prepare
LieutenantRoger Sep 9, 2022
2175923
remove test env
LieutenantRoger Sep 9, 2022
273ea59
Merge branch 'dev' into circle-ci-setup-v7
LieutenantRoger Sep 9, 2022
33eac90
merge dev
LieutenantRoger Sep 9, 2022
6ecf7f3
try fail and deploy
LieutenantRoger Sep 9, 2022
10ce989
reset
LieutenantRoger Sep 9, 2022
83446a1
execute test
LieutenantRoger Sep 9, 2022
f6ce5cb
switch the command seqneuce
LieutenantRoger Sep 9, 2022
efe4e01
TCA-408 clean up for dev #time 10m
brooketopcoder Sep 9, 2022
3099419
Merge pull request #292 from topcoder-platform/circle-ci-setup-v7
brooketopcoder Sep 9, 2022
b3cb164
Implements GAME-81
kkartunov Sep 12, 2022
fe1153e
code review updates
kkartunov Sep 14, 2022
126806e
switch to heroicon for sort column trigger
kkartunov Sep 14, 2022
c3ae18a
use _spacing whenever possible
kkartunov Sep 14, 2022
5847cac
TCA-440: call certification completion based on assessment completion
vas3a Sep 15, 2022
0ea5539
lint fix
vas3a Sep 15, 2022
51c9207
TCA-444 - Learn Landing Header content
vas3a Sep 15, 2022
cfeb2d4
lint fixes
vas3a Sep 15, 2022
0675ff5
Merge pull request #295 from topcoder-platform/TCA-444_tca-landing-he…
vas3a Sep 15, 2022
1468545
Merge pull request #294 from topcoder-platform/TCA-440_certificate-pr…
vas3a Sep 15, 2022
f98d0de
init badge creation
kkartunov Sep 16, 2022
cde8c84
TCA-440 - add slider on homepage with user's latest progress
vas3a Sep 16, 2022
dbeb9ad
update default active slider
vas3a Sep 16, 2022
f4d55e5
TCA-428 - add "completion suggestions" on course landing page
vas3a Sep 16, 2022
6233f09
Merge pull request #296 from topcoder-platform/TCA-440_certificate-pr…
vas3a Sep 16, 2022
8d89e85
Merge pull request #297 from topcoder-platform/TCA-428_ui-for-course-…
vas3a Sep 19, 2022
40ef0de
GAME-107 and GAME-99
kkartunov Sep 19, 2022
3594327
TCA-441 - implement form input select
vas3a Sep 19, 2022
efa1d12
TCA-441 - implement certificates sorting on tca landing page
vas3a Sep 19, 2022
8a1922d
add storage hook to keep state in sync with local storage
vas3a Sep 19, 2022
fcacff3
lint fixes
vas3a Sep 19, 2022
6b23142
TCA-441 - add certifications filter by category on landing page
vas3a Sep 19, 2022
99d3260
Merge pull request #299 from topcoder-platform/TCA-413_learn-homepage…
vas3a Sep 19, 2022
9f83312
GAME-107 #comment This commit refactors the SWR to be a generic hook …
brooketopcoder Sep 19, 2022
95cefd1
GAME-107 clean-up
brooketopcoder Sep 19, 2022
5ac9f54
GAMe-107 clean up
brooketopcoder Sep 19, 2022
1eb9358
Merge pull request #300 from topcoder-platform/GAME-107_bjcs
kkartunov Sep 20, 2022
143ca20
Merge branch 'feat/GAME-81' into feat/GAME-82
kkartunov Sep 20, 2022
186fe43
TCA-441 - learn landing filters - mobile UI
vas3a Sep 20, 2022
b45076e
Merge branch 'dev' of github.com:topcoder-platform/platform-ui into T…
vas3a Sep 20, 2022
8a59c3f
TCA-441 - update button style for secondary buttons on learn landing …
vas3a Sep 20, 2022
fd20e71
init create badge form
kkartunov Sep 20, 2022
03cd149
dedicated checkbox input init
kkartunov Sep 20, 2022
d572ed0
Merge pull request #298 from topcoder-platform/TCA-441_implement-sort…
vas3a Sep 20, 2022
1175617
Merge pull request #293 from topcoder-platform/feat/GAME-81
kkartunov Sep 20, 2022
460cd29
GAME-108 #comment This commit adapts the InputText component to suppo…
brooketopcoder Sep 20, 2022
3ee6df6
TCA-318 #comment This commit adds the certificate image params to the…
brooketopcoder Sep 20, 2022
2e8c595
Merge pull request #302 from topcoder-platform/TCA-318_trigger-cert
testflyjets Sep 20, 2022
8d9582a
Merge pull request #301 from topcoder-platform/GAME-108_bjcs
kkartunov Sep 21, 2022
e8b5069
fix checkbox init and clean up
kkartunov Sep 21, 2022
3496704
Merge pull request #303 from topcoder-platform/fix/GAME-108
kkartunov Sep 21, 2022
e28c7c7
image-picker input type
kkartunov Sep 21, 2022
99844c2
Merge pull request #304 from topcoder-platform/gamification
kkartunov Sep 21, 2022
ce758f8
image picker to use value & groups config API
kkartunov Sep 22, 2022
1a92396
Connect create badge to API and clean up
kkartunov Sep 23, 2022
77c94e7
Merge branch 'dev' into feat/GAME-82
brooketopcoder Sep 23, 2022
931c3ee
TCA-322 #comment This commit updates the social share link to point t…
brooketopcoder Sep 24, 2022
aa0b97f
better file input configs
kkartunov Sep 26, 2022
1287f14
Merge branch 'feat/GAME-82' of https://github.com/topcoder-platform/p…
kkartunov Sep 26, 2022
5c5f502
Merge pull request #305 from topcoder-platform/feat/GAME-82
kkartunov Sep 26, 2022
bdfae27
Merge pull request #307 from topcoder-platform/gamification
kkartunov Sep 26, 2022
a0a0671
Merge pull request #306 from topcoder-platform/TCA-322_share-cert
testflyjets Sep 26, 2022
eb3ab6a
Revert "Gamification - GAME-82"
kkartunov Sep 26, 2022
d274bc0
Merge pull request #308 from topcoder-platform/revert-307-gamification
kkartunov Sep 26, 2022
d05063d
GAME-121 & GAME-122
kkartunov Sep 27, 2022
115468f
Merge pull request #309 from topcoder-platform/feat/GAME-82
kkartunov Sep 27, 2022
385c559
Revert "Revert "Gamification - GAME-82""
kkartunov Sep 27, 2022
b1ad235
Merge pull request #310 from topcoder-platform/revert-308-revert-307-…
kkartunov Sep 27, 2022
c38022c
Merge pull request #311 from topcoder-platform/gamification
kkartunov Sep 27, 2022
a109309
TCA-465 - text misaligned in the Course details screen.
vas3a Sep 27, 2022
11e7a8c
TCA-463 - show "various" as time estimate when estimated time is 0
vas3a Sep 27, 2022
21c3ad4
lint fixes
vas3a Sep 27, 2022
d3d5efd
TCA-463 - update label for variable duration on courses
vas3a Sep 28, 2022
fe3feb4
Merge pull request #312 from topcoder-platform/TCA-465_text-missalign
vas3a Sep 28, 2022
e71e504
Merge pull request #313 from topcoder-platform/TCA-463_handle-non-cod…
vas3a Sep 28, 2022
307ed4c
TCA-465 - text misaligned in the Course details screen.
vas3a Sep 28, 2022
f195175
Fix GAME-141
kkartunov Sep 28, 2022
67516aa
Merge pull request #314 from topcoder-platform/TCA-465_text-missalign
vas3a Sep 29, 2022
6c8cc3d
TCA-470 - update sort, use publishedAt
vas3a Sep 29, 2022
d69583d
Badge create page UI fixes from QA
kkartunov Sep 29, 2022
5b5eef6
Merge pull request #318 from topcoder-platform/feat/GAME-82
kkartunov Sep 29, 2022
9b5a10b
Merge pull request #319 from topcoder-platform/gamification
kkartunov Sep 29, 2022
fdc6c31
lint fix
vas3a Sep 29, 2022
bff96f2
Merge pull request #320 from topcoder-platform/TCA-470_sort-by-newest
vas3a Sep 29, 2022
0b761d5
QA fixes badge create page GAME-82
kkartunov Sep 30, 2022
1be3f52
Merge pull request #321 from topcoder-platform/feat/GAME-82
kkartunov Sep 30, 2022
84a22fb
mobile fix on badge created modal
kkartunov Sep 30, 2022
a19e9bd
Merge pull request #323 from topcoder-platform/feat/GAME-82
kkartunov Sep 30, 2022
0070992
Merge pull request #322 from topcoder-platform/gamification
kkartunov Sep 30, 2022
1e86fd2
TCA-485 - add prerequisites section on course details page
vas3a Sep 30, 2022
035b5c0
TCA-486 - Modify course listing to group courses by category
vas3a Sep 30, 2022
2d87f91
lint fixes
vas3a Sep 30, 2022
b333086
Merge pull request #324 from topcoder-platform/TCA-485_add-prerequisi…
vas3a Oct 3, 2022
88c5df1
Merge pull request #325 from topcoder-platform/TCA-486_filter-sort-up…
vas3a Oct 3, 2022
f7721e6
base code for GAME-83
kkartunov Oct 3, 2022
fa881a0
TCA-486 - on landing show count of available certificates filtered by…
vas3a Oct 3, 2022
5298fb2
Merge pull request #326 from topcoder-platform/TCA-486_filter-sort-up…
vas3a Oct 3, 2022
b400f08
TCA-488 #comment This commit shortens the URL of the cert so that twi…
brooketopcoder Oct 3, 2022
82e9d20
TCA-488 clean-up
brooketopcoder Oct 3, 2022
f7d670b
TCA-488 clean-up
brooketopcoder Oct 3, 2022
b871605
Merge pull request #327 from topcoder-platform/TCA-488_twitter
brooketopcoder Oct 3, 2022
5d8b4d0
TCA-438 #comment This commit does a first pass to get the check icon …
brooketopcoder Oct 4, 2022
149995f
TCA-438 - update status icon size for course outline
vas3a Oct 4, 2022
e9a80e3
update README - svg icons
vas3a Oct 4, 2022
f6536d4
add mixin for full size (100%) icon
vas3a Oct 4, 2022
6a48ed5
Merge pull request #328 from topcoder-platform/TCA-438_missing-checkmark
brooketopcoder Oct 4, 2022
c806ddc
TCA-500 - add missing course badges
vas3a Oct 5, 2022
6666500
TCA-500 Update learn-certificate-track-type
vas3a Oct 5, 2022
58b16d3
Merge pull request #329 from topcoder-platform/TCA-500_add-missing-co…
vas3a Oct 5, 2022
b65c526
TCA-472 #comment This commit moves the gradient defs for learn catego…
brooketopcoder Oct 5, 2022
d135578
Merge pull request #330 from topcoder-platform/TCA-472_missing-badge
brooketopcoder Oct 5, 2022
e4c7732
Badge editing via contenteditable
kkartunov Oct 7, 2022
3e27671
Merge pull request #331 from topcoder-platform/feat/GAME-124
kkartunov Oct 7, 2022
468fb8b
TCA-515 add logging for cert urls #time 3h
brooketopcoder Oct 7, 2022
1b3b1a7
Merge pull request #332 from topcoder-platform/TCA-515_cert-url-logging
brooketopcoder Oct 7, 2022
9af642f
TCA-515 fix lint issue
brooketopcoder Oct 7, 2022
c18c6f9
Merge pull request #333 from topcoder-platform/TCA-515_cert-url-logging
brooketopcoder Oct 7, 2022
63a03d1
TCA-517 #comment This commit changes the default config to use port s…
brooketopcoder Oct 7, 2022
b6d6c74
TCA-517 cleanup
brooketopcoder Oct 7, 2022
adb9dd6
Merge pull request #334 from topcoder-platform/TCA-517_readme
nikolay83 Oct 9, 2022
7048eb0
TCA-512 - add missing cert type gradients
vas3a Oct 10, 2022
e2dd79a
TCA-513 - wait for course data to load before fetching ceritificate data
vas3a Oct 10, 2022
7970523
Member autocomplete
kkartunov Oct 10, 2022
323c51a
lint fix
vas3a Oct 10, 2022
a27297e
Merge pull request #338 from topcoder-platform/feat/GAME-130
kkartunov Oct 11, 2022
9cddb7d
assign member selection to badge via CSV
kkartunov Oct 11, 2022
1a4198a
Merge pull request #340 from topcoder-platform/feat/GAME-131
kkartunov Oct 11, 2022
06bad4c
Merge pull request #341 from topcoder-platform/gamification
kkartunov Oct 11, 2022
712f2a0
Merge pull request #337 from topcoder-platform/TCA-513_badge-flashing…
vas3a Oct 11, 2022
130cbb6
Merge pull request #336 from topcoder-platform/TCA-512_details-missin…
vas3a Oct 11, 2022
ae1162e
TCA-496 - fix for safari double scrollbar
vas3a Oct 11, 2022
1f29680
TCA-455 - sort the category options in homepage
vas3a Oct 11, 2022
ff200bd
Merge pull request #344 from topcoder-platform/TCA-455_sort-category-…
vas3a Oct 11, 2022
928ac9d
Merge pull request #343 from topcoder-platform/TCA-496_fix-ff-scrollbars
brooketopcoder Oct 11, 2022
d49887a
TCA-508 #comment This commit adds a post build script to create gzip …
brooketopcoder Oct 13, 2022
1c396e8
Merge pull request #347 from topcoder-platform/TCA-508_gzip
brooketopcoder Oct 13, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 44 additions & 33 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ deploy_defaults: &deploy_defaults
docker:
- image: cimg/python:3.10.2

test_defaults: &test_defaults
docker:
- image: cypress/browsers:node16.14.2-slim-chrome100-ff99-edge

install_build_dependency: &install_build_dependency
name: Installation of build and deployment dependencies.
command: |
Expand Down Expand Up @@ -50,6 +54,14 @@ running_yarn_build: &running_yarn_build
yarn install
yarn build

running_yarn_test: &running_yarn_test
name: Running Yarn Test Build
command: |
yarn install
yarn cypress install
yarn build
yarn cy:ci

workspace_persist: &workspace_persist
root: .
paths:
Expand Down Expand Up @@ -81,6 +93,27 @@ build_steps: &build_steps
- run: *running_yarn_build
- persist_to_workspace: *workspace_persist

test_steps: &test_steps
# Initialization.
- checkout
- setup_remote_docker
- restore_cache:
key: test-node-modules-{{ checksum "yarn.lock" }}
- run: *running_yarn_test
- save_cache:
key: test-node-modules-{{ checksum "yarn.lock" }}
paths:
- node_modules
- /root/.cache/Cypress
- store_test_results:
path: cypress/test-report
- store_artifacts:
path: cypress/test-report
- store_artifacts:
path: cypress/videos
- store_artifacts:
path: cypress/screenshots

deploy_steps: &deploy_steps
- checkout
- attach_workspace: *workspace_attach
Expand Down Expand Up @@ -127,6 +160,14 @@ jobs:
LOGICAL_ENV: "prod"
APPNAME: "platform-ui-mvp"
steps: *build_steps

test-dev:
<<: *test_defaults
environment:
DEPLOY_ENV: "DEV"
LOGICAL_ENV: "dev"
APPNAME: "platform-ui-mvp"
steps: *test_steps

# Just tests commited code.
deployDev:
Expand All @@ -147,35 +188,6 @@ jobs:
APPNAME: "platform-ui-mvp"
steps: *deploy_steps

# Test job for the cases when we don not need deployment.
e2e-test:
docker:
- image: cypress/browsers:node16.14.2-slim-chrome100-ff99-edge
steps:
- checkout
- restore_cache:
key: test-node-modules-{{ checksum "yarn.lock" }}
- run:
name: Config Git
command: git config --global url."https://git@".insteadOf git://
- run:
name: Install Dependencies
command: yarn install
no_output_timeout: 20m
- run:
name: Install Cypress Binary
command: yarn cypress install
- run:
name: Build the application
command: yarn build
no_output_timeout: 20m
- save_cache:
key: test-node-modules-{{ checksum "yarn.lock" }}
paths:
- node_modules
- /root/.cache/Cypress
- run: yarn cy:ci

workflows:
version: 2
build:
Expand All @@ -201,9 +213,6 @@ workflows:
ignore:
- master

- e2e-test:
context : org-global

- build-prod:
context : org-global
filters:
Expand All @@ -215,7 +224,6 @@ workflows:
context : org-global
requires:
- build-dev
- e2e-test
filters:
branches:
only:
Expand All @@ -229,3 +237,6 @@ workflows:
branches:
only:
- master

- test-dev:
context : org-global
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
# testing
/coverage
.nyc_output
/cypress/screenshots
/cypress/videos
/cypress/test-report

# production
/build
Expand Down
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ You can verify the versions of `nvm`, `node`, and `npm` using the commands below
| `% nvm current` | v15.15.0 |


>**NOTE:** The `yarn start` command requires the `NVM_DIR` env variable is set.
```zsh
export NVM_DIR=~/.nvm
```

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

### Hosting
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.

Expand All @@ -81,9 +89,9 @@ You will need to add the following line to your hosts file. The hosts file is no
>% yarn start
3. Go to https://local.topcoder-dev.com:3000
3. Go to https://local.topcoder-dev.com

>**NOTE**: The default port is 3000, but you can override it in your [personal config](#personal-config).
>**NOTE**: The site must run on port 443 in order for auth0 to work and for the site to load properly. Mac users will need to run the app with elevated permissions.
### Local SSL

Expand All @@ -102,7 +110,7 @@ Otherwise, you will need to override the exception each time you load the site.
### Personal Config

1. Add [hostname] to [`/src-ts/config/environments/app-host-environment.type.ts`](/src-ts/config/environments/app-host-environment.type.ts)
2. Copy an existing config from [`/src-ts/config/environments/environment.*.config.ts`](/src-ts/config/environments/environment.bsouza.config.ts)
2. Copy an existing config from [`/src-ts/config/environments/environment.*.config.ts`](/src-ts/config/environments/environment.brooke.config.ts)
3. Rename new config `environment.[hostname].config.ts`
4. Rename config variable to `EnvironmentConfig[HostName]`
5. Set the `ENV` variable to `[hostname]`
Expand Down Expand Up @@ -509,3 +517,5 @@ e.g.:
}
}
```
>**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
42 changes: 28 additions & 14 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
// tslint:disable-next-line: no-submodule-imports This is the way cypress does it
import task from '@cypress/code-coverage/task'
import { defineConfig } from 'cypress'

export default defineConfig({
fixturesFolder: false,
video: false,
screenshotOnRunFailure: false,
defaultCommandTimeout: 10000,
e2e: {
baseUrl: 'http://localhost:3000',
specPattern: "cypress/e2e/**/*.spec.{js,jsx,ts,tsx}",
supportFile: "cypress/support/e2e.ts",
viewportHeight: 1000,
viewportWidth: 1280,
setupNodeEvents(on, config) {
require('@cypress/code-coverage/task')(on, config)
return config;
defaultCommandTimeout: 10000,
e2e: {
// baseUrl: 'https://local.topcoder-dev.com',
baseUrl: 'http://localhost:3000',
setupNodeEvents: setUpNodeEvents,
specPattern: 'cypress/e2e/**/*.spec.{js,jsx,ts,tsx}',
supportFile: 'cypress/support/e2e.ts',
viewportHeight: 1000,
viewportWidth: 1280,
},
},
fixturesFolder: false,
reporter: 'junit',
reporterOptions: {
mochaFile: 'cypress/test-report/test-result-[hash].xml',
toConsole: false,
},
screenshotOnRunFailure: true,
video: true,
})

// adds the config to node setup events
function setUpNodeEvents(
on: Cypress.PluginEvents,
config: Cypress.PluginConfigOptions
): Cypress.PluginConfigOptions {
task(on, config)
return config
}
4 changes: 4 additions & 0 deletions cypress/e2e/home/home.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ describe('Landing Page', () => {
it('loads landing page should be successfully', () => {
cy.get('[data-id="root"]').should('be.visible')
})

it.skip('loads landing page should fail', () => {
cy.get('[data-id="root"]').should('not.be.visible')
})
})
18 changes: 13 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
"scripts": {
"dev": "yarn react-app-rewired start",
"start": "sh start-ssl.sh",
"start:bsouza": "sudo sh start-ssl-bsouza.sh",
"start:brooke": "sudo sh start-ssl-brooke.sh",
"build": "yarn react-app-rewired build",
"postbuild": "gzip build/static/js/*.js && gzip build/static/css/*.css",
"lint": "tslint 'src-ts/**/*.{ts,tsx}' && eslint 'src*/**/*.{js,jsx,ts,tsx}'",
"lint:fix": "tslint 'src-ts/**/*.{ts,tsx}' --fix && eslint 'src*/**/*.{js,jsx,ts,tsx}' --fix",
"tslint": "tslint 'src-ts/**/*.{ts,tsx}'",
Expand All @@ -15,17 +16,14 @@
"eslint:fix": "eslint 'src/**/*.{js,jsx}' --fix",
"test": "react-scripts test --watchAll",
"test:no-watch": "react-scripts test --watchAll=false --passWithNoTests",
"cy:run": "cypress run",
"cy:run": "cypress run --reporter junit",
"cy:ci": "start-server-and-test 'serve -s build -n -p 3000' http://localhost:3000 'cy:run'",
"report:coverage": "nyc report --reporter=html",
"report:coverage:text": "nyc report --reporter=text"
},
"dependencies": {
"@datadog/browser-logs": "^4.7.1",
"@heroicons/react": "^1.0.6",
"@types/dompurify": "^2.3.3",
"@types/highlightjs": "^9.12.2",
"@types/marked": "4.0.3",
"apexcharts": "^3.35.3",
"axios": "^0.26.1",
"browser-cookies": "^1.2.0",
Expand All @@ -37,14 +35,17 @@
"highlight.js": "^11.6.0",
"html2canvas": "^1.4.1",
"lodash": "^4.17.21",
"markdown-it": "^13.0.1",
"marked": "4.0.3",
"moment": "^2.29.3",
"moment-timezone": "^0.5.34",
"prop-types": "^15.8.1",
"qs": "^6.11.0",
"rc-checkbox": "^2.3.2",
"react": "^17.0.2",
"react-apexcharts": "^1.4.0",
"react-app-rewired": "^2.2.1",
"react-contenteditable": "^3.3.6",
"react-dom": "^17.0.2",
"react-elastic-carousel": "^0.11.5",
"react-gtm-module": "^2.0.11",
Expand All @@ -63,6 +64,7 @@
"redux-thunk": "^2.4.1",
"sass": "^1.49.8",
"styled-components": "^5.3.5",
"swr": "^1.3.0",
"tc-auth-lib": "topcoder-platform/tc-auth-lib#1.0.4",
"typescript": "^4.6.3",
"uuid": "^8.3.2"
Expand All @@ -82,8 +84,13 @@
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.2.1",
"@types/axios": "^0.14.0",
"@types/cypress": "^1.1.3",
"@types/dompurify": "^2.3.3",
"@types/highlightjs": "^9.12.2",
"@types/jest": "^27.0.1",
"@types/lodash": "^4.14.182",
"@types/markdown-it": "^12.2.3",
"@types/marked": "4.0.3",
"@types/node": "^18.7.13",
"@types/reach__router": "^1.3.10",
"@types/react": "^18.0.5",
Expand All @@ -94,6 +101,7 @@
"@types/segment-analytics": "^0.0.34",
"@types/systemjs": "^6.1.0",
"@types/uuid": "^8.3.4",
"@wdio/junit-reporter": "^7.24.0",
"autoprefixer": "^9.8.6",
"babel-eslint": "^11.0.0-beta.2",
"babel-jest": "^24.9.0",
Expand Down
2 changes: 1 addition & 1 deletion src-ts/config/environments/app-host-environment.type.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export type AppHostEnvironmentType = 'bsouza' | 'default' | 'dev' | 'prod'
export type AppHostEnvironmentType = 'brooke' | 'default' | 'dev' | 'prod'
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { EnvironmentConfigModel } from './environment-config.model'
import { EnvironmentConfigDefault } from './environment.default.config'

export const EnvironmentConfigBsouza: EnvironmentConfigModel = {
export const EnvironmentConfigBrooke: EnvironmentConfigModel = {
...EnvironmentConfigDefault,
ENV: 'bsouza',
ENV: 'brooke',
}
6 changes: 3 additions & 3 deletions src-ts/config/environments/environment.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AppHostEnvironmentType } from './app-host-environment.type'
import { EnvironmentConfigModel } from './environment-config.model'
import { EnvironmentConfigBsouza } from './environment.bsouza.config'
import { EnvironmentConfigBrooke } from './environment.brooke.config'
import { EnvironmentConfigDefault } from './environment.default.config'
import { EnvironmentConfigDev } from './environment.dev.config'
import { EnvironmentConfigProd } from './environment.prod.config'
Expand All @@ -12,8 +12,8 @@ function getEnvironmentConfig(): EnvironmentConfigModel {

switch (environment) {

case 'bsouza':
return EnvironmentConfigBsouza
case 'brooke':
return EnvironmentConfigBrooke

case 'default':
return EnvironmentConfigDefault
Expand Down
2 changes: 2 additions & 0 deletions src-ts/declarations.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
declare module '@cypress/code-coverage/task'

declare module '*.html' {
const htmlFile: string
export = htmlFile
Expand Down
Loading