3v324v23 Claude Sonnet 5.5 commited on
Commit
217116f
ยท
1 Parent(s): 21b042a

Teacher progress tab: per lesson, periods, readiness; bulk student reads; fix timestamp parsing; archive add-class-progress-views

Browse files
openspec/changes/{add-class-progress-views โ†’ archive/2026-11-09-add-class-progress-views}/.openspec.yaml RENAMED
File without changes
openspec/changes/{add-class-progress-views โ†’ archive/2026-11-09-add-class-progress-views}/proposal.md RENAMED
File without changes
openspec/changes/{add-class-progress-views โ†’ archive/2026-11-09-add-class-progress-views}/specs/class-progress-views/spec.md RENAMED
File without changes
openspec/changes/{add-class-progress-views โ†’ archive/2026-11-09-add-class-progress-views}/tasks.md RENAMED
File without changes
openspec/specs/class-progress-views/spec.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # class-progress-views Specification
2
+
3
+ ## Purpose
4
+ A class's progress for its teacher: per lesson (never per skill), with the two periods and the readiness per student for the coming test.
5
+
6
+ ## Requirements
7
+
8
+ ### Requirement: The progress tab
9
+ A teacher's screen SHALL have a "ื”ืชืงื“ืžื•ืช" tab, with the number of students of the teacher's classes like the other tabs, and each class card SHALL have a "ื”ืชืงื“ืžื•ืช" shortcut to it. The tab SHALL show one class at a time, with a way to choose the class when the teacher has several. Only a class's own teacher or a developer SHALL be able to read its progress. A manager or an admin MUST NOT, and a teacher MUST NOT read another teacher's class.
10
+
11
+ #### Scenario: Two classes
12
+ - **WHEN** a teacher of two classes opens the tab
13
+ - **THEN** they see the first class and can switch to the other
14
+
15
+ #### Scenario: Another teacher's class
16
+ - **WHEN** a teacher asks for the progress of a class they do not teach, or a manager asks for any class
17
+ - **THEN** the server refuses
18
+
19
+ #### Scenario: A developer
20
+ - **WHEN** a developer opens any class's progress
21
+ - **THEN** they see it as the class's teacher would
22
+
23
+ ### Requirement: Progress by lesson
24
+ The progress view SHALL list the students in rows and the lessons in columns, never the skills. Each cell SHALL show only three things: a progress bar with the percent of the lesson's skills mastered written on it, the best quiz grade as a bare number (a dash for none, without the word "ื‘ื•ื—ืŸ"), and, in the current period, a warning mark when the lesson is behind the curriculum and not completed. The cell's accessible name SHALL still say the state in words (ื”ื•ืฉืœื, ื‘ืœืžื™ื“ื”, ืœื ื”ืชื—ื™ืœื•, ื‘ืคื™ื’ื•ืจ).
25
+
26
+ #### Scenario: Cell contents
27
+ - **WHEN** a student has mastered 3 of 5 skills of a lesson and their best quiz grade is 80
28
+ - **THEN** the cell shows a bar with 60% and the number 80, and nothing else
29
+
30
+ #### Scenario: Behind
31
+ - **WHEN** a lesson's date has passed and a student has neither mastered all its skills nor passed its quiz
32
+ - **THEN** that student's cell for the lesson carries the warning mark
33
+
34
+ #### Scenario: Completed or not started
35
+ - **WHEN** a student has passed a lesson's quiz, or has done nothing in it
36
+ - **THEN** the cell's accessible name says "ื”ื•ืฉืœื" or "ืœื ื”ืชื—ื™ืœื•", and the cell shows no extra text
37
+
38
+ #### Scenario: No skill columns
39
+ - **WHEN** a teacher opens the progress view
40
+ - **THEN** no column or cell stands for a single skill
41
+
42
+ ### Requirement: The progress table
43
+ A student who has not signed in yet SHALL have every lesson not started. The table SHALL scroll inside its own frame with the student column fixed, and the page MUST NOT scroll sideways.
44
+
45
+ #### Scenario: Not signed in yet
46
+ - **WHEN** a student was added to the class and has never signed in
47
+ - **THEN** their row shows every lesson as not started
48
+
49
+ #### Scenario: A phone
50
+ - **WHEN** the table is wider than the screen
51
+ - **THEN** it scrolls inside its frame and the page does not scroll sideways
52
+
53
+ ### Requirement: Periods
54
+ The progress by lesson SHALL have two period tabs, "ืกืคื˜ืณโ€“ื“ืฆืžืณ" and "ื™ื ื•ืณโ€“ื™ื•ื ื™". A period SHALL show the lessons of that period, by the lesson's date in the curriculum or, when it has none, by the last month of the bank's month for it, and the states as they were at the end of the period, or today for the current period. The current period SHALL be open first.
55
+
56
+ #### Scenario: A past period
57
+ - **WHEN** a skill was mastered on 20 January and the teacher opens the progress view in March
58
+ - **THEN** that lesson's percent does not include the skill in the first period's view (which ends on 31 December), and does in the second
59
+
60
+ #### Scenario: Lessons of the period
61
+ - **WHEN** a lesson is dated 15 February
62
+ - **THEN** it appears in the second period and not in the first
63
+
64
+ ### Requirement: Readiness per student
65
+ For the class's nearest coming test the tab SHALL list each student's readiness number and its word, their mastery percent, their practice-test average and their simulation grade, with a dash for what they have not done. A class with no coming test SHALL say so.
66
+
67
+ #### Scenario: A coming test
68
+ - **WHEN** a class has a test in ten days and one student has done nothing
69
+ - **THEN** the table lists that student with a dash for what is missing
70
+
71
+ #### Scenario: No test
72
+ - **WHEN** the class has no coming test
73
+ - **THEN** the readiness view says no test is set