zov-tech/miniapp
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
..
assets feat: AI contract review for clients (#/c/contract) 2026-05-16 09:35:29 +03:00
font-preview.html add font preview page with 14 cursive variants for slogan 2026-05-13 10:37:35 +03:00
index.html feat: AI contract review for clients (#/c/contract) 2026-05-16 09:35:29 +03:00
preview-all-picts.html miniapp: 25 SVG pictograms for 7 remaining categories (style D · 3D) 2026-05-11 21:27:40 +03:00
preview-fridge-styles.html miniapp: add fridge style preview — 4 styles × 4 variants for comparison 2026-05-10 23:26:30 +03:00
preview-fridges.html miniapp: redraw fridge pictograms in style D (3D perspective with shadow) 2026-05-10 23:33:07 +03:00
preview-report.html user feedback batch: model count, specs, manual link, dimensions, export 2026-05-11 17:11:30 +03:00