pr_01m47d24b0e6n91zwymwxg0vpx/apps/web/app/routes/repo/code.tsx

13 lines532 bytesCodeBlame

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.

Initial g1t: services, event bus, intents and attempts1import type { Route } from "./+types/code";
2import { TreeView } from "../../components/repo-view";
Rust repos service with shipping; pull requests kept in the model3import { repos } from "../../lib/services.server";
Initial g1t: services, event bus, intents and attempts4import { getViewer, unwrap } from "../../lib/session.server";
5
6export async function loader({ params, context }: Route.LoaderArgs) {
7 const path = { namespace: params.owner, name: params.repo };
Rust repos service with shipping; pull requests kept in the model8 return unwrap(await repos.tree(path, getViewer(context), null, ""));
Initial g1t: services, event bus, intents and attempts9}
10
11export default function Code({ loaderData }: Route.ComponentProps) {
12 return <TreeView tree={loaderData} />;
13}