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

Feature: Displaying Details for A Selected Anime JC-692 #9

Open
wants to merge 38 commits into
base: feature/JC-674-authorization-feature-angular
Choose a base branch
from

Conversation

manpham-saritasa
Copy link
Contributor

@manpham-saritasa manpham-saritasa commented Aug 23, 2024

Implement a feature for displaying details for a selected anime.

By clicking on row into animes table the app has to be navigated to standalone URL of page with Anime detail info.

Detail page contains:

all fields from Table page

  • rating;
  • source;
  • season;
  • synopsis;
  • airing;
  • list of studios;
  • list of genres;

Detail page has:

  • feature to open full size image into popup;
  • embeded YouTube player for Anime trailer

Opening this page is not allowed for unauthenticated users.

@manpham-saritasa manpham-saritasa requested review from a team, ShestakovaElena and karbik-creator and removed request for a team August 23, 2024 08:21
Copy link

github-actions bot commented Aug 23, 2024

PR Preview Action v1.4.7
🚀 Deployed preview to https://saritasa-nest.github.io/camp-js-2024-man-pham/pr-preview/pr-9/
on branch gh-pages at 2024-09-09 03:10 UTC

Comment on lines +69 to +76
private mapGenreListFromDto(dto: AnimeDetailDto['genres_data']): AnimeDetail['genreList'] {
return dto.map(genreDto => this.genreMapper.fromDto(genreDto));
}

private mapGenreListToDto(model: AnimeDetail['genreList']): AnimeDetailDto['genres_data'] {
return model.map(genre => this.genreMapper.toDto(genre));
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure there is any reason to add these additional methods for lists.
It increases the amount of TS types we see, which we have to read and process... but if you did everything correctly, all needed them will be showed on hover

libs/core/dtos/anime-genre.dto.ts Show resolved Hide resolved
Copy link

sonarqubecloud bot commented Sep 9, 2024

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