Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| Chat and workspace agents: channels, DMs and named agents you talk to | 1 | import { History } from "lucide-react"; |
| 2 | import { Link, useOutletContext, useParams } from "react-router"; | |
| 3 | ||
| 4 | import type { WorkspaceAgent } from "@g1t/contracts"; | |
| 5 | ||
| 6 | /** Everything the agent did, from the audit log. */ | |
| 7 | export default function ActivityTab() { | |
| 8 | const agent = useOutletContext<WorkspaceAgent>(); | |
| 9 | const { owner = "" } = useParams(); | |
| 10 | return ( | |
| 11 | <div className="rounded-2xl border border-dashed border-line px-6 py-14 text-center"> | |
| 12 | <span className="mx-auto flex size-12 items-center justify-center rounded-xl bg-raised text-muted"> | |
| 13 | <History size={22} /> | |
| 14 | </span> | |
| 15 | <h2 className="mt-4 text-base font-semibold">Nothing yet</h2> | |
| 16 | <p className="mx-auto mt-1.5 max-w-md text-sm text-muted"> | |
| 17 | Every reply, task, pull request and approval {agent.display_name} takes part in shows here, with the version of its profile that did it. | |
| 18 | </p> | |
| 19 | <Link to={`/${owner}/-/audit`} className="mt-5 inline-block text-sm text-accent hover:underline"> | |
| 20 | Open the workspace's audit log | |
| 21 | </Link> | |
| 22 | </div> | |
| 23 | ); | |
| 24 | } |