Repository navigation
Description
What to build
Hide the Document settings Follow row when a change by someone else cannot reach this person. Show it when someone who is not you can change the pad.
Follow stays a per-pad digest mute. Default stays on. Hide is display only. Do not write mute when the row hides.
Acceptance criteria
- Signed-out: Follow stays hidden (already).
- Owner + Private: hide Follow.
- Owner + Public + Read-only: hide Follow.
- Owner + Public + Editable: show Follow.
- Signed-in visitor on a public pad: show Follow.
- Signed-in on an ownerless pad: show Follow.
- Hiding the row does not call
set_document_follow. Stored mute stays as it is. - When the row comes back, it shows that stored state. It does not reset to on.
- Desktop popover and phone sheet use the same rule (one panel).
- Private, Read-only, Preferences, and Import and export stay visible.
Agent Brief
Category: enhancement
Summary: Hide a dead Follow toggle. Keep Follow when someone else can edit.
Current behavior:
Follow shows for every signed-in person once auth is up. The switch stays off until they join the workspace. A new member follows by default.
Follow means a digest when someone else edits. The fan-out skips the actor, other listed editors, and people still in the room. A solo owner who edits gets no mail. Private reaches the owner only. Public reaches every follower. An unsigned edit on a public pad can still notify followers.
Settings → Notifications → Document changes is the global digest switch. It is not this row.
Desired behavior:
Show Follow when someone who is not you can change this pad.
Hide it for the owner on Private, and for the owner on Public + Read-only. Those pads have no other editor.
Show it for the owner on Public + Editable. Unsigned people can still edit.
Show it for a signed-in visitor on a public pad, and for a signed-in person on an ownerless pad.
Do not gate on workspace member count, History contributors, or who is in the room now. Public + Editable with only the owner still has an unsigned edit path.
Hide is UI only. Do not mute or unmute in the background. When Private or Read-only later turns off, paint the stored mute.
Visitor-only is wrong. The owner of a public editable pad is the main Follow user.
Key interfaces:
- Follow — per-pad digest mute; default on
- Private — owner-only open
- Read-only — non-owners cannot edit
- Ownerless — no
ownerId; anyone may edit - Document changes (Settings) — global digest switch; leave it
Out of scope
- Changing who the digest reaches
- A new REST or RPC
- Member count, History contributors, or occupancy as the gate
- Hiding Private, Read-only, Preferences, or Import and export
- Changing Settings → Notifications → Document changes
- Visitor-only Follow
Blocked by
None — can start immediately.
Activity
HMarzban commentedon Sep 10, 2026
UX cohesion: same hide-unused rule as empty Home Documents (#247). Different gate (access, not list length). Keep ToggleSection. Do not hide Private, Read-only, Preferences, or Import and export.
HMarzban commentedon Oct 15, 2026
Related issues
documentSettingsRows.ts:25.Cross-link review, 2026-10-15. Generated by Claude Code