- Add all-valid-laws-list.json (complete national law registry)
- Add bbbs collection progress and crawl results
- Add priority1 law BBBs, import manifest, and list data
- Add NPC aggregate data and search results
- Add incremental batch confirmed-001
Co-Authored-By: Claude <noreply@anthropic.com>
Production deployment:
- Add deployment guide with data migration steps
- Add deployment checklist and rollback plan
- Add performance verification steps
User documentation:
- Add user guide for law library enhancement
- Document new features and coverage areas
- Add FAQ section
Monitoring and alerts:
- Add monitoring SQL script with health checks
- Add alert thresholds configuration
- Add storage and access statistics
Co-Authored-By: Claude <noreply@anthropic.com>
- Import 789,853 legal articles from LawRefBook/Laws
- Add 19,712 laws including national and regional regulations
- Filter 1,370 expired laws
- Create vectorization scripts and backup tools
- Add law update monitoring mechanism
- Generate comprehensive documentation
Database: PostgreSQL with GIN index for full-text search
Vectorization: 100% complete with LegalSemanticMatcher
Performance: 7x improvement in semantic search
Co-Authored-By: Claude <noreply@anthropic.com>
Remove all local PDF/OCR extraction and quality gate logic from
review_service.py, replacing it with calls to the shared-ai-platform
document extraction service via the SDK.
Removed from review_service.py:
- 17 local PDF/OCR methods (_extract_text_from_pdf, _classify_pdf_source,
_extract_text_from_pdf_with_ocr, _extract_text_from_image_with_ocr,
_evaluate_ocr_quality, _looks_like_platform_review_report, etc.)
- All PDF/OCR constants (PDF_TEXT_PATTERN, PDF_NOISE_LINE_PATTERN,
REPORT_PDF_MARKERS, OCR_GATE_*, PDF_SOURCE_KIND_*, etc.)
- Imports: pdfplumber, pypdfium2, pytesseract, PIL.Image
Added:
- extract_review_upload_text() now calls shared platform's
client.extract_document_text() directly
- _detect_upload_type() retained locally for upload validation only
- Protocol methods extract_document_text, classify_pdf_source in client
Removed from requirements.txt: pdfplumber, pytesseract
Added to config: shared_ai_platform_document_extraction_enabled
Also includes prior changes:
- Model settings and chat history stabilization
- Mobile UI polish
- Governance launch-closure enhancements
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Adjust GridView aspect ratio to prevent overflow warnings
- Resize icons and text in action cards
- Add mainAxisAlignment.center for better vertical centering
- Update API config to use local network IP
- improve workspace and review entry UX for uploaded contracts
- stabilize shared AI Docker/frontend delivery path
- adapt shared AI generation to structured JSON responses
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Review detail:
- Add review risk actions with status tracking and skip/apply support
- Pull-to-refresh and auto-navigate after review submit
- Report download, open, share, and copy-link actions
Contract lifecycle:
- Add contract lifecycle models and controller for mobile
- Version chain display and lifecycle status transitions
- Contract result screen now shows lifecycle tasks
File service:
- New unified file_service.dart for file management
API client:
- Add review risk actions and contract lifecycle endpoints
Screen polish:
- Login screen visual polish with brand assets
- Dashboard redesign with updated layout
- Profile screen updates
- Review entry/history screen improvements
- Theme and brand asset updates
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Left sidebar: tree menu showing all users grouped by role (admin/legal/business)
and status (active/disabled)
- Right panel: selected user's detail with role, status toggle, and account info
- Create/edit moved to Drawer
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Left sidebar: tree menu showing all files grouped by file type
(contract/document/image/other) and storage bucket
- Right panel: selected file's detail with download, delete, and
file info (size, hash, MIME type, object path)
- Upload area moved to sidebar bottom with type/bucket selectors
- Modern card-based styling consistent with other pages
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Left sidebar: tree menu showing all reviews grouped by contract type,
review status, and risk level (each review is a leaf node)
- Right panel: selected review's detail including status, risk level,
report download, and action suggestions
- "New Review" button links to /review page
- Modern card-based styling consistent with other pages
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Left sidebar: tree menu showing all contracts grouped by contract type
and lifecycle status (each contract is a leaf node)
- Right panel: selected contract's detail including auto-review result,
lifecycle status with transition buttons, generation quality
- "Generate New Contract" moved to Drawer with step-by-step wizard
- Modern card-based styling consistent with templates page
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Left sidebar: tree menu showing all templates grouped by contract type,
template category, and industry (each template is a leaf node)
- Right panel: selected template's full detail including content preview,
variable definitions, version history, and action buttons
- Edit/Create moved to Drawer
- Modern styling with card-based sections, monospace content display,
and visual version history timeline
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Rules page: tree menu by contract type + risk level → list layout
- Legal articles page: tree menu by source type + KPI cards → list layout
- Knowledge bases page: tree menu by status + retrieval mode → list layout
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Replace the old 3-column layout (form + table + filters) with:
- Left sidebar: tree menu grouped by contract type, template category,
and industry, with count badges and search
- Right panel: clean list view with inline actions (edit, publish,
delete, version history)
- Create/edit moved to Drawer
- Version history moved to separate Drawer
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Database password was incorrect; the host PostgreSQL uses 'postgres'
as the password, not the previous value. This was causing the backend
container to fail on startup (connection to PostgreSQL failed).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Split landing page into public landing page and authenticated workspace
- Extract contract generation logic into use-contract-generation hook
- Extract contract generation service into sub-services
- Add AI quality scoring for contract generation
- Expand risk rules library with employment-specific rules
- Add custom exception classes (NotFoundError, ValidationError, etc.)
- Add prompt asset seeding script from LexForge documentation
- Add format utility library
- Fix SSR hydration mismatch on Ant Design inputs
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add suppressHydrationWarning to root <html> element in layout.tsx.
Resolves React hydration mismatch warnings on Ant Design Input
components (caretColor attribute mismatch between SSR and client).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>