'some' changes

This commit is contained in:
Chris Sanden
2026-05-03 23:05:22 +02:00
parent 08a14b3ab2
commit 907fa18841
21 changed files with 2253 additions and 220 deletions

View File

@@ -288,7 +288,7 @@ export default function ViewDetailsSubject() {
<View className="mt-5">
<View className="mb-2 flex-row items-center justify-between">
<Text className="text-sm font-semibold text-text-secondary">
Assignment Progress
Assignments completed
</Text>
<Text className="text-sm font-bold text-text-main">
@@ -313,6 +313,10 @@ export default function ViewDetailsSubject() {
remainingAssignments === 1 ? '' : 's'
} remaining`}
</Text>
<Text className="mt-1 text-xs text-text-muted">
Based only on completed assignments in this subject.
</Text>
</View>
<Text className="mt-4 text-sm text-text-muted">
@@ -451,7 +455,9 @@ export default function ViewDetailsSubject() {
{section.emptyMessage}
</Text>
<Text className="mt-1 text-center text-sm text-text-muted">
Assignments for this subject will show up here.
{assignments.length === 0
? 'Create the first assignment to give this subject a real study path.'
: 'Assignments for this subject will show up here.'}
</Text>
</View>
) : (