Skip to content

feat(widget): remember anonymous commenter details - #232

Merged
KingPin merged 4 commits into
mainfrom
feat/widget-remember-author
Nov 13, 2026
Merged

KingPin merged 4 commits into
mainfrom
feat/widget-remember-author

Conversation

@KingPin

@KingPin KingPin commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Anonymous readers no longer retype their name on every visit.

  • After an accepted post the widget saves the name, and the notify address when "notify me" was ticked, in the host page's localStorage under garrul:author:<api origin>. It prefills both on later mounts. The notify box stays unticked, so the opt-in stays explicit.
  • A "Not you? Clear saved details" link under a prefilled name deletes the entry (shared computers).
  • data-remember="off" on the host element opts an embed out and deletes any entry an earlier deploy saved.
  • Name inputs carry autocomplete="nickname" so browser autofill helps on a first visit.

Nothing new goes to the server. No migrations, no env vars. Docs: docs/embedding.md, AGENTS.md, privacy-policy template.

Verified in Chromium against wrangler dev: top-level and reply prefill/save, merge (a reply without notify keeps the stored address), off, and the clear link. New strings for the 11 non-English widget tables are machine-seeded.

After an accepted post the widget saves the name (and the notify address,
only when notify was ticked) under garrul:author:<api origin> and prefills
both on later mounts. The notify box stays unticked.
Lets browser autofill offer a display name on a first visit, before the
widget has anything remembered. Overrides the form-level autocomplete=off.
…hor details

For operators whose privacy policy can't cover a stored address. With off
the widget saves nothing and deletes an entry an earlier deploy saved.
Shown under a prefilled name so the next reader on a shared computer can
drop the previous commenter's name and address. Machine-seeded strings for
the 11 non-English widget tables.
@KingPin
KingPin merged commit 27ba8e5 into main Nov 13, 2026
6 checks passed
@KingPin
KingPin deleted the feat/widget-remember-author branch November 13, 2026 05:26
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