Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 18 additions & 17 deletions content/(serve)/comments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Comments put feedback threads on the page they are about. A reviewer pins a thre

## Before you start

- Collecting new comments is included on **Go** and higher plans (see [Pricing & Limits](/pricing)); other plans return 403 `collab_plan_required`. Personal teams that already used Comments before the move to Go keep them. On **Personal** without Comments (or when Comments are turned off), existing threads stay readable and exportable in the dashboard, and team owners and admins can still moderate them.
- Comments run only on claimed Spaces that belong to a team. Other Spaces get `team_required`.
- **Page Enhancements** must be on. Turn it on in the Space's settings under **General**. With it off, the API answers `comments_disabled`. The switch is `superpowers.enabled` in [the config file](/config-file#superpowers).
- Who can comment comes from the Space's grants. A grant needs the `commenter` role or higher. See [Spacefast Share](/share#roles).
Expand All @@ -15,15 +16,15 @@ Comments put feedback threads on the page they are about. A reviewer pins a thre

| Setting | Dashboard label | Where people can comment |
| --- | --- | --- |
| `off` | **Off** | Nowhere. Spacefast keeps the threads, but nobody can read them until you turn Comments on again |
| `off` | **Off** | Nowhere. Existing threads stay readable and exportable in the dashboard |
| `previews` | **Previews only** | Version preview URLs only. The live Space shows nothing |
| `everywhere` | **Everywhere** | Version preview URLs and the live Space |

A Space gets **Previews only** at its first publish. A change applies right away, without a republish. While Comments are off, the **Collab** page shows **Turn On Comments**, which sets **Previews only**.
On Go and higher plans, a Space gets **Previews only** at its first publish. A change applies right away, without a republish. While Comments are off, the **Comments** page shows **Turn on comments**, which sets **Previews only**.

To change the setting in the dashboard:

1. Open the Space and go to **Collab**.
1. Open the Space and go to **Comments**.
Comment thread
batuhan marked this conversation as resolved.
Resolved
2. Open the settings control in the page header. It shows the current setting.
3. Under **Where people can comment**, choose an option.

Expand All @@ -37,12 +38,12 @@ With **Previews only**, a new `commenter` grant on the `live` target is refused

## Comment on a page

1. Open a version preview URL. In the dashboard, **Open Page to Comment** opens one. With **Everywhere**, the live Space works too.
2. Select **Comments** on the page to open the toolbar.
3. Select **Comment**, then select the element or the page area.
1. Open a version preview URL, or the live Space when Comments are set to **Everywhere**. In the dashboard, **Open Page to Comment** opens the live Space for **Everywhere** and a version preview URL for **Previews only** or when filtered to a version.
Comment thread
batuhan marked this conversation as resolved.
Resolved
2. Select **Comments** on the page to open the comments drawer and arm the comment picker.
3. Select the element or page area you want to comment on. If you press Escape or arrive from a thread link, select **Comment** in the drawer or toolbar to arm it again.
4. Write the comment and select **Comment**.

To draw on the page, select **Draw** in the toolbar. To add a file, select **Attach a file** in the composer. The **Sidebar** lists the threads on the page and on other pages.
To draw on the page, select **Draw**. To add a file, select **Attach a file** in the composer. The **Sidebar** lists the threads on the page and on other pages.
Comment thread
batuhan marked this conversation as resolved.
Resolved

A visitor without a Spacefast account comments under a name that Spacefast picks. To change it, the visitor selects the name. In the same dialog, the visitor can give an email and confirm it from the inbox to get reply emails.

Expand All @@ -51,9 +52,9 @@ A visitor without a Spacefast account comments under a name that Spacefast picks
A thread belongs to the version where someone left it.

- A thread on the live version belongs to the page path. It stays on that page after you publish again.
- A thread on any other version stays with that version. It does not appear on the live Space.
- A thread on any other version stays with that version. It does not move to the live Space when that version goes live.

The version page in the dashboard has a **Comments on This Version** section. Select a row to open the thread on the **Collab** page.
The version page in the dashboard has a **Comments on This Version** section. Select a row to open the thread on the **Comments** page.

To start a thread on a version from the CLI, pass `--version`. Without it, the thread goes on the live version:

Expand All @@ -79,7 +80,7 @@ If a request can be retried, send the same `idempotencyKey` each time. A repeate

## Reply and mention teammates

To reply, write in the thread's reply box on the page or the **Collab** page. From the terminal, run `sf comments reply`. Over HTTP, call [`createSpaceCommentReply`](/api/reference/spaces/createspacecommentreply).
To reply, write in the thread's reply box on the page or the **Comments** page. From the terminal, run `sf comments reply`. Over HTTP, call [`createSpaceCommentReply`](/api/reference/spaces/createspacecommentreply).

A mention notifies one teammate. You can mention the members of the Space's team who can open the Space. The `listSpaceCommentMentionable` operation returns them.

Expand All @@ -90,7 +91,7 @@ A mention notifies one teammate. You can mention the members of the Space's team

## React to a thread

A thread takes six reactions: 👍, ❤️, 🎉, 👀, 🚀, and 🙏. Select one on the page or the **Collab** page. Select it again to take yours back.
A thread takes six reactions: 👍, ❤️, 🎉, 👀, 🚀, and 🙏. Select one on the page or the **Comments** page. Select it again to take yours back.

From the terminal, run `sf comments react` and `sf comments unreact`. Over HTTP, send `emoji` and `op` (`add` or `remove`) to [`updateSpaceCommentReaction`](/api/reference/spaces/updatespacecommentreaction).

Expand All @@ -99,7 +100,7 @@ From the terminal, run `sf comments react` and `sf comments unreact`. Over HTTP,
A resolved thread leaves the open list and keeps every reply. Reopen it to put it back.

- On the page, you can resolve your own threads. People with the `editor` or `manager` role can resolve any thread. The **Sidebar** menu has **Resolve all**.
- On the **Collab** page, open the thread and select **Resolve** or **Reopen**.
- On the **Comments** page, open the thread and select **Resolve** or **Reopen**.
- From the terminal, run `sf comments resolve` or `sf comments reopen`.
- Over HTTP, send `status: "archived"` to resolve or `status: "open"` to reopen with [`updateSpaceComment`](/api/reference/spaces/updatespacecomment).

Expand All @@ -111,16 +112,16 @@ A thread is unread for you when it is open and someone else posted in it after y

| Where | How to mark a thread read |
| --- | --- |
| **Collab** page | Opening the thread |
| **Comments** page | Opening the thread |
| Page | **Mark all as read** in the **Sidebar** menu |
| CLI | `sf comments read`. `sf comments inspect` and `sf comments list` never mark a thread read |
| API | [`markSpaceCommentRead`](/api/reference/spaces/markspacecommentread). Reading a thread with [`getSpaceComment`](/api/reference/spaces/getspacecomment) does not mark it |

The **Collab** item in the Space's sidebar shows a badge with the unread count.
The **Comments** item in the Space's sidebar shows a badge with the unread count.

## Use the Comments page

Open the Space and go to **Collab**. The list is on the left and the open thread is on the right.
Open the Space and go to **Comments**. The list is on the left and the open thread is on the right.

| Control | What it does |
| --- | --- |
Expand Down Expand Up @@ -160,13 +161,13 @@ Spacefast sends comment notifications to the dashboard **Notifications** panel a
- Only a mention from a member of the Space's team notifies.
- A visitor without an account gets reply emails only after they confirm an address. Each email has a **Stop reply emails** link.

All three settings are on by default. In the settings control on the **Collab** page, under **Advanced**, **Notify on new comments** sets `newThreads` and `newReplies` together. **Notify on status changes** sets `statusChanges`. Over HTTP, send `notificationPreferences` to [`updateSpaceCollaboration`](/api/reference/spaces/updatespacecollaboration). Each key you leave out keeps its value.
All three settings are on by default. In the settings control on the **Comments** page, under **Advanced**, **Notify on new comments** sets `newThreads` and `newReplies` together. **Notify on status changes** sets `statusChanges`. Over HTTP, send `notificationPreferences` to [`updateSpaceCollaboration`](/api/reference/spaces/updatespacecollaboration). Each key you leave out keeps its value.

## Export comments

| Where | Format | What it holds |
| --- | --- | --- |
| **Download Comments** on the **Collab** page | Markdown, `spacefast-comments-<space>.md` | Every thread in the Space |
| **Download Comments** on the **Comments** page | Markdown, `spacefast-comments-<space>.md` | Every thread in the Space |
| **Download Comments** on a version page | JSON, `spacefast-comments-<version-id>.json` | The version's threads |
| `sf comments export` | Markdown by default, or JSON | All threads, or one version's with `--version` |
| [`exportSpaceComments`](/api/reference/spaces/exportspacecomments) | `format=markdown` (default) or `format=json` | All threads |
Expand Down
6 changes: 3 additions & 3 deletions scripts/pricing-next.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,14 @@ const FEATURES = [
row("Tag Manager", null, all(BETA)),
row("Connectors to other services", "Connect services like Linear or Google once and let agents and Spaces use them. Public Beta on Go, Pro, and Enterprise.", [NO, BETA, BETA, BETA], "beta"),
row("Store and payments", "Sell digital downloads and physical products, with checkout and orders. In private beta.", all(BETA), "beta"),
row("Draw on pages when giving feedback", null, all(SOON)),
row("Draw on pages when giving feedback", null, [NO, YES, YES, YES]),
]],
["Sharing and feedback", [
row("Private by default, share links, passwords", null, all(YES)),
row("Invitations and access requests", null, all(YES)),
row("Comments on any page", null, all(YES)),
row("Comments on any page", null, [NO, YES, YES, YES]),
row("Show & Tell: share public Spaces for discovery", null, all(BETA)),
row("Live comment updates", null, all(YES)),
row("Live comment updates", null, [NO, YES, YES, YES]),
row("Custom access page without Spacefast branding", null, [NO, NO, NO, YES]),
]],
["Agents", [
Expand Down
Loading