Feature Closed Loops
Document Purpose
This document describes which features in the current demo already form relatively complete loops and how those loops connect across pages.
1. Course Purchase Loop
Path:
- user enters the
Coursespage - user views purchasable courses
- user opens a course detail page
- user clicks purchase
- local purchase state is written
- user is redirected to the payment result page
- the course appears under enrolled courses after returning
Related pages:
pages/tab/course/indexpages/catalog/course-detail/indexpages/commerce/payment/index
Related state:
purchasedpurchasedCourseIdslastPurchasedCourseId
2. Activity Signup Loop
Path:
- user enters the activity page from home or schedule
- user clicks signup
- signup state is written
- activity notification content changes
- an activity item is added to the schedule
- user can click again to cancel signup
Related state:
activitySignedUp
3. Daily Task Loop
Path:
- user enters the task page
- user opens vocabulary cards
- user marks vocabulary as learned
- user completes the check-in after finishing vocabulary
- the page updates progress and completion state
Related state:
learnedVocabIdsdailyTaskCompleted
4. Homework Submission Loop
Path:
- user enters the homework page from task or schedule
- user submits homework
- submission state is written
- related pages display the new state
Related state:
homeworkSubmitted
5. Message Reading Loop
Path:
- user enters the message center
- user filters messages by category
- user opens a message
- read state is written
- the detail view appears
- unread count and list state update together
Related state:
readNotificationIds