-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[SM-660] move sm-no-items to CL #5059
Conversation
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.
Looks good, a few small notes. And should we add some quick notes what the component is used for in the component file, which should show up in storybook?
/**
* Component for displaying a message when there are no items to display. Expects title, description and button slots.
*/
props: args, | ||
template: ` | ||
<bit-no-items class="tw-text-main"> | ||
<ng-container slot="title">No items found</ng-container> |
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 should write a short section about slots on https://contributing.bitwarden.com/architecture/clients/presentation/angular.
SecretsManagerSharedModule, | ||
ServiceAccountsRoutingModule, | ||
BreadcrumbsModule, | ||
NoItemsModule, |
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.
Seems we didn't have to import this for any of the other secret modules, is this needed?
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.
The other components where it is used are declared in the shared SM module. I went ahead and just added NoItemsModule
to the shared module's exports, so this is no longer needed.
Tried adding this in a few different places and couldn't get it to show up in Storybook. It looks like that feature might come out next release? |
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, thanks!
Type of change
Objective
sm-no-items
component to the CLbit-no-items
Code changes
sm-no-items
; updated module importsScreenshots
No visual changes.
Before you submit