-
Notifications
You must be signed in to change notification settings - Fork 32
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
Datasets figure web component #886
Conversation
Affected libs:
|
📷 Screenshots are here! |
constructor(injector: Injector, private changeDetector: ChangeDetectorRef) { | ||
super(injector) | ||
this.catalogRecords = injector.get(RecordsService) | ||
this.recordsCount$ = this.catalogRecords.recordsCount$.pipe(startWith('-')) |
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 would add a catchError(()=> of('-'))
to stay consistent with the way you built it.
I like the way that you start with an '-'.
Since you put : catchError(() => of(0))
on the recordsCount$
in the service, in case of error it will display to the user 0 wich is wrong (could be 14 or 392).
What do you think about this ?
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 👍
I couldn't test it in the storybook locally because the build did not work.
Description
This PR introduces a new web component to display the amount of datasets within your catalog.
It's based on the
<gn-figure>
Angular componentScreenshots
Quality Assurance Checklist
This work is sponsored by Florent Gravin Enterprise.