zov-tech/miniapp/assets
wasrusgen 22dbbed112 feat: AI contract review for clients (#/c/contract)
Backend:
- main.py: _handle_contract_review() — GigaChat analyzes
  contract text, returns structured JSON (summary, payment,
  deadlines, risks, recommendations, missing_clauses)
  with optional targeted question support
- /api/contract_review route (async, thread-pool)
- CONTRACT_SYSTEM prompt: plain-language analysis in Russian,
  risk levels high/medium/low, missing-clause detection

Frontend:
- proposals.js: Proposals.mountContractReview(container)
  · Textarea for contract text with char counter (16k limit)
  · 5 preset quick-questions as tappable chips
  · Free-form question input
  · Thinking animation while AI processes
  · Renders structured analysis: Summary, Payment,
    Deadlines, Risks (color-coded), Recommendations,
    Missing clauses, disclaimer footer
  · Falls back to raw text if AI returns unstructured reply
- app.js: #/c/contract route in init() and routeByHash();
  «Калькулятор бюджета» replaced by «Проверить договор»
  in client home menu (active, not «скоро»)
- podbor.css: ~180 lines of contract review styles
  (cr-* classes, risk colors, thinking animation)
- index.html: cache version → 20260516f

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-16 09:35:29 +03:00
..
app.js feat: AI contract review for clients (#/c/contract) 2026-05-16 09:35:29 +03:00
assembly.js Phase 4 stage 1: Сборки — модель + создание + список 2026-05-14 09:53:40 +03:00
clients.js feat: proposal cycle — client brief + manager editor + voting 2026-05-16 09:28:36 +03:00
icons.js feat(miniapp): «Подбор техники» screen — 7-step picker (categories/niches/budget/infra/scenario/brands/summary) wired to /api/podbor 2026-05-09 13:34:46 +03:00
measurements.js feat: адрес замера — 6 раздельных полей (город/улица/дом/кв/подъезд/этаж) 2026-05-15 22:13:20 +03:00
podbor.config.js simplify: remove 'features' step from all 8 categories 2026-05-11 23:37:41 +03:00
podbor.css feat: AI contract review for clients (#/c/contract) 2026-05-16 09:35:29 +03:00
podbor.js measurements: photo upload + measurement detail page + PDF/print 2026-05-12 18:11:29 +03:00
podbor.picts.js measurements: kitchen layout wizard + 5 layout pictograms + profile integration 2026-05-12 17:41:01 +03:00
proposals.js feat: AI contract review for clients (#/c/contract) 2026-05-16 09:35:29 +03:00
request.js client card D1: хронология + файлы + быстрые действия 2026-05-13 18:39:25 +03:00
styles.css splash: убрать вращающееся кольцо, оставить только опилки + breathing 2026-05-13 22:58:09 +03:00
wasrusgen-logo.svg splash: точный viewBox + цвет blue-grey #2C3E50 2026-05-13 22:15:01 +03:00
zamer-checklist.md feat: SVG-пиктограммы схем замера в чек-листе 2026-05-15 23:21:33 +03:00
zamer-picts.js feat: SVG-пиктограммы схем замера в чек-листе 2026-05-15 23:21:33 +03:00
zov-logo.svg bot: role buttons → MiniApp directly + branded splash loader 2026-05-12 18:54:09 +03:00