Name the Cards data controller and retire long inactive accounts
Publish CARDS_PRIVACY_CONTROLLER in the privacy notice, required in production like the contact. A daily maintenance anonymises non-admin accounts after 24 months without login and purges expired sessions and old idempotency keys. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
09a92de2c5
commit
f7eb225eb8
14 changed files with 131 additions and 29 deletions
|
|
@ -3,7 +3,7 @@ import { useState } from "react";
|
|||
import { ConfirmModal } from "../../components/ToolboxModals.jsx";
|
||||
import { PrivacyNotice } from "./PrivacyNotice.jsx";
|
||||
|
||||
export function AccountPanel({ state, busy, content, privacy, privacyContact, onDelete }) {
|
||||
export function AccountPanel({ state, busy, content, privacy, privacyContact, privacyController, onDelete }) {
|
||||
const [confirming, setConfirming] = useState(false);
|
||||
const cards = state.collection.reduce((total, entry) => total + entry.quantity, 0);
|
||||
return <div className="nebula-account">
|
||||
|
|
@ -18,7 +18,7 @@ export function AccountPanel({ state, busy, content, privacy, privacyContact, on
|
|||
</section>
|
||||
<section className="nds-panel" aria-labelledby="nebula-account-privacy-title">
|
||||
<h3 id="nebula-account-privacy-title">{privacy.title}</h3>
|
||||
<PrivacyNotice content={privacy} contact={privacyContact} />
|
||||
<PrivacyNotice content={privacy} contact={privacyContact} controller={privacyController} />
|
||||
</section>
|
||||
<section className="nds-panel nebula-account-delete" aria-labelledby="nebula-account-delete-title">
|
||||
<h3 id="nebula-account-delete-title">{content.deleteTitle}</h3>
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ export function CardsPage({ siteContent, cardsConfig, playerSection = "", adminM
|
|||
{accountDeleted && <p className="nds-inline-notice" data-variant="success" role="status">{content.account.deleted}</p>}
|
||||
<details className="nebula-privacy-details">
|
||||
<summary>{content.privacy.title}</summary>
|
||||
<PrivacyNotice content={content.privacy} contact={cardsConfig.privacyContact} />
|
||||
<PrivacyNotice content={content.privacy} contact={cardsConfig.privacyContact} controller={cardsConfig.privacyController} />
|
||||
</details>
|
||||
</div>
|
||||
</section>;
|
||||
|
|
@ -252,7 +252,7 @@ export function CardsPage({ siteContent, cardsConfig, playerSection = "", adminM
|
|||
{section === "shop" && <ShopPanel {...panelProps} content={content.shop} onOpenPacks={openPacks} />}
|
||||
{section === "transfers" && <TransfersPanel {...panelProps} content={content.transfers} draft={transferDraft} onDraftUsed={clearTransferDraft} />}
|
||||
{section === "history" && <HistoryPanel catalog={catalog} state={state} content={content.history} />}
|
||||
{section === "account" && <AccountPanel state={state} busy={busy || offline} content={content.account} privacy={content.privacy} privacyContact={cardsConfig.privacyContact} onDelete={deleteAccount} />}
|
||||
{section === "account" && <AccountPanel state={state} busy={busy || offline} content={content.account} privacy={content.privacy} privacyContact={cardsConfig.privacyContact} privacyController={cardsConfig.privacyController} onDelete={deleteAccount} />}
|
||||
</CardsDashboardLayout>
|
||||
</div>}
|
||||
</div>;
|
||||
|
|
|
|||
|
|
@ -1,13 +1,14 @@
|
|||
// 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 }) {
|
||||
export function PrivacyNotice({ content, contact, controller }) {
|
||||
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.controllerLabel}</strong> {controller || content.controllerMissing}</p>
|
||||
<p className="nebula-privacy-contact"><strong>{content.contactLabel}</strong> {contact ? <a href={`mailto:${contact}`}>{contact}</a> : content.contactMissing}</p>
|
||||
</div>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue