diff --git a/demo-site-config.json b/demo-site-config.json index 64a382ff..a520e6cb 100644 --- a/demo-site-config.json +++ b/demo-site-config.json @@ -1,7 +1,13 @@ +// This is the config file for https://demo.sourcebot.dev. +// To add a new repository, edit this file and open a PR. +// After the PR is merged, the deploy demo workflow will +// run (see: https://github.com/sourcebot-dev/sourcebot/actions/workflows/deploy-demo.yml), +// after which the changes will be reflected on the demo site. { "$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json", "connections": { - // https://docs.sourcebot.dev/docs/connections/github + // Defines the GitHub repositories. + // See: https://docs.sourcebot.dev/docs/connections/github "github-repos": { "type": "github", "token": { @@ -221,12 +227,10 @@ "envoyproxy/envoy" ] }, - // https://docs.sourcebot.dev/docs/connections/gitlab + // Defines the GitLab repositories. + // See: https://docs.sourcebot.dev/docs/connections/gitlab "gitlab-repos": { "type": "gitlab", - "token": { - "env": "GITLAB_TOKEN" - }, "projects": [ "gnachman/iterm2" ] diff --git a/packages/web/src/components/ui/data-table.tsx b/packages/web/src/components/ui/data-table.tsx index 5002c7da..27b373b8 100644 --- a/packages/web/src/components/ui/data-table.tsx +++ b/packages/web/src/components/ui/data-table.tsx @@ -22,7 +22,8 @@ import { import { Button } from "@/components/ui/button" import { Input } from "@/components/ui/input" import * as React from "react" - +import { PlusIcon } from "lucide-react" +import { env } from "@/env.mjs" interface DataTableProps { columns: ColumnDef[] @@ -60,7 +61,7 @@ export function DataTable({ return (
-
+
({ } className="max-w-sm" /> + {/* + Show a button on the demo site that allows users to add new repositories + by updating the demo-site-config.json file and opening a PR. + */} + {env.NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT === "demo" && ( + + )}