nextcloud / text

📑 Collaborative document editing using Markdown
GNU Affero General Public License v3.0
546 stars 88 forks source link

Comments on block elements #6478

Open max-nextcloud opened 6 days ago

max-nextcloud commented 6 days ago

Summary

grafik Initial sketch with available comments indicated in text and a button to create a new comment on the current active section.

Allow comments on block elements (paragraphs, headings, quotes, ...):

Motivation

Comments are useful in many situation. They allow adding information that directly relates to parts of the document without adding it directly to the document content.

Comments can be particularly helpful when drafting documents and during a review process.

Comments on block elements attach the comment to the relevant section on the document while avoiding the complexity of in line comments such as overlapping comment ranges.

Specification

Comments can be added to all block elements:

Alternatives

Inline comments

This draft mainly came out of the discussion of in line comments in #185. In line comments allow commenting on a precise range of text, which is hard to represent in markdown.

Footnotes

While footnotes could also be used to represent comments, they serve a different purpose.

2142 discusses footnotes.

User Interface Elements

Implementation

Out of scope for now (but maybe future)

nimishavijay commented 5 days ago

References

Google docs ![42a0cdf3-4d18-8022-8005-0c92e4168cf5](https://github.com/user-attachments/assets/e3a79d32-d214-48e1-853d-588d23105906)
Notion ![2d265c62-6e48-80b8-8005-0c92ddf5fe3b](https://github.com/user-attachments/assets/fcc991f0-cb75-4761-a45d-0b383a0ebd07)
Confluence ![2d265c62-6e48-80b8-8005-0c954d7669cb](https://github.com/user-attachments/assets/1ce3fb23-5ed3-4ff7-bd61-a2184213a7d6)

Design specs

Existing comments

image

image

New comments

image

image

New comment element:

Mobile view

Mockups TBD

TBD:

What do you think? :)