mirror of
https://github.com/pepaskopec-blip/Graduately.git
synced 2026-10-27 15:14:35 +00:00
Wire quiz and plot practice for every reading-list stub book.
GTK stubs now open shared kvíz/děj pages from generated packs; Mac book screens keep practice above notes with stable titles. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
cf136ca936
commit
a9ce04bb3b
8 changed files with 29889 additions and 27 deletions
|
|
@ -1074,20 +1074,6 @@ struct BookScreen: View {
|
|||
}
|
||||
}
|
||||
|
||||
if !notes.isEmpty {
|
||||
VStack(alignment: .leading, spacing: 14) {
|
||||
Text(vm.tr("book_notes"))
|
||||
#if os(macOS)
|
||||
.font(.title.weight(.semibold))
|
||||
#else
|
||||
.font(.title2.weight(.semibold))
|
||||
#endif
|
||||
ForEach(Array(notes.enumerated()), id: \.offset) { _, note in
|
||||
BookNoteCard(note: note)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if hasQuiz || hasPlot {
|
||||
VStack(alignment: .leading, spacing: 14) {
|
||||
Text(vm.tr("book_practice"))
|
||||
|
|
@ -1099,8 +1085,8 @@ struct BookScreen: View {
|
|||
if hasQuiz {
|
||||
NavigationLink(value: Route.bookQuiz(id)) {
|
||||
BookActionCard(
|
||||
title: vm.tr(b.str("quizTitle")),
|
||||
subtitle: vm.tr(b.str("quizSub")),
|
||||
title: vm.tr("book_quiz_heading"),
|
||||
subtitle: vm.tr("lit_quiz_sub"),
|
||||
systemImage: "questionmark.circle.fill",
|
||||
done: quizDone,
|
||||
doneLabel: vm.tr("book_done")
|
||||
|
|
@ -1111,8 +1097,8 @@ struct BookScreen: View {
|
|||
if hasPlot {
|
||||
NavigationLink(value: Route.bookPlot(id)) {
|
||||
BookActionCard(
|
||||
title: vm.tr(b.str("plotTitle")),
|
||||
subtitle: vm.tr(b.str("plotSub")),
|
||||
title: vm.tr("lit_plot_title"),
|
||||
subtitle: vm.tr("lit_plot_sub"),
|
||||
systemImage: "list.number",
|
||||
done: plotDone,
|
||||
doneLabel: vm.tr("book_done")
|
||||
|
|
@ -1122,6 +1108,20 @@ struct BookScreen: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if !notes.isEmpty {
|
||||
VStack(alignment: .leading, spacing: 14) {
|
||||
Text(vm.tr("book_notes"))
|
||||
#if os(macOS)
|
||||
.font(.title.weight(.semibold))
|
||||
#else
|
||||
.font(.title2.weight(.semibold))
|
||||
#endif
|
||||
ForEach(Array(notes.enumerated()), id: \.offset) { _, note in
|
||||
BookNoteCard(note: note)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#if os(macOS)
|
||||
.padding(28)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue