-
Notifications
You must be signed in to change notification settings - Fork 0
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(DH): Add favorite card #8
Conversation
1214a31
to
d36a09f
Compare
add metadata quality indicator
c75863c
to
d9a0880
Compare
add hover style shadow
and favorites exists, otherwise show last-created card. Add info icon, comment tests for fav-card, remove favorite star.
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.
Thanks for the clean implementation @Angi-Kinas! I left some minor comments inline. Also noticed a small glitch of the metadata-quality.component
displaying behind the neighboring card when testing. Do you think you could fix this?
apps/datahub/src/app/common/metadata-quality/mel-datahub-metadata-quality.component.html
Outdated
Show resolved
Hide resolved
apps/datahub/src/app/common/metadata-quality/mel-datahub-metadata-quality.component.ts
Show resolved
Hide resolved
.../src/app/common/results-list-item/results-card-favorite/results-card-favorite.component.html
Show resolved
Hide resolved
.../src/app/common/results-list-item/results-card-favorite/results-card-favorite.component.html
Outdated
Show resolved
Hide resolved
.../src/app/common/results-list-item/results-card-favorite/results-card-favorite.component.html
Outdated
Show resolved
Hide resolved
.../src/app/common/results-list-item/results-card-favorite/results-card-favorite.component.html
Outdated
Show resolved
Hide resolved
.../src/app/common/results-list-item/results-card-favorite/results-card-favorite.component.html
Outdated
Show resolved
Hide resolved
@@ -12,7 +12,8 @@ import { SortByField } from 'geonetwork-ui/libs/common/domain/src/lib/model/sear | |||
export class SearchHeaderComponent { | |||
constructor( | |||
public routerFacade: RouterFacade, | |||
private searchService: SearchService | |||
private searchService: SearchService, | |||
public favoritesService: FavoritesService |
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 think the FavoriteService
is not needed here anymore.
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.
It's still needed because it's used in the template to figure out if there are any favorites and set the "favoritesOnly" input.
remove unused class, add tests for not logged in, make quality overlay appearing above cards.
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.
Thanks for the adaptions and the latest fix @Angi-Kinas ! Everything works fine on my side :-)
This PR styles the "results-card-favorite"-component to fit the given design.
This is how it looks:
Note: