-
Notifications
You must be signed in to change notification settings - Fork 108
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
De-dupe with the fully qualified function name #315
Conversation
if (it.componentIndex != null) { | ||
"${it.showkaseName}_${it.showkaseGroup}_${it.showkaseStyleName}_${it.componentIndex}" | ||
"${it.fqPrefix}_${it.showkaseName}_${it.showkaseGroup}_${it.showkaseStyleName}_${it.componentIndex}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we already do the ${it.packageName}_${it.enclosingClassName}_${it.elementName}
dedpuing above. Why do we need to do it again here 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vinaygaba If I don't include it here as well it will remove ones that only differ by tags
or extraMetadata
. I tried to change this to do them in one distinctBy
step but that messed up where a @Preview
annotation has the same group/style as the @ShowkaseComposable
annotation so I left it as two steps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This adds the fully qualified name (package + class name + function name) to the de-duplication strategy to support showkase components with the same group/component name/style name. This is useful when creating custom browsers where additional categorization is made via the new
tags
orextraMetadata
fields that were added with #309.