Privacy policy link in the footer and checkout, notes hint, and a policy draft

Site design → Footer picks the privacy policy page; it is linked from the footer and from a short notice above Pay. The notes field asks customers not to write health details (special-category data). 'Create a privacy policy draft' makes an unpublished page describing what this software does with customer data, with gaps for the studio to fill in. No consent checkbox: booking data is processed to perform the contract. Also adds the PrivacyGlobal type used by the retention settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VaXE9U7AmW3dfD2w6cbLfk
This commit is contained in:
agent 2026-10-24 10:44:45 +00:00
parent 73e8c5dc5d
commit 5828d65a00
7 changed files with 129 additions and 5 deletions

View file

@ -1,5 +1,5 @@
<script lang="ts">
import type { ContentBlock, CheckoutBlockData } from '$lib/types';
import { DEFAULT_NOTES_HINT, DEFAULT_PRIVACY_NOTICE, type ContentBlock, type CheckoutBlockData } from '$lib/types';
let {
block,
@ -27,5 +27,15 @@
<span class="fieldset-legend">Notes label</span>
<input class="input w-full" placeholder="Notes or special requests" value={block.data.notesLabel || ''} oninput={(e) => updateData({ notesLabel: e.currentTarget.value })} />
</label>
<label class="fieldset">
<span class="fieldset-legend">Notes hint</span>
<textarea class="textarea w-full" rows="2" placeholder={DEFAULT_NOTES_HINT} value={block.data.notesHint || ''} oninput={(e) => updateData({ notesHint: e.currentTarget.value })}></textarea>
<span class="label whitespace-normal">Shown under the notes field. Health details are sensitive data under GDPR — keep asking for them in person unless you have a lawful basis to collect them online.</span>
</label>
<label class="fieldset">
<span class="fieldset-legend">Privacy notice</span>
<textarea class="textarea w-full" rows="2" placeholder={DEFAULT_PRIVACY_NOTICE} value={block.data.privacyNotice || ''} oninput={(e) => updateData({ privacyNotice: e.currentTarget.value })}></textarea>
<span class="label whitespace-normal">Shown above the Pay button, followed by a link to the privacy policy page chosen in Site design → Footer.</span>
</label>
<p class="text-sm text-base-content/60">Customer fields (name, email, phone, notes) and the payment flow are fixed and cannot be changed here.</p>
</div>

View file

@ -0,0 +1,42 @@
// Starting text for the privacy policy page (Site design → Footer → "Create
// a draft"). It describes what this software does with customer data; the
// studio fills in the [bracketed] parts and stays responsible for the
// content being accurate. Keep it in step with pocketbase/pb_hooks/privacy.
export const PRIVACY_PAGE_SLUG = 'privacy';
export const privacyTemplateHtml = `<h2>Privacy policy</h2>
<p><em>Last updated: [date]</em></p>
<h3>Who we are</h3>
<p>[Business name], [address], [company registration number if any] is responsible for your personal data. Contact: [email].</p>
<h3>What we collect and why</h3>
<p>When you book or buy something on this website we collect your <strong>name, email address, phone number</strong> (optional) and any <strong>notes</strong> you add. We use them to arrange your appointment, send your confirmation and contact you about your booking. The legal basis is the performance of our contract with you (Article 6(1)(b) GDPR). We keep a record of your order (what you booked, when and the amount paid) because accounting law requires it (Article 6(1)(c)).</p>
<p>Please do not write health information in the booking notes. We ask about anything relevant in person at your appointment.</p>
<h3>Payments</h3>
<p>Card payments are handled by Stripe. We never see or store your card details. Stripe processes your payment and email address under its own privacy policy: <a href="https://stripe.com/privacy">stripe.com/privacy</a>.</p>
<h3>Who else processes your data</h3>
<ul>
<li>[Hosting provider, country] — hosts this website and its database.</li>
<li>Stripe — payment processing.</li>
<li>[Email provider, e.g. Brevo] — sends booking confirmations.</li>
<li>[Google Calendar — if bookings are added to our calendar: which details]</li>
</ul>
<p>We do not sell your data or use it for advertising.</p>
<h3>How long we keep it</h3>
<ul>
<li>Details entered at checkout without completing payment: deleted after [30] days.</li>
<li>Orders: your contact details are removed [after N months / when you ask]; the order record without them is kept for [N] years as required for our accounts.</li>
<li>Server logs (including IP addresses): [a few] days.</li>
</ul>
<h3>Cookies</h3>
<p>This website uses only cookies that are needed for it to work: one that remembers your basket while you book (deleted after checkout), and the payment form's own cookies set by Stripe to prevent fraud. We do not use analytics or advertising cookies. The site's fonts are served from our own server.</p>
<h3>Your rights</h3>
<p>You can ask us for a copy of your data, to correct it, to delete it, to restrict or object to how we use it, or to receive it in a portable format. Email [email] and we will reply within one month. Where we must keep an order for accounting, we remove your contact details from it instead of deleting it.</p>
<p>You can also complain to a data protection authority — [e.g. the Office for Personal Data Protection (ÚOOÚ), www.uoou.cz].</p>`;