From 86e65d5688b7d79e7d5a79c46fdf14e5d34a2902 Mon Sep 17 00:00:00 2001 From: Hikari Date: Fri, 20 Feb 2026 01:20:28 -0800 Subject: [PATCH] feat: simplify entity cards to minimal design with detail page links Simplified all entity list cards to show only essential information: Cards now display ONLY: - Cover/poster image (if available) - Title (clickable link to detail page) - Primary identifier (author/artist/platform) - Status badge - Rating stars (if available) - Like button - Admin actions (Edit/Delete - only for admins) Removed from cards: - Series information - Time tracking - Notes - Tags - External links - Dates (all timestamps) - Comments sections Technical changes: - Wrapped card content in routerLink for navigation - Separated interactive elements (like/admin buttons) from clickable area - Removed unused CommentDisplayComponent imports - Updated CSS for cleaner, more compact card layouts - All removed content still accessible on detail pages Affected components: - Games list - Books list - Music list - Art gallery - Shows list - Manga list This creates a cleaner browsing experience whilst encouraging users to explore detail pages for complete information. --- .../components/art/art-gallery.component.ts | 304 ++----------- .../components/books/books-list.component.ts | 407 +++--------------- .../components/games/games-list.component.ts | 372 +++------------- .../components/manga/manga-list.component.ts | 351 ++------------- .../components/music/music-list.component.ts | 397 +++-------------- .../components/shows/shows-list.component.ts | 345 +++------------ 6 files changed, 299 insertions(+), 1877 deletions(-) diff --git a/apps/frontend/src/app/components/art/art-gallery.component.ts b/apps/frontend/src/app/components/art/art-gallery.component.ts index cb015c9..a02795b 100644 --- a/apps/frontend/src/app/components/art/art-gallery.component.ts +++ b/apps/frontend/src/app/components/art/art-gallery.component.ts @@ -7,6 +7,7 @@ import { Component, OnInit, inject, signal, computed } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; +import { RouterModule } from '@angular/router'; import { ArtService } from '../../services/art.service'; import { AuthService } from '../../services/auth.service'; import { CommentsService } from '../../services/comments.service'; @@ -14,13 +15,12 @@ import { SanitizeService } from '../../services/sanitize.service'; import { SuggestionService } from '../../services/suggestion.service'; import { PaginationComponent } from '../shared/pagination.component'; import { LikeButtonComponent } from '../shared/like-button.component'; -import { CommentDisplayComponent } from '../comment-display/comment-display.component'; import { Art, CreateArtDto, UpdateArtDto, Comment, SuggestionEntity, Link } from '@library/shared-types'; @Component({ selector: 'app-art-gallery', standalone: true, - imports: [CommonModule, FormsModule, PaginationComponent, LikeButtonComponent, CommentDisplayComponent], + imports: [CommonModule, FormsModule, RouterModule, PaginationComponent, LikeButtonComponent], template: `
@@ -392,49 +392,29 @@ import { Art, CreateArtDto, UpdateArtDto, Comment, SuggestionEntity, Link } from