Commit Graph

100 Commits

Author SHA1 Message Date
yuqei a8db7c4bef fix: stabilize legal chat streaming 2026-06-22 11:13:07 +08:00
yuqei 69ce717ec6 feat: support runtime shared AI settings 2026-06-22 10:13:04 +08:00
yuqei f2b3660101 fix: restore production workspace text 2026-06-21 18:44:52 +08:00
yuqei ade5053a14 fix: resolve frontend deploy type errors 2026-06-21 18:10:28 +08:00
yuqei 76b9198b64 fix: stabilize file downloads and file workspace 2026-06-21 17:56:16 +08:00
yuqei a89f4c7050 Refactor contract platform workflows and UI 2026-06-21 17:51:34 +08:00
cyuqei 93089e2a89 feat: add backend approval sla tracking 2026-06-19 18:07:16 +08:00
cyuqei 52a676ff19 feat: enhance ledger archive and approval sla 2026-06-19 13:31:49 +08:00
cyuqei ae76b9a296 feat: add lifecycle reminder workbench 2026-06-19 11:23:32 +08:00
yuqei b14be976d2 feat: improve contract ledger tracking 2026-06-19 09:26:10 +08:00
cyuqei 5bb330b610 feat: enhance contract workflow and approval assignees 2026-06-19 01:57:26 +08:00
cyuqei 175c0a69af feat: align deployment and approval workflow 2026-06-18 03:37:03 +08:00
yuqei 4f22e2965c feat: enhance contract review with semantic search and legal citations
Phase15 optimization:
- Add semantic search fallback in _attach_legal_article_refs()
- Expand LEGAL_ARTICLE_REFERENCE_RULES from 12 to 30+ scenarios
- Add LEGAL_SOURCE_ALIAS_MAP for 35+ legal sources

Contract review enhancement:
- Cover labor, corporate, investment, procurement, construction
- Add IP, data privacy, franchise, real estate scenarios
- Enable vector semantic search as final fallback

Legal citation visualization:
- Create LegalArticlePreview component with hover tooltip
- Support compact/full display modes
- Add copy and detail link features

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-16 22:09:27 +08:00
yuqei 19ed42c880 feat: add model settings and stabilize chat history 2026-06-10 18:57:22 +08:00
yuqei 6c37d72179 feat: complete governance launch-closure enhancements
- Governance release summaries with launch readiness indicators
- Workbench reviewer completion condition constraints
- Asset detail blocker status display
- Imports page post-import action guidance
- Backend test coverage for governance services
- Production deployment handoff documentation

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-07 10:00:55 +08:00
yuqei 739d2f51f9 feat: support image uploads in direct review flow
- accept png/jpg/jpeg in the uploaded-contract review path
- add local image OCR extraction and quality gating
- keep existing PDF/DOCX/TXT review behavior intact

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-05 19:42:15 +08:00
yuqei 1eae603c0f feat: refine core pc review and generation flows
- 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>
2026-06-05 15:26:31 +08:00
yuqei 0cc597466c feat: enrich contract content assets and review UX
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-03 20:59:41 +08:00
yuqei 36f4474ad6 feat: redesign users page with left-tree right-detail layout
- 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>
2026-06-01 23:35:53 +08:00
yuqei 38885f3a3f feat: redesign files page with left-tree right-detail layout
- 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>
2026-06-01 23:12:45 +08:00
yuqei 8eb09db8f0 feat: redesign reviews page with left-tree right-detail layout
- 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>
2026-06-01 21:58:49 +08:00
yuqei 7dc0f77c2b feat: redesign contracts page with left-tree right-detail layout
- 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>
2026-06-01 21:23:53 +08:00
yuqei c9bff4c15f feat: redesign templates page with left-tree right-detail layout
- 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>
2026-06-01 19:21:15 +08:00
yuqei f8dd1e4524 fix: resolve TypeScript errors in redesigned pages
- knowledge-bases: add missing fields to KnowledgeBaseFormValues type
- knowledge-bases: fix null safety for tags array
- knowledge-bases/legal-articles: fix renderStatusTag param types
- legal-articles: add non-null assertion for source_id

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 18:24:48 +08:00
yuqei fdbce39019 feat: redesign rules, legal-articles, knowledge-bases pages with tree sidebar
- 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>
2026-06-01 17:23:25 +08:00
yuqei 7f1276b755 feat: redesign templates page with tree sidebar + list layout
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>
2026-06-01 15:22:35 +08:00
yuqei 0ca699d901 feat: redesign documents/new page with tree sidebar + list layout 2026-06-01 12:21:16 +08:00
yuqei f7c6d10928 fix: add missing get_review_report and get_review_result methods; redesign prompt-assets page UI
- Fix 500 error on /reviews/{id}/report endpoint caused by missing get_review_report
  and get_review_result methods in ReviewService
- Fix indentation bug in build_report_pdf and _build_report_pdf_fallback methods
- Redesign prompt-assets page: replace 3-column layout with KPI cards + full-width
  table + detail drawer + create/edit modal

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 02:22:45 +08:00
yuqei b229699c39 更新合同API、提示词资产服务及前端页面 2026-05-31 22:23:15 +08:00
yuqei b76a2baad2 feat: comprehensive platform improvements (P0-P2 + landing split)
- 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>
2026-05-30 17:39:27 +08:00
yuqei 49bdce0bad fix(qa): ISSUE-001 — fix Ant Design hydration mismatch on form inputs
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>
2026-05-30 07:28:28 +08:00
yuqei ea722e58eb Enhance contract generation governance 2026-05-28 11:01:57 +08:00
yuqei 4585d117fb Add web QA evidence and profile form hints 2026-05-27 17:37:47 +08:00
yuqei 018106e20e Stabilize frontend contract workflows 2026-05-27 17:28:33 +08:00
yuqei b5f4034328 Refine web governance and chat surfaces 2026-05-27 11:24:20 +08:00
yuqei d0ceccf10d feat: close pc and android product smoke flows 2026-05-26 08:37:28 +08:00
yuqei 53e5eb3bba feat: add business auxiliary prompts 2026-05-24 16:13:38 +08:00
yuqei 8b81011eb6 feat: seed remaining contract templates 2026-05-24 12:58:13 +08:00
yuqei ee9ba1d1c6 feat: add investment agreement defaults 2026-05-24 12:15:13 +08:00
yuqei 2276a7388b feat: add shareholder resolution document defaults 2026-05-24 10:45:16 +08:00
yuqei a530d55fa9 feat: add valuation adjustment document defaults 2026-05-24 10:25:22 +08:00
yuqei 1bc416da9d feat: add intercompany loan document type 2026-05-24 09:02:15 +08:00
yuqei 0d46a53e86 feat: support filtered legal article vectorization 2026-05-24 08:04:54 +08:00
yuqei 8a8be8d15d feat: expose legal article vectorization in kpis 2026-05-24 07:45:00 +08:00
yuqei 26fdac2c4d feat: add legal article semantic search 2026-05-24 01:39:49 +08:00
yuqei 95680516bb feat: add legal article semantic vectorization 2026-05-24 00:51:27 +08:00
yuqei f9c9389ca7 feat: add quality eval metrics to operation kpis 2026-05-24 00:05:20 +08:00
yuqei b037a08169 feat: add unified quality eval domain and ui 2026-05-23 23:50:36 +08:00
yuqei 748aab08e0 feat: add clause recommendation funnel 2026-05-22 08:05:01 +08:00
yuqei f89d9d0057 feat: add contract delivery export diff 2026-05-21 21:33:28 +08:00