Skip to content

Commit 2428ce0

Browse files
committed
Show connected repo connectedAt date
1 parent 6d3fda0 commit 2428ce0

File tree

1 file changed

+11
-1
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.settings

1 file changed

+11
-1
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.settings/route.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ import {
7575
import { GitBranchIcon } from "lucide-react";
7676
import { env } from "~/env.server";
7777
import { useEnvironment } from "~/hooks/useEnvironment";
78+
import { DateTime, DateTimeShort } from "~/components/primitives/DateTime";
7879

7980
export const meta: MetaFunction = () => {
8081
return [
@@ -898,13 +899,22 @@ function ConnectedGitHubRepoForm({
898899
<a
899900
href={connectedGitHubRepo.repository.htmlUrl}
900901
target="_blank"
901-
className="text-sm text-text-bright hover:underline"
902+
className="max-w-52 truncate text-sm text-text-bright hover:underline"
902903
>
903904
{connectedGitHubRepo.repository.fullName}
904905
</a>
905906
{connectedGitHubRepo.repository.private && (
906907
<LockClosedIcon className="size-3 text-text-dimmed" />
907908
)}
909+
<span className="text-xs text-text-dimmed">
910+
<DateTime
911+
date={connectedGitHubRepo.createdAt}
912+
includeTime={false}
913+
includeSeconds={false}
914+
showTimezone={false}
915+
showTooltip={false}
916+
/>
917+
</span>
908918
</div>
909919
<Form method="post">
910920
<Button type="submit" name="action" value="disconnect-repo" variant="minimal/small">

0 commit comments

Comments
 (0)