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

feat: Add a BlockFlyoutInflater class. #8591

Merged
merged 7 commits into from
Sep 27, 2024

Conversation

gonfunko
Copy link
Contributor

The basics

The details

Resolves

Fixes #8541 and fixes #8542.

Proposed Changes

This PR adds a concrete implementation of IFlyoutInflater responsible for creating blocks in the flyout. It also includes the existing capacity filtering logic. Because recycling is not used in core, recycling support is not included; it will be added in a subclass in the continuous toolbox plugin.

@gonfunko gonfunko requested a review from a team as a code owner September 25, 2024 20:17
@github-actions github-actions bot added the PR: feature Adds a feature label Sep 25, 2024
core/block_flyout_inflater.ts Show resolved Hide resolved
private capacityFilter: (e: AbstractEvent) => void;

constructor() {
this.capacityFilter = (event: AbstractEvent) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is the capacity filter defined in the constructor instead of just another method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because we need this bound, but updated it to use the wrapper pattern used elsewhere thoughout the codebase.

core/block_flyout_inflater.ts Show resolved Hide resolved
@gonfunko gonfunko merged commit ec5b6e7 into google:rc/v12.0.0 Sep 27, 2024
7 checks passed
@gonfunko gonfunko deleted the block-inflater branch September 27, 2024 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: feature Adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants