working Problems

This commit is contained in:
2026-02-07 16:08:22 +01:00
parent 969500f5a4
commit 4e92010bfe
6 changed files with 102 additions and 125 deletions
+43
View File
@@ -1,3 +1,46 @@
"use server";
import "server-only";
import { ProblemDefinition } from "./types";
const problems: ProblemDefinition[] = [
{
id: "fix-auth-callback",
title: "Fix the Broken Auth Callback",
description:
"Users can log in with OAuth, but sessions aren't persisted. Fix it.",
language: "typescript",
difficulty: "easy",
validate100: () => true,
validateAny: () => true,
},
{
id: "fix-prod-build",
title: "Patch a Failing Production Build",
description:
"Production build fails while development works. Fix the build.",
language: "javascript",
difficulty: "easy",
validate100: () => true,
validateAny: () => true,
},
{
id: "add-user-profile-endpoint",
title: "Implement Missing API Endpoint",
description: "The frontend expects `/api/me`. Implement it correctly.",
language: "go",
difficulty: "easy",
validate100: () => true,
validateAny: () => true,
},
];
export async function getProblems() {
return problems.map((def) => ({
id: def.id,
title: def.title,
description: def.description,
difficulty: def.difficulty,
language: def.language,
}));
}