Add privacy notice and link it from register and footer #7
Loading…
Reference in a new issue
No description provided.
Delete branch "cc-5-privacy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a plain-English
/privacypage, linked from the email hint on the register form and the footer, plus a README section on deleting a record on request (CC-5).Behaviour:
site.jsnow saves and restores the email hint as HTML, so the privacy link survives the validation error flip. The contact address (hello@campercan.example) and the two-year retention limit are placeholders for the owner to confirm.Tested with
node --test(9 pass),node build.jsand html-validate ondist/.Two things to fix, one to consider.
textContent, so the privacy link is gone while the error shows. It only returns on the next input event. The innerHTML change fixes the restore, not the error state. Either keep the link in the error text or don't claim it survives.Tests: the hint assertion pins the exact sentence, so it breaks on any copy edit.
html.includes('href="/privacy"')is enough. Nothing covers the site.js restore.Fixed 2 and 4 in
9444563. Not changing 1: the two-year cap was specified, and the owner confirms it. Not changing 3: replacing the hint with the error text is intended, and the link returns on the next input.94445637ce29459c03e6