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: move backpack to use interface for backpackability #2314

Merged
merged 5 commits into from
Apr 10, 2024

Conversation

BeksOmega
Copy link
Contributor

The basics

The details

Resolves

Fixes #2311

Proposed Changes

Makes it so the backpack uses an interfaces for adding things to itself instead of hard coding to only work with blocks.

Test Coverage

Manually tested that blocks still get added to the backpack.

Documentation

Should be documented somewhere?? Would love opinions! Worst case I'll add it to the dragger docs?

Additional Information

N/A

@BeksOmega BeksOmega marked this pull request as ready for review April 5, 2024 19:05
@BeksOmega BeksOmega requested a review from a team as a code owner April 5, 2024 19:05
@BeksOmega BeksOmega requested review from maribethb and removed request for a team April 5, 2024 19:05
Copy link
Contributor

@maribethb maribethb left a comment

Choose a reason for hiding this comment

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

I would document this in the readme for the plugin, you can add a section about making custom objects compatible with the backpack

plugins/workspace-backpack/src/backpack.ts Outdated Show resolved Hide resolved
plugins/workspace-backpack/src/backpack.ts Show resolved Hide resolved
@BeksOmega
Copy link
Contributor Author

I also renamed toFlyoutData to toFlyoutInfo to match the actual type returned. This means that the plugin won't work with the .7 beta, but the plugin doesn't have tests so this should still be mergable.

@BeksOmega BeksOmega force-pushed the feat/backpack-compatibility branch from 2cca56f to 351fa18 Compare April 8, 2024 17:28
plugins/workspace-backpack/src/backpack.ts Outdated Show resolved Hide resolved
plugins/workspace-backpack/src/backpack.ts Outdated Show resolved Hide resolved
plugins/workspace-backpack/README.md Outdated Show resolved Hide resolved
@BeksOmega BeksOmega merged commit 5d699d2 into google:rc/v11.0.0 Apr 10, 2024
8 checks passed
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