what-to-cook/openspec/changes/archive/2026-11-16-wtc-19-recipe-hint-when-shown/design.md
Peppa 8febcd2955
All checks were successful
peppa/lint lint: success за 0с
peppa/test test: success за 0с
peppa/build build: success за 0с
ci / checks (pull_request) Successful in 4s
deploy / deploy (pull_request) Successful in 13s
WTC-19: фраза про кнопку «Рецепт» видна только рядом с кнопкой
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 06:18:58 +05:00

5 lines
850 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## Решения
- Условие показа фразы — `hasRecipe(dishes, findRecipe)` в logic.js: в списке есть блюдо, для которого найден рецепт. То же условие, по которому рисуется кнопка «Рецепт», поэтому фраза и кнопка не расходятся.
- Абзац `#emptyRecipes` переименован в `#recipesHint` (он больше не про пустой экран); ключ текста `listRecipes` и сами тексты ru/kk/en не меняются.
- Требование WTC-14 «Пустой экран объясняет, откуда берутся рецепты» заменяется: новая задача от приёмки прямо просит убрать фразу с пустого экрана.