mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
course,tasklist,task and completed validation
Signed-off-by: rgrgogu <obsequio.rus@gmail.com>
This commit is contained in:
@@ -16,7 +16,7 @@ import {
|
||||
import {
|
||||
ArrowLeft, Pencil, Users, ClipboardList, FileText,
|
||||
Link2, Upload, BookOpen, BookMarked, FileCheck2,
|
||||
CalendarClock, Equal, Tag, Globe, Copy, File, Bookmark,
|
||||
CalendarClock, Equal, Tag, Globe, Copy, File, Bookmark, GitBranch,
|
||||
} from 'lucide-react';
|
||||
|
||||
// ─── All styling uses shadcn tokens — only label/icon differs per type
|
||||
@@ -281,6 +281,18 @@ export default function ViewTaskList() {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{task.prerequisites?.length > 0 && (
|
||||
<div className="flex items-center gap-2 text-muted-foreground">
|
||||
<GitBranch className="size-4 shrink-0" />
|
||||
<span className="text-sm">
|
||||
Requires:{' '}
|
||||
<span className="text-foreground font-medium">
|
||||
{task.prerequisites.map((p) => p.name).join(', ')}
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<TaskRequirementsSection requirements={task.requirements} />
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user