feat: galerie publique des personnages (#58)#115
Merged
pierrick-fonquerne merged 2 commits intodevelopfrom Feb 16, 2026
Merged
Conversation
…tion (#58) - Add GET /api/characters (AllowAnonymous) with gender, author, sort, pagination - Add PagedResponse<T> generic DTO and GalleryCharacterResponse DTO - Use Select projection to avoid loading sensitive user data (PasswordHash) - Use EF.Functions.ILike for case-insensitive PostgreSQL search - Sanitize LIKE patterns to prevent wildcard injection - Validate page bounds (1–1000), clamp pageSize (1–50), allowlist sortBy - Add 8 unit tests and 4 integration tests for gallery
…traction (#58) - Add GalleryPage at /galerie with gender, author (debounced), sort filters - Add GalleryCard component with React.memo and relative date display - Add useDebounce generic hook and formatRelativeDate utility - Add getGallery service calling GET /api/characters with query params - Extract types into dedicated types/ directory (SRP: requests, responses, gallery, common) - Migrate all consumers to import types from types/ instead of characterService - Add race condition protection with request ID ref pattern - Sanitize LIKE patterns for author search - Add 445 passing tests including gallery, debounce and formatRelativeDate
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /api/characters(anonyme) paginé avec filtres (genre, auteur, tri)/galerieavec grille responsive, filtres debounced et paginationtypes/dédié (SRP)Backend
PagedResponse<T>générique etGalleryCharacterResponseDTOSelectpour éviter de chargerPasswordHashen mémoireEF.Functions.ILikepour la recherche case-insensitive PostgreSQL%,_,\)Frontend
GalleryPageavecuseDebounce(300ms) sur la recherche auteurGalleryCardavecReact.memo, date relative viaIntl.RelativeTimeFormatcharacter-requests.ts,character-responses.ts,gallery.ts,common.tsTest plan