From 5a80c021d305f36f0984a2dcb18757045690c8bd Mon Sep 17 00:00:00 2001 From: Codex Agent Date: Fri, 23 Oct 2026 00:34:39 +0300 Subject: [PATCH] feat(frontend): complete public search visual review --- .gitignore | 1 + backend/search/api.py | 2 + backend/search/review.html | 167 ++++++++++++++---- backend/search/static/favicon-32.png | Bin 0 -> 1468 bytes backend/search/static/favicon.svg | 4 + backend/test_search_api.py | 6 + docs/product/frontend-pixel-perfect-plan.md | 9 +- docs/product/visual-review/README.md | 28 ++- docs/product/visual-review/desktop-1024px.png | Bin 190888 -> 193556 bytes .../visual-review/desktop-1280x800.png | Bin 186864 -> 187179 bytes docs/product/visual-review/desktop-1440px.png | Bin 204257 -> 206425 bytes docs/product/visual-review/overlay-50.png | Bin 1147243 -> 1146327 bytes .../visual-review/pixel-difference.png | Bin 735332 -> 735162 bytes tools/frontend-visual-review/check.cjs | 72 ++++++++ .../frontend-visual-review/package-lock.json | 37 ++++ tools/frontend-visual-review/package.json | 10 ++ 16 files changed, 289 insertions(+), 47 deletions(-) create mode 100644 backend/search/static/favicon-32.png create mode 100644 backend/search/static/favicon.svg create mode 100644 tools/frontend-visual-review/check.cjs create mode 100644 tools/frontend-visual-review/package-lock.json create mode 100644 tools/frontend-visual-review/package.json diff --git a/.gitignore b/.gitignore index f6430cd..8a49b9c 100755 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ credentials.json __pycache__/ .venv/ *.py[cod] +tools/frontend-visual-review/node_modules/ # Local environment files .env diff --git a/backend/search/api.py b/backend/search/api.py index 3362554..46ee5a6 100644 --- a/backend/search/api.py +++ b/backend/search/api.py @@ -27,6 +27,8 @@ CODE = re.compile(r"^[0-9]+$") MAX_PAGE_SIZE = 100 MAX_RESULT_WINDOW = 10_000 STATIC_ASSETS = { + "/static/favicon.svg": ("favicon.svg", "image/svg+xml"), + "/static/favicon-32.png": ("favicon-32.png", "image/png"), "/static/fonts/noto-sans-cyrillic-ext.woff2": ("fonts/noto-sans-cyrillic-ext.woff2", "font/woff2"), "/static/fonts/noto-sans-cyrillic.woff2": ("fonts/noto-sans-cyrillic.woff2", "font/woff2"), "/static/fonts/noto-sans-latin.woff2": ("fonts/noto-sans-latin.woff2", "font/woff2"), diff --git a/backend/search/review.html b/backend/search/review.html index 341841d..51e8765 100644 --- a/backend/search/review.html +++ b/backend/search/review.html @@ -4,7 +4,8 @@ - + + Оценка поисковой выдачи · Акылдаш