[Onboarding + Enrollments] Store onboarding step values in a flow model
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 52/100
Hướng nghiên cứu
Read lib/screens/onboarding_screen.dart and the setup guide at docs/getting-started/first-contribution.md; wait until issues #9, #10, and #11 have merged before starting. Implement the flow in lib/onboarding/onboarding_flow.dart and cover it in test/onboarding_flow_test.dart, checking retained values, system back, step indicators, submit outcomes, and the privacy link. Done means the listed acceptance checks pass with flutter test and flutter analyze.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What to build
Keep the student’s name, class year, major and course list while they move between setup steps. Add one shared object for those values and the current step so going back does not erase earlier work.
Files
lib/onboarding/onboarding_flow.dart(new file)- Starting example: lib/screens/onboarding_screen.dart
Code to add or extend:OnboardingFlow extends ChangeNotifier.
Steps
- Add
OnboardingFlowwith name, classYear, major, courses and step fields. Start step at 0 and the answers empty. - Add
setName(String),setClassYear(String?),setMajor(String)andsetCourses(List<String>), plusnext()andback(). Each setter stores the value and callsnotifyListeners(); store a copy of the course list. Keep step between 0 and 2. - Changing steps must keep all answers. This object stores form answers only; saving them to the server comes later.
Example
Set the name to “Ada”, call next(), then back(). step returns to 0 and name is still “Ada”.
Check it works
In test/onboarding/onboarding_flow_12_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/onboarding/onboarding_flow_12_test.dart and flutter analyze.
Before starting
- #53 — Submit valid name/year from the step
- #54 — Validate and submit the major field
- #56 — Delete a course chip and set Done state
References
Assign yourself before starting, or comment to claim the issue. Project setup.
- Ngôn ngữ chính
- PLpgSQL
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DevDogsUGA/DogPack
-
polish
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DevDogsUGA/DogPack#131 ·
-
polish
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
DevDogsUGA/DogPack#130 ·
-
moderation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DevDogsUGA/DogPack#119 ·
-
moderation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
DevDogsUGA/DogPack#113 ·
-
discover
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
DevDogsUGA/DogPack#106 ·
Tất cả issue của DevDogsUGA/DogPack
Issue tương tự
-
backlog:low bug localization
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
simonoppowa/OpenNutriTracker#1366 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 60/100
meshtastic/Meshtastic-Apple#2603 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 3 ngày