Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
631 changes: 631 additions & 0 deletions CLAUDE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ test("grouping by tags", { timeout: 120_000 }, async (t) => {
h.createKey(),
]);

const now = Date.now();
const now = new Date("2023-01-07T00:00:00Z").getTime();

const tags = [["a", "b"], ["a"], [], ["b", "c"]];

Expand Down Expand Up @@ -1104,7 +1104,7 @@ test("grouping by tags", { timeout: 120_000 }, async (t) => {
});

expect(res.status, `expected 200, received: ${JSON.stringify(res, null, 2)}`).toBe(200);

console.log(res);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick (assertive)

Remove console.log before merging.

Debug logging should not be committed to the main branch.

-  console.log(res);
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
console.log(res);
@@ -1107,1 +1107,0 @@
- console.log(res);
🤖 Prompt for AI Agents
In apps/api/src/routes/v1_analytics_getVerifications.happy.test.ts at line 1107,
remove the console.log statement used for debugging before merging to keep the
main branch clean from debug logs.

expect(res.body.length).toBe(tags.length);
});

Expand Down
59 changes: 0 additions & 59 deletions apps/dashboard/app/(app)/projects/[projectId]/branches/page.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { OptIn } from "@/components/opt-in";
import { getAuth } from "@/lib/auth";
import { db } from "@/lib/db";
import { redirect } from "next/navigation";
import { Suspense } from "react";

export default async function DeploymentsPage(): Promise<JSX.Element> {
const { orgId } = await getAuth();
const workspace = await db.query.workspaces.findFirst({
where: (table, { and, eq, isNull }) => and(eq(table.orgId, orgId), isNull(table.deletedAtM)),
});

if (!workspace) {
return redirect("/new");
}

if (!workspace.betaFeatures.deployments) {
// right now, we want to block all external access to deploy
// to make it easier to opt-in for local development, comment out the redirect
// and uncomment the <OptIn> component
//return redirect("/apis");
return <OptIn title="Projects" description="Projects are in beta" feature="deployments" />;
}

return (
<Suspense fallback={<div>Loading...</div>}>
<div>Deployment Details coming soon</div>
</Suspense>
);
}
Loading