Bibliothèque : tags perso, actions groupées et « Annuler »

- Tags personnels libres sur chaque titre (fiche → Mon suivi), affichés discrètement
  dans la fiche, filtre par tag dans le catalogue, suggestions = tags déjà utilisés.
  Synchronisés avec la fiche (JSON), inclus dans l'export/import (et repris des tags
  de l'ancienne appli). Privés : retirés par public_item (migration) et côté client.
- Actions groupées dans le catalogue : appui long (mobile), case au survol (ordinateur)
  ou bouton « Sélectionner » ; tout sélectionner, compteur ; statut, listes (ajout /
  retrait), tag (ajout / retrait), suppression avec confirmation. Échap / retour quittent.
- Toast global accessible (role=status) avec « Annuler » (~6 s) après suppression,
  changement de statut, retrait d'une liste, actions groupées. La restauration remet la
  fiche à l'identique avec un updatedAt plus récent que la suppression : la synchro LWW
  recrée bien la fiche côté serveur.
- Store : updateMany, removeMany, restore.

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:16:32 +00:00
1 parent c246b16e7e
commit 94c27739b2
35 files changed
+1795 -22

No files matched your search

+48
View File
@@ -897,6 +897,54 @@ const dict: Translations = {
'sync.pending_one': "รอซิงค์ {count} รายการ",
'sync.pending_other': "รอซิงค์ {count} รายการ",
'sync.now': "ซิงค์ตอนนี้",
// — Bibliothèque : tags perso, actions groupées, « Annuler » —
"tags.label": "แท็กส่วนตัว",
"tags.placeholder": "comfort, ฮาโลวีน, ดูซ้ำกับลีอา…",
"tags.private": "เห็นได้เฉพาะคุณ ไม่แสดงในโปรไฟล์",
"tags.filter": "แท็กส่วนตัว",
"select.start": "เลือก",
"select.exit": "ออกจากการเลือก",
"select.all": "เลือกทั้งหมด",
"select.none": "ยกเลิกการเลือกทั้งหมด",
"select.toggle": "เลือก “{title}”",
"select.actions": "การทำงานกับรายการที่เลือก",
"select.status": "สถานะ",
"select.list": "ลิสต์",
"select.tag": "แท็ก",
"select.noLists": "ยังไม่มีลิสต์ — สร้างได้ด้านล่าง",
"select.inList": "อยู่แล้ว: {n}/{total}",
"select.addTo": "เพิ่มไปยัง “{list}”",
"select.removeFrom": "นำออกจาก “{list}”",
"select.removeTag": "ลบแท็ก",
"toast.undo": "เลิกทำ",
"toast.undone": "เลิกทำแล้ว",
"toast.undoFailed": "เลิกทำไม่สำเร็จ",
"toast.deleted": "ลบ “{title}” แล้ว",
"toast.status": "“{title}” → {status}",
"toast.removedFromList": "นำ “{title}” ออกจาก “{list}” แล้ว",
"select.count_zero": "ยังไม่ได้เลือก",
"select.count_one": "เลือกแล้ว {count} เรื่อง",
"select.count_other": "เลือกแล้ว {count} เรื่อง",
"select.statusTitle_one": "สถานะของ {count} เรื่อง",
"select.statusTitle_other": "สถานะของ {count} เรื่อง",
"select.listTitle_one": "ลิสต์ · {count} เรื่อง",
"select.listTitle_other": "ลิสต์ · {count} เรื่อง",
"select.tagTitle_one": "แท็ก · {count} เรื่อง",
"select.tagTitle_other": "แท็ก · {count} เรื่อง",
"select.deleteConfirm_one": "ลบ {count} เรื่องออกจากคลังของคุณ?",
"select.deleteConfirm_other": "ลบ {count} เรื่องออกจากคลังของคุณ?",
"toast.deletedMany_one": "ลบ {count} เรื่องแล้ว",
"toast.deletedMany_other": "ลบ {count} เรื่องแล้ว",
"toast.statusMany_one": "{count} เรื่อง → {status}",
"toast.statusMany_other": "{count} เรื่อง → {status}",
"toast.addedToList_one": "เพิ่ม {count} เรื่องไปยัง “{list}” แล้ว",
"toast.addedToList_other": "เพิ่ม {count} เรื่องไปยัง “{list}” แล้ว",
"toast.removedFromListMany_one": "นำ {count} เรื่องออกจาก “{list}” แล้ว",
"toast.removedFromListMany_other": "นำ {count} เรื่องออกจาก “{list}” แล้ว",
"toast.tagged_one": "เพิ่ม #{tag} ให้ {count} เรื่องแล้ว",
"toast.tagged_other": "เพิ่ม #{tag} ให้ {count} เรื่องแล้ว",
"toast.untagged_one": "ลบ #{tag} จาก {count} เรื่องแล้ว",
"toast.untagged_other": "ลบ #{tag} จาก {count} เรื่องแล้ว",
}
export default dict