Skip to content

Commit

Permalink
adding missing creationTime
Browse files Browse the repository at this point in the history
  • Loading branch information
selfcontained committed Nov 8, 2023
1 parent b1e42bb commit 683dd03
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const RepositoryListItem: FC<Props> = ({ configuration }) => {
const url = usePrettyRepoURL(configuration.cloneUrl);

return (
<tr key={configuration.id} className="flex flex-row w-full space-between items-center">
<tr>
<td className="">
<Text className="font-semibold">{configuration.name}</Text>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const RepositoryListPage: FC = () => {

{isLoading && <Loader2 className="animate-spin" />}

<table>
<table className="w-full text-left">
<thead>
<tr>
<th>Name</th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions components/gitpod-protocol/src/public-api-converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 683dd03

Please sign in to comment.