Skip to content

Conversation

@gabewomble
Copy link
Contributor

Fixes #900

Implements backward compatible support for multi cdk type constructs in construct hub. When sorting by CDK type, "Multi-CDK" constructs will show in the results for any of their matching CDK types. Additionally, they will have a "Multi-CDK" badge, which shows a tooltip when hovered.

The tooltip (now) has an arrow and is placed to the left

Screen Shot 2022-02-14 at 1 29 21 PM

Screen Shot 2022-02-14 at 2 40 23 PM

@gabewomble gabewomble requested a review from a team February 14, 2022 22:51
@gabewomble gabewomble self-assigned this Feb 14, 2022
Copy link
Contributor

@Chriscbr Chriscbr left a comment

Choose a reason for hiding this comment

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

Great work! 😄

* Back-end will introduce a new metadata.constructFrameworks property to replace metadata.constructFramework
* @deprecated Use constructFrameworks instead
*/
constructFramework?: Partial<ConstructFramework>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this partial?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just so that I could re-use the type for the new implementation. The old signature allowed cdkType and majorVersion to be undefined, whereas moving forward we should only define a constructFramework object if there is a cdkType associated

@mergify mergify bot merged commit 59525d6 into main Feb 14, 2022
@mergify mergify bot deleted the feat/support-multiple-cdk-types branch February 14, 2022 23:42
mergify bot pushed a commit to cdklabs/construct-hub that referenced this pull request Mar 15, 2022
Fixes #717

The changes required to support this in the front-end have already been added in cdklabs/construct-hub-webapp#912.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
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.

Support multiple CDK types in package metadata

2 participants