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

Introduces a speechgenerator pool #1040

Merged
merged 26 commits into from
Feb 8, 2024
Merged

Conversation

zorkow
Copy link
Member

@zorkow zorkow commented Jan 15, 2024

PR introduces a GeneratorPool data structure that

  • coordinates the computation of speech.
  • takes care of async locale loading.

This makes the speech computation considerably cleaner. In particular there is no longer speech computation in the semantic enrichment method. Speech can be computed if the speech="deep" option is set.
All Speech is now computed in the attachSpeech method, where originally only the aria-label was set.

Since the attachSpeech state is called after rerender, this also takes care of computing speech for the collapsed elements etc.

Another side effect is that we no longer use the walkers provided by SRE, which makes syncing a lot easier. At the moment only the walking and summary functionality is ported. The rest will be ported in a subsequent PR.

Note: Currently only works with SRE branch new_explorer_changes. I'll try to merge that asap.

@zorkow zorkow requested a review from dpvc January 15, 2024 16:02
@zorkow
Copy link
Member Author

zorkow commented Jan 19, 2024

@dpvc I've made the changes as discussed today. PTAL.

@dpvc dpvc added this to the v4.0 milestone Jan 19, 2024
Copy link
Member

@dpvc dpvc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made some comments about some minor issues. See what you think.

ts/a11y/explorer.ts Outdated Show resolved Hide resolved
ts/a11y/explorer.ts Outdated Show resolved Hide resolved
ts/a11y/explorer/ExplorerPool.ts Outdated Show resolved Hide resolved
ts/a11y/speech/GeneratorPool.ts Outdated Show resolved Hide resolved
ts/a11y/speech/GeneratorPool.ts Show resolved Hide resolved
ts/a11y/explorer/KeyExplorer.ts Show resolved Hide resolved
@zorkow
Copy link
Member Author

zorkow commented Feb 7, 2024

Incorporated the review suggestions.
Also I fixed an issue with the walking when elements are being collapsed. They need to have some data-semantic- attributes set explicitly.

PTAL.

Copy link
Member

@dpvc dpvc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@zorkow zorkow merged commit 42fd15d into develop Feb 8, 2024
@zorkow zorkow deleted the refactor/speechgenerator-pool branch February 8, 2024 11:16
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