Skip to content

Commit c6b70b1

Browse files
committed
Merge branch 'master' into feature/311-ascending-order
2 parents 387a6fa + 3174c8d commit c6b70b1

File tree

17 files changed

+3491
-2908
lines changed

17 files changed

+3491
-2908
lines changed

.circleci/deployment-workflow.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
version: 2.1
22

33
orbs:
4-
aws-cli: circleci/[email protected]
4+
aws-cli: circleci/[email protected]
5+
browser-tools: circleci/[email protected]
56

67
executors:
78
base:
89
docker:
9-
- image: cimg/node:18.12.1
10+
- image: cimg/node:18.18.2-browsers
1011
user: root
1112

1213
commands:
@@ -61,24 +62,25 @@ commands:
6162
distribution_id:
6263
type: string
6364
default: ''
64-
mode:
65+
env:
6566
type: string
6667
default: dev
6768
steps:
6869
- run:
6970
name: Build code
70-
command: API_KEY=<< parameters.api_key >> CLIENT_ID=<< parameters.client_id >> GTM_ID=<< parameters.gtm_id >> ADOBE_LAUNCH_SCRIPT_URL=<< parameters.adobe_launch_script_url >> npm run build:<< parameters.mode >>
71+
command: API_KEY=<< parameters.api_key >> CLIENT_ID=<< parameters.client_id >> GTM_ID=<< parameters.gtm_id >> ADOBE_LAUNCH_SCRIPT_URL=<< parameters.adobe_launch_script_url >> npm run build:<< parameters.env >>
7172
- when:
7273
condition:
7374
and:
74-
- equal: [<< parameters.mode >>, 'prod']
75+
- equal: [<< parameters.env >>, 'prod']
7576
steps:
7677
- run:
7778
name: Set PROD specific env variables
7879
command: |
79-
echo 'export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID_PROD' >> $BASH_ENV
80-
echo 'export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY_PROD' >> $BASH_ENV
81-
- aws-cli/setup
80+
echo 'export AWS_BYOR_OIDC_ROLE=$AWS_BYOR_OIDC_ROLE_PROD' >> $BASH_ENV
81+
- aws-cli/setup:
82+
role_arn: $AWS_BYOR_OIDC_ROLE
83+
session_duration: '900'
8284
- run:
8385
name: Sync build artifacts to S3
8486
command: aws s3 cp --recursive dist "s3://<< parameters.bucket_name >>/"
@@ -92,6 +94,7 @@ jobs:
9294
steps:
9395
- checkout
9496
- install-node-and-cypress-packages
97+
- browser-tools/install-chrome
9598
- run:
9699
name: Run e2e test cases
97100
command: API_KEY=$LOCAL_API_KEY ./run_e2e_tests.sh $LOCAL_TEST_URL
@@ -107,7 +110,7 @@ jobs:
107110
adobe_launch_script_url: $QA_ADOBE_LAUNCH_SCRIPT_URL
108111
bucket_name: $QA_BUCKET_NAME
109112
distribution_id: $QA_DISTRIBUTION_ID
110-
mode: dev
113+
env: dev
111114
prod-deployment:
112115
executor: base
113116
steps:
@@ -120,7 +123,7 @@ jobs:
120123
adobe_launch_script_url: $PROD_ADOBE_LAUNCH_SCRIPT_URL
121124
bucket_name: $PROD_BUCKET_NAME
122125
distribution_id: $PROD_DISTRIBUTION_ID
123-
mode: prod
126+
env: prod
124127

125128
workflows:
126129
build-and-deploy:

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @thoughtworks/tw-digital @will-amaral

.vscode/extensions.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
{ "recommendations": ["esbenp.prettier-vscode", "EditorConfig.EditorConfig"] }
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"esbenp.prettier-vscode",
5+
"orta.vscode-jest",
6+
"editorconfig.editorconfig"
7+
]
8+
}

.vscode/settings.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
{
2-
"editor.defaultFormatter": "esbenp.prettier-vscode",
2+
"[javascript]": {
3+
"editor.defaultFormatter": "esbenp.prettier-vscode"
4+
},
5+
"[json]": {
6+
"editor.defaultFormatter": "esbenp.prettier-vscode"
7+
},
8+
"prettier.enable": true,
9+
"prettier.prettierPath": "./node_modules/prettier",
310
"editor.formatOnSave": true,
4-
"editor.tabSize": 2
5-
}
11+
"editor.codeActionsOnSave": {
12+
"source.fixAll.eslint": true
13+
}
14+
}

CONTRIBUTORS.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
1-
#BYOR Contributors
1+
## BYOR Contributors
22

3-
In no particular order
3+
In alphabetic order:
44

5-
- [BRUNNEL6](https://github.com/BRUNNEL6)
5+
- [@andyw8](https://github.com/andyw8)
66

7-
- [lauraionescu](https://github.com/lauraionescu)
7+
- [@aschonfeld](https://github.com/aschonfeld)
88

9-
- [thenano](https://github.com/thenano)
9+
- [@br00k](https://github.com/br00k)
1010

11-
- [trecenti](https://github.com/trecenti)
11+
- [@BRUNNEL6](https://github.com/BRUNNEL6)
1212

13-
- [hkurosawa](https://github.com/hkurosawa)
13+
- [@camiloribeiro](https://github.com/camiloribeiro)
1414

15-
- [kylec32](https://github.com/kylec32)
15+
- [@filipesabella](https://github.com/filipesabella)
1616

17-
- [aschonfeld](https://github.com/aschonfeld)
17+
- [@hkurosawa](https://github.com/hkurosawa)
1818

19-
- [andyw8](https://github.com/andyw8)
19+
- [@jaiganeshg](https://github.com/jaiganeshg)
2020

21-
- [br00k](https://github.com/br00k)
21+
- [@kylec32](https://github.com/kylec32)
2222

23-
- [camiloribeiro](https://github.com/camiloribeiro)
23+
- [@lauraionescu](https://github.com/lauraionescu)
2424

25-
- [shahadarsh](https://github.com/shahadarsh)
25+
- [@setchy](https://github.com/setchy)
2626

27-
- [filipesabella](https://github.com/filipesabella)
27+
- [@shahadarsh](https://github.com/shahadarsh)
2828

29-
- [jaiganeshg](https://github.com/jaiganeshg)
29+
- [@thenano](https://github.com/thenano)
30+
31+
- [@trecenti](https://github.com/trecenti)

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88

99
A library that generates an interactive radar, inspired by [thoughtworks.com/radar](http://thoughtworks.com/radar).
1010

11-
## Technology Radar Survey
12-
13-
Take our short survey to help make the Technology Radar even better: https://www.thoughtworks.com/radar/survey.
14-
1511
## Demo
1612

1713
You can see this in action at https://radar.thoughtworks.com. If you plug in [this data](https://docs.google.com/spreadsheets/d/1GBX3-jzlGkiKpYHF9RvVtu6GxSrco5OYTBv9YsOTXVg/edit#gid=0) you'll see [this visualization](https://radar.thoughtworks.com/?sheetId=https%3A%2F%2Fdocs.google.com%2Fspreadsheets%2Fd%2F1GBX3-jzlGkiKpYHF9RvVtu6GxSrco5OYTBv9YsOTXVg%2Fedit%23gid%3D0).
@@ -137,6 +133,8 @@ Google OAuth Client ID and API Key can be obtained from your Google Developer Co
137133
export CLIENT_ID=[Google Client ID]
138134
```
139135

136+
**_Note:_** Make sure to set the "Authorized JavaScript origins" field for the Client ID to the right origin domain, with port, where the app is hosted. Examples: `http://localhost:8080` or `https://radar.thoughtworks.com`.
137+
140138
Optionally, API Key can be set to bypass Google Authentication for public sheets.
141139

142140
```
@@ -222,16 +220,19 @@ To run End to End tests, start the dev server and follow the required steps belo
222220

223221
- To run in headless mode:
224222

225-
- add a new environment variable `TEST_URL` and set it to 'http://localhost:8080/'
223+
- add a new environment variable `TEST_URL` and set it to 'http://localhost:8080'
226224
- `npm run test:e2e-headless`
227225

228226
- To run in debug mode:
229-
- add a new environment variable `TEST_URL` and set it to 'http://localhost:8080/'
227+
- add a new environment variable `TEST_URL` and set it to 'http://localhost:8080'
230228
- `npm run e2e`
231229
- Select 'E2E Testing' and choose the browser
232230
- Click on the spec to run it's tests
233231

234-
**_Note:_** Currently, end to end tests are not supported for private Google Sheets, as it requires interacting with the Google One Tap popup.
232+
**_Notes:_**
233+
234+
- Currently, end to end tests are not supported for private Google Sheets, as it requires interacting with the Google One Tap popup.
235+
- To run end to end tests for public Google Sheets, the `CLIENT_ID` and `API_KEY` environment variables need to set as well (steps details [here](#more-complex-usage)), to provide Cypress with an authenticated session (without having to interact with Google's auth popups).
235236

236237
### Don't want to install node? Run with one line docker
237238

0 commit comments

Comments
 (0)