Technical Debt — Customer Settings Gaps
By Engineering Team•October 10, 2026•5 min read
| Metadata | Details |
|---|---|
| System | ui-application’s Settings feature, user-preference-service, user-secure-engine |
| Document ID | TD-2026-SET-001 |
| Author | Engineering Team |
| Status | Tracked |
TD-01 — No re-acceptance flow when a Terms or Privacy policy version changes
- Status: Open
- Severity: Medium
- Affected component:
views/terms/terms_controller.dart,views/privacy/privacy_controller.dart,user-secure-engine’s consent service - Evidence:
isAcceptedreads onlyconsent.value?.acceptTerms.accepted/acceptPrivacyPolicy.accepted— a boolean, not a version comparison — while the version shown in the policy body is always the tenant’s current version (TenantInfoService.info.value.termsVersion/privacyVersion). A shopper who accepted at an earlier version sees the button already disabled (“Agreement Accepted”) against the new version’s text, with no mechanism anywhere in the controller or the consent record comparing accepted-version to current-version. - Impact: The business cannot distinguish “accepted the current policy” from “accepted a now-superseded policy” for any shopper who accepted before the latest publish — a real gap for any policy update that needs demonstrable re-consent.
- Remediation direction: Have
isAcceptedcompare the consent record’s accepted version against the tenant’s current version, and re-enable the Accept button (with a clear “policy has been updated” indicator) whenever they differ. - Related requirement: SR-026 FR-04 – FR-05
TD-02 — Support contact details are static text, not actionable
- Status: Open
- Severity: Low
- Affected component:
views/support/support_view.dart’s_ContactCard - Evidence: The Email Us and Toll Free quick-contact cards render as plain text blocks; the feature has no
url_launcher(or equivalent) dependency anywhere in this module, so tapping a contact card does nothing. - Impact: A shopper intending to call or email support from this screen has to manually copy the displayed value into another app instead of a direct tap-to-contact action.
- Remediation direction: Add
url_launcher, wire each_ContactCardtotel:/mailto:accordingly. - Related requirement: SR-026 FR-12
TD-03 — Complaint-ticket submission, data export, and account-deletion requests are local no-op stubs
- Status: Open
- Severity: Medium
- Affected component:
data/setting/setting_repository.dart’sISettingRepository,views/support/support_view.dart - Evidence:
views/support/support_view.dartgates its Submit Ticket / Grievance Officer cards behind a module-levelconst bool kEnableSupportTicketFlow = false, with an explicit code comment stating these “aren’t backed by a real API yet” and thatISettingRepository.submitComplaintis a local no-op. Account deletion and data-export requests, reached from the landing screen’s own confirmation sheets, have no corresponding backend endpoint either — the deletion confirmation sheet’s own copy already promises it “permanently deletes their account, order history, wishlist, and saved addresses,” a promise nothing server-side currently keeps. - Impact: A shopper can submit a complaint, request data export, or request account deletion and see a success confirmation in the app, while nothing has actually happened on the business side — a materially misleading UX if left in this state for any of the three. Specifically for deletion: because no backend orchestration exists, none of the shopper’s personal data stored outside
user-secure-engineis purged either — this includesuser-preference-service’swishlistand recently-viewed-product history (recent_views, see Architecture-00023), which today has no retention or deletion policy of its own and no awareness that an account was ever asked to be closed. - Remediation direction: Build the backing endpoints (likely on
user-secure-enginefor account deletion/export, given its identity ownership; a support/ticketing integration for complaints) before flippingkEnableSupportTicketFlowor removing the confirmation-only framing from the deletion/export sheets. Account deletion specifically needs to fan out to every service holding that shopper’s personal data —user-preference-service(wishlist,recent_views),pii-service/pci-service(encrypted attributes), order/payment history — not just deactivate the identity record inuser-secure-engine. - Related requirement: SR-026 FR-12, FR-16
TD-04 — “Recent Transactions” on the Payment screen is always empty
- Status: Open
- Severity: Low
- Affected component:
views/payment/payment_controller.dart,views/payment/payment_view.dart - Evidence:
payment_controller.dart’s ownCLAUDE.mdstates plainly that the transactions list “is always empty since no backend exposes order/payment history here” —loadPayment()assignssummary.transactionsstraight fromuser-preference-service’s response, which never populates it. - Impact: The “Recent Transactions” section is permanently a dead, empty-state-only UI element — functionally inert, not a bug a shopper can trigger, but a visible promise the screen doesn’t keep.
- Remediation direction: Either source real payment/order history from
order-service/payment-serviceonce that history endpoint exists, or remove the section until it can be backed by real data. - Related requirement: SR-026 FR-10
TD-05 — Postal-code validation is India-only, client-side only, with no backend format check
- Status: Open
- Severity: Low
- Affected component:
views/address/address_validator.dart’sAddressValidator.validatePincode,user-preference-service’sAddressBody.Validate - Evidence:
validatePincodeenforces a required, India-shaped 6-digit format (first digit 1–9) matching this form’s own default country of'India'.user-preference-service’s ownAddressBody.Validaterequires onlyline1,city,firstName,lastName, andphoneNumber— pincode format is not checked there at all. - Impact: A non-Indian postal code is rejected by the client form today even though nothing server-side depends on the India-specific shape, and a request bypassing the client form could persist a pincode in any format with no server-side guard.
- Remediation direction: Either generalize client-side validation per the address’s own
countryfield, or add an explicit server-side format check scoped to India if that’s the only supported market today — current state is neither fully enforced nor fully flexible. - Related requirement: SR-026 NFR-05
TD-06 — Pre-existing addresses resolve firstName/lastName/phoneNumber to empty until re-saved
- Status: Open
- Severity: Low
- Affected component:
user-preference-service’s address storage,views/address/CLAUDE.md - Evidence:
AddressModel’sfirstName/lastName/phoneNumber/tag/streetfields were reintroduced afterAddressBodygrew them; an address saved before that change resolves all of these to""until the shopper re-saves it, perviews/address/CLAUDE.md’s own note (mirrored onuser-preference-service’s side). - Impact: Checkout’s address-selection flow depends on
firstName/lastName/phoneNumberbeing populated for the resolved shipping/billing address it displays — a shopper with an un-migrated, pre-existing address sees blank name/phone fields at checkout until they happen to re-save that address from this screen. - Remediation direction: A one-time backfill migration populating these fields from whatever source the pre-existing addresses originally carried that data (if any), or a clear in-app prompt asking the shopper to review/re-save an address missing them.
- Related requirement: SR-026 FR-09
TD-07 — user-secure-engine/CLAUDE.md’s own API table omits the profile and consent routes this feature depends on
- Status: Open
- Severity: Low
- Affected component:
user-secure-engine/CLAUDE.md - Evidence:
router.rsregistersGET/PATCH /admin/api/v1/user/profileandGET/PATCH /admin/api/v1/user/consent, both load-bearing for this feature’s FR-01, FR-04, and FR-05 — neither route appears in the module’s ownCLAUDE.mdAPI table. - Impact: A doc-only gap, but one that would mislead anyone reading that
CLAUDE.mdas the authoritative route list for this service, since two routes an entire feature area depends on are missing from it. - Remediation direction: Add both routes to
user-secure-engine/CLAUDE.md’s API table in the same change that next touches that file. - Related requirement: SR-026 FR-01, FR-04, FR-05
Related Documents
- BRD-025 — Customer Settings: Identity, Preferences, and Account Management
- SR-026 — Customer Settings: System Requirements
- Architecture — Customer Settings: Component Topology and Data Flow
- Technical Debt — Recently Viewed Products Gaps —
recent_viewsis one of the personal-data stores TD-03’s future account-deletion fan-out would need to reach - Microservices: user-preference-service, user-secure-engine