Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
442 commits
Select commit Hold shift + click to select a range
3773dd5
Fix retrieval of error bar points
jperals May 23, 2025
9d0a5af
Use test classes in tooltip details
jperals May 23, 2025
1af7cb6
Add coverage
jperals May 23, 2025
741e443
Add coverage
jperals May 23, 2025
b3d3654
Update tests
jperals May 23, 2025
129c4dc
Refactor dev page
jperals May 23, 2025
9cc5b81
Override tooltip content based on page settings
jperals May 23, 2025
e1df6b7
Add chart with 3 lines
jperals May 23, 2025
8828a1b
Remove unsupported types from dev page
jperals May 23, 2025
5f24eb9
Fix aria label
jperals May 23, 2025
d3cc3b2
support large series nav
pan-kot May 22, 2025
a4f4ac3
sorted group points in nav
pan-kot May 22, 2025
8f32776
wip: non-sticky points
pan-kot May 22, 2025
9733bf5
wip: group highlight
pan-kot May 23, 2025
c6ce25f
scatter demos
pan-kot May 23, 2025
750b3c0
chart-extra
pan-kot May 23, 2025
9e65c29
scrollable tooltip
pan-kot May 26, 2025
62e5cf9
demos structure
pan-kot May 26, 2025
58af1d6
demos structure
pan-kot May 26, 2025
033a65a
demos structure
pan-kot May 26, 2025
4fddaaf
fix points order in thresholds
pan-kot May 26, 2025
f869f4e
fix destroyed points crash
pan-kot May 26, 2025
7939903
custom highlighting control
pan-kot May 26, 2025
8b2af18
target placement
pan-kot May 26, 2025
0201c20
scatter chart improvements
pan-kot May 26, 2025
df59bdf
take keyboard nav from dismissed point place
pan-kot May 26, 2025
b610b61
highlight halo
pan-kot May 26, 2025
883f89f
better hovering
pan-kot May 26, 2025
ecfe2e8
Customize font size of custom footer in error bars examples
jperals May 26, 2025
3cb5dbe
Render error bar series name in tooltip by default
jperals May 26, 2025
7d1adf1
fix cursor placement
pan-kot May 26, 2025
9fd407f
fix tooltip for duplicate points
pan-kot May 27, 2025
ce61247
Restyle default error bar tooltip
jperals May 27, 2025
bf9889f
Remove spacing above key-value details in tooltip
jperals May 27, 2025
84e4a37
improve tooltip behaviour
pan-kot May 27, 2025
836da3b
restore highlight on re-render
pan-kot May 27, 2025
34918be
fix test
pan-kot May 27, 2025
e9e8f04
Accept multiple error bar series per series
jperals May 27, 2025
a5fc13a
Add multiple error bars to one example
jperals May 27, 2025
9c5275b
Update Documenter snapshot
jperals May 27, 2025
ce0ea1e
refactor colour counter fix
pan-kot May 27, 2025
7c767c0
advanced navigation announcements
pan-kot May 27, 2025
0f458c2
formatted point announcements
pan-kot May 27, 2025
9d9d6d7
use aria-hidden for hr and markers
pan-kot May 27, 2025
1f52ca7
improve nav outline size
pan-kot May 27, 2025
d14be3f
a11y fix for legend
pan-kot May 27, 2025
bcf8d46
Preserve sort order of error bar series on render
jperals May 27, 2025
5f4e1f7
Import design-tokens from node_modules
jperals May 27, 2025
e95fa44
Add coverage for ':previous' selector
jperals May 27, 2025
b0d8c43
Always return errorRanges array in tooltip render callback
jperals May 27, 2025
d7447fa
Update example
jperals May 27, 2025
b2cddc2
Refactor error bar unit tests
jperals May 28, 2025
8990c23
Refactor error bar unit tests
jperals May 28, 2025
dc03a92
Emit warnings for unsupported usages of errorbar series
jperals May 28, 2025
d062745
Only validate series when they change
jperals May 28, 2025
c934f2b
fix navigation direction
pan-kot May 27, 2025
8042820
correct nav direction for pie
pan-kot May 27, 2025
bdbd472
clean migration pages
pan-kot May 28, 2025
649a822
Optionally add tooltip sub-items to error bars dev page
jperals May 28, 2025
b7a87d0
Remove leftover assertion
jperals May 28, 2025
474fe8a
Re-add coverage for warning in tooltip
jperals May 28, 2025
8b66da2
Fine tune styles
jperals May 28, 2025
9206e0f
Disable release workflow
jperals May 28, 2025
05e89f7
Only add footnote when some error bar is present in the tooltip
jperals May 28, 2025
29b5fa0
Remove undesired divider
jperals May 28, 2025
b412cd8
wip: refactoring chart core
pan-kot May 28, 2025
7f58895
fix keyboard page nav
pan-kot May 28, 2025
cda2f26
code comment fix
pan-kot May 28, 2025
8e42b11
core-line-chart demo
pan-kot May 28, 2025
a98a30c
moved tooltip utils to core
pan-kot May 28, 2025
44bd1ca
custom tooltip snapping
pan-kot May 28, 2025
501e0d5
throttle
pan-kot May 29, 2025
f00c038
axes to core
pan-kot May 29, 2025
8a3150c
snap 0 -> 4
pan-kot May 29, 2025
7f34b51
refactored tooltip definitions
pan-kot May 29, 2025
a841968
default tooltip content in core
pan-kot May 29, 2025
b614410
smallfix
pan-kot May 29, 2025
e05016c
simplify default markers
pan-kot May 29, 2025
4ebb62e
show markers for isolated points
pan-kot May 29, 2025
11d8a5d
respect showInLegend config for series
pan-kot May 29, 2025
f45ca99
reorganize core components
pan-kot May 29, 2025
33c3baf
move tooltip tracks to tooltip-extra
pan-kot May 29, 2025
43bd6a2
small fix in nav controller
pan-kot May 29, 2025
4e5a6b8
chart extra base
pan-kot May 29, 2025
cbed549
refactored chart api
pan-kot May 30, 2025
2ef940a
svg renderer pool
pan-kot May 30, 2025
d005605
resolve pointer corner cases
pan-kot May 30, 2025
73b5513
improved renderer utils
pan-kot May 30, 2025
8e8968d
Add innerValue and innerDescription to donut chart dev page
jperals May 28, 2025
2b2409f
Revert "Disable release workflow"
jperals Jun 2, 2025
46036a0
Update Documented snapshot
jperals Jun 2, 2025
bc395dd
Fix custom pie segment title rendering
jperals Jun 2, 2025
2d32c00
Restore pie chart custom tooltip tests
jperals Jun 2, 2025
1cfbf64
Remove unreachable code
jperals Jun 2, 2025
2e754f3
Add coverage for donut chart
jperals Jun 2, 2025
aa2c465
Fix ARIA label in dev page
jperals Jun 2, 2025
d039dd6
simpler api
pan-kot Jun 1, 2025
fe5a3e9
clear highlight on tooltip dismiss
pan-kot Jun 1, 2025
5df2018
legend item highlighted state
pan-kot Jun 1, 2025
ed9291b
internal legend visibility mode
pan-kot Jun 1, 2025
b8c6250
refactor chart-extra
pan-kot Jun 1, 2025
aa81bcb
refactor chart-extra
pan-kot Jun 2, 2025
2eb3e4a
update documenter snapshot
pan-kot Jun 2, 2025
6b54afb
Add test coverage
jperals Jun 2, 2025
e2d387d
Set whisker length to 9px
jperals Jun 2, 2025
529ac57
codestyle fix
pan-kot Jun 2, 2025
320abff
updated highlighted detail indicator style
pan-kot Jun 2, 2025
9d1b44f
Set whisker length to 13px
jperals Jun 2, 2025
fde5b16
update thresholds computation to exclude other thresholds
pan-kot Jun 3, 2025
a3ba34d
fix filter props propagation
pan-kot Jun 3, 2025
50b10f9
refactor core components
pan-kot Jun 3, 2025
110e6ce
refactor core filters code
pan-kot Jun 3, 2025
1d6272e
refactor chart-core
pan-kot Jun 3, 2025
0429170
refactor chart core
pan-kot Jun 3, 2025
35dfc02
refactor core chart utils
pan-kot Jun 3, 2025
bc8082c
lockfile v2
pan-kot Jun 3, 2025
e082de1
Remove unnecessary options props from internal charts
jperals Jun 3, 2025
77b5c0c
Fine tune test for coverage
jperals Jun 3, 2025
01212f5
Split multiple error bars per series to separate example
jperals Jun 4, 2025
39590ff
Refactor internal pie chart to not accept Highcharts options
jperals Jun 4, 2025
c027280
npm install
pan-kot Jun 4, 2025
5ff1173
fix pacakge lock
pan-kot Jun 4, 2025
fc5d694
fix eslint errors
pan-kot Jun 4, 2025
83fe1e7
Group error ranges in dev page tooltip footer
jperals Jun 4, 2025
7b6d763
fix rects for boost cahrts
pan-kot Jun 4, 2025
363fa3e
nodata responsiveness
pan-kot Jun 4, 2025
c5a819e
fix group a11y description
pan-kot Jun 4, 2025
d5681a7
small changes to test pages
pan-kot Jun 4, 2025
10b4f5f
Merge branch 'main' into charts-0.1
pan-kot Jun 4, 2025
9b53239
Set whisker length to 17px
jperals Jun 4, 2025
28f14e8
fix points accessible name
pan-kot Jun 4, 2025
578a3e0
use cursor pointer
pan-kot Jun 4, 2025
877c019
fix legend highlight for touch devices
pan-kot Jun 5, 2025
083a587
update pie chart connectors color
pan-kot Jun 5, 2025
d0ebd54
De not customize whisker length
jperals Jun 5, 2025
3219060
simpler internal cartesian
pan-kot Jun 5, 2025
46ed3f8
refactored cartesian chart
pan-kot Jun 5, 2025
e52d954
small change to core chart api
pan-kot Jun 6, 2025
927ca16
rename files
pan-kot Jun 6, 2025
e18dcee
chart tooltip api series -> point
pan-kot Jun 6, 2025
aeb1a4e
update pie segments and inner are api
pan-kot Jun 6, 2025
066d43e
pie tooltip details api
pan-kot Jun 6, 2025
18cf668
refactored pie chart
pan-kot Jun 6, 2025
9fd284e
alternative visible series integration
pan-kot Jun 6, 2025
ac69dcf
fix pie chart halo
pan-kot Jun 6, 2025
f453746
don't show highlight indicator for single tooltip series
pan-kot Jun 6, 2025
4f8805b
update line markers and marker distance in legend item
pan-kot Jun 6, 2025
860f096
consistent empty state
pan-kot Jun 10, 2025
3fd72ca
restore formatter tests
pan-kot Jun 10, 2025
a2dba03
a11y improvements
pan-kot Jun 10, 2025
fb5314a
restore threshold tests
pan-kot Jun 10, 2025
d7faa70
restore chart options tests
pan-kot Jun 10, 2025
d6cb31a
restore tooltip tests
pan-kot Jun 10, 2025
9ca1ae1
restore legend tests
pan-kot Jun 10, 2025
705e598
unit tests refactor
pan-kot Jun 10, 2025
538d18a
remove tooltip placement unit tests
pan-kot Jun 10, 2025
d41472b
wip: navigation tests
pan-kot Jun 10, 2025
9e6e901
rm unused code
pan-kot Jun 11, 2025
19a9385
refactor core interfaces
pan-kot Jun 11, 2025
ddef768
fix linting error
pan-kot Jun 12, 2025
0b4b91c
tooltip on group test
pan-kot Jun 12, 2025
55bb413
tests cov
pan-kot Jun 12, 2025
9165bf8
remove unused code
pan-kot Jun 12, 2025
a8fdd07
minor fix
pan-kot Jun 12, 2025
7c64d13
update test-utils api
pan-kot Jun 13, 2025
1e070a4
invert legend click actions
pan-kot Jun 13, 2025
c2c620a
add refererences to github issues
pan-kot Jun 13, 2025
58cf02e
alternative marker highlight
pan-kot Jun 13, 2025
9ac818d
markers highlight state
pan-kot Jun 16, 2025
179512a
small vd fix
pan-kot Jun 16, 2025
654b181
fix errorbar colors
pan-kot Jun 16, 2025
7abcc77
fix series details style, same as components/pull/3577
pan-kot Jun 16, 2025
f6c76a1
change markers vd
pan-kot Jun 16, 2025
c9edb84
fix thresholds visibility bug
pan-kot Jun 16, 2025
4b11008
legend vd
pan-kot Jun 16, 2025
e02eaaa
use correct token for white bg
pan-kot Jun 16, 2025
1963dd8
fix no-data vd
pan-kot Jun 16, 2025
4d0370a
legend vd
pan-kot Jun 16, 2025
cbeb31c
fix scroll baheaviour in tooltip
pan-kot Jun 16, 2025
e91cfca
remove unneeded dependency in async store dependency array
pan-kot Jun 16, 2025
8078ed7
handle duplicate listeners in async store
pan-kot Jun 16, 2025
fec0dc9
codestyle change
pan-kot Jun 16, 2025
f231bb6
fix no-data empty and no-match when not provided
pan-kot Jun 16, 2025
0e0d33d
alternative no-data container
pan-kot Jun 16, 2025
22294f0
rm no-data-to-display dep
pan-kot Jun 16, 2025
027437e
fix controlled visibility for thresholds
pan-kot Jun 16, 2025
5610f6b
codestyle
pan-kot Jun 16, 2025
c731d5c
removed obsolete tokens sync code
pan-kot Jun 17, 2025
54bb5cb
remove no longer necessary pie no-data override
pan-kot Jun 17, 2025
cdcfc11
codestyle fix
pan-kot Jun 17, 2025
ac4c3ec
refactor tests
pan-kot Jun 17, 2025
332c2e0
removed leftover focus ref from legend
pan-kot Jun 17, 2025
e7e7c54
update test utils api
pan-kot Jun 17, 2025
db34433
Merge branch 'main' into charts-0.1
jperals Jun 17, 2025
de97b14
use custom cds hook for useId + mark react 16 as peer-dev (#30)
jsilll Jun 17, 2025
7454602
codestyle
pan-kot Jun 17, 2025
08826d5
disallow highlight actions when tooltip is pinned
pan-kot Jun 17, 2025
9cbc1a2
update point highlight logic
pan-kot Jun 17, 2025
cc5e3c4
simplify app context direction setting
pan-kot Jun 17, 2025
1cdd773
feat: add support for legend side positioning (#31)
jsilll Jun 17, 2025
c6ce23a
Rename slot 'details' to 'description'
jperals Jun 18, 2025
5836715
consistent markers
pan-kot Jun 18, 2025
4b1b12e
fix no-match state detection
pan-kot Jun 18, 2025
b43356d
fix ts error
pan-kot Jun 18, 2025
031e41c
Rename linkedErrorbars to errorRanges
jperals Jun 18, 2025
9626152
Mock warnOnce
jperals Jun 18, 2025
68b99ce
Render default keys and values in tooltip if not defined
jperals Jun 18, 2025
bee29c1
refactor cartesian series util
pan-kot Jun 18, 2025
ce38fc3
Fix type
jperals Jun 18, 2025
74ea049
fix types mismatch between core and cartesian
pan-kot Jun 18, 2025
fc3ed6b
simpler chart options merginng
pan-kot Jun 18, 2025
a2c6a8b
feat: implement optional legend popover (#29)
a-macc Jun 18, 2025
01b8098
fix code comment
pan-kot Jun 18, 2025
e79dc5c
Revert "feat: implement optional legend popover (#29)"
pan-kot Jun 18, 2025
2f8435f
feat: add navigator prop to core chart (#34)
jsilll Jun 18, 2025
45b3d44
naming change
pan-kot Jun 18, 2025
6baab34
updated api docs
pan-kot Jun 18, 2025
e55f97d
fix stacking in pages
pan-kot Jun 18, 2025
dd4693e
update documenter snapshot
pan-kot Jun 18, 2025
be9fa7d
export internal core test utils wrapper
pan-kot Jun 18, 2025
80a1d9d
don't call value formatter on categories
pan-kot Jun 19, 2025
44163b8
addressed ghost points in large series bug bash finding
pan-kot Jun 19, 2025
28fe3cc
use reversed stacks by default
pan-kot Jun 19, 2025
69fba1a
ensure all accessible labels are supported via our i18n
pan-kot Jun 19, 2025
a223132
feat: scroll into view highlighted legend item (#35)
jsilll Jun 20, 2025
084385d
add actions to the core line chart page tooltip
pan-kot Jun 20, 2025
519a8da
codestyle
pan-kot Jun 20, 2025
068096d
fix stale elements bug
pan-kot Jun 20, 2025
ce9271a
remove duplicate code
pan-kot Jun 20, 2025
4f20a25
code cleanup and refactoring
pan-kot Jun 20, 2025
7f5e761
add support for pie chart segment aria label
pan-kot Jun 23, 2025
9f5a799
refactor container styles
pan-kot Jun 23, 2025
20b8e6e
tooltip vr tests
pan-kot Jun 23, 2025
71cb131
docs changes
pan-kot Jun 23, 2025
dece205
codestyle
pan-kot Jun 23, 2025
a3c2c3c
updated donut inner area placement
pan-kot Jun 23, 2025
fa3f6fa
more code comments
pan-kot Jun 24, 2025
38d790e
feat: support maxHeight for legend in core chart component (#36)
jsilll Jun 24, 2025
8f243a5
feat: legend tooltip (#38)
a-macc Jun 24, 2025
413840d
fix no data paddings to avoid content cut off
pan-kot Jun 24, 2025
bb8f4d1
fix no-data rtl
pan-kot Jun 24, 2025
e6e5f58
fix legend focus in ff
pan-kot Jun 24, 2025
fa66179
minor changes to a test page
pan-kot Jun 24, 2025
01f2ca5
non-directional styles for no-data
pan-kot Jun 24, 2025
9d6f32c
removed leftoved code
pan-kot Jun 24, 2025
c721f3f
simpler zoom demo
pan-kot Jun 25, 2025
2190e2c
rtl visual tests
pan-kot Jun 25, 2025
37ce2bb
sparkline demos
pan-kot Jun 25, 2025
e605418
fix highlight for linked errorbars
pan-kot Jun 25, 2025
a0fdcfb
fix tooltip position for group mode
pan-kot Jun 25, 2025
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
65 changes: 32 additions & 33 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"plugin:react/jsx-runtime",
"plugin:prettier/recommended",
"plugin:no-unsanitized/DOM",
"plugin:@vitest/legacy-recommended"
"plugin:@vitest/legacy-recommended",
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
"jsx": true,
},
},
"plugins": ["unicorn", "react-hooks", "no-unsanitized", "header", "import", "simple-import-sort", "@vitest"],
"rules": {
Expand All @@ -29,22 +29,22 @@
"react/no-unstable-nested-components": [
"error",
{
"allowAsProps": true
}
"allowAsProps": true,
},
],
"react/forbid-component-props": [
"warn",
{
"forbid": ["className", "id"]
}
"forbid": ["className", "id"],
},
],
"react/jsx-boolean-value": ["error", "always"],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "typeLike",
"format": ["PascalCase"]
}
"format": ["PascalCase"],
},
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": ["error"],
Expand All @@ -57,7 +57,8 @@
"header/header": [
"error",
"line",
[" Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.", " SPDX-License-Identifier: Apache-2.0"]
[" Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.", " SPDX-License-Identifier: Apache-2.0"],
2,
],
"no-restricted-imports": [
"error",
Expand All @@ -66,44 +67,44 @@
{
"name": "react",
"importNames": ["default"],
"message": "Prefer named imports."
"message": "Prefer named imports.",
},
{
"name": "@cloudscape-design/components",
"message": "Prefer subpath imports."
}
]
}
"message": "Prefer subpath imports.",
},
],
},
],
"import/no-useless-path-segments": [
"warn",
{
"noUselessIndex": true
}
"noUselessIndex": true,
},
],
"simple-import-sort/imports": "warn",
"@vitest/no-focused-tests": "error"
"@vitest/no-focused-tests": "error",
},
"settings": {
"react": {
"version": "detect"
}
"version": "detect",
},
},
"env": {
"browser": true,
"es6": true
"es6": true,
},
"overrides": [
{
"files": ["**/__integ__/**", "./test/**"],
"rules": {
// useBrowser is not a React hook
"react-hooks/rules-of-hooks": "off",
"react-hooks/exhaustive-deps": "off"
"react-hooks/exhaustive-deps": "off",
},
"env": {
"jest": true
}
"jest": true,
},
},
{
"files": ["src/**", "pages/**", "test/**", "scripts/**"],
Expand All @@ -121,13 +122,11 @@
// Anything not matched in another group.
["^"],
// Styles come last.
[
"^.+\\.?(css)$","^.+\\.?(css.js)$", "^.+\\.?(scss)$", "^.+\\.?(selectors.js)$"
]
]
}
]
}
}
]
["^.+\\.?(css)$", "^.+\\.?(css.js)$", "^.+\\.?(scss)$", "^.+\\.?(selectors.js)$"],
],
},
],
},
},
],
}
1 change: 1 addition & 0 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
with:
artifact-path: dist
artifact-name: dev-pages
skip-codeql: true
deploy:
needs: build
uses: cloudscape-design/actions/.github/workflows/deploy.yml@main
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches:
- main
- charts-0.1
- "dev-v3-*"

permissions:
Expand Down Expand Up @@ -57,4 +58,4 @@ jobs:
AWSUI_GITHUB_COMMIT_SHA: ${{ github.sha }}
AWSUI_GITHUB_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
AWSUI_GITHUB_REPOSITORY_NAME: ${{ github.event.repository.full_name }}
AWSUI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWSUI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48 changes: 24 additions & 24 deletions .github/workflows/visual-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,30 @@ jobs:
if: github.event.ref != 'refs/heads/main'
steps:
- uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 20
# cache: "npm"
# - name: "Get reference run id"
# run: |
# echo "RUN_ID=`gh run --repo $GITHUB_REPOSITORY --branch main list --workflow "Visual Regressions" --json databaseId --jq .[0].databaseId`" >> $GITHUB_ENV
# echo "Reference snapshots created in run ${RUN_ID}"
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - uses: actions/download-artifact@v4
# with:
# name: visual-regression-snapshots
# github-token: ${{ secrets.GITHUB_TOKEN }}
# run-id: ${{ env.RUN_ID }}
# path: ${{ env.VISUAL_REGRESSION_SNAPSHOT_DIRECTORY }}
# - run: npm install
# - run: npm run build
# - run: npm run test:visual
# - uses: actions/upload-artifact@v4
# if: always()
# with:
# name: visual-regression-snapshots-results
# path: ${{ env.VISUAL_REGRESSION_SNAPSHOT_DIRECTORY }}
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: "Get reference run id"
run: |
echo "RUN_ID=`gh run --repo $GITHUB_REPOSITORY --branch main list --workflow "Visual Regressions" --json databaseId --jq .[0].databaseId`" >> $GITHUB_ENV
echo "Reference snapshots created in run ${RUN_ID}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/download-artifact@v4
with:
name: visual-regression-snapshots
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ env.RUN_ID }}
path: ${{ env.VISUAL_REGRESSION_SNAPSHOT_DIRECTORY }}
- run: npm install
- run: npm run build
- run: npm run test:visual
- uses: actions/upload-artifact@v4
if: always()
with:
name: visual-regression-snapshots-results
path: ${{ env.VISUAL_REGRESSION_SNAPSHOT_DIRECTORY }}
update:
name: Update Snapshots
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ coverage
lib
/__image_snapshots__
dist
/src/test-utils/selectors
/src/test-utils/dom/index.ts
/src/test-utils/selectors/**/*.ts
!/src/test-utils/selectors/index.ts
.DS_STORE
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
"exports": {
".": "./index.js",
"./test-utils/dom": "./test-utils/dom/index.js",
"./test-utils/dom/internal/core": "./test-utils/dom/internal/core.js",
"./test-utils/selectors": "./test-utils/selectors/index.js",
"./test-utils/selectors/internal/core": "./test-utils/selectors/internal/core.js",
"./internal/api-docs/*.js": "./internal/api-docs/*.js",
"./internal-do-not-use/core-chart": "./internal-do-not-use/core-chart.js"
},
Expand All @@ -53,7 +55,7 @@
"@cloudscape-design/components": "^3",
"@cloudscape-design/design-tokens": "^3",
"highcharts": "^12.2.0",
"react": ">=18.2.0"
"react": ">=16.0.0"
},
"devDependencies": {
"@cloudscape-design/browser-test-tools": "^3.0.4",
Expand Down
Loading
Loading