refactor(rubgram): replace archive/round/slip system with deleted+submit_day columns and month-calendar
Build and Push Image / build-backend (push) Successful in 7m3s
Build and Push Image / build-frontend (push) Successful in 10m12s
Build and Push Image / push (push) Successful in 2m12s

- drop endgameArchive table, remove archive() function
- replace archived boolean with deleted on endgameSubmissions
- add submit_day timestamp column
- replace round-based slip manager with /rubgram/admin/calendar route
- add monthly jsonb column to endgameSettings for month checkmark toggle
- add toggleMonth server action with SimpleTooltip UI
- fix publicQueue SQL bug (ambiguous column reference + precedence)
- wipe() now sets deleted=true instead of round-based archive
- cancel() uses soft-delete (deleted=true) instead of hard-delete
- guard calendar page with adminCheck
- update count route to exclude deleted submissions
This commit is contained in:
2026-06-17 01:38:06 +00:00 Unverified
parent e483360b5b
commit 815698e376
14 changed files with 435 additions and 493 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
import { not } from "drizzle-orm";
import { db } from "@/lib/db";
import { endgameSubmissions } from "@/lib/db/schema";
export async function GET() {
return Response.json(await db.$count(endgameSubmissions));
return Response.json(
await db.$count(endgameSubmissions, not(endgameSubmissions.deleted)),
);
}