From 683dd0314364d6e4f319976ac5d8b929dc3aa5e5 Mon Sep 17 00:00:00 2001 From: Brad Harris Date: Wed, 8 Nov 2023 23:50:33 +0000 Subject: [PATCH] adding missing creationTime --- components/dashboard/src/repositories/list/RepoListItem.tsx | 2 +- components/dashboard/src/repositories/list/RepositoryList.tsx | 2 +- components/gitpod-protocol/src/public-api-converter.spec.ts | 1 + components/gitpod-protocol/src/public-api-converter.ts | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/dashboard/src/repositories/list/RepoListItem.tsx b/components/dashboard/src/repositories/list/RepoListItem.tsx index 1993347d43d228..7c6c93090685a0 100644 --- a/components/dashboard/src/repositories/list/RepoListItem.tsx +++ b/components/dashboard/src/repositories/list/RepoListItem.tsx @@ -18,7 +18,7 @@ export const RepositoryListItem: FC = ({ configuration }) => { const url = usePrettyRepoURL(configuration.cloneUrl); return ( - + {configuration.name} diff --git a/components/dashboard/src/repositories/list/RepositoryList.tsx b/components/dashboard/src/repositories/list/RepositoryList.tsx index 6eee532a710fb4..6c0e1c2fc9732b 100644 --- a/components/dashboard/src/repositories/list/RepositoryList.tsx +++ b/components/dashboard/src/repositories/list/RepositoryList.tsx @@ -66,7 +66,7 @@ const RepositoryListPage: FC = () => { {isLoading && } - +
diff --git a/components/gitpod-protocol/src/public-api-converter.spec.ts b/components/gitpod-protocol/src/public-api-converter.spec.ts index b774e9fdc4766b..42ebb1a20d2314 100644 --- a/components/gitpod-protocol/src/public-api-converter.spec.ts +++ b/components/gitpod-protocol/src/public-api-converter.spec.ts @@ -656,6 +656,7 @@ describe("PublicAPIConverter", () => { expect(result.organizationId).to.equal(project.teamId); expect(result.name).to.equal(project.name); expect(result.cloneUrl).to.equal(project.cloneUrl); + expect(result.creationTime).to.deep.equal(Timestamp.fromDate(new Date(project.creationTime))); expect(result.workspaceSettings).to.deep.equal( new WorkspaceSettings({ workspaceClass: project.settings?.workspaceClasses?.regular, diff --git a/components/gitpod-protocol/src/public-api-converter.ts b/components/gitpod-protocol/src/public-api-converter.ts index 87f1d5096fca3c..5bf154ad4fb3b5 100644 --- a/components/gitpod-protocol/src/public-api-converter.ts +++ b/components/gitpod-protocol/src/public-api-converter.ts @@ -391,6 +391,7 @@ export class PublicAPIConverter { result.organizationId = project.teamId; result.name = project.name; result.cloneUrl = project.cloneUrl; + result.creationTime = Timestamp.fromDate(new Date(project.creationTime)); result.workspaceSettings = this.toWorkspaceSettings(project.settings?.workspaceClasses?.regular); result.prebuildSettings = this.toPrebuildSettings(project.settings?.prebuilds); return result;
Name