diff --git a/frontend/web/app/dashboard/activity/page.tsx b/frontend/web/app/dashboard/activity/page.tsx index be17afe6..e5a820eb 100644 --- a/frontend/web/app/dashboard/activity/page.tsx +++ b/frontend/web/app/dashboard/activity/page.tsx @@ -19,20 +19,30 @@ const ActivityPage = () => { })(); }, [page]); + const getFormattedDate = (date: string) => { + const d = new Date(date); + + return `${`0${d.getDate()}`.slice(-2)}-${`0${d.getMonth() + 1}`.slice( + -2, + )}-${d.getFullYear()} ${`0${d.getHours()}`.slice(-2)}:${`0${d.getMinutes()}`.slice( + -2, + )}:${`0${d.getSeconds()}`.slice(-2)}`; + }; + return ( - - - + + + {activities.map((activity) => ( - + diff --git a/frontend/web/layouts/library/LibraryWorkflowTable.tsx b/frontend/web/layouts/library/LibraryWorkflowTable.tsx index fbeaf045..ef8c64fb 100644 --- a/frontend/web/layouts/library/LibraryWorkflowTable.tsx +++ b/frontend/web/layouts/library/LibraryWorkflowTable.tsx @@ -137,8 +137,8 @@ const LibraryWorkflowTable = () => { )} - - + + diff --git a/frontend/web/locales/en-US.ts b/frontend/web/locales/en-US.ts index d436fc15..290030b8 100644 --- a/frontend/web/locales/en-US.ts +++ b/frontend/web/locales/en-US.ts @@ -62,6 +62,8 @@ const translations = { successMessage: "Workflow successfully renamed!", }, }, + name: "Name", + running: "Running", }, user: { settings: { @@ -84,6 +86,8 @@ const translations = { }, activity: { title: "Activity", + time: "Time", + workflow: "Workflow", }, landing: { actions: { diff --git a/frontend/web/locales/fr-FR.ts b/frontend/web/locales/fr-FR.ts index 0d4bcff0..5fac0fa0 100644 --- a/frontend/web/locales/fr-FR.ts +++ b/frontend/web/locales/fr-FR.ts @@ -63,6 +63,8 @@ const translations = { successMessage: "Workflow renommé avec succès !", }, }, + name: "Nom", + running: "Status", }, user: { settings: { @@ -85,6 +87,8 @@ const translations = { }, activity: { title: "Activité", + time: "Date", + workflow: "Workflow", }, landing: { actions: { diff --git a/frontend/web/locales/is-IS.ts b/frontend/web/locales/is-IS.ts index 05028195..1f9a1847 100644 --- a/frontend/web/locales/is-IS.ts +++ b/frontend/web/locales/is-IS.ts @@ -62,6 +62,8 @@ const translations = { successMessage: "Verkflæði breytt nafni!", }, }, + name: "Nafn", + running: "Staða", }, user: { settings: { @@ -84,6 +86,8 @@ const translations = { }, activity: { title: "Virkni", + time: "Dagsetning", + workflow: "Verkflæði", }, landing: { actions: {
TimeWorkflowActivity{t("activity.time")}{t("activity.workflow")}{t("activity.title")}
{activity.createdAt}{getFormattedDate(activity.createdAt)} {activity.workflow.name} {activity.type}
NameRunning{t("library.name")}{t("library.running")}