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: isAccepted reads only consent.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 isAccepted compare 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 _ContactCard to tel:/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’s ISettingRepository, views/support/support_view.dart
  • Evidence: views/support/support_view.dart gates its Submit Ticket / Grievance Officer cards behind a module-level const bool kEnableSupportTicketFlow = false, with an explicit code comment stating these “aren’t backed by a real API yet” and that ISettingRepository.submitComplaint is 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-engine is purged either — this includes user-preference-service’s wishlist and 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-engine for account deletion/export, given its identity ownership; a support/ticketing integration for complaints) before flipping kEnableSupportTicketFlow or 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 in user-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 own CLAUDE.md states plainly that the transactions list “is always empty since no backend exposes order/payment history here” — loadPayment() assigns summary.transactions straight from user-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-service once 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’s AddressValidator.validatePincode, user-preference-service’s AddressBody.Validate
  • Evidence: validatePincode enforces a required, India-shaped 6-digit format (first digit 1–9) matching this form’s own default country of 'India'. user-preference-service’s own AddressBody.Validate requires only line1, city, firstName, lastName, and phoneNumber — 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 country field, 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’s firstName/lastName/phoneNumber/tag/street fields were reintroduced after AddressBody grew them; an address saved before that change resolves all of these to "" until the shopper re-saves it, per views/address/CLAUDE.md’s own note (mirrored on user-preference-service’s side).
  • Impact: Checkout’s address-selection flow depends on firstName/lastName/phoneNumber being 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
  • Status: Open
  • Severity: Low
  • Affected component: user-secure-engine/CLAUDE.md
  • Evidence: router.rs registers GET/PATCH /admin/api/v1/user/profile and GET/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 own CLAUDE.md API table.
  • Impact: A doc-only gap, but one that would mislead anyone reading that CLAUDE.md as 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