feat(prices): Settings revocation toggle for price_fetching_consent #159
Labels
No labels
autopilot:pending-human
source:analyste
source:defenseur
source:human
source:medic
status:approved
status:blocked
status:in-progress
status:needs-clarification
status:needs-fix
status:ready
status:review
status:triage
type:bug
type:feature
type:infra
type:refactor
type:schema
type:security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: maximus/Simpl-Resultat#159
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Add a "Révoquer le consentement de récupération de prix" toggle in
SettingsPage.tsxPrivacy section that deletes theprice_fetching_consentkey for the active profile.Contract reference
docs/api-contract-prices.md§0 (UX cohérence privacy-first).Fichiers concernés
src/pages/SettingsPage.tsx(extend Privacy section)src/components/settings/PriceFetchConsentToggle.tsx(new component, ~60 lines)src/components/settings/PriceFetchConsentToggle.test.tsx(new, ~50 lines)Depends on
Scope
src/components/settings/PriceFetchConsentToggle.tsx:user_preferenceskeyprice_fetching_consentfor active profileSwitchorTogglecomponent if available — grepsrc/components/sharedfirst)t('settings.privacy.priceFetchConsent.confirmRevoke')thenDELETE FROM user_preferences WHERE key = 'price_fetching_consent' AND profile_id = ?{consented_at, version: 1}(same shape as #158)SettingsPage.tsx— locate the Privacy section (look for existingt('settings.privacy.*')keys, or create a new<section>if none exists)settings.privacy.priceFetchConsent.*Critères d'acceptation
Décisions prises ce soir
settings.privacy.priceFetchConsent.*Spec source
docs/api-contract-prices.mdmaximus referenced this issue2026-05-04 00:38:30 +00:00