openxiangda-cli 2.0.0-alpha.122 → 2.0.0-alpha.123

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openxiangda-cli",
3
- "version": "2.0.0-alpha.122",
3
+ "version": "2.0.0-alpha.123",
4
4
  "description": "Thin application-level CLI for OpenXiangda 2.0.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,10 +21,10 @@
21
21
  ],
22
22
  "dependencies": {
23
23
  "@oclif/core": "4.13.3",
24
- "openxiangda-contracts": "2.0.0-alpha.58",
25
- "openxiangda-devkit-core": "2.0.0-alpha.76",
26
- "openxiangda-mcp": "2.0.0-alpha.76",
27
- "openxiangda-skill-kit": "2.0.0-alpha.97"
24
+ "openxiangda-contracts": "2.0.0-alpha.59",
25
+ "openxiangda-devkit-core": "2.0.0-alpha.77",
26
+ "openxiangda-mcp": "2.0.0-alpha.77",
27
+ "openxiangda-skill-kit": "2.0.0-alpha.98"
28
28
  },
29
29
  "devDependencies": {
30
30
  "tsx": "4.23.12",
@@ -15,7 +15,7 @@
15
15
  "@nestjs/common": "11.1.29",
16
16
  "@nestjs/core": "11.1.29",
17
17
  "@nestjs/platform-fastify": "11.1.29",
18
- "openxiangda": "2.0.0-alpha.36",
18
+ "openxiangda": "2.0.0-alpha.37",
19
19
  "reflect-metadata": "0.2.2",
20
20
  "rxjs": "7.8.2"
21
21
  },
@@ -477,11 +477,21 @@ test('renders the generic desktop and mobile application todo center without a s
477
477
  await expect(page.getByRole('heading', { name: '待办中心' })).toBeVisible();
478
478
  await expect(page.getByText('设备采购申请待审批').first()).toBeVisible();
479
479
  await expect(page.getByText('¥28,600').first()).toBeVisible();
480
+ await page.getByRole('button', { name: '去处理', exact: true }).first().click();
481
+ await expect(page).toHaveURL(
482
+ new RegExp(`/admin/operations/purchases/${instanceId}\\?taskId=${taskId}`)
483
+ );
484
+ await expect(page.getByTestId('custom-workflow-detail')).toContainText(
485
+ `${instanceId} / ${taskId}`
486
+ );
480
487
 
481
488
  await page.setViewportSize({ width: 390, height: 844 });
482
489
  await page.goto('/workflow-experience.e2e.html?initial=/m/todos');
483
490
  await expect(page.locator('.oxa-todo-center-mobile')).toBeVisible();
484
- await page.getByRole('button', { name: '去处理' }).click();
491
+ await page.getByRole('button', { name: '去处理', exact: true }).first().click();
492
+ await expect(page).toHaveURL(
493
+ new RegExp(`/m/purchases/${instanceId}\\?taskId=${taskId}`)
494
+ );
485
495
  await expect(page.getByTestId('custom-workflow-detail')).toContainText(
486
496
  `${instanceId} / ${taskId}`
487
497
  );
@@ -14,7 +14,7 @@
14
14
  "@ant-design/icons": "6.2.3",
15
15
  "@refinedev/core": "5.0.12",
16
16
  "antd": "6.4.3",
17
- "openxiangda": "2.0.0-alpha.36",
17
+ "openxiangda": "2.0.0-alpha.37",
18
18
  "react": "19.2.8",
19
19
  "react-dom": "19.2.8",
20
20
  "react-router-dom": "7.8.2"
@@ -22,7 +22,7 @@
22
22
  "build": "pnpm --recursive build"
23
23
  },
24
24
  "devDependencies": {
25
- "openxiangda": "2.0.0-alpha.36",
25
+ "openxiangda": "2.0.0-alpha.37",
26
26
  "typescript": "5.9.3"
27
27
  }
28
28
  }
@@ -38,6 +38,7 @@ export type ResourceCode = (typeof resourceCodes)[number];
38
38
  export type Capability = (typeof capabilities)[number];
39
39
  export type AppOperation = (typeof appOperations)[keyof typeof appOperations];
40
40
  export type AppRoute = (typeof appRoutes)[keyof typeof appRoutes];
41
+ export type AppRouteCode = AppRoute["code"];
41
42
  export type AdminPage = (typeof adminPages)[number];
42
43
  export type AdminNavigationGroup = (typeof adminNavigation)[number];
43
44
  export type AppPerspective = (typeof appPerspectives)[number];