refactoring files to be located by feature

This commit is contained in:
2025-07-23 09:23:44 -06:00
parent 46e0c36916
commit c95c40f9e7
75 changed files with 279 additions and 303 deletions

View File

@@ -0,0 +1,16 @@
import { z } from "zod";
export interface RubricItem {
label: string;
points: number;
}
export const zodRubricItem = z.object({
label: z.string(),
points: z.number(),
});
export const rubricItemIsExtraCredit = (item: RubricItem) => {
const extraCredit = "(extra credit)";
return item.label.toLowerCase().includes(extraCredit.toLowerCase());
};