Project

General

Profile

Actions

Feature #28

closed
VJ

Epic #20: Client design adaptation

Implement Foods Tiles/List switching with lock badges in both modes

Feature #28: Implement Foods Tiles/List switching with lock badges in both modes

Added by Vince Jurić 25 days ago.

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

0%

Estimated time:

Description

Imported from GitHub issue 270.
Source milestone: Redesign (milestone 3).
Source labels: enhancement, ready-for-agent.
Original state: closed.

What to build

Type: AFK

Deliver a complete Foods display-mode switch with both catalogue presentations. Tiles uses category sections containing horizontal tile strips, not a conventional grid. List uses category sections containing vertical compact rows. Update domain documentation to record display-mode and grouped-content behaviour.

Sources: Tiles, List.

Use only the Design and Design tokens pages of https://www.figma.com/design/yisgB7iNKYtjNZdogARGIN/Bebin-prvi-meni. Exclude the reference-app page from inspection, implementation decisions and verification. Reuse existing theme, typography, pressables, access gating and localisation. Read the required Expo 57 documentation before coding. Coordinate with the related filtering issue without duplicating its toolbar, draft state or count work.

Related filtering work: GitHub 266. Coordinate changes to shared catalogue surfaces; this is not a hard prerequisite.

Acceptance criteria

  • Foods defaults to Tiles and exposes an accessible Pločice/Lista segmented control. Switching is immediate and reuses loaded data without a request solely for changing presentation.
  • Tiles show image/fallback, title, optional age badge and introduced-food indicator. List rows show thumbnail/fallback, title, category/age information and introduced-food control.
  • BOTH modes show a lock badge when the food is locked for the current viewer. The lock badge and introduced-food indicator can appear together without overlap; existing access gating and progress permissions remain authoritative.
  • Progress controls do not trigger detail navigation. Content selection follows the existing detail/authentication/upgrade flow.
  • Mode changes preserve search, applied filters, loaded results and progress. Filter changes retain the chosen mode. Detail/access-flow return preserves mode; section re-entry and active-tab reselection restore the default, without cross-session persistence.
  • Both modes expose the same matching foods, category order and content order. Hide empty groups, include uncategorised foods in a localized fallback group, and show multi-category foods in every applicable group while counting unique foods in overall totals.
  • Incremental loading keeps all matching foods reachable in both layouts, without dropped/duplicated records within a group or unreachable horizontal overflow. Choose and document a pagination approach compatible with category grouping.
  • Preserve a meaningful category/item anchor across mode changes where practical; do not equate pixel offsets between different layouts.
  • Tests cover switching, state/reset rules, grouping, multi-category/uncategorised foods, pagination and lock/progress combinations.
  • Fixed copy is complete in Serbian Latin and English; admin-managed labels use existing localisation fallback rules.
  • Missing images and optional metadata have appropriate existing fallbacks; long titles and larger text remain readable and controls have accessible names/states.
  • Focused behaviour tests pass, along with client tests, lint and typecheck.
  • Verify on the ADB-connected Android device and attach comparison evidence against permitted Figma screens, including locked/unlocked content, both locales, empty results, pagination and navigation return.

Blocked by

None - can start immediately.

Acceptance verification

All 13 criteria reviewed against PR GitHub 276 at 7e95808a1858b77d285e486b0fb20e7c3162f195 on 22 October 2026. The PR remains open; checked criteria record verified implementation, not merge or release.

  • Fresh validation: 489 client tests across 66 files passed, along with lint, typecheck and diff checks.
  • Acceptance report and Figma comparisons include the live ADB Android evidence recorded on 21 October 2026.
  • The real device session had Premium access. Locked-state combinations were verified with labelled native Free-viewer fixtures rendering the production cards; a real Free/guest session and completed authentication/purchase are outside that evidence.
  • Category/item anchor restoration is best effort for unmeasured destination rows, as permitted by the criterion.

No data to display

Actions

Also available in: PDF Atom