File size: 9,964 Bytes
148f3c7
 
 
 
 
c14c78f
 
 
 
 
148f3c7
c14c78f
148f3c7
c14c78f
 
 
148f3c7
c14c78f
148f3c7
 
 
 
4385304
148f3c7
c14c78f
148f3c7
 
c14c78f
 
148f3c7
 
c14c78f
 
148f3c7
 
c14c78f
 
148f3c7
 
c14c78f
 
148f3c7
 
c14c78f
 
148f3c7
 
 
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
c14c78f
148f3c7
c14c78f
148f3c7
 
 
 
 
 
 
 
c14c78f
 
 
 
148f3c7
 
4385304
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
{
 "task_id": "c44",
 "layer": "composite",
 "seed_type": "prd",
 "operators": [
  "generate",
  "make responsive",
  "add section",
  "wire up data",
  "make interactive"
 ],
 "difficulty": "challenging",
 "levers": [
  "state coupling",
  "cross-requirement combined state",
  "exact numeric assertions"
 ],
 "domain": "education courses",
 "repair": false,
 "inject_type": null,
 "seed_meta": {
  "authored_by": "hand",
  "materials": "none"
 },
 "title": "LevelUp Classroom: From Site Build to Lesson-Fee Recalculation and High-Rating Filtering",
 "milestones": [
  {
   "operator": "generate",
   "request": "Build a site homepage called “LevelUp Classroom”, with the tagline “Every lesson, fully explained”. Put the site name and a “My Plan (0)” entry in the top bar.\n\nBelow that is a filter bar whose categories are fixed as All / Coding / Design / Languages, defaulting to “All”. The main body is a course list with 21 items in total, distributed as: Coding 8, Design 7, Languages 6.\n\nEach item must have a name, its category, a lesson fee, and an “Add to Plan” button. Lesson fees are assigned by position: item n = 120 + n × 30. Each item also has a rating; item 1 is 4.9, and each subsequent item is 0.1 lower than the previous one. The list is sorted by rating from high to low by default."
  },
  {
   "operator": "add state",
   "request": "“Add to Plan” must actually work. After clicking, the button changes to “Added” and the “My Plan” count in the top bar increases by 1; clicking again cancels it and the count decreases by 1. This count and each item's button state must not be lost after switching categories."
  },
  {
   "operator": "wire up data",
   "request": "Add a summary line below the filter bar: “N items · Total lesson fees M”. N is the number of items under the current category, and M is the sum of the lesson fees of those items; it must update when switching categories, and the numbers must be calculated accurately."
  },
  {
   "operator": "remove section",
   "request": "We're dropping the “Languages” category; remove the category together with those 6 items. After removal, lesson fees are recalculated by new position (item n = 120 + n × 30), and the summary line must update accordingly."
  },
  {
   "operator": "make interactive",
   "request": "Add a “High ratings only” toggle to the filter bar; when on, only items with a rating of at least 4.6 are shown. The toggle state must persist after switching categories, and the top-bar count must not change before or after toggling the filter."
  }
 ],
 "checklist": [
  {
   "id": "gen.tabs",
   "m": 1,
   "dimension": "visual",
   "w": 1.5,
   "description": "The filter bar has exactly 4 categories, with the text, in order: All / Coding / Design / Languages; “All” is selected and distinguishable from the other categories."
  },
  {
   "id": "gen.total",
   "m": 1,
   "dimension": "functional",
   "w": 1.5,
   "description": "Under the All category, the total number of courses is 21."
  },
  {
   "id": "gen.val.desc",
   "m": 1,
   "dimension": "functional",
   "w": 1.5,
   "description": "By default sorted by rating in descending order: item 1 is 4.9, item 2 is 4.8, item 3 is 4.7."
  },
  {
   "id": "gen.extra.rule",
   "m": 1,
   "dimension": "functional",
   "w": 1.5,
   "description": "Lesson fees are calculated by position: item 1 is 150, item 2 is 180, item 5 is 270."
  },
  {
   "id": "gen.split",
   "m": 1,
   "dimension": "functional",
   "w": 1.0,
   "description": "After switching categories, the counts per category are: Coding 8, Design 7, Languages 6."
  },
  {
   "id": "gen.card",
   "m": 1,
   "dimension": "visual",
   "w": 1.0,
   "description": "Each card simultaneously shows the name, category, lesson fee, rating, and an “Add to Plan” button."
  },
  {
   "id": "gen.header",
   "m": 1,
   "dimension": "visual",
   "w": 1.0,
   "description": "The top bar shows the site name “LevelUp Classroom”, the tagline “Every lesson, fully explained”, and the “My Plan” entry, with an initial count of 0."
  },
  {
   "id": "gen.sel.one",
   "m": 1,
   "dimension": "visual",
   "w": 1.0,
   "description": "At any given moment, exactly one category in the filter bar is selected."
  },
  {
   "id": "st.add1",
   "m": 2,
   "dimension": "interaction",
   "w": 1.5,
   "description": "Click “Add to Plan” on item 1; the button changes to “Added” and the top-bar count is 1."
  },
  {
   "id": "st.add3",
   "m": 2,
   "dimension": "interaction",
   "w": 1.5,
   "description": "Then do the same for items 2 and 3; the top-bar count is 3 and all three items show “Added”."
  },
  {
   "id": "st.cancel",
   "m": 2,
   "dimension": "interaction",
   "w": 1.5,
   "description": "Click item 2 again; the button returns to “Add to Plan” and the top-bar count is 2."
  },
  {
   "id": "st.keep.tab",
   "m": 2,
   "dimension": "interaction",
   "w": 1.5,
   "description": "After acting on 3 items, switch to “Coding” and back to All; the top-bar count is still 3 and the original three items still show “Added”."
  },
  {
   "id": "st.no.dup",
   "m": 2,
   "dimension": "interaction",
   "w": 1.0,
   "description": "Click the same item twice in a row; the net change in count is 0 (no duplicate counting)."
  },
  {
   "id": "st.badge.visible",
   "m": 2,
   "dimension": "visual",
   "w": 1.0,
   "description": "The top-bar count number updates visibly immediately after the action, without refreshing the page."
  },
  {
   "id": "data.sum.all",
   "m": 3,
   "dimension": "functional",
   "w": 1.5,
   "description": "Under All, the summary line shows “21 items”, and the total lesson fees equal the sum of the 21 items, with exact numbers."
  },
  {
   "id": "data.sum.tab",
   "m": 3,
   "dimension": "functional",
   "w": 1.5,
   "description": "Switch to “Coding”; the item count in the summary line becomes 8, and the total equals the sum of that category's items."
  },
  {
   "id": "data.sum.pos",
   "m": 3,
   "dimension": "visual",
   "w": 1.0,
   "description": "The summary line is located below the filter bar, with wording of the form “N items · Total lesson fees M”."
  },
  {
   "id": "data.sum.switch",
   "m": 3,
   "dimension": "interaction",
   "w": 1.5,
   "description": "Switch back and forth twice between two different categories; the item count and total in the summary line match the current category each time."
  },
  {
   "id": "data.sum.keep.state",
   "m": 3,
   "dimension": "interaction",
   "w": 1.5,
   "description": "Act on 2 items first, then switch categories; the summary line changes with the category while the top-bar count remains 2."
  },
  {
   "id": "del.tab.gone",
   "m": 4,
   "dimension": "coverage",
   "w": 1.5,
   "description": "The filter bar has only 3 categories left; “Languages” no longer appears."
  },
  {
   "id": "del.total",
   "m": 4,
   "dimension": "functional",
   "w": 1.5,
   "description": "Under All, the total becomes 15 items."
  },
  {
   "id": "del.none.left",
   "m": 4,
   "dimension": "coverage",
   "w": 1.0,
   "description": "Browse the 15 items one by one; no item's category is “Languages”."
  },
  {
   "id": "del.extra.recalc",
   "m": 4,
   "dimension": "functional",
   "w": 1.5,
   "description": "Lesson fees are recalculated by new position: item 1 is 150, item 5 is 270, and the last item (item 15) is 570."
  },
  {
   "id": "del.sum.update",
   "m": 4,
   "dimension": "functional",
   "w": 1.5,
   "description": "The summary line updates in sync to “15 items”, and the total equals the sum of the 15 recalculated items."
  },
  {
   "id": "del.keep.state",
   "m": 4,
   "dimension": "interaction",
   "w": 1.5,
   "description": "Before deleting, act on 2 items in the retained categories; after deleting “Languages”, the top-bar count is still 2 and those 2 items still show “Added”."
  },
  {
   "id": "int.toggle.exists",
   "m": 5,
   "dimension": "visual",
   "w": 1.5,
   "description": "A “High ratings only” toggle exists near the filter bar; it is clickable and has clearly distinct on/off states."
  },
  {
   "id": "int.toggle.filter",
   "m": 5,
   "dimension": "interaction",
   "w": 1.5,
   "description": "After turning on “High ratings only”, every item in the list has a rating of at least 4.6; all items below that value are invisible."
  },
  {
   "id": "int.toggle.off",
   "m": 5,
   "dimension": "interaction",
   "w": 1.0,
   "description": "After turning the toggle off, the list returns to 15 items."
  },
  {
   "id": "int.toggle.keep.tab",
   "m": 5,
   "dimension": "interaction",
   "w": 1.5,
   "description": "After turning on “High ratings only”, switch categories; the toggle is still in the on state (not reset)."
  },
  {
   "id": "int.count.keep",
   "m": 5,
   "dimension": "interaction",
   "w": 1.5,
   "description": "After acting on 2 items, toggle “High ratings only” on and off twice in a row; the top-bar count is always 2."
  },
  {
   "id": "int.combo.all",
   "m": 5,
   "dimension": "interaction",
   "w": 1.5,
   "description": "Act on 2 items → switch to “Coding” → turn on High ratings only → switch back to All; the top-bar count, summary line, and toggle state are all correct at the same time."
  },
  {
   "id": "int.layout.ok",
   "m": 5,
   "dimension": "visual",
   "w": 1.0,
   "description": "After toggling the filter, card information remains fully visible, with no text truncation or element overlap."
  },
  {
   "id": "int.sum.with.filter",
   "m": 5,
   "dimension": "visual",
   "w": 1.0,
   "description": "After enabling the filter, the summary line is still visible and not empty."
  }
 ],
 "inject": null,
 "qc_static": [],
 "review_status": "hand_authored",
 "hand_notes": {
  "cross_requirement_items": 7,
  "dim_counts": {
   "visual": 9,
   "functional": 9,
   "interaction": 13,
   "coverage": 2
  }
 }
}