Add the Privacy and Terms pages, data requests and click-to-load embeds

- Privacy Policy (with cookies and storage) and Terms of Service, from
  what the code actually stores and loads; shared LegalText layout
- Data requests: a 'privacy' feedback type sent from the Privacy page's
  form, email required, triaged in Admin -> Feedback
- Migration 039: Panel -> Site settings -> Privacy contact email (over
  site.json's privacyEmail), shown on the Privacy page
- The hero livestream, the hero featured video and schedule maps load
  only when pressed, so no third party sets anything before a click
- A small dismissible privacy notice instead of a consent banner

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-28 22:34:46 -05:00
parent bff082652a
commit ee61568911
17 changed files with 507 additions and 81 deletions

View file

@ -7,6 +7,9 @@
the server isn't in this workspace, and it's the thing that
decides what's storable.
DATA_REQUEST is kept out of the tiles: the Privacy page's form
sends it (FeedbackForm's fixedType), with an email required.
'general' isn't offered anywhere; it's the server's fallback for
a type it doesn't recognise, so old rows still read sensibly.
═══════════════════════════════════════════════════════════════ */
@ -44,7 +47,13 @@ export const FEEDBACK_TYPES = [
},
];
const BY_ID = new Map(FEEDBACK_TYPES.map((t) => [t.id, t.label]));
export const DATA_REQUEST = {
id: "privacy",
label: "Privacy or data request",
hint: "A question about your data, or a request to see or delete it",
};
const BY_ID = new Map([...FEEDBACK_TYPES, DATA_REQUEST].map((t) => [t.id, t.label]));
export function feedbackTypeLabel(id) {
return BY_ID.get(id) ?? (id === "general" ? "Unsorted" : id);