From d2d1eb977177549e6a20b021ae9ebe19f1db375c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Allen=20Zhang=20=28=E5=BC=A0=E6=B6=9B=29?= Date: Sun, 2 Jun 2024 23:57:06 +0800 Subject: [PATCH] feat: update --- .../services/get-project-records.service.ts | 2 +- .../src/pages/index/projects/index.tsx | 18 +++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/packages/canyon-backend/src/project/services/get-project-records.service.ts b/packages/canyon-backend/src/project/services/get-project-records.service.ts index dead254c..7cf09c1c 100644 --- a/packages/canyon-backend/src/project/services/get-project-records.service.ts +++ b/packages/canyon-backend/src/project/services/get-project-records.service.ts @@ -86,7 +86,7 @@ export class GetProjectRecordsService { functions: coverage.summary['functions']['pct'] || 100, branches: coverage.summary['branches']['pct'] || 100, lines: coverage.summary['lines']['pct'] || 100, - lastReportTime: cs[0]?.updatedAt || new Date(), + lastReportTime: cs[0]?.updatedAt || coverage.createdAt, //没有agg类型的时候就用all的创建时间 times: cs.length, logs: [], }; diff --git a/packages/canyon-platform/src/pages/index/projects/index.tsx b/packages/canyon-platform/src/pages/index/projects/index.tsx index 97ff62c2..37d44055 100755 --- a/packages/canyon-platform/src/pages/index/projects/index.tsx +++ b/packages/canyon-platform/src/pages/index/projects/index.tsx @@ -78,7 +78,7 @@ const ProjectPage = () => { dataIndex: 'id', key: 'slug', render(text) { - return {text.split('-')[2]}; + return {text.split('-')[2]}; }, }, { @@ -87,11 +87,15 @@ const ProjectPage = () => { key: 'pathWithNamespace', render: (text, record) => { return ( -
-
+
+
- + +
+ + +
{ > {text} + + {record.description} +
- - {record.description} -
); },