- _rcLastContext: stores active deadline when Elena mentions it
- _DL_ACTIONS: step-by-step actions per deadline type
(payment / notification / renewal / termination / penalty / other)
- _buildDlAnswer(): renders numbered steps + legal warning + CTA buttons
- retChatSend(): detects action questions, answers in-chat (no redirect)
- API path: real Elena response with deadline context injected
- Fallback: template redirect only when no context + no API
- initReturnChat(): updated urgentDL message prompts follow-up question
- _rcAddBubble: supports raw HTML (isRawHtml param)
- _rcEscape: safe text rendering for plain messages
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- CT_DATA: replaced work/done with 5-state model, added id field
- STATUS_MAP: new labels with emojis per status
- Filters: Все / Активные / В споре / Завершённые / Срочные
- KPI: counts calculated from real statuses (not hardcoded)
- _getActiveCaseIds() / _getHotDeadlines() — helpers for Elena
- initReturnChat: urgentDL filtered to active/dispute cases only
- window._CT_DATA exported for cross-module access
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- API_BASE + _elenaApi() with Haiku/Sonnet fallback to templates
- startScan() calls /api/deadlines in parallel with animation
- signed_date question when contract date unknown (_askSignedDate)
- _setSignedDate() recalculates live deadlines, shows hot ones
- Council offer when complexity_score >= 3
- _runCouncil() → parallel 5 agents (Sonnet) + Opus synthesis
- _showCouncilResult() with agent cards + verdict
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Sidebar: sections (Обзор/Инструменты), icons, badge on Мои дела, Новый запрос button, user profile
- Main header: sticky bar with title + search + actions
- KPI cards: Всего / В работе / Срочных / Завершено (live from CT_DATA)
- Search filters table in real time
- Tab title updates in header on navigation
- Текущее дело hidden from sidebar until opened
- New greeting: lists all services, open-ended question
- 4 intent chips: Проверить / Составить / Оспорить / Доверенность
- Voice input via Web Speech API (ru-RU), mic pulse animation
- Keyword routing for free text (check vs create vs power)
- Creation flow: type selector -> Договор/Доверенность/Претензия/Другое
- Hidden mic if browser unsupported, permission error handling
- Done tasks: green bar + checkmark + strikethrough text
- Active tasks: highlighted row background
- Title renamed to 'Сопровождение договоров'
- Elena note explains the concept
- Ticker fully removed
- Replaced deadline list with MS Project-style Gantt chart
- 4 cases with color-coded bars (overdue/urgent/warn/ok)
- Today marker, date ticks, scrollable on mobile
- Legend with status colors
- Ticker on start screen hidden