-
{truncatedValue}
+
);
case 'updatedAt':
diff --git a/frontend/src/app/[locale]/projects/[projectId]/runs/RunsTable.tsx b/frontend/src/app/[locale]/projects/[projectId]/runs/RunsTable.tsx
index 7fc9cff..6104329 100644
--- a/frontend/src/app/[locale]/projects/[projectId]/runs/RunsTable.tsx
+++ b/frontend/src/app/[locale]/projects/[projectId]/runs/RunsTable.tsx
@@ -30,7 +30,6 @@ export default function RunsTable({ projectId, runs, onDeleteRun, messages, loca
const headerColumns = [
{ name: messages.id, uid: 'id', sortable: true },
{ name: messages.name, uid: 'name', sortable: true },
- { name: messages.description, uid: 'description', sortable: true },
{ name: messages.lastUpdate, uid: 'updatedAt', sortable: true },
{ name: messages.actions, uid: 'actions' },
];
@@ -61,17 +60,16 @@ export default function RunsTable({ projectId, runs, onDeleteRun, messages, loca
case 'id':
return
{cellValue};
case 'name':
+ const maxLength = 30;
+ const truncatedDescription = truncateText(run.description, maxLength);
return (
-
- {cellValue}
-
- );
- case 'detail':
- const maxLength = 20;
- const truncatedValue = truncateText(cellValue, maxLength);
- return (
-
-
{truncatedValue}
+
+
+ {cellValue}
+
+
+
{truncatedDescription}
+
);
case 'updatedAt':
diff --git a/frontend/src/app/[locale]/projects/page.tsx b/frontend/src/app/[locale]/projects/page.tsx
index 88bbc21..6ede5e7 100644
--- a/frontend/src/app/[locale]/projects/page.tsx
+++ b/frontend/src/app/[locale]/projects/page.tsx
@@ -10,6 +10,7 @@ export default function Page(params: { locale: string }) {
editProject: t('edit_project'),
deleteProject: t('delete_project'),
id: t('id'),
+ publicity: t('publicity'),
name: t('name'),
detail: t('detail'),
lastUpdate: t('last_update'),
diff --git a/frontend/src/app/[locale]/projects/projectsControl.ts b/frontend/src/app/[locale]/projects/projectsControl.ts
index 9c724d2..321d9cd 100644
--- a/frontend/src/app/[locale]/projects/projectsControl.ts
+++ b/frontend/src/app/[locale]/projects/projectsControl.ts
@@ -4,7 +4,7 @@ const apiServer = Config.apiServer;
/**
* fetch project records
*/
-async function fetchProjects() {
+async function fetchProjects(jwt: string) {
const url = `${apiServer}/projects`;
try {
@@ -12,6 +12,7 @@ async function fetchProjects() {
method: 'GET',
headers: {
'Content-Type': 'application/json',
+ Authorization: jwt,
},
});
diff --git a/frontend/types/project.ts b/frontend/types/project.ts
index 3533ee8..4dc4177 100644
--- a/frontend/types/project.ts
+++ b/frontend/types/project.ts
@@ -19,6 +19,7 @@ export type ProjectsMessages = {
editProject: string;
deleteProject: string;
id: string;
+ publicity: string;
name: string;
detail: string;
lastUpdate: string;
diff --git a/frontend/types/user.ts b/frontend/types/user.ts
index f8b4c1c..067fd16 100644
--- a/frontend/types/user.ts
+++ b/frontend/types/user.ts
@@ -22,6 +22,7 @@ export type TokenContextType = {
access_token: string;
user: UserType;
};
+ isSignedIn: () => Boolean;
setToken: (token: TokenType) => {};
storeTokenToLocalStorage: (token: TokenType) => {};
removeTokenFromLocalStorage: () => {};