fix(ci): lint and a11y fixes unblocks GHA deploy

- materi/new/page.tsx: add htmlFor+id pairs for all 5 form labels (a11y)
- biome --write --unsafe: fix useTemplate, useLiteralKeys, import sort
  across materi module files (backend + frontend)
- These pre-existing lint errors from 0aa893a blocked the deploy pipeline
This commit is contained in:
mytheclipsebotreview
2026-08-20 18:45:09 +07:00
committed by asepharyana
parent 5658726ea5
commit 7f4196124d
10 changed files with 179 additions and 78 deletions
@@ -1,9 +1,9 @@
import { and, desc, eq, ilike, or, sql } from "drizzle-orm";
import { getDatabase } from "@/shared/database/index.js";
import {
type MateriDocument,
materiDocumentsTable,
} from "@/shared/database/schema.js";
import { getDatabase } from "@/shared/database/index.js";
import type { MateriQueryInput } from "./materi.schema.js";
export class MateriRepository {
@@ -39,8 +39,7 @@ export class MateriRepository {
conditions.push(eq(materiDocumentsTable.is_public, true));
}
const whereClause =
conditions.length > 0 ? and(...conditions) : undefined;
const whereClause = conditions.length > 0 ? and(...conditions) : undefined;
const result = await db
.select()