Skip to content

Chore/upgrade vite#816

Open
LZS911 wants to merge 33 commits intomainfrom
chore/upgrade-vite
Open

Chore/upgrade vite#816
LZS911 wants to merge 33 commits intomainfrom
chore/upgrade-vite

Conversation

@LZS911
Copy link
Copy Markdown
Collaborator

@LZS911 LZS911 commented Apr 14, 2026

  1. 更新 vite 至 v8, 调整相关配置文件
  2. 使用 vite-plugin-eslint2 替换 vite-plugin-eslint, 后者已经不再维护了
  3. 更新 @vitejs/plugin-react 插件

不急着合并,目前只做了简单的开发环境和生产环境验证。

记录文档:http://10.186.18.11/confluence/pages/viewpage.action?pageId=246219688

@github-actions
Copy link
Copy Markdown

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 80.69% 29136/36108
🟡 Branches 62.86% 10815/17204
🟢 Functions 84.05% 9820/11684
🟢 Lines 84.7% 27833/32860

Test suite run success

3643 tests passing in 810 suites.

Report generated by 🧪jest coverage report action from 2e45e21

@github-actions
Copy link
Copy Markdown

Coverage report

Caution

Getting code coverage data failed.

St.
Category Percentage Covered / Total
🟢 Statements 95.43% 5905/6188
🟡 Branches 74.13% 1949/2629
🟢 Functions 94.81% 2156/2274
🟢 Lines 95.82% 5804/6057

Test suite run success

1087 tests passing in 256 suites.

Report generated by 🧪jest coverage report action from fb3bbf0

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 28, 2026

Coverage report

Caution

Getting code coverage data failed.

St.
Category Percentage Covered / Total
🔴 Statements 20.29% 1007/4964
🔴 Branches 56.64% 418/738
🔴 Functions 14.74% 229/1554
🔴 Lines 20.67% 990/4790

Test suite run success

186 tests passing in 38 suites.

Report generated by 🧪jest coverage report action from 489c7d7

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 28, 2026

Coverage report

Caution

Getting code coverage data failed.

St.
Category Percentage Covered / Total
🟡 Statements 67.87% 1650/2431
🔴 Branches 59.71% 707/1184
🟡 Functions 66.86% 583/872
🟡 Lines 67.89% 1613/2376

Test suite run success

348 tests passing in 74 suites.

Report generated by 🧪jest coverage report action from 489c7d7

LZS911 and others added 17 commits April 28, 2026 17:38
…r data export workflow

- DEV-022: Extend WorkFlowStepTemplateReqV1TypeEnum with export_review/export_execute;
  add WorkflowTemplateTypeEnum (workflow/data_export); add workflow_type field to
  IWorkflowTemplateDetailResV1
- DEV-023: Add optional workflow_type param to getWorkflowTemplateV1 and
  updateWorkflowTemplateV1; add new getWorkflowTemplateListV1 function calling
  GET /v1/projects/{name}/workflow_templates; add IGetWorkflowTemplateListResV1 type
- DEV-029: Add zh-CN and en-US i18n keys in sqle workflowTemplate (list table columns,
  type tags, edit page titles, export review/execute step descriptions) and base
  dmsDataExport (approval process preview section)

refs actiontech/dms-ee#784

(cherry picked from commit 4dd5e5c985fb49d2684609cf0530bfe86d686678)
…iew to list view

- DEV-024: Replace WorkflowTemplateStepInfo/AuthInfo with ActiontechTable
- Add column.tsx with workflow_type tag, approval node description, update time columns
- Refactor actions.tsx to use table row edit button with permission control
- Edit button navigates with workflowType query parameter
- Add getWorkflowTemplateList mock API and update test files
- Remove old snapshots for updated page structure

refs actiontech/dms-ee#784

(cherry picked from commit d6789673acb3de193e7cfa9119b8ac4f4b905d9e)
- DEV-025: Read workflowType from URL query params, switch step type
  enums (export_review/export_execute vs sql_review/sql_execute) and
  page title based on workflow type, pass workflow_type to API calls
- DEV-026: Hide AllowSubmitWhenLessAuditLevel field in BasicInfo
  component when editing data_export type template
- Add query field to PROGRESS.update route definition for workflowType
- Fix TS error in column.tsx stepTypeNameMap by using I18nKey type
- Prettier formatting fixes

refs actiontech/dms-ee#784

(cherry picked from commit 966319e09eb8dd6f0389c32118d9f9dbe28654c2)
…ort creation page

- DEV-027: New ApprovalProcessPreview component with read-only workflow step display
  - Calls getWorkflowTemplateV1 with workflow_type=data_export to fetch template
  - Renders step list with step number, step type name, and assignee info
  - Shows "match by permission" when approved_by_authorized/execute_by_authorized is true
  - Loading state with Spin, error state with Result fallback
  - Bottom hint guiding users to modify approval process in Project Configure
- DEV-028: Integrate preview between BasicInfoWrapper and AuditResultList in SubmitWorkflow
- Add step type name i18n keys (export_review/export_execute) to base package dmsDataExport

refs actiontech/dms-ee#784

(cherry picked from commit 58397af27ee9914de241e531e8c146e3d613bdcc)
…components

- DEV-030: Update WorkflowTemplateDetail list page tests to cover edit
  button navigation with workflowType param, fix CE test missing
  usePermission mock
- DEV-031: Update UpdateWorkflowTemplate edit page tests to mock
  useTypedQuery for workflowType, add data_export type title and step
  type tests, update BasicInfo test for hidden audit level field
- DEV-032: Add ApprovalProcessPreview component tests covering loading
  state, success rendering, error fallback, step type name mapping,
  assignee display, and empty projectName guard

refs actiontech/dms-ee#784

(cherry picked from commit 9b4a1b1ac6d301c2f4cc182503a934877c025d03)
…fix prettier formatting

为 dataExportWorkflowTemplateData 添加 IWorkflowTemplateDetailResV1 类型注解,
解决 assignee_user_id_list 空数组被推断为 never[] 导致的 TS2322 编译错误;
同时移除不合法的空字符串 allow_submit_when_less_audit_level 枚举值;
修复两个测试文件的 prettier 格式问题。

(cherry picked from commit 5b8b7238c1b9df63e1d3a6bb35a1b55b7fd5157d)
- Issue 1: Change workflow template page from list to tab-based layout
  with separate tabs for SQL exec workflow and data export
- Issue 2: Fix i18n text in template edit page for data export context
  (e.g. "执行上线" -> "执行导出", match permission text)
- Issue 3: Fix description truncation in export order detail page
  by replacing BasicTypographyEllipsis with plain div
- Issue 4: Restore polling logic for export status refresh in detail page
- Issue 5: Fix workflow progress display to show dynamic approval nodes
  instead of hardcoded 3 steps
- Issue 6: Fix approval flow i18n mixing in create export review page
  (Chinese text was mixed with English labels)

(cherry picked from commit d5b3e259538d63bebb99871e945d3b9d5259a76c)
…approval preview

1. Replace antd Tabs with SegmentedTabs for workflow template detail page
   to match audit rule template page styling convention.
2. Fix redirect link after saving data export workflow template: the
   "view updated template" button now navigates to the data export tab
   instead of always landing on the workflow tab.
3. Improve approval process preview styling in data export creation page
   with step indicator dots, connector lines, and better visual hierarchy.

Refs: actiontech/dms-ee#784
(cherry picked from commit 56f11e29002f7c29427b4d342647bb60a1276aa8)
…review

1. Prevent removing last audit node (min 1) and hide close button when
   only 1 review node exists; max 4 already enforced by disabled button.
2. Data export exec step shows 'workflow creator' as executor (read-only,
   not modifiable) in template editor and step card display.
3. Remove ApprovalProcessPreview from SQL audit page (SubmitWorkflow).

(cherry picked from commit 756a2dcfb9f7166784c9a2d226ce189dd1c12d78)
…port template

Align test mock data with the updated default data export workflow
template which now includes both export_review and export_execute steps.

(cherry picked from commit 009db1a54953e8022008e2f4e7a18c49a832eadd)
…_execute step

Update ApprovalProcessPreview test to handle multiple "按权限匹配" text
elements since the default template now has both export_review and
export_execute steps. Update related snapshots.

(cherry picked from commit 2d249f465f59266e88730815a35167683df95b66)
LZS911 added 6 commits April 28, 2026 17:38
Avoid ArtiomTr/jest-coverage-report-action running npm install and npx jest for base coverage collection, which fails in pnpm workspace projects. Rely on the pre-generated per-package coverage report.json instead.

Made-with: Cursor
@github-actions
Copy link
Copy Markdown

Coverage report

St.
Category Percentage Covered / Total
🔴 Statements 20.29% 1007/4964
🔴 Branches 56.64% 418/738
🔴 Functions 14.74% 229/1554
🔴 Lines 20.67% 990/4790

Test suite run success

186 tests passing in 38 suites.

Report generated by 🧪jest coverage report action from 1f5ad7a

@github-actions
Copy link
Copy Markdown

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 67.87% 1650/2431
🔴 Branches 59.71% 707/1184
🟡 Functions 66.86% 583/872
🟡 Lines 67.89% 1613/2376

Test suite run success

348 tests passing in 74 suites.

Report generated by 🧪jest coverage report action from 1f5ad7a

@github-actions
Copy link
Copy Markdown

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 95.69% 5846/6109
🟡 Branches 73.96% 1954/2642
🟢 Functions 96.08% 2155/2243
🟢 Lines 95.9% 5749/5995

Test suite run success

1093 tests passing in 257 suites.

Report generated by 🧪jest coverage report action from 1f5ad7a

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 28, 2026

Coverage report (@actiontech/shared)

St.
Category Percentage Covered / Total
🔴 Statements 20.29% 1007/4964
🔴 Branches 56.64% 418/738
🔴 Functions 14.74% 229/1554
🔴 Lines 20.67% 990/4790

Test suite run success

186 tests passing in 38 suites.

Report generated by 🧪jest coverage report action from 88def2d

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 28, 2026

Coverage report (@actiontech/dms-kit)

St.
Category Percentage Covered / Total
🟡 Statements 67.87% 1650/2431
🔴 Branches 59.71% 707/1184
🟡 Functions 66.86% 583/872
🟡 Lines 67.89% 1613/2376

Test suite run success

348 tests passing in 74 suites.

Report generated by 🧪jest coverage report action from 88def2d

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 28, 2026

Coverage report (base)

St.
Category Percentage Covered / Total
🟢 Statements 95.69% 5846/6109
🟡 Branches 73.96% 1954/2642
🟢 Functions 96.08% 2155/2243
🟢 Lines 95.9% 5749/5995

Test suite run success

1093 tests passing in 257 suites.

Report generated by 🧪jest coverage report action from 88def2d

@github-actions
Copy link
Copy Markdown

Coverage report (sqle)

St.
Category Percentage Covered / Total
🟢 Statements 95.45% 11782/12344
🟡 Branches 78.77% 4911/6235
🟢 Functions 94.97% 4228/4452
🟢 Lines 95.62% 11584/12115

Test suite run success

2024 tests passing in 442 suites.

Report generated by 🧪jest coverage report action from 88def2d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants