Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEI-6106]: Integrating Announcer into WB SingleSelect and MultiSelect #2478

Open
wants to merge 24 commits into
base: feature/announcer
Choose a base branch
from

Conversation

marcysutton
Copy link
Member

Testing out some updates to the WB SingleSelect and MultiSelect to use the Announcer for updating values.

I'm using this PR to test the snapshot URL on various devices.

TO-DO:

  1. Test cross-platform -- evaluating first-run announcements in VoiceOver to see if further Announcer changes are needed (like appending the Live Regions on page load instead of at call-time)
  2. Add more tests to SingleSelect and MultiSelect

Issue: WB-1891

@marcysutton marcysutton self-assigned this Feb 21, 2025
Copy link

changeset-bot bot commented Feb 21, 2025

🦋 Changeset detected

Latest commit: ff24d0c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@khanacademy/wonder-blocks-announcer Major
@khanacademy/wonder-blocks-dropdown Minor
@khanacademy/wonder-blocks-birthday-picker Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@khan-actions-bot
Copy link
Contributor

khan-actions-bot commented Feb 21, 2025

Gerald

Required Reviewers
  • @Khan/wonder-blocks for changes to pnpm-lock.yaml, .changeset/clean-peas-prove.md, .changeset/plenty-crews-search.md, .changeset/thirty-ducks-type.md, .storybook/preview.tsx, __docs__/wonder-blocks-announcer/announcer.stories.tsx, __docs__/wonder-blocks-dropdown/multi-select.stories.tsx, packages/wonder-blocks-announcer/package.json, packages/wonder-blocks-announcer/tsconfig-build.json, packages/wonder-blocks-dropdown/package.json, packages/wonder-blocks-dropdown/tsconfig-build.json, static/sb-styles/preview.css, packages/wonder-blocks-announcer/src/announce-message.ts, packages/wonder-blocks-announcer/src/announcer.ts, packages/wonder-blocks-announcer/src/clear-messages.ts, packages/wonder-blocks-announcer/src/index.ts, packages/wonder-blocks-announcer/src/init-announcer.ts, packages/wonder-blocks-announcer/src/__tests__/announce-message.test.tsx, packages/wonder-blocks-announcer/src/__tests__/announcer.test.ts, packages/wonder-blocks-announcer/src/__tests__/clear-messages.test.tsx, packages/wonder-blocks-announcer/src/__tests__/init-announcer.test.tsx, packages/wonder-blocks-announcer/src/util/announcer.types.ts, packages/wonder-blocks-announcer/src/util/dom.ts, packages/wonder-blocks-announcer/src/util/util.ts, packages/wonder-blocks-dropdown/src/components/dropdown-core.tsx, packages/wonder-blocks-dropdown/src/components/multi-select.tsx, packages/wonder-blocks-dropdown/src/components/single-select.tsx, packages/wonder-blocks-dropdown/src/util/helpers.ts, packages/wonder-blocks-announcer/src/__tests__/components/announce-message-button.tsx, packages/wonder-blocks-announcer/src/__tests__/util/dom.test.ts, packages/wonder-blocks-announcer/src/__tests__/util/test-utilities.ts, packages/wonder-blocks-announcer/src/__tests__/util/util.test.ts, packages/wonder-blocks-birthday-picker/src/components/__tests__/birthday-picker.test.tsx, packages/wonder-blocks-dropdown/src/components/__tests__/dropdown-core.test.tsx, packages/wonder-blocks-dropdown/src/components/__tests__/multi-select.test.tsx, packages/wonder-blocks-dropdown/src/util/__tests__/helpers.test.tsx

Don't want to be involved in this pull request? Comment #removeme and we won't notify you of further changes.

@khan-actions-bot khan-actions-bot requested a review from a team February 21, 2025 20:34
@marcysutton marcysutton changed the title [DO NOT MERGE!] [WIP- DO NOT MERGE] Integrating Announcer into WB SingleSelect and MultiSelect Feb 21, 2025
Copy link
Contributor

github-actions bot commented Feb 21, 2025

Size Change: +2.15 kB (+2.19%)

Total Size: 101 kB

Filename Size Change
packages/wonder-blocks-dropdown/dist/es/index.js 19.7 kB +199 B (+1.02%)
packages/wonder-blocks-announcer/dist/es/index.js 1.95 kB +1.95 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size
packages/wonder-blocks-accordion/dist/es/index.js 3.54 kB
packages/wonder-blocks-banner/dist/es/index.js 1.55 kB
packages/wonder-blocks-birthday-picker/dist/es/index.js 1.88 kB
packages/wonder-blocks-breadcrumbs/dist/es/index.js 886 B
packages/wonder-blocks-button/dist/es/index.js 4.34 kB
packages/wonder-blocks-cell/dist/es/index.js 2.01 kB
packages/wonder-blocks-clickable/dist/es/index.js 3.07 kB
packages/wonder-blocks-core/dist/es/index.js 2.85 kB
packages/wonder-blocks-data/dist/es/index.js 6.25 kB
packages/wonder-blocks-form/dist/es/index.js 6.04 kB
packages/wonder-blocks-grid/dist/es/index.js 1.36 kB
packages/wonder-blocks-icon-button/dist/es/index.js 3.15 kB
packages/wonder-blocks-icon/dist/es/index.js 873 B
packages/wonder-blocks-labeled-field/dist/es/index.js 1.22 kB
packages/wonder-blocks-layout/dist/es/index.js 1.82 kB
packages/wonder-blocks-link/dist/es/index.js 2.04 kB
packages/wonder-blocks-modal/dist/es/index.js 5.5 kB
packages/wonder-blocks-pill/dist/es/index.js 1.49 kB
packages/wonder-blocks-popover/dist/es/index.js 4.92 kB
packages/wonder-blocks-progress-spinner/dist/es/index.js 1.52 kB
packages/wonder-blocks-search-field/dist/es/index.js 1.32 kB
packages/wonder-blocks-switch/dist/es/index.js 2.02 kB
packages/wonder-blocks-testing-core/dist/es/index.js 3.91 kB
packages/wonder-blocks-testing/dist/es/index.js 1.07 kB
packages/wonder-blocks-theming/dist/es/index.js 679 B
packages/wonder-blocks-timing/dist/es/index.js 1.79 kB
packages/wonder-blocks-tokens/dist/es/index.js 2.69 kB
packages/wonder-blocks-toolbar/dist/es/index.js 923 B
packages/wonder-blocks-tooltip/dist/es/index.js 7.01 kB
packages/wonder-blocks-typography/dist/es/index.js 1.23 kB

compressed-size-action

Copy link
Contributor

github-actions bot commented Feb 21, 2025

A new build was pushed to Chromatic! 🚀

https://5e1bf4b385e3fb0020b7073c-fmxpqrhsfr.chromatic.com/

Chromatic results:

Metric Total
Captured snapshots 381
Tests with visual changes 33
Total stories 567
Inherited (not captured) snapshots [TurboSnap] 0
Tests on the build 381

Copy link
Contributor

github-actions bot commented Feb 24, 2025

npm Snapshot: Published

🎉 Good news!! We've packaged up the latest commit from this PR (59e23d0) and published all packages with changesets to npm.

You can install the packages in webapp by running:

./services/static/dev/tools/deploy_wonder_blocks.js --tag="PR2478"

Packages can also be installed manually by running:

pnpm add @khanacademy/wonder-blocks-<package-name>@PR2478

@marcysutton marcysutton changed the title [WIP- DO NOT MERGE] Integrating Announcer into WB SingleSelect and MultiSelect [FEI-6106]: Integrating Announcer into WB SingleSelect and MultiSelect Mar 4, 2025
@marcysutton marcysutton changed the base branch from feature/announcer to main March 5, 2025 19:57
@marcysutton marcysutton changed the base branch from main to feature/announcer March 5, 2025 19:57
The initial implementation for a live region component! I'm getting this draft PR up so I can test with the remote URL.

Issue: https://khanacademy.atlassian.net/browse/WB-1768

Outstanding questions/work areas:
- Testing in more ATs, particularly in webapp and on mobile devices.
- More integration with React: usage for JSX, debouncing with custom duration in continuously re-rendering components like the Video Player with Clarifications, etc.

Play with the Story with screen readers turned on
    1. VoiceOver on OSX
    2. VoiceOver on iOS
    3. NVDA on Windows
    4. JAWS on Windows

Author: marcysutton

Reviewers: jandrade, marcysutton, beaesguerra, nishasy, nedredmond, #wonder-blocks

Required Reviewers:

Approved By: beaesguerra

Checks: ⌛ Test / Test (ubuntu-latest, 20.x, 2/2), ⌛ Lint / Lint (ubuntu-latest, 20.x), ⌛ Test / Test (ubuntu-latest, 20.x, 1/2), ⌛ Check build sizes (ubuntu-latest, 20.x), ⌛ Publish npm snapshot (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ⌛ Chromatic - Build on regular PRs / chromatic (ubuntu-latest, 20.x), ✅ Prime node_modules cache for primary configuration (ubuntu-latest, 20.x), ⏭️  Chromatic - Skip on Release PR (changesets), ✅ gerald, ⏭️  dependabot

Pull Request URL: #2362
…announcements in SingleSelect and MultiSelect
@marcysutton marcysutton changed the base branch from feature/announcer to main March 5, 2025 20:02
@marcysutton marcysutton changed the base branch from main to feature/announcer March 5, 2025 20:02
@lillialexis lillialexis changed the base branch from feature/announcer to main March 5, 2025 21:08
@lillialexis lillialexis changed the base branch from main to feature/announcer March 5, 2025 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants