Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
f74d0e5
feat: allow users to turn analytics on and off (v2.1.0) (#632)
Fondryext Feb 18, 2026
d71dc88
release: v2.1.0
Fondryext Feb 18, 2026
3a2168e
More accessbilities fixes for autocomplete results (#635)
anguyen-yext2 Feb 19, 2026
f96e0cf
release: v2.1.1
anguyen-yext2 Feb 19, 2026
f16bded
chore: suppress error/warning spam, fix key errors etc (#642)
k-gerner Mar 4, 2026
62722a5
fix: point TypeScript output to dist directory (#644)
k-gerner Mar 4, 2026
4c4c0be
release: v2.1.2
k-gerner Mar 4, 2026
91a6f0b
fix: improve accessibility in FilterSearch and Facets (v2.2.0) (#638)
k-gerner Mar 9, 2026
e4f5ac9
hotfix: improve accessibility in FilterSearch (v2.2.0) (#649)
anguyen-yext2 Mar 9, 2026
f4d44c1
chore: update svgo and storybook (#651)
k-gerner Mar 9, 2026
2b50142
release: v2.2.0
k-gerner Mar 9, 2026
36a48c6
chore: upgrade mapbox-gl version for accessibility issues (v3.0.0) (#…
anguyen-yext2 Mar 26, 2026
33da1dd
release: v3.0.0
anguyen-yext2 Mar 26, 2026
0614663
chore: upgrade transitive handlebars dependency (#657)
k-gerner Apr 6, 2026
fa6b272
fix: various accessibility improvements (v3.0.1) (#659)
k-gerner Apr 6, 2026
647ed7b
release: v3.0.1
k-gerner Apr 6, 2026
457e3fb
fix: axios and vite vulns
Fondryext Apr 20, 2026
9da4e6a
release: v3.0.2
Fondryext Apr 20, 2026
e863b04
fix: up node version in tests to 20 (#665)
Fondryext Apr 22, 2026
d5b8a42
Version 3.0.3: fix lodash vulns (#664)
Fondryext Apr 22, 2026
d396576
release: v3.0.3
Fondryext Apr 22, 2026
bdf754d
fix: @babel/preset-env vulnerabilities (v3.0.4) (#670)
anguyen-yext2 May 20, 2026
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
6 changes: 3 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
"@swc/core-win32-x64-msvc"
npx playwright install
npm run build
node_matrix: '["18.x"]'
node_matrix: '["20.x"]'
secrets:
MAPBOX_API_KEY: ${{ secrets.MAPBOX_API_KEY }}

Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
"@swc/core-win32-x64-msvc"
npx playwright install
npm run build
node_matrix: '["18.x"]'
node_matrix: '["20.x"]'
secrets:
MAPBOX_API_KEY: ${{ secrets.MAPBOX_API_KEY }}

Expand All @@ -86,6 +86,6 @@ jobs:
"@swc/core-win32-x64-msvc"
npx playwright install
npm run build
node_matrix: '["18.x"]'
node_matrix: '["20.x"]'
secrets:
MAPBOX_API_KEY: ${{ secrets.MAPBOX_API_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/update_snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
token: ${{ secrets.BOT_REPO_SCOPED_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
Expand Down
Binary file modified .storybook/snapshots/__snapshots__/appliedfilters--primary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .storybook/snapshots/__snapshots__/filtersearch--primary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .storybook/snapshots/__snapshots__/mapboxmap--custom-pin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .storybook/snapshots/__snapshots__/mapboxmap--primary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
66 changes: 44 additions & 22 deletions .storybook/wcag/test-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,49 @@ import { Page } from 'playwright-core';
import { runOnly } from '../wcagConfig';
import { TestContext, TestRunnerConfig } from '@storybook/test-runner';

const AXE_ALREADY_RUNNING_ERROR = 'Axe is already running';
const MAX_AXE_RETRIES = 3;
const AXE_RETRY_DELAY_MS = 250;

const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));

// Retry if errors from Axe already running to decrease flakiness
const runA11yCheck = async (page: Page, context: TestContext) => {
for (let attempt = 1; attempt <= MAX_AXE_RETRIES; attempt++) {
try {
await checkA11y(
page,
{
exclude: [
'#root .mapboxgl-canvas-container',
'.mapboxgl-marker',
'.mapboxgl-popup-close-button'
],
},
{
axeOptions: {
runOnly,
rules: {
'color-contrast': { enabled: context.name !== 'Loading' },
},
},
detailedReport: true,
detailedReportOptions: {
html: true,
},
}
);
return;
} catch (error) {
const message = error instanceof Error ? error.message : String(error);
if (!message.includes(AXE_ALREADY_RUNNING_ERROR) || attempt === MAX_AXE_RETRIES) {
throw error;
}
await sleep(AXE_RETRY_DELAY_MS * attempt);
}
}
};

/**
* See https://storybook.js.org/docs/react/writing-tests/test-runner#test-hook-api-experimental
* to learn more about the test-runner hooks API.
Expand All @@ -12,28 +55,7 @@ const renderFunctions: TestRunnerConfig = {
await injectAxe(page);
},
async postVisit(page: Page, context: TestContext) {
await checkA11y(
page,
{
exclude: [
'#root .mapboxgl-canvas-container',
'.mapboxgl-marker',
'.mapboxgl-popup-close-button'
],
},
{
axeOptions: {
runOnly,
rules: {
'color-contrast': { enabled: context.name !== 'Loading' },
},
},
detailedReport: true,
detailedReportOptions: {
html: true,
},
}
);
await runA11yCheck(page, context);
},
};

Expand Down
Loading
Loading