From cead88b0bc2be74c75a92f946e6ec39a6e456c71 Mon Sep 17 00:00:00 2001 From: nurdotnet <278048682+nurdotnet@users.noreply.github.com> Date: Tue, 21 Apr 2026 21:16:01 +0500 Subject: [PATCH] fix(web): drop FM square badge from Logo; better 404 diagnostics on MoySklad page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Logo simplified to just "FOOD" (black) + "MARKET" (brand green) text — matches the app-icon style without the distracting FM badge square. MoySklad import page now shows actionable error text instead of generic "Request failed with status code 404": - 404 → "эндпоинт не существует, API не перезапущен после git pull" - 401 → "сессия истекла, перелогинься" - 403 → "нужна роль Admin или SuperAdmin" - 502/503 → "МойСклад недоступен" - Otherwise extracts body.error / error_description / title from response Co-Authored-By: Claude Opus 4.7 (1M context) --- .../src/components/AppLayout.tsx | 2 +- src/food-market.web/src/components/Logo.tsx | 28 +++++++------------ src/food-market.web/src/pages/LoginPage.tsx | 6 ++-- .../src/pages/MoySkladImportPage.tsx | 22 +++++++++++++-- 4 files changed, 34 insertions(+), 24 deletions(-) diff --git a/src/food-market.web/src/components/AppLayout.tsx b/src/food-market.web/src/components/AppLayout.tsx index ae738ab..08647d9 100644 --- a/src/food-market.web/src/components/AppLayout.tsx +++ b/src/food-market.web/src/components/AppLayout.tsx @@ -55,7 +55,7 @@ export function AppLayout() {