Skip to content

docs(groups): describe in-sheet Undo for revoked invite links - #16

Merged
musa-kal merged 2 commits into
mainfrom
docs/dogfood-3
Nov 16, 2026
Merged

musa-kal merged 2 commits into
mainfrom
docs/dogfood-3

Conversation

@musa-kal

Copy link
Copy Markdown
Member

Intent

Update the guide's invite page for potluck PR #43: revoking a link leaves "Invite revoked. That link is closed." in that link's place in the sheet with an Undo button (one tap, reachable by keyboard, one per revoked link); if the sheet is closed first, a message pops up for a few seconds with Undo. Every claim must match potluck origin/main.

What Changed

  • Rewrote the revoke paragraph in src/content/docs/groups/invites.mdx. After you revoke a link, its place in the sheet reads Invite revoked. That link is closed. with an Undo button for a few seconds, and one tap brings the link back.
  • Added that keyboard focus moves to Undo, so pressing Enter restores the link.
  • Added that if the sheet is closed before then, the same message pops up for a few seconds with Undo.

🤖 Generated with Claude Code

Risk Assessment

✅ Low: This is a one-paragraph docs change, and every claim in it matches potluck main: the 'Invite revoked. That link is closed.' string (en/groups.ts:254), the Undo button inside each RevokedNote, the 8 s UNDO_MS window, focus moving to Undo on mount, and the close-time toast with duration UNDO_MS for undoable revokes when inSheet is set.

Testing

  • ⏭️ Test - skipped

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - 2 issues found → auto-fixed ✅
  • ⚠️ src/content/docs/groups/invites.mdx:62 - The changed paragraph says the link's place 'now reads Invite revoked. That link is closed. with an Undo button next to it' and gives no time limit. The old text did have one ('It stays up for a few seconds'), and this edit removed it. On potluck main, apps/web/src/features/invites/invite-sheet.tsx:38 sets UNDO_MS = 8000. The effect at lines 188-196 removes each RevokedNote once until passes, and the close-time toast (lines 212-221) only covers revokes still in undoable. So a user who revokes a link, waits more than 8 s and then looks for Undo in the sheet finds nothing, and closing the sheet after that shows no toast either. That contradicts the doc and the intent's 'every claim must match potluck origin/main'. Fix: say the note and its Undo stay for a few seconds, and tie the toast sentence to that window, e.g. '...with an Undo button next to it for a few seconds. One tap brings the link back. If you close the sheet before then, the same message pops up for a few seconds with Undo.'
  • ℹ️ src/content/docs/groups/invites.mdx:62 - The intent describes the inline Undo as '(one tap, reachable by keyboard, one per revoked link)'. The new text covers 'one tap', and 'the link's place' implies one note per link. It never mentions keyboard use. On main, RevokedNote moves focus to its Undo button when it appears (invite-sheet.tsx:420-422, 'focus lands here and a keyboard user can undo straight away'), so a keyboard user can press Enter right after revoking. Confirm whether the intent's 'reachable by keyboard' must be stated on the page (e.g. 'Using a keyboard? Focus moves to Undo, so press Enter.') or was only describing the app's behavior.

🔧 Fix applied.
✅ Re-checked - no issues remain.

⏭️ **Test** - skipped

Step was skipped.

✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@musa-kal
musa-kal merged commit a4f61df into main Nov 16, 2026
2 checks passed
@musa-kal
musa-kal deleted the docs/dogfood-3 branch November 16, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant