From 019764c2088271dbb87a344bbf5baac8567fae2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Allen=20Zhang=20=28=E5=BC=A0=E6=B6=9B=29?= Date: Sun, 18 Feb 2024 09:59:50 +0800 Subject: [PATCH] feat: update --- packages/canyon-platform/locales/en.json | 4 ++-- .../src/pages/index/projects/[id]/index.tsx | 19 +++++++++++++------ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/packages/canyon-platform/locales/en.json b/packages/canyon-platform/locales/en.json index b18ac84d..13441e25 100644 --- a/packages/canyon-platform/locales/en.json +++ b/packages/canyon-platform/locales/en.json @@ -16,7 +16,7 @@ "name": "Name", "report_times": "Report Times", "max_coverage": "Max Coverage", - "latest_report_time": "Latest Report Time", + "latest_report_time": "Last Reported", "latest_report_coverage": "Latest Report Coverage", "no_data": "{{msg}} projects have no data", "total_times": "Total Times", @@ -31,7 +31,7 @@ "statements": "Statements", "lines": "Lines", "newlines": "New Lines", - "reported_details": "Reported Details", + "reported_details": "Logs", "reporter": "Reporter", "search_keywords": "Search by project id or name", "overview_search_keywords": "Enter the \"Commit Sha\" or \"Branch\" or \"Compare Target\" keyword for search", diff --git a/packages/canyon-platform/src/pages/index/projects/[id]/index.tsx b/packages/canyon-platform/src/pages/index/projects/[id]/index.tsx index c13f8e39..4fa3ac00 100755 --- a/packages/canyon-platform/src/pages/index/projects/[id]/index.tsx +++ b/packages/canyon-platform/src/pages/index/projects/[id]/index.tsx @@ -148,16 +148,17 @@ const ProjectOverviewPage = () => { { title: t('projects.latest_report_time'), dataIndex: 'lastReportTime', - width: '120px', + width: '130px', render(_) { return {dayjs(_).format('MM-DD HH:mm')}; }, }, { title: t('common.option'), + width: '100px', render(_): JSX.Element { return ( -
+
{ setOpen(true); @@ -206,9 +207,13 @@ const ProjectOverviewPage = () => { return (
- {projectByIdData?.getProjectByID.pathWithNamespace} + + {projectByIdData?.getProjectByID.pathWithNamespace} + - {t('projects.overview')} + + {t('projects.overview')} +
@@ -218,7 +223,9 @@ const ProjectOverviewPage = () => { {(projectCompartmentDataData?.getProjectCompartmentData || []).map((item, index) => { return (
{