Feature #62
closedEpic #20: Client design adaptation
Match the Foods header and display switch to Figma
0%
Description
Imported from GitHub issue 301.
Source milestone: Milestone 3.
Source labels: enhancement, ready-for-agent.
Original state: closed.
What to build¶
Type: AFK
Match the Foods header to the approved Figma layout.
The app currently shows Spisak namirnica with a profile button and a separate fixed display-switch row.
Figma shows Namirnice with the display switch beside the title and a result summary below the title.
Use the Nalog / Namirnice frame (75:4395) and Header row (75:4397):
https://www.figma.com/design/yisgB7iNKYtjNZdogARGIN?node-id=75-4397
Use only Design and Design tokens as product sources.
Exclude the reference-app page.
Change the Serbian Foods page title to Namirnice.
Keep Foods as the English title.
Place Pločice / Lista or Tiles / List beside the title.
Place the result summary below the title.
Remove the separate display-switch row and the Foods header profile button.
Keep profile access through the existing Home avatar.
Retain the combined header and switch during scrolling.
This preserves existing switch availability; the static Figma layout does not define scrolling behaviour.
At narrow widths or enlarged text sizes, move the switch below the title without overlap.
Related work: GitHub 264 and GitHub 270.
This issue revises the Foods-specific title and profile placement from GitHub 264.
Keep profile access on Home only.
Remove profile actions from Meal Plans, Foods, Recipes and Guides.
Use the Figma pale circle with the current account initial and the original anonymous icon as its fallback.
These changes follow the approved scope updates in this chat.
Acceptance criteria¶
- Show Namirnice as the Serbian Foods screen title and Foods as the English title.
- Keep the existing Namirnice / Foods bottom-tab labels.
- Render one title without duplicate navigator or content headings.
- Place the display switch beside the title at normal widths and text sizes.
- Remove the separate fixed switch row.
- Place the live unique-food result total below the title.
- Reuse the existing introduction-state source if the header summary includes an introduced-food count.
- Do not copy the design's fixed counts or display unknown introduction counts as zero.
- Preserve existing progress-card behaviour without adding another standalone result-count row.
- Keep search and filters below the combined header.
- Remove profile access from Meal Plans, Foods, Recipes and Guides; retain it on Home only.
- Keep the Figma Home avatar accessible for guests, free users and Premium users, with account initials and an anonymous fallback.
- Verify Home avatar navigation to Profile and normal return navigation.
- Keep profile, settings and subscription routes accessible.
- Keep the combined header and switch available during scrolling.
- Move the switch below the title when available width cannot fit both controls.
- Support Serbian Latin, English, small widths and enlarged text without clipping or overlap.
- Keep touch targets at least 44 by 44 logical units.
- Preserve selected-state announcements and accessible switch labels.
- Preserve applied search, filters, loaded extents and introduction state when changing modes.
- Preserve existing scroll-anchor restoration, detail return and tab-entry reset behaviour.
- Do not trigger a catalogue request merely because the user changes display mode.
- Preserve loading, empty, error and access states.
- Reuse shared header components, typography and semantic tokens.
- Compare the requested header with Figma on the live Android device.
- Verify both modes before and after scrolling in both languages.
- Record native evidence and any iOS verification limits.
- Update the header documentation to explain the Foods-specific title and Home profile entry.
Blocked by¶
None. The existing shared header and Foods display control supply the integration points.
Implementation verification — 4 November 2026¶
All 28 acceptance criteria now have supporting evidence.
Commit d03545a contains the implementation.
Pull request: https://github.com/NoubisServices/babys-first-menu/pull/302.
The implementation has no merge or deployment yet.
The remaining ADB checks now pass:
- English fits at approximately 320 logical units and text scale 1.5 without title, summary or switch overlap.
- Serbian and English have native List-mode captures before scrolling.
- TalkBack's Display speech output confirms selected. Tiles. Tab and selected. List. Tab.
- The unselected List option announces its label without the selected state.
The TalkBack check uses keyboard focus and activation on the physical phone.
Its speech display supplies the generated announcement text.
The check does not assess acoustic pronunciation or volume.
App screen capture protection remains active.
The PNG records show TalkBack's speech display over the protected black app capture.
Thirteen native XML captures and a bounds summary record layout and mode selection.
The original phone settings are restored:
physical density 450, text scale 1.0, Serbian app language, TalkBack disabled and speech display disabled.
The phone returns to Home.
No account, progress, introduction or subscription changes occur.
The five-tab ADB check confirms Home-only profile access.
ADB confirms Profile navigation and Settings return navigation.
Automated avatar tests cover account changes, missing names, loading and signed-out states.
The live account has Premium access.
Native guest/free checks, iOS rendering and full-screen reader navigation remain unverified.
Exact app screenshot comparison remains unavailable because capture protection stays active.
All 723 client Vitest tests pass across 91 files.
TypeScript, ESLint and git diff checks pass.
The full test command still fails two unchanged Node release checks because their Windows paths contain duplicated drive prefixes.
The separate Vitest command passes.
Verification documentation: docs/evidence/issue-301/README.md.
Additional evidence includes the narrow English captures, both List-top captures, TalkBack speech PNGs and restored-device-settings.json.
No data to display