Commit Graph

95 Commits

Author SHA1 Message Date
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
yuqei 5beff9af07 feat: add quality evaluation center 2026-05-21 20:54:46 +08:00
yuqei 464579e48f feat: close phase15 governance loops 2026-05-21 20:17:38 +08:00
yuqei 124e45df8c feat: track prompt evaluation runs 2026-05-21 18:15:17 +08:00
yuqei c415f547e8 feat: productize prompt evaluation gate 2026-05-21 18:04:14 +08:00
yuqei 8c8fc432bb feat: add contract lifecycle tasks 2026-05-21 17:08:47 +08:00
yuqei bb8323b6e1 feat: add contract lifecycle tracking 2026-05-21 16:16:52 +08:00
yuqei 5caaa40fb3 feat: add offline payment proof workflow 2026-05-21 15:37:40 +08:00
yuqei 3df85fdb04 feat: land phase15 legal docs and commercial ops
Includes legal document generation workflows, prompt governance runtime wiring, legal change impact scans, operation KPI dashboards, invoice files, sales follow-up events, mobile review polish, deployment automation, and updated project docs.
2026-05-21 14:42:44 +08:00
yuqei c45479ce98 feat: add commercial invoice ledger 2026-05-18 22:58:29 +08:00
yuqei 34412b26c0 feat: add commercial order activation flow 2026-05-18 22:27:42 +08:00
yuqei c6aa566495 feat: enforce commercial usage gates 2026-05-18 21:51:49 +08:00
yuqei 14ae452db5 feat: add tenant usage billing dashboard 2026-05-18 20:48:53 +08:00
yuqei e2e86f1281 feat: add commercial pricing entry 2026-05-17 23:01:55 +08:00
yuqei 8fb7d6feb3 docs: record phase14 production legal refs closure 2026-05-16 21:33:18 +08:00