Skip to content

Feature: Add Lesson Summary Screen #11

Description

Description

Add a new Summary button on the lesson details screen (LessonDetailsScreen) that opens a dedicated summary screen with a detailed recap of the lesson content.

Current Behavior

The LessonDetailsScreen currently shows:

  • Lesson title and topic
  • YouTube player
  • Description text
  • Check My Knowledge button at the bottom

Desired Behavior

  1. Add a new Summary (Конспект) button below the Check My Knowledge button in LessonDetailsScreen.
  2. Tapping the button navigates to a new LessonSummaryScreen.
  3. The summary screen displays a detailed summary of the lesson content (key concepts, important points, etc.).

UI/UX Details

  • Button placement: Directly below the Check My Knowledge button in LessonDetailsScreen (�pps/condor_code_app/lib/ui/screens/lesson_details/lesson_details_screen.dart).
  • Button style: Should use AppButtonStyles.mainButtonStyle or a secondary style to distinguish from the primary action.
  • Summary screen: New screen, e.g. LessonSummaryScreen, accessible via GoRouter.
  • Data source: The summary content should come from the Lesson model — likely requires adding a summary or summaryContent field.

Data Model Considerations

The current Lesson model (packages/domain/lib/models/lesson.dart) contains:

  • id, itle, opic, description, youtubeUrl, courseId, isYouTubeLesson, sortOrder

Need to add: summary (String?) — a detailed lesson summary for the new screen.

Acceptance Criteria

  • New Summary button visible on LessonDetailsScreen below Check My Knowledge
  • Button navigates to a new LessonSummaryScreen
  • LessonSummaryScreen displays the lesson summary content with proper scrolling
  • Lesson model updated with summary field
  • Firestore/data layer updated to fetch and map the new field
  • Localization strings added for the new button and screen title
  • Analytics event logged when the Summary button is tapped

Files Likely to Change

  • �pps/condor_code_app/lib/ui/screens/lesson_details/lesson_details_screen.dart
  • �pps/condor_code_app/lib/ui/screens/lesson_summary/ (new folder)
  • �pps/condor_code_app/lib/ui/navigation/route_constants.dart
  • �pps/condor_code_app/lib/ui/navigation/go_router.dart
  • packages/domain/lib/models/lesson.dart
  • packages/data/lib/data_sources/remote/models/lesson_remote.dart
  • packages/data/lib/mappers/lesson_mapper.dart
  • packages/data/lib/repository/lessons_repository_impl.dart

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions