Skip to content
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

Merged
merged 10 commits into from
Feb 8, 2024
Merged

feat(DH): Add favorite card #8

merged 10 commits into from
Feb 8, 2024

Conversation

Angi-Kinas
Copy link
Contributor

@Angi-Kinas Angi-Kinas commented Jan 30, 2024

This PR styles the "results-card-favorite"-component to fit the given design.

This is how it looks:
image
image

Note:

  • the favorite "heart"-icon will be implemented later
  • the e2e are commented out until we are able to favorite datasets

@Angi-Kinas Angi-Kinas mentioned this pull request Feb 1, 2024
@Angi-Kinas Angi-Kinas marked this pull request as ready for review February 1, 2024 14:50
and favorites exists, otherwise show last-created
card.
Add info icon,
comment tests for fav-card,
remove favorite star.
Copy link
Member

@tkohr tkohr left a 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-e2e/src/e2e/search.cy.ts 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
Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

@tkohr tkohr left a 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 :-)

@Angi-Kinas Angi-Kinas merged commit 7a6c502 into main Feb 8, 2024
7 checks passed
@Angi-Kinas Angi-Kinas deleted the favorite-card branch February 8, 2024 10:04
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.

2 participants