# Comments

> Comment on text, on a page or on a change request, mention people with @, and turn a comment into a change request. On every plan, for everyone on the project.

Comments let your team talk about the docs next to the words they're about. Anyone on a project can comment, Viewers included, and comments are on every plan. They stay in Typemark: they're never written to your repository or to GitHub.

## Comment on text or a page

To comment on text, open the page in the visual editor, select the text, and choose **Comment** in the floating toolbar. For Viewers, **Comment** is the only button there. Write your comment and send it. The text is highlighted, and clicking the highlight opens its thread.

To comment on a whole page, open **Comments** in the editor's top bar and click **Comment on the whole page…**.

**Comments** opens a panel beside the page and shows how many threads are open on it. On a phone, the panel covers the screen. In the panel:

- Outdated threads come first, then open ones. Resolved threads are folded under **Resolved · n**. With no open threads, the panel says how to comment.
- A thread shows the text it's about, then its comments, each with its author, when it was written, and "edited" if it was changed.

The page list on the left shows how many open threads each page has.

## Mention someone

Type `@` in a comment to get a list of the project's members. Pick someone with the mouse, or with the arrow keys and `Enter` or `Tab`. Press `Cmd+Enter` (`Ctrl+Enter` on Windows) to send.

- Only people you pick from the list are mentioned, and only members of the project can be.
- The person you mention gets a [notification](https://docs.typemark.dev/team/notifications) and, depending on what they chose in **Account** > **Notifications**, an email.
- Everyone else in the thread is notified of replies.
- Whoever opened a change request hears about comments on it.

A link in a notification opens the page with the thread shown, or the change request's page at that thread.

## Reply, resolve, edit

- **Reply…** under a thread opens a reply. A reply to a resolved thread reopens it.
- **Resolve**, the check beside the first comment, marks a thread as settled and moves it under **Resolved · n**. **Reopen**, in the same place, opens it again.
- To edit or delete one of your own comments, use the pencil or bin icon beside it. Deleting the last comment in a thread deletes the thread.

## Outdated comments

A comment on text stays with that text. If the text moves, the thread follows it. If the text is removed or rewritten, the thread is marked **Outdated** and keeps the quote it was about. An outdated thread stays open, at the top of the panel, until someone resolves it.

## From a comment to a change request

On a thread on a live page, editors and the owner see **Fix in a change request** when the deployment branch is [protected](https://docs.typemark.dev/editor/branches#protect-your-deployment-branch), or when they can't [publish](https://docs.typemark.dev/team/members) themselves. Anyone else can just edit the page. Typemark first says what will happen, then starts a [change request](https://docs.typemark.dev/editor/branches) named "Fix" followed by the page title, such as "Fix Quickstart", links it to the thread, and opens it in the editor. There the comment stays pinned at the top of **Comments**, on every page, so you can answer it while you fix it. Make the fix, and get it reviewed and merged like any change request. On Free, if a change request is already open, Typemark says so instead and starts nothing.

The thread shows the change request and where it stands. When the change request is merged, the thread is resolved and everyone in it is notified. Whoever raised the comment, for example someone in support, knows the fix is in without asking.

### Example

Ana works in support and has the Viewer role. A customer reports that a command in Quickstart doesn't work. The team protects main, so every change is reviewed.

<Steps>
  <Step title="Ana comments">
    Ana opens Quickstart, selects the command, and chooses **Comment**. She writes "Customers say this command fails. @Sam, can you check?", picking Sam from the list.
  </Step>
  <Step title="Sam starts a fix">
    Sam, the product manager, gets a notification. It opens Quickstart with Ana's thread shown. Sam clicks **Fix in a change request**, then **Start change request**, and Typemark opens "Fix Quickstart" in the editor with Ana's comment pinned beside it.
  </Step>
  <Step title="The fix is reviewed and merged">
    Sam corrects the command and asks for a review. A teammate approves it, and someone who can publish merges it.
  </Step>
  <Step title="The thread resolves itself">
    The merge resolves Ana's thread, and Ana and Sam are notified. Ana tells the customer it's fixed.
  </Step>
</Steps>

## Comments on a change request

To comment on a change request as a whole, write in the comment box on its page. The same list shows the comments on pages inside the change request.

People who can publish see on the change request's page how many comments are still open, such as "2 comments are still open. You can merge anyway; resolve them if they're settled." Open comments don't block a merge.

## Who can do what

| Action | Who |
|--------|-----|
| Read comments, comment, reply, mention someone, resolve and reopen | Everyone on the project, Viewers included |
| Edit or delete a comment | Whoever wrote it |
| Fix a comment in a change request, on a live page | Editors and the owner, where main is protected or they can't publish |
| See open comments before merging | People who can publish: the owner, and editors with **Can publish** |

See [Team members](https://docs.typemark.dev/team/members#roles) for roles.
