Skip to content

Conversation

AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Sep 2, 2025

Purpose

Implementation of the comment feature frontend side.

@AntoLC AntoLC self-assigned this Sep 2, 2025
@AntoLC AntoLC added frontend wip feature add a new feature labels Sep 2, 2025
@AntoLC AntoLC changed the base branch from main to feat/comments September 2, 2025 16:08
@AntoLC AntoLC changed the base branch from feat/comments to main September 2, 2025 16:09
@AntoLC AntoLC changed the title Feat/comments frontend ✨(frontend) Comments ! Sep 3, 2025
@AntoLC AntoLC force-pushed the feat/comments-frontend branch 4 times, most recently from c8c08b8 to 1d7a236 Compare September 12, 2025 15:50
lunika and others added 9 commits September 12, 2025 17:52
To allow a user to comment a document we added a new role: commentator.
Commentator is higher than reader but lower than editor.
In order to store the comments on a document, we created a new model
Comment. User is nullable because anonymous users can comment a Document
is this one is public with a link_role commentator.
This commit add the CRUD part to manage comment lifeycle. Permissions
are relying on the Document and Comment abilities. Comment viewset
depends on the Document route and is added to the
document_related_router. Dedicated serializer and permission are
created.
Implemented the comments feature for the document
editor.
We are now able to add, view, and manage comments
within the document editor interface.
We extracted the UserAvatar component from the
doc-share feature and integrated it into
the users feature. It will be used in the
thread comments feature as well.
A circular dependency was introduced in the previous
commit.
This commit resolves the circular dependency by
refactoring the code to remove the circular reference.
Replace the default comment toolbar button with
a custom one to follow the design system.
Our document got new types:
- user can be commenters, commenters can view and
add comments to documents but cannot edit the
document content itself.
- document can be in 'commenters' mode, allowing
viewers to add comments.
@AntoLC AntoLC force-pushed the feat/comments-frontend branch from 1d7a236 to fe926fc Compare September 12, 2025 15:52
@lunika lunika mentioned this pull request Sep 16, 2025
3 tasks
@AntoLC AntoLC linked an issue Sep 18, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature add a new feature frontend wip
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨Comments on text editor
2 participants