diff --git a/TaskTracker.Web/src/components/NotesList.tsx b/TaskTracker.Web/src/components/NotesList.tsx index 7dafdb4..70a4920 100644 --- a/TaskTracker.Web/src/components/NotesList.tsx +++ b/TaskTracker.Web/src/components/NotesList.tsx @@ -9,10 +9,10 @@ interface NotesListProps { notes: TaskNote[] } -const NOTE_TYPE_CONFIG: Record = { - [NoteType.PauseNote]: { label: 'Pause', color: '#f59e0b' }, - [NoteType.ResumeNote]: { label: 'Resume', color: '#6366f1' }, - [NoteType.General]: { label: 'General', color: '#64748b' }, +const NOTE_TYPE_CONFIG: Record = { + [NoteType.PauseNote]: { label: 'Pause', bg: 'bg-amber-500/10', text: 'text-amber-400' }, + [NoteType.ResumeNote]: { label: 'Resume', bg: 'bg-blue-500/10', text: 'text-blue-400' }, + [NoteType.General]: { label: 'General', bg: 'bg-white/5', text: 'text-[var(--color-text-secondary)]' }, } function formatRelativeTime(dateStr: string): string { @@ -68,12 +68,12 @@ export default function NotesList({ taskId, notes }: NotesListProps) { return (
-

+

Notes

@@ -86,25 +86,21 @@ export default function NotesList({ taskId, notes }: NotesListProps) {
{typeConfig.label} - + {formatRelativeTime(note.createdAt)}
-

{note.content}

+

{note.content}

) })} {sortedNotes.length === 0 && !showInput && ( -

No notes yet

+

No notes yet

)} {showInput && ( @@ -121,7 +117,7 @@ export default function NotesList({ taskId, notes }: NotesListProps) { } }} placeholder="Add a note..." - className="w-full bg-[#0f1117] text-sm text-white px-3 py-2 rounded border border-transparent focus:border-indigo-500 outline-none placeholder-[#64748b]" + className="w-full bg-[var(--color-page)] text-sm text-[var(--color-text-primary)] px-3 py-2 rounded border border-transparent focus:border-[var(--color-accent)] outline-none placeholder-[var(--color-text-secondary)]" /> )}
diff --git a/TaskTracker.Web/src/components/SubtaskList.tsx b/TaskTracker.Web/src/components/SubtaskList.tsx index 0b1bfc9..21b5e46 100644 --- a/TaskTracker.Web/src/components/SubtaskList.tsx +++ b/TaskTracker.Web/src/components/SubtaskList.tsx @@ -46,12 +46,12 @@ export default function SubtaskList({ taskId, subtasks }: SubtaskListProps) { return (
-

+

Subtasks

@@ -67,13 +67,13 @@ export default function SubtaskList({ taskId, subtasks }: SubtaskListProps) { onClick={() => handleToggle(subtask)} > {isCompleted ? ( - + ) : ( - + )} {subtask.title} @@ -84,7 +84,7 @@ export default function SubtaskList({ taskId, subtasks }: SubtaskListProps) { {showInput && (
- +
)}