Commit Graph

516 Commits

Author SHA1 Message Date
wren 7fdb7386ee fix: reconnect cross checking upload flow 2026-05-07 19:26:37 +08:00
wren ba113a0e24 fix: restore cross checking org tree 2026-05-07 19:14:14 +08:00
wren 050aa679be fix: stabilize rule editor yaml roundtrip 2026-05-07 18:58:55 +08:00
wren 5fc3a7a254 fix: restore rule detail dependencies 2026-05-07 18:31:25 +08:00
wren add399e126 feat: migrate cross checking ui to v3 flow 2026-05-07 18:18:35 +08:00
wren a14a1f0ee1 fix: pin rules pagination and default page size 2026-05-07 17:56:59 +08:00
wren 43838c7b8c fix: increase rules list viewport height 2026-05-07 17:52:13 +08:00
wren c00e5feff0 feat: sync rule management and review ui fixes 2026-05-07 17:27:42 +08:00
wren 87e82d1caa fix: improve rule detail dependency sync 2026-05-07 11:20:55 +08:00
wren d6ce62457a fix: stabilize rule detail config persistence 2026-05-07 10:58:42 +08:00
wren 71476fc919 fix: stabilize rules detail editor flow 2026-05-07 09:59:01 +08:00
wren e7bac9a33f fix: tighten route permission guards 2026-05-06 20:06:41 +08:00
wren 8fcd79b608 fix: unify review detail page badges 2026-05-06 18:34:03 +08:00
wren 61bbf6907b feat: wire real upload progress and subtype mapping 2026-05-06 18:33:53 +08:00
wren 57c744eb17 fix: redirect expired sessions to login 2026-05-06 18:33:43 +08:00
wren 2d8bab2c91 fix: align case-file rule filters with business types 2026-05-06 18:18:49 +08:00
wren c7bbe59882 fix: replace page shorthand labels in review detail 2026-05-06 18:05:51 +08:00
wren 153865c734 fix: force full reload when leaving review detail 2026-05-06 18:02:05 +08:00
wren 5405d30111 fix: load collabora config without stuck fetcher state 2026-05-06 17:44:32 +08:00
wren f758acaa18 fix: read nested review points payload safely 2026-05-06 17:38:31 +08:00
wren 68139631d9 fix: support nested review detail loader payload 2026-05-06 17:35:11 +08:00
wren 796ce90e32 fix: restore reviews detail layout and leaudit data wiring 2026-05-06 17:31:48 +08:00
wren 63bf3f56ce refactor: align document type page with root groups 2026-05-06 14:20:53 +08:00
wren 5366270ad6 fix: improve review field location fallback 2026-05-06 11:15:52 +08:00
wren 8dbacb8bea fix: speed up document type group loading 2026-05-06 11:05:35 +08:00
wren f1d77db79a fix: clarify document type grouping hierarchy 2026-05-06 10:54:42 +08:00
wren 22ef99754c fix: align rules list and review detail flows 2026-05-06 10:35:57 +08:00
wren 99fce169cb fix: normalize review detail manual notes 2026-05-06 10:06:50 +08:00
wren c3ef4dcefc fix: restore reviewsTest detail rendering 2026-05-06 10:01:21 +08:00
wren c54f84382b feat: align frontend document and rule management flows 2026-05-06 09:40:37 +08:00
wren 8a5044b024 fix: remove document review status postgrest fallback 2026-05-06 09:37:02 +08:00
wren 37e1611ed4 fix: cut reviewsTest over to new review detail apis 2026-05-06 09:19:03 +08:00
jandejang 9e0909ab35 完善规则配置页交互细节 2026-04-30 17:59:43 +08:00
wren 2eb40e8af6 feat: show usable rule counts 2026-04-30 17:59:35 +08:00
wren 3fb7e9f5d0 feat: stabilize document type and upload flows 2026-04-30 17:44:05 +08:00
wren 81c5e98b53 refactor: rewrite document-type management for new backend API
- API client: switch from /api/v3/document-types to /api/document-types,
  replace group_ids with ruleSetIds, add getEntryModules/getRuleSets
- List page: simplified to code/name/entry_module/rule_sets/status columns
- New/Edit page: code + name + description + entry_module dropdown +
  rule_set multi-select checklist
- Fix DocumentType type import collision in documents.ts
2026-04-30 13:18:24 +08:00
wren 477bcafeb7 feat: extend DocumentType interface with code, entryModuleId, isEnabled, ruleSetIds 2026-04-30 12:52:26 +08:00
wren dd249ccfb7 refactor: replace PostgREST calls in upload page with new API endpoints
- getDocumentTypes: switch from PostgREST /document_types to
  GET /api/document-types
- getTodayDocuments: switch from PostgREST /documents to
  GET /api/documents/list with userId + dateFrom params
- getQueueStatus: gracefully handle 404 (endpoint not yet migrated)
  by returning empty queue state instead of erroring
2026-04-30 12:27:51 +08:00
wren 73fd8617e1 refactor: switch upload to new POST /api/upload with flat FormData
Replace the old nested upload_info JSON approach with flat
multipart fields (typeId, region, fileRole, createdBy, autoRun,
speed) matching the new leaudit-platform backend.

- uploadDocumentToServer: POST ${API_BASE_URL}/api/upload
- handleFileUpload: pass region from userInfo.area, derive speed
  from priority enum, pass createdBy from JWT user_id
- UploadResult replaces FileUploadResponse with documentId/fileId
  replacing the old nested result.id/result.file_name pattern
2026-04-30 12:16:24 +08:00
wren 185f55cec6 fix: pass through server 403 message instead of hardcoded '无权限'
The axios response interceptor was discarding the server's
permission-denied message (e.g. "缺少「用户列表」权限") and
replacing it with a generic "无权限". Now it reads the server
response body and surfaces the exact permission that's missing.
2026-04-30 11:47:32 +08:00
wren e2ae791fa2 fix: allow admin role to edit in role-permissions page
Previously only provincial_admin could edit roles/permissions in
the UI. Now admin (city-level admin) role can also edit. The
backend already enforces fine-grained permission checks, so the
UI gate just needs to match can_manage semantics.
2026-04-30 11:36:11 +08:00
wren 55e2c6993f fix: tighten entry module rbac flows 2026-04-29 22:25:06 +08:00
wren b544b1a795 fix: support local entry module icons 2026-04-29 19:50:10 +08:00
wren 55e65e00f5 fix: allow entry module editor route 2026-04-29 19:37:42 +08:00
wren b31707661b fix: sync frontend token from server session 2026-04-29 18:52:58 +08:00
wren 790b9566e1 feat: restore settings routes for admin modules 2026-04-29 18:39:45 +08:00
wren 1b67358e5b fix: hide unsupported menus in minimal scope 2026-04-29 18:14:04 +08:00
wren 3d3d8d6e6b fix: align login and home routing with leaudit backend 2026-04-29 18:02:31 +08:00
wren 7dbeaac5f8 fix: bootstrap session after password login 2026-04-29 15:58:59 +08:00
wren 0369de68cc fix: complete admin login redirect flow 2026-04-29 15:53:10 +08:00