You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@
16
16
- Use **Cursors** (`.cursor()`) to stream data from MongoDB, ensuring the script remains memory-efficient regardless of dataset size.
17
17
- Use **Batching** with `bulkWrite` (e.g., batches of 500) to maximize performance and minimize network roundtrips.
18
18
- Ensure **Idempotency** (safe to re-run) by using upserts or `$setOnInsert` where applicable.
19
+
- When making changes to the structure of the Course, consider how it affects its representation on its public page (`apps/web/app/(with-contexts)/(with-layout)/p/[id]/page.tsx`) and the course viewer (`apps/web/app/(with-contexts)/course/[slug]/[id]/page.tsx`).
19
20
20
21
### Workspace map (core modules):
21
22
@@ -48,6 +49,7 @@
48
49
- Always add or update test when introducing changes to `apps/web/graphql` folder, even if nobody asked.
49
50
- Run `pnpm test` to run the tests.
50
51
- Fix any test or type errors until the whole suite is green.
52
+
- Refrain from creating new files when adding tests in `apps/web/graphql` subdirectories. Re-use `logic.test.ts` files for adding new test suites i.e. describe blocks.
CourseLit uses the concept of a `Lesson`. It is very similar to what we generally see in books, i.e., a large piece of information is divided into smaller chunks called lessons.
8
8
9
-
Similarly, you can break down your course into `Lessons` and group the lessons into [Sections](/en/products/section).
9
+
Similarly, you can break down your course into `Lessons` and group the lessons into [Sections](/en/courses/section).
You can move sections up or down as you like. Click the chevron up or down buttons to move a section.
52
+
53
+

54
+
55
+
## Moving a Lesson Between Sections
56
+
57
+
Use the drag-and-drop handles on the left side of a lesson's listing to move it to any section.
58
+
59
+

60
+
49
61
## Drip a Section
50
62
51
63
You can release a section on a **specific date** or **after a certain number of days have elapsed since the time a student enrolls**.
@@ -55,22 +67,28 @@ If drip configuration is enabled for a section, a student won't be able to acces
55
67
### Drip by Date
56
68
57
69
1. If you want a section to be available to users on a specific date, this is the option you should opt for.
70
+
2. Exact-date sections unlock only when their chosen date and time arrives.
71
+
3. Unlocking an exact-date section does not change the timing of other relative drip sections.
58
72
59
73

60
74
61
-
2. Select the date on which this section will be dripped.
62
-
3. Click `Continue` to save it.
75
+
4. Select the date on which this section will be dripped.
76
+
5. Click `Continue` to save it.
63
77
64
78
### Drip After a Certain Number of Days From Last Dripped Content
65
79
66
80
1. If you want a section to be available to users after a certain number of days have elapsed since the last dripped content, this is the option you should opt for.
81
+
2. Relative-date sections are released in section order. A later relative section waits for the earlier relative section before its own delay begins.
82
+
3. The first relative section counts from the student's enrollment date. After that, each newly released relative section becomes the anchor for the next relative section.
67
83
68
84
> For the first dripped section, the date of enrollment will be considered the last dripped content date.
69
85
70
86

71
87
72
-
2. Select the number of days.
73
-
3. Click `Continue` to save it.
88
+
4. Select the number of days.
89
+
5. Click `Continue` to save it.
90
+
91
+
> Rearranging a section with drip enabled may affect its drip schedule; use caution.
74
92
75
93
### Notify Users When a Section Has Dripped
76
94
@@ -94,7 +112,7 @@ On the course viewer, the customer will see the clock icon against the section n
94
112
95
113
2. Click `Delete` on the confirmation dialog.
96
114
97
-
> A section must be empty (i.e., have no lessons attached to it) in order to be deleted.
115
+
> A section must be empty (i.e., have no lessons attached) before it can be deleted. Move any lessons to another section to make it empty.
0 commit comments