Project

General

Profile

Actions

Feature #60

closed
VJ

Epic #20: Client design adaptation

Adapt Home premium promotion for guests and free users

Feature #60: Adapt Home premium promotion for guests and free users

Added by Vince Jurić 11 days ago.

Status:
Done
Priority:
Normal
Assignee:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Imported from GitHub issue 292.
Source milestone: Milestone 3.
Source labels: enhancement, ready-for-agent.
Original state: closed.

What to build

Deliver a styled Home premium promotion for guests and signed-in free users using existing upgrade and authentication flows. Hide the promotion for any active premium entitlement, including manual grants. This slice includes presentation, localisation, access-state tests and Android verification.

Design sources and scope

Use only the Design and Design tokens pages in https://www.figma.com/design/yisgB7iNKYtjNZdogARGIN/Bebin-prvi-meni. Home references: Guest 69:719, signed-in free 75:4348, Premium 75:6369. Exclude the reference-app page entirely.

Adapt presentation while preserving the current domain and ADRs: Home remains Početna / Home; no baby-age collection, personalisation, daily dashboard, content feeds, global selected plan or per-meal completion. Retain the shared header and bottom tabs without duplicating the design's content header. Reuse existing tokens, typography and controls. Reference layout: 390-unit width, 20-unit gutters and 24-unit section spacing; adapt to device width and text scaling.

Acceptance criteria

  • Guests and signed-in free users see a Figma-styled promotion with action Otključaj premium / Unlock premium and existing tokens/controls.
  • Guests enter the existing authentication flow; cancellation returns to Home, successful sign-in follows existing entitlement/upgrade rules, and no purchase is initiated automatically.
  • Free users enter the existing Home-origin premium upgrade flow; existing purchase/restore/cancellation return rules remain intact.
  • Active RevenueCat or manual-grant premium access hides the promotion; entitlement changes update visibility without restarting the app.
  • Restore purchase stays in the existing premium/account destinations rather than becoming a Home action.
  • Serbian Latin/English, narrow widths and enlarged text remain readable and accessible.
  • Meaningful tests cover guest/free/Premium visibility and upgrade navigation; client tests, type checking and lint pass.
  • Android presentation and Home-origin flow verification is recorded for all three access states.

Blocked by

None - can start immediately.

Execution type

AFK — ready for an agent.

Implementation and verification

Implemented locally; changes remain uncommitted. Verification report: docs/home-premium-acceptance-292.md; native evidence: docs/evidence/home-292/.

Client checks passed: 79 Vitest files / 655 tests, release/changelog guards, type checking and lint. Android evidence covers 24 presentation cases, 16 deterministic native upgrade cases, both-language guest sign-in UI cancellation and live visibility changes, actual Premium Home/upgrade skipping, and TalkBack generated action speech.

Guest/free/Premium presentations and purchase/restore outcomes use explicitly labelled production-component fixtures; real provider sign-in, store transactions and backend manual-grant mutations were not performed. Successful authentication/terms and real provider access resolution are covered by automated component/lifecycle tests. Device settings, capture protection and Home destination were restored; the temporary route was removed.

No data to display

Actions

Also available in: PDF Atom