createSubject and editSubject removed, upsertSubject added. Tasks and assignments removed from top-level tabs and now only accessible through Subjects -> Assignments -> Tasks. More styling in general.

This commit is contained in:
Fhj0607
2026-04-27 16:30:43 +02:00
parent da8a92b8c2
commit e8f7f45f11
18 changed files with 1729 additions and 1028 deletions

53
lib/subjectColors.ts Normal file
View File

@@ -0,0 +1,53 @@
export type SubjectColor =
| 'blue'
| 'emerald'
| 'amber'
| 'violet'
| 'cyan'
| 'rose'
| 'slate';
export const SUBJECT_COLORS: Record<
SubjectColor,
{ soft: string; strong: string; label: string }
> = {
blue: {
soft: '#DCEFF5',
strong: '#2F6F88',
label: 'Blue',
},
emerald: {
soft: '#DDEFE5',
strong: '#2F7D55',
label: 'Emerald',
},
amber: {
soft: '#F6E8C6',
strong: '#9A6A16',
label: 'Amber',
},
violet: {
soft: '#E9E2F5',
strong: '#6D4BA3',
label: 'Violet',
},
cyan: {
soft: '#DDF0EF',
strong: '#287C7A',
label: 'Cyan',
},
rose: {
soft: '#F4E1DF',
strong: '#9B4A43',
label: 'Rose',
},
slate: {
soft: '#E8E4DA',
strong: '#52616B',
label: 'Slate',
},
};
export const SUBJECT_COLOR_KEYS = Object.keys(
SUBJECT_COLORS
) as SubjectColor[];

View File

@@ -1,3 +1,5 @@
import type { SubjectColor } from '@/lib/subjectColors';
export type Task = {
tId: string;
title: string;
@@ -26,4 +28,5 @@ export type Subject = {
isActive: boolean;
lastChanged: string;
uId: string;
color?: SubjectColor;
};