Skip to content

Commit

Permalink
enhance(apps/frontend-pwa): add description to course practice area
Browse files Browse the repository at this point in the history
  • Loading branch information
sjschlapbach committed May 23, 2024
1 parent f160b3a commit 8069d22
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion apps/frontend-pwa/src/pages/course/[courseId]/practice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ function PracticePool({ courseId }: Props) {
course={data.coursePracticeQuiz.course ?? undefined}
>
<PracticeQuiz
quiz={data?.coursePracticeQuiz}
quiz={{
...data?.coursePracticeQuiz,
description: t('pwa.courses.coursePracticeArea', {
courseName: data?.coursePracticeQuiz.course?.displayName,
}),
}}
currentIx={currentIx}
setCurrentIx={setCurrentIx}
handleNextElement={handleNextQuestion}
Expand Down
3 changes: 2 additions & 1 deletion packages/graphql/src/services/courses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -780,12 +780,13 @@ export async function getCoursePracticeQuiz(
id: courseId,
name: course.name,
displayName: course.displayName,
description: 'Practice Pool for ' + course.displayName,
description: null,
pointsMultiplier: 1,
resetTimeDays: 6,
orderType: ElementOrderType.SPACED_REPETITION,
status: PublicationStatus.PUBLISHED,
stacks: orderedStacks.slice(0, 25),
numOfStacks: 25,
availableFrom: null,
course,
courseId,
Expand Down
2 changes: 2 additions & 0 deletions packages/i18n/messages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,8 @@ Da die KlickerUZH-App noch nicht im iOS-App-Store verfügbar ist, folgen Sie die
'Wenn Sie das Kurs-Leaderboard verlassen, werden Interaktionen mit Kursaktivitäten und Ihre gesammelten Punkte gelöscht. Sie können dem Leaderboard jederzeit wieder beitreten, beginnen dann aber von Neuem.',
noGamificationOrDescription:
'Willkommen im Kurs {courseName}! Für diesen KlickerUZH-Kurs wurde die Gamifizierung deaktiviert und es wird kein Leaderboard angezeigt. KlickerUZH listet dennoch alle kursbezogenen Aktivitäten in den entsprechenden Abschnitten der App für einen direkten Zugriff.',
coursePracticeArea:
'Dies ist der Übungspool für den Kurs {courseName}. Hier stehen euch die Inhalte aus allen Übungs-Quizzes kombiniert zur Verfügung. Für gezielte Wiederholungen werden immer 25 Fragen gemäss unserer Spaced Repeitition Logik und basierend auf euren bisherigen Antworten ausgewählt.',
},
joinCourse: {
title: 'Kurs "{name}" beitreten',
Expand Down
2 changes: 2 additions & 0 deletions packages/i18n/messages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,8 @@ Since the KlickerUZH app is not yet available on the iOS App Store, follow these
'If you leave the leaderboard, your interactions with activities of this course, as well as collected points in this course, will be deleted. You can join again at any time, but will have to start from scratch.',
noGamificationOrDescription:
'Welcome to the course {courseName}! For this KlickerUZH course, gamification has been disabled by the lecturer and no leaderboard will be shown here. KlickerUZH will still list all course-related activities in the corresponding sections of the app for quick access.',
coursePracticeArea:
'This is the practice pool for the course {courseName}. Here you have access to the content from all practice quizzes combined. For targeted repetitions, batches of 25 questions are selected according to our spaced repetition logic and based on your previous answers.',
},
joinCourse: {
title: 'Join Course "{name}"',
Expand Down

0 comments on commit 8069d22

Please sign in to comment.