Social : avis avec spoilers, commentaires sous les avis, listes partagées

- Spoilers : case « Contient des spoilers » dans l'éditeur d'avis (notesSpoiler, synchronisé
  avec la fiche) ; texte retiré de la page (pas seulement flouté) jusqu'à « Afficher le spoiler »
  dans les avis d'un titre et l'aperçu d'une fiche ; badge sur mon avis.
- Commentaires sous les avis (≤ 500 car.) : fil avec auteur, date relative, suppression
  (auteur / auteur de l'avis / admin), compteur à côté des réactions, notification
  « review_comment » (préférence notifPrefs.comments), anti-spam 10/min côté SQL.
- Listes partagées : section dans l'onglet Listes, invitations (notification + acceptation),
  membres, qui a ajouté quoi, quitter / retirer un membre / supprimer, ajout depuis la fiche
  et depuis la bibliothèque, ouverture d'un titre (ma fiche ou fiche du catalogue).
- SQL : 20261009130000_review_spoilers_comments.sql et 20261009130100_shared_lists.sql
  (RLS, aucun accès direct aux tables, fonctions security definer + search_path vide).
- Tout se masque sans compte ou si les migrations ne sont pas encore appliquées.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
Claude committed 2026-10-09 15:32:12 +00:00
1 parent c246b16e7e
commit 449d22666b
41 files changed
+3487 -27

No files matched your search

+65
View File
@@ -897,6 +897,71 @@ const dict: Translations = {
'sync.pending_one': "{count} change waiting",
'sync.pending_other': "{count} changes waiting",
'sync.now': "Sync now",
// — Social : spoilers, commentaires sous les avis, listes partagées —
'spoiler.checkbox': "Contains spoilers",
'spoiler.checkboxHint': "Your review will be hidden from others until they choose to read it.",
'spoiler.warning': "This review contains spoilers",
'spoiler.show': "Show spoiler",
'spoiler.badge': "Spoiler",
'comments.title': "Comments",
'comments.none': "No comments yet. Start the conversation!",
'comments.placeholder': "Write a comment…",
'comments.send': "Send",
'comments.delete': "Delete comment",
'comments.deleteConfirm': "Delete this comment?",
'comments.loadError': "Couldn’t load comments.",
'comments.unavailable': "Comments are unavailable right now.",
'comments.err.rate': "You’re commenting too fast — try again in a minute.",
'comments.err.gone': "This review is no longer available.",
'comments.err.invalid': "Comment is empty or too long (500 characters max).",
'notif.review_comment': "commented on your review",
'notif.shared_list_invite': "invited you to the shared list",
'settings.notifComments': "Comments on my reviews",
'settings.notifLists': "Shared list invitations",
'shared.title': "Shared lists",
'shared.hint': "Lists you build together: every member can add or remove titles.",
'shared.new': "New shared list",
'shared.namePh': "List name (e.g. Movies to watch together)",
'shared.none': "No shared lists yet. Create one and invite your friends.",
'shared.invitesYou': "invited you to join",
'shared.accept': "Accept",
'shared.decline': "Decline",
'shared.by': "by {name}",
'shared.badge': "Shared list",
'shared.members': "Members",
'shared.invite': "Invite",
'shared.owner': "Owner",
'shared.pending': "Pending",
'shared.removeMember': "Remove {name} from the list",
'shared.removeTitle': "Remove {title} from the list",
'shared.addedBy': "Added by {name}",
'shared.emptyText': "Add titles from their page or from your library.",
'shared.delete': "Delete shared list",
'shared.deleteConfirm': "The list “{name}” will be deleted for all its members.",
'shared.leave': "Leave list",
'shared.leaveShort': "Leave",
'shared.leaveConfirm': "You will no longer see “{name}”. Its owner can invite you again.",
'shared.notFound': "List not found",
'shared.noCandidates': "No titles found in your library.",
'shared.inviteTitle': "Invite members",
'shared.inviteHint': "Invite people you follow or who follow you to “{name}”.",
'shared.searchPeople': "Search a username…",
'shared.noPeople': "Nobody to invite: only your followers and the people you follow can join the list.",
'shared.inviteShort': "Invite",
'shared.invited': "Invited",
'shared.expired': "invitation expired",
'shared.addTo': "Add to a shared list",
'shared.unavailable': "Shared lists are unavailable right now.",
'shared.err.rate': "Too many actions in a row — try again in a minute.",
'shared.err.members': "This list has reached the maximum number of members.",
'shared.err.lists': "You’ve reached the maximum number of shared lists.",
'shared.err.full': "This list is full (500 titles).",
'shared.err.notConnected': "You can only invite your followers and the people you follow.",
'shared.err.forbidden': "Not allowed: you don’t have access to this list.",
'comments.toggle_one': "{count} comment",
'comments.toggle_other': "{count} comments",
'shared.nMembers_one': "{count} member",
'shared.nMembers_other': "{count} members",
}
export default dict