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>