Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit 3c67029

Browse files
trietlumabreuortegaMiguel Abreukharbutli-meta
authored
Merge v1.3.0 onto mainline (#794)
* Miguel.abreu/gtt 1705 remove current page (#771) * Remove aria-current from step indicator * Update breadcrums to use aria-current=location Co-authored-by: Miguel Abreu <[email protected]> * Add context to action buttons on dashboard views (#772) * Modify index display logic (#773) Co-authored-by: Miguel Abreu <[email protected]> * Add missing aria label information for buttons and text inputs (#774) Co-authored-by: Miguel Abreu <[email protected]> * Miguel.abreu/gtt 1689 topic area refactor (#776) * Modify topic area settings views to reflect topic area name changes. * Fix missing table header Co-authored-by: Miguel Abreu <[email protected]> * Add control descriptions to selections on dashboard tabs (#775) Co-authored-by: Miguel Alfonso Abreu Ortega <[email protected]> * Remove <li/> without <ol/> (#777) * Remove <li/> without <ol/> * Update Admin.tsx Co-authored-by: Miguel Abreu <[email protected]> * Adds an invisible skip link at the head of pages (#778) * Add a hidden skip link for accessibility * Switch to using the usa-skipnav class Co-authored-by: Miguel Alfonso Abreu Ortega <[email protected]> * Upgrade libs per dependabot findings. Upgrade version to 1.3.0 (#781) * updated translation files (#784) * Updated url-parse to version 1.5.7 per dependabot finding (#786) * Miguel.abreu/gtt 1690 modify h1 to show step information (#785) * Fix title labels for wizards * Update unit tests Co-authored-by: Miguel Abreu <[email protected]> Co-authored-by: Triet <[email protected]> * Improves the UX for the CheckData component (#783) * Improve the UX for the CheckData component * Remove unsused code * Fixes based on reviewer's feedback * Update heading for settings page (#787) Co-authored-by: Miguel Abreu <[email protected]> * Make modal experience more accessible (#788) * Add programmatic status messages to tables (#789) * Add programmatic status messages to tables * Add programmatic status messages to tables * GTT-1861: Perform html escape on the returned error message (#791) * perform html escape on the returned error message * Bump url-parse from 1.5.3 to 1.5.10 * Bumps url-parse from 1.5.3 to 1.5.10. * Merged latest translation files (#792) * Updated with recent accessibility enhancements (#793) Co-authored-by: Miguel Alfonso Abreu Ortega <[email protected]> Co-authored-by: Miguel Abreu <[email protected]> Co-authored-by: Mazen Kharbutli <[email protected]>
1 parent 9e32298 commit 3c67029

File tree

85 files changed

+2966
-3115
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+2966
-3115
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.3.0] - 2022-03-07
9+
10+
- Made improvements to meet WCAG accessibility requirements
11+
- Added programmatic structure to sections in dashboard editor
12+
- Removed ARIA 'Current' attributes for dashboard to avoid misleading screen readers
13+
- Updated modal experience to be more accessible
14+
- Updated Settings pages to use proper heading mark-ups
15+
- Improved the user experience of working with Check Data step columns
16+
- Added programmatic status messages when actions are taken
17+
- Updated dependency libraries to address potential security vulnerabilities
18+
819
## [1.2.0] - 2022-02-02
920

1021
- Made improvements to meet WCAG accessibility requirements

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ PDoA comes with pre-built code to provision an instance in your AWS account. You
3333

3434
| Region | Launch |
3535
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
36-
| Install in us-east-1 | [![Install in us-east-1](docs/images/launch-stack.svg)](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/quickcreate?templateURL=https://performance-dashboard-on-aws-solution-releases-us-west-2.s3.us-west-2.amazonaws.com/performance-dashboard-on-aws/v1.2.0/performance-dashboard-on-aws.template) |
36+
| Install in us-east-1 | [![Install in us-east-1](docs/images/launch-stack.svg)](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/quickcreate?templateURL=https://performance-dashboard-on-aws-solution-releases-us-west-2.s3.us-west-2.amazonaws.com/performance-dashboard-on-aws/v1.3.0/performance-dashboard-on-aws.template) |
3737

3838
### Clone this repository
3939

backend/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "performance-dashboard-backend",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"description": "Performance Dashboard on AWS Backend",
55
"awssdkUserAgent": "AwsSolution/SO0157/v",
66
"scripts": {

backend/src/lib/controllers/__tests__/ingestapi-ctrl.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ describe("createDataset", () => {
185185
await IngestApiCtrl.createDataset(req, res);
186186

187187
expect(res.status).toBeCalledWith(400);
188+
expect(res.send).toHaveBeenLastCalledWith(
189+
"Unable to parse dataset: 0: instance is not of a type(s) array"
190+
);
188191
expect(DatasetService.parse).toBeCalledWith(
189192
"This is not a valid JSON",
190193
undefined

backend/src/lib/controllers/ingestapi-ctrl.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ async function createDataset(req: Request, res: Response) {
9191
parsedData = DatasetService.parse(data, metadata.schema);
9292
} catch (err) {
9393
logger.warn("Unable to parse dataset %o", data);
94-
return res.status(400).send(err.message);
94+
return res
95+
.status(400)
96+
.send(`Unable to parse dataset: ${escapeHtml(err.message)}`.trim());
9597
}
9698

9799
try {

cdk/package-lock.json

Lines changed: 1347 additions & 1904 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cdk/package.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "performance-dashboard-cdk",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"description": "Performance Dashboard on AWS CDK",
55
"bin": {
66
"cdk": "bin/main.js"
@@ -13,36 +13,36 @@
1313
"deploy:pipeline": "cdk deploy --app 'npx ts-node bin/pipeline.ts'"
1414
},
1515
"devDependencies": {
16-
"@aws-cdk/assert": "1.133.0",
16+
"@aws-cdk/assert": "1.144.0",
1717
"@types/aws-sdk": "^2.7.0",
1818
"@types/node": "10.17.5",
19-
"aws-cdk": "1.133.0",
19+
"aws-cdk": "1.144.0",
2020
"ts-node": "^8.1.0",
2121
"typescript": "^3.8.0"
2222
},
2323
"dependencies": {
24-
"@aws-cdk/aws-apigateway": "1.133.0",
25-
"@aws-cdk/aws-cloudfront": "1.133.0",
26-
"@aws-cdk/aws-cloudwatch": "1.133.0",
27-
"@aws-cdk/aws-cloudwatch-actions": "1.133.0",
28-
"@aws-cdk/aws-codebuild": "1.133.0",
29-
"@aws-cdk/aws-codecommit": "1.133.0",
30-
"@aws-cdk/aws-codepipeline": "1.133.0",
31-
"@aws-cdk/aws-codepipeline-actions": "1.133.0",
32-
"@aws-cdk/aws-codestarnotifications": "1.133.0",
33-
"@aws-cdk/aws-cognito": "1.133.0",
34-
"@aws-cdk/aws-dynamodb": "1.133.0",
35-
"@aws-cdk/aws-iam": "1.133.0",
36-
"@aws-cdk/aws-kms": "1.133.0",
37-
"@aws-cdk/aws-lambda": "1.133.0",
38-
"@aws-cdk/aws-lambda-event-sources": "1.133.0",
39-
"@aws-cdk/aws-logs": "1.133.0",
40-
"@aws-cdk/aws-s3": "1.133.0",
41-
"@aws-cdk/aws-s3-deployment": "1.133.0",
42-
"@aws-cdk/aws-sns": "1.133.0",
43-
"@aws-cdk/aws-stepfunctions-tasks": "1.133.0",
44-
"@aws-cdk/core": "1.133.0",
45-
"@aws-cdk/custom-resources": "1.133.0",
24+
"@aws-cdk/aws-apigateway": "1.144.0",
25+
"@aws-cdk/aws-cloudfront": "1.144.0",
26+
"@aws-cdk/aws-cloudwatch": "1.144.0",
27+
"@aws-cdk/aws-cloudwatch-actions": "1.144.0",
28+
"@aws-cdk/aws-codebuild": "1.144.0",
29+
"@aws-cdk/aws-codecommit": "1.144.0",
30+
"@aws-cdk/aws-codepipeline": "1.144.0",
31+
"@aws-cdk/aws-codepipeline-actions": "1.144.0",
32+
"@aws-cdk/aws-codestarnotifications": "1.144.0",
33+
"@aws-cdk/aws-cognito": "1.144.0",
34+
"@aws-cdk/aws-dynamodb": "1.144.0",
35+
"@aws-cdk/aws-iam": "1.144.0",
36+
"@aws-cdk/aws-kms": "1.144.0",
37+
"@aws-cdk/aws-lambda": "1.144.0",
38+
"@aws-cdk/aws-lambda-event-sources": "1.144.0",
39+
"@aws-cdk/aws-logs": "1.144.0",
40+
"@aws-cdk/aws-s3": "1.144.0",
41+
"@aws-cdk/aws-s3-deployment": "1.144.0",
42+
"@aws-cdk/aws-sns": "1.144.0",
43+
"@aws-cdk/aws-stepfunctions-tasks": "1.144.0",
44+
"@aws-cdk/core": "1.144.0",
45+
"@aws-cdk/custom-resources": "1.144.0",
4646
"@cloudcomponents/cdk-lambda-at-edge-pattern": "1.39.0",
4747
"aws-sdk": "^2.814.0",
4848
"source-map-support": "^0.5.16"

docs/installation.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ If you're not familiar with deploying resources on AWS using CFT, start by revie
2525

2626
| Region | Launch |
2727
| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
28-
| US East (N. Virginia) | [![Install in us-east-1](images/launch-stack.svg)](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/quickcreate?templateURL=https://performance-dashboard-on-aws-solution-releases-us-west-2.s3.us-west-2.amazonaws.com/performance-dashboard-on-aws/v1.2.0/performance-dashboard-on-aws.template) |
28+
| US East (N. Virginia) | [![Install in us-east-1](images/launch-stack.svg)](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/quickcreate?templateURL=https://performance-dashboard-on-aws-solution-releases-us-west-2.s3.us-west-2.amazonaws.com/performance-dashboard-on-aws/v1.3.0/performance-dashboard-on-aws.template) |
2929

3030
You will be directed to the CloudFormation console on your browser. Enter the stack name such as "MyCorp-PerfDash", and enter the email of the user who will initially administer PDoA in the "adminEmail" field, then press the "Next" button. Accept the default values on the next page, and press the Next button. Finally, check on the two "Capabilities" checkboxes at the bottom of the page. Press the "Create Stack" button. It will take about 25 minutes for the compute, storage, and database resources on AWS to be provisioned.
3131

@@ -41,10 +41,10 @@ If you prefer to deploy PDoA in a region other than US East (N. Virginia), you m
4141

4242
| Region | Launch |
4343
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
44-
| **Install this first in US East (N. Virginia)** | [![Install this first](images/launch-stack.svg)](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/quickcreate?templateURL=https://performance-dashboard-on-aws-solution-releases-us-west-2.s3.us-west-2.amazonaws.com/performance-dashboard-on-aws/v1.2.0/LambdaEdge.template) |
45-
| Install PDoA in South America (São Paulo) | [![Install in non US East (N. Virginia) region](images/launch-stack.svg)](https://console.aws.amazon.com/cloudformation/home?region=sa-east-1#/stacks/quickcreate?templateURL=https://performance-dashboard-on-aws-solution-releases-us-west-2.s3.us-west-2.amazonaws.com/performance-dashboard-on-aws/v1.2.0/performance-dashboard-on-aws.template) |
46-
| Install PDoA in Canada (Central) | [![Install in non US East (N. Virginia) region](images/launch-stack.svg)](https://console.aws.amazon.com/cloudformation/home?region=ca-central-1#/stacks/quickcreate?templateURL=https://performance-dashboard-on-aws-solution-releases-us-west-2.s3.us-west-2.amazonaws.com/performance-dashboard-on-aws/v1.2.0/performance-dashboard-on-aws.template) |
47-
| Install PDoA in Europe (London) | [![Install in non US East (N. Virginia) region](images/launch-stack.svg)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-2#/stacks/quickcreate?templateURL=https://performance-dashboard-on-aws-solution-releases-us-west-2.s3.us-west-2.amazonaws.com/performance-dashboard-on-aws/v1.2.0/performance-dashboard-on-aws.template) |
44+
| **Install this first in US East (N. Virginia)** | [![Install this first](images/launch-stack.svg)](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/quickcreate?templateURL=https://performance-dashboard-on-aws-solution-releases-us-west-2.s3.us-west-2.amazonaws.com/performance-dashboard-on-aws/v1.3.0/LambdaEdge.template) |
45+
| Install PDoA in South America (São Paulo) | [![Install in non US East (N. Virginia) region](images/launch-stack.svg)](https://console.aws.amazon.com/cloudformation/home?region=sa-east-1#/stacks/quickcreate?templateURL=https://performance-dashboard-on-aws-solution-releases-us-west-2.s3.us-west-2.amazonaws.com/performance-dashboard-on-aws/v1.3.0/performance-dashboard-on-aws.template) |
46+
| Install PDoA in Canada (Central) | [![Install in non US East (N. Virginia) region](images/launch-stack.svg)](https://console.aws.amazon.com/cloudformation/home?region=ca-central-1#/stacks/quickcreate?templateURL=https://performance-dashboard-on-aws-solution-releases-us-west-2.s3.us-west-2.amazonaws.com/performance-dashboard-on-aws/v1.3.0/performance-dashboard-on-aws.template) |
47+
| Install PDoA in Europe (London) | [![Install in non US East (N. Virginia) region](images/launch-stack.svg)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-2#/stacks/quickcreate?templateURL=https://performance-dashboard-on-aws-solution-releases-us-west-2.s3.us-west-2.amazonaws.com/performance-dashboard-on-aws/v1.3.0/performance-dashboard-on-aws.template) |
4848

4949
## Deploying with AWS Cloud Development Kit (CDK)
5050

frontend/package-lock.json

Lines changed: 10 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)