Commit Graph

89 Commits

Author SHA1 Message Date
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
yuqei f4272a0f02 fix: keep review chat links lightweight 2026-05-16 21:13:56 +08:00
yuqei 4fd9d9951d feat: carry legal article refs into chat and reports 2026-05-16 20:35:16 +08:00
yuqei 252bdf8998 feat: link review risks to legal articles 2026-05-16 18:41:37 +08:00
yuqei 2e8a8b7b0d feat: add legal articles admin page 2026-05-16 18:17:53 +08:00
yuqei 61ab9c471b fix: stabilize phase1 automation gate 2026-05-16 08:53:24 +08:00
yuqei a775b74bbe feat: polish knowledge base publish governance UX 2026-05-15 19:18:20 +08:00