Refactor Docker Compose configuration to use dynamic volume paths, update deployment workflow to create necessary directories, and enhance Prisma schema with public visibility for evaluations. Improve access control in API routes and adjust evaluation creation logic to include public visibility. Fix minor issues in login and evaluation pages for better user experience.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m17s

This commit is contained in:
Julien Froidefond
2026-02-20 13:13:41 +01:00
parent f5cbc578b7
commit 9d8d1b257d
12 changed files with 52 additions and 14 deletions

View File

@@ -1,4 +1,5 @@
import { PrismaClient } from "@prisma/client";
import bcrypt from "bcryptjs";
const prisma = new PrismaClient();
@@ -434,7 +435,6 @@ async function main() {
});
if (!template) throw new Error("Template not found");
const bcrypt = require("bcryptjs");
const adminHash = bcrypt.hashSync("admin123", 10);
const admin = await prisma.user.upsert({
where: { email: "admin@cars-front.local" },
@@ -492,6 +492,7 @@ async function main() {
evaluationDate: new Date(2025, 1, 15 + i),
templateId: template.id,
status: i === 0 ? "submitted" : "draft",
isPublic: true, // démo visible par tous
findings:
i === 0
? "Bonne maîtrise des outils et des prompts. Conception et exploration à renforcer. Alignement NFR correct."