Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/render/survey-overlay-layout.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,10 @@ describe('optional email row — issue #303', () => {
// "optional" and the follow-up-only purpose are the promise being made.
expect(SURVEY_EMAIL_LABEL.toLowerCase()).toContain('optional');
expect(SURVEY_EMAIL_LABEL.toLowerCase()).toMatch(/follow up|follow-up|reply/);
// ...and the retention promise (ADR 0013 amendment 2026-09-20: the address is
// deleted with the rest of the submission by the 90-day lifecycle rule).
expect(SURVEY_EMAIL_LABEL).toMatch(/90 days/);
// ...and the retention promise (ADR 0013 amendments 2026-09-20 and 2026-11-24:
// the address is deleted with the rest of the submission by the 365-day
// lifecycle rule on the playtrace bucket).
expect(SURVEY_EMAIL_LABEL).toMatch(/1 year/);
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/render/survey-overlay-layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const SURVEY_EMAIL_INPUT_Y = SURVEY_EMAIL_LABEL_Y + 14;
* {@link SURVEY_CONSENT_DISCLOSURE}: the purpose limitation is a privacy
* promise, so it changes only via this module. */
export const SURVEY_EMAIL_LABEL =
'Email (optional) — only used to reply about this report; deleted after 90 days';
'Email (optional) — only used to reply about this report; deleted after 1 year';

/** Email input rect — a single-line affordance. The DOM <input type="email">
* is positioned over this rect at runtime by UIScene, exactly the way the
Expand Down
2 changes: 1 addition & 1 deletion src/render/ui-scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4315,7 +4315,7 @@ export class UIScene extends Phaser.Scene {
// assistive tech cannot see at all — to a screen reader this input would
// otherwise be an unlabelled box asking for an email address. Reuse the
// same string, which already carries both the purpose limitation and the
// 90-day retention, so the accessible name cannot drift from the drawn
// 1-year retention, so the accessible name cannot drift from the drawn
// one. aria-label rather than aria-describedby: one attribute, no extra
// DOM node and no lifecycle to tear down.
el.setAttribute('aria-label', SURVEY_EMAIL_LABEL);
Expand Down
2 changes: 1 addition & 1 deletion tests/survey-overlay.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ test.describe('End-of-game survey overlay — v3 playtrace envelope', () => {
// rule as the consent disclosure) and drawn onto the canvas by UIScene, so
// it is asserted at its source of truth.
expect(SURVEY_EMAIL_LABEL).toBe(
'Email (optional) — only used to reply about this report; deleted after 90 days',
'Email (optional) — only used to reply about this report; deleted after 1 year',
);
// The upload row's label is picked off PLAYTRACE_INCLUDE_SNAPSHOT_DEFAULT:
// a box that ships ticked has to say plainly what is being sent, which is a
Expand Down
Loading