diff --git a/AIStudyApp/AIStudyApp/Features/Library/LibrarySubpages.swift b/AIStudyApp/AIStudyApp/Features/Library/LibrarySubpages.swift index 41a8cee..eca540c 100644 --- a/AIStudyApp/AIStudyApp/Features/Library/LibrarySubpages.swift +++ b/AIStudyApp/AIStudyApp/Features/Library/LibrarySubpages.swift @@ -265,6 +265,11 @@ struct LibraryDetailPage: View { Image(systemName: "trash").font(.system(size: 16)).foregroundColor(Color.zxF03) } } + ToolbarItem(placement: .topBarTrailing) { + NavigationLink(value: Route.quizList(knowledgeBaseId: knowledgeBaseId)) { + Image(systemName: "questionmark.circle").font(.system(size: 16)).foregroundColor(Color.zxF05) + } + } ToolbarItem(placement: .topBarTrailing) { NavigationLink(value: Route.addKnowledge(knowledgeBaseId: knowledgeBaseId)) { Image(systemName: "plus").font(.system(size: 16, weight: .semibold)).foregroundColor(Color.zxPrimary) diff --git a/AIStudyApp/AIStudyApp/Features/Study/StudyHomeView.swift b/AIStudyApp/AIStudyApp/Features/Study/StudyHomeView.swift index 007fdfe..603baa0 100644 --- a/AIStudyApp/AIStudyApp/Features/Study/StudyHomeView.swift +++ b/AIStudyApp/AIStudyApp/Features/Study/StudyHomeView.swift @@ -51,6 +51,28 @@ struct StudyHomeView: View { // MARK: - Weekly Summary weeklySummaryCard + // MARK: - Quick Actions + HStack(spacing: 12) { + NavigationLink(value: Route.aiChat) { + VStack(spacing: 6) { + Image(systemName: "sparkles").font(.system(size: 18)).foregroundColor(Color.zxPurple).frame(width: 44, height: 44).background(Color.zxPurpleBG(0.12)).clipShape(RoundedRectangle(cornerRadius: 12)) + Text("AI 问答").font(.system(size: 11)).foregroundColor(Color.zxF04) + }.frame(maxWidth: .infinity) + }.foregroundColor(.primary) + NavigationLink(value: Route.activeRecall) { + VStack(spacing: 6) { + Image(systemName: "brain.head.profile").font(.system(size: 18)).foregroundColor(Color.zxOrange).frame(width: 44, height: 44).background(Color.zxOrangeBG(0.12)).clipShape(RoundedRectangle(cornerRadius: 12)) + Text("自测").font(.system(size: 11)).foregroundColor(Color.zxF04) + }.frame(maxWidth: .infinity) + }.foregroundColor(.primary) + NavigationLink(value: Route.reviewCard) { + VStack(spacing: 6) { + Image(systemName: "arrow.triangle.2.circlepath").font(.system(size: 18)).foregroundColor(Color.zxTeal).frame(width: 44, height: 44).background(Color.zxTeal.opacity(0.12)).clipShape(RoundedRectangle(cornerRadius: 12)) + Text("复习").font(.system(size: 11)).foregroundColor(Color.zxF04) + }.frame(maxWidth: .infinity) + }.foregroundColor(.primary) + }.padding(.horizontal, 20) + // MARK: - Today Tasks VStack(alignment: .leading, spacing: 12) { HStack {