Update comments : Refonte du système de commentaires — soft-delete, édition, unification des avatars - #47
Merged
Merged
Conversation
…delete. Each comment stores is_deleted, deleted_at and edited_at. Authors/admins can soft‑delete, authors can edit inline and admins can permanently remove already‑deleted comments. Backend, templates, CSS, JS and tests are all updated
…arate meta links. When no avatar is present, a rounded fallback with the username initial is shown. Avatar and author name now link independently and comment avatar letters are centered inside their wrapper
…weight. The backend now formats edited_at with full date+time, tests are updated and the edited line uses the smaller body‑xs font to align with the main timestamp
…lder style. Letter‑initial circles now use the same surface/primary color tokens as profile avatars, with a visible border and bold initial. Applied to meta author, comment avatars (normal and deleted)
…ok. The dedicated deleted‑avatar rules are removed, so both deleted and no‑avatar states use the same unified gray circle with violet initial
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.
Contexte
Les commentaires utilisaient un hard-delete irréversible : un commentaire supprimé disparaissait complètement, arbre de réponses inclus. Les avatars sans photo avaient un affichage incohérent selon la page (fond blanc, variable non définie, lettre invisible). L'horodatage d'édition n'affichait que l'heure.
Changements
<em>Comment removed</em>avec le nom de l'auteur visible. L'arbre de réponses est préservé.?), anonymes (A) et les initiales normales utilisent le même cercle gris. Fini le fond blanc dans le cercle pour les supprimés.