Let Cards players delete their account and read a privacy notice

Add a Compte section with a privacy notice and a confirmed deletion that
anonymises the player row, erases their possessions and cancels open trades.
The public contact comes from CARDS_PRIVACY_CONTACT, which production now
requires before enabling the game. The admin E2E no longer relies on a pull
from the previous test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-05 18:05:41 +01:00
parent 155187d01f
commit e60fbd4e9b
16 changed files with 319 additions and 10 deletions

View file

@ -0,0 +1,13 @@
// Rôle : présente la notice de confidentialité de Sokko TCG et le contact configuré sur le serveur.
const SECTIONS = ["collected", "purpose", "visibility", "retention", "rights"];
export function PrivacyNotice({ content, contact }) {
return <div className="nebula-privacy-notice">
<p>{content.intro}</p>
{SECTIONS.map((section) => <section key={section}>
<h4>{content[`${section}Title`]}</h4>
<p>{content[section]}</p>
</section>)}
<p className="nebula-privacy-contact"><strong>{content.contactLabel}</strong> {contact ? <a href={`mailto:${contact}`}>{contact}</a> : content.contactMissing}</p>
</div>;
}