Skip to content

Commit def59de

Browse files
authored
Merge pull request #79 from feedzai/develop
Code for 3.1.0 release
2 parents ca4bf48 + 7b815d7 commit def59de

30 files changed

Lines changed: 96 additions & 39 deletions

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,43 @@
11
# Changelog
2+
23
All notable changes to this project will be documented in this file.
34

45
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
56
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
67

78
## Unreleased
89

10+
### Changed
11+
12+
- Updated Shortcut Guides to better follow the [Dialog (Modal) Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/) by W3C
13+
- Updated cypress tests accordingly
14+
15+
### Added
16+
17+
- Added alt text to the Readme images
18+
919
## 3.0.3 - 2025-12-03
20+
1021
### Added
22+
1123
- Fixed vulnerable dependency
1224

1325
## 3.0.2 - 2025-12-03
26+
1427
### Added
28+
1529
- Fixed multiple vulnerable dependencies
1630

1731
## 3.0.1 - 2025-10-06
32+
1833
### Added
34+
1935
- Fixed vulnerable dependency
2036

2137
## 3.0.0 - 2025-09-15
38+
2239
### Added
40+
2341
- Implemented i18n alternatives as the new "internationalization" property
2442
- Fixed tests / github pipeline errors
2543
- Adapted the ShortcutGuide to vary between "Alt" and "option" depending on the OS
@@ -28,29 +46,40 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2846
- Added Arrow Navigation to the ShortcutGuide
2947

3048
### Changed
49+
3150
- Replaced arrow symbols with text on the ShortcutGuide
3251
- Re-did ShortcutGuide `<dl>` structure
3352
- Moved the context prop to inside autoDescriptions
3453

3554
## 2.0.4 - 2025-01-06
55+
3656
### Added
57+
3758
- Fixed an issue where series values having spaces would invalidate class names
3859

3960
## 2.0.3 - 2024-11-04
61+
4062
### Added
63+
4164
- Adds missing types
4265
- Fixed the issue where components were not being properly exported
4366

4467
## 2.0.2 - 2024-10-24
68+
4569
### Added
70+
4671
- Dynamic changes in the data or DOM elements now trigger updates in the tool
4772

4873
## 2.0.1 - 2024-10-08
74+
4975
### Added
76+
5077
- Aligned native ShortcutGuide styling with the prototypes
5178

5279
## 2.0.0 - 2024-10-04
80+
5381
### Added
82+
5483
- Changed bundler from babel to vite
5584
- Replaced jest with cypress
5685
- Converted Javascript to Typescript
@@ -60,22 +89,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6089
- Converted the ShortcutGuide into a prop, making it overridable and customizable
6190

6291
## 1.0.3 - 2024-01-09
92+
6393
### Added
94+
6495
- Remove unused dependency
6596

6697
## 1.0.2 - 2023-12-06
98+
6799
### Added
100+
68101
- Fixed the previously correction of the "series:" class attribution in the data elements that would break the navigation inside multi series charts
69102

70103
## 1.0.1 - 2023-12-06
104+
71105
### Added
106+
72107
- Corrected the attribution of the "series:" class in the data elements that would break the navigation inside multi series charts
73108

74109
## 1.0.0 - 2023-11-14
110+
75111
### Added
112+
76113
- Added support for charts with multiple encodings
77114

78115
## 0.2.0 - 2023-11-02
116+
79117
### Added
118+
80119
- Extended React compatibility to support projects with React >=16.14.0
81120
- Set up automatic semantic versioning

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AutoVizuA11y
22

3-
<img src="./src/assets/images/banner.png">
3+
<img src="./src/assets/images/banner.png" alt="Three illustrative bar charts, each corresponding to an AutoVizuA11y pillar. The first, 'Descriptions', depicts a focus highlight around the entire chart and a box with the text 'Calories per piece of fruit, bar chart. Automatic description: The data shows that bananas and grapes have the same...'. The second pillar, 'Navigation', depicts three focus highlights around the first three bars and two arrows going from the previous to the next. There is also a box that says 'Bananas: 105 calories' together with two icons of a right arrow. Lastly, the third pillar 'Shortcuts', depicts a single focus highlight around one of the bars. It also includes a box with the text 'The value is 42.18 above the average' and three icons, the first with 'Alt', the second with a top arrow and the third with the letter 'K'.">
44

55
## Description
66

@@ -73,7 +73,7 @@ cd autovizua11y
7373

7474
| Keys | Required/Optional | Type | Description |
7575
| --------------------- | ----------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
76-
| `apiKey` | Required | string | The OpenAI or OpenAI-compatible API key, enabling an LLM to generate human-like descriptions of the data visualization. [You can get yours here](https://platform.openai.com/account/api-keys), It is recommended for the developer to take the necessary precautions in order to hide the API key. |
76+
| `apiKey` | Required | string | The OpenAI or OpenAI-compatible API key, enabling an LLM to generate human-like descriptions of the data visualization. [You can get yours here](https://platform.openai.com/account/api-keys). It is recommended for the developer to take the necessary precautions in order to hide the API key. |
7777
| `context` | Required | string | The context in which the data visualization is present. It is passed in the prompt, when generating automatic the descriptions, resulting in contextualized outputs. |
7878
| `dynamicDescriptions` | Optional | boolean | Setting this to `false` stops the component from generating the two descriptions for that chart after the first render (the descriptions get saved in localstorage). This should be useful for static visualizations. |
7979
| `model` | Optional | string | The LLM responsible for generating both descriptions. [You can check the models available here](https://platform.openai.com/docs/models). If no model is provided, `gpt-3.5-turbo` will be chosen by `default`. |
@@ -261,7 +261,7 @@ The Shortcut Guide can be acessed by the user, using the <kbd>?</kbd> key, while
261261

262262
The Shortcut Guide is the only aspect of AutoVizuA11y that is also visual. You may change the styling of the default guide. Below are the classNames of the elements that make up this component:
263263

264-
<img src="./src/assets/images/shortcut_guide_class_anatomy.png">
264+
<img src="./src/assets/images/shortcut_guide_class_anatomy.png" alt="Diagram of the native Shortcut Guide styling. Each individual component of the guide has an annotation with its CSS class">
265265

266266
| className | HTML |
267267
| ----------------------------------- | ------ |

cypress/e2e/average.cy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-undef */
12
describe("(Alt + K) Average Test", () => {
23
it("should alert the correct average value for the first chart", () => {
34
cy.visit("/");

cypress/e2e/change-descriptions.cy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-undef */
12
describe("(Alt + S and Alt + B) Change Chart Description Test", () => {
23
it("should toggle between longer and shorter descriptions", () => {
34
cy.visit("/");

cypress/e2e/chart-attributes.cy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-undef */
12
describe("Addition of Attributes to Chart Test", () => {
23
it("should add aria-labels and tabindexes to the charts", () => {
34
cy.visit("/");

cypress/e2e/chart-element-attributes.cy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-undef */
12
describe("Addition of Attributes to Chart Elements Test", () => {
23
it("should add aria-labels, aria-roledescription, empty role but not tabindexes to the chart elements", () => {
34
cy.visit("/");

cypress/e2e/chart-level.cy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-undef */
12
describe("(Up Arrow) Moving to Chart Level Test", () => {
23
it("should add back the tabindexes to the charts when moving from the data level", () => {
34
cy.visit("/");

cypress/e2e/close-custom-guide.cy.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
/* eslint-disable no-undef */
12
describe("(Esc) Close Custom Shortcut Guide Test", () => {
23
it("should close the custom shortcut guide", () => {
34
cy.visit("/");
45
cy.injectAxe();
56
cy.findByTestId("manual-descriptions-option").click();
67
cy.wait(500); // AutoVizuA11y waits 500ms before handling descriptions
7-
cy.findAllByTestId("a11y_desc").first().focus().tab().type("?");
8+
cy.findAllByTestId("a11y_desc").first().focus().tab().type("?").tab().tab();
89
cy.get(":focus").click(); // Closing the guide by pressing the button
910
cy.findAllByTestId("a11y-custom-shortcut-guide").first().should("not.be.visible"); // Check if the custom shortcut guide is not visible (closed)
1011
cy.findAllByTestId("a11y_desc").eq(1).should("be.focused"); // Checks if the chart is focused

cypress/e2e/close-native-guide.cy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-undef */
12
describe("(Esc) Close Native Shortcut Guide Test", () => {
23
it("should close the native shortcut guide", () => {
34
cy.visit("/");

cypress/e2e/compare-to-chart.cy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-undef */
12
describe("(Alt + Z) Compare to Rest of the Chart Test", () => {
23
it("should alert the correct comparison value between the first element and rest of the chart", () => {
34
cy.visit("/");

0 commit comments

Comments
 (0)