Technical Debt — Mobile App Storefront Configuration Gaps

By Engineering Team•September 26, 2026•2 min read
Metadata Details
System Mobile App Storefront Configuration
Document ID TD-2026-MAC-005
Author Engineering Team
Status Open

This document tracks a known implementation gap in the mobile app storefront configuration flow as a first-class, ongoing debt item. SR-005 links here rather than restating gap detail, so the requirement text itself doesn’t quietly read as an already-met guarantee.


TD-01 — Publish validation accepts a banner image still in pending status

  • Status: Open
  • Severity: Medium — a tenant can publish a storefront configuration that shoppers open to find a banner with no image yet, rather than the readiness gate catching it first.
  • Affected component: shop-service — domain/mobile_app_config_validation.go, MobileAppConfig.ValidateForPublish
  • Evidence: The publish check rejects a banner only when its image status is failed; a banner whose image is still pending (the status set at record creation, before the async image-processing pipeline has confirmed success) passes validation and is treated the same as a banner with a confirmed image.
  • Impact: If an operator hits Publish shortly after starting a banner’s image upload — before the image-processing pipeline has finished and reported success — the configuration goes live with a banner that has no usable image yet, and shoppers on the storefront’s home hero see it in that state until the operator notices and republishes.
  • Remediation direction: Either (a) reject publish for any banner still in pending status, requiring the operator to wait for confirmation first, or (b) perform the one-shot presigned-URL/image-readiness check the admin UI documentation currently describes, but which does not exist server-side today — whichever direction is chosen, the check belongs in ValidateForPublish so it can’t be bypassed by calling the publish endpoint directly.
  • Related requirement: SR-005 FR-11

TD-02 — No reusable GraphQL fragments; section field lists are duplicated per query

  • Status: Open
  • Severity: Low — a maintainability gap, not a correctness or shopper-visible issue.
  • Affected component: ui-application (Flutter) — data/shop/shop_repository.dart’s GraphQLShopRepository.load and the other GraphQL query strings under features/dashboard/.
  • Evidence: shop-service’s getShopSections returns a 13-type ShopSection union specifically so the mobile client can request only the fragments it needs (see ADR-00006). In practice, ui-application has no .graphql codegen files and no fragment X on Y { ... } definitions anywhere — every query is a raw triple-quoted string using inline union-type conditions (... on CartSection { ... }, ... on TopProductSection { ... }), and each section’s product field list (id, title, price, imageUrl, discount, …) is repeated verbatim per inline fragment rather than factored into one shared named fragment.
  • Impact: Adding or changing a shared product field today means editing that field list in every inline fragment that includes it, across every query string that references it — a purely mechanical, easy-to-miss-a-spot task that named fragments would eliminate. No functional or shopper-facing impact today.
  • Remediation direction: Introduce shared named GraphQL fragments (e.g. a ProductFields fragment) in ui-application’s query strings and spread them into each section’s inline union-type condition, so a shared field only needs to change in one place.
  • Related requirement: SR-005 FR-16