Datasets:
File size: 9,567 Bytes
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 c14c78f 148f3c7 c14c78f 148f3c7 c14c78f 148f3c7 c14c78f 148f3c7 c14c78f | 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 294 | {
"task_id": "c55",
"layer": "composite",
"seed_type": "prd",
"operators": [
"generate",
"add state",
"wire up data",
"remove section",
"make interactive"
],
"difficulty": "challenging",
"levers": [
"state coupling",
"cross-requirement combined state",
"exact numeric assertions"
],
"domain": "community forms",
"repair": false,
"inject_type": null,
"seed_meta": {
"authored_by": "hand",
"materials": "none"
},
"title": "Trace Fitness: From Site Build to Discounted-Price Recalculation",
"milestones": [
{
"operator": "generate",
"request": "Build a site homepage called “Trace Fitness”, with the tagline “Make progress visible”. Put the site name, a “My Class Packs (0)” entry, and a “Total ¥0” in the top bar.\n\nThe filter bar categories are All / Strength / Cardio / Rehab, defaulting to “All”. The class pack list has 20 items in total: Strength 8, Cardio 7, Rehab 5. Each item has a name, its category, a list price, and an “Enroll” button.\n\nList prices are calculated by position: item n = 90 + n × 55. There is also a rule: items with a list price of 450 or more get 20% off, rounded down, and the card must show both the original price and the discounted price."
},
{
"operator": "add state",
"request": "“Enroll” must actually work: after clicking, the button changes to “Enrolled”, the top-bar count increases by 1, and the top-bar “Total” adds this item's **discounted price**; clicking again cancels and both decrease back. The total must be calculated accurately using discounted prices."
},
{
"operator": "restyle",
"request": "Add a “Night mode” toggle to the top bar; turning it on switches the whole site to dark mode (darker background, lighter body text). The toggle state must persist after switching categories, and the top-bar count and total must not change because of the theme switch."
},
{
"operator": "restructure layout",
"request": "Change the class pack list into a grid, with 3 items per row at desktop width. After the change, the list price, discounted price, sorting, selected state, and total must all be identical to before."
},
{
"operator": "remove section",
"request": "We're dropping the “Rehab” category; remove the category together with those 5 items. After removal, list prices are recalculated by new position (item n = 90 + n × 55), and the discount rule still applies as before."
}
],
"checklist": [
{
"id": "gen.tabs",
"m": 1,
"dimension": "visual",
"w": 1.5,
"description": "The filter bar has exactly 4 categories: All / Strength / Cardio / Rehab; “All” is selected and distinguishable."
},
{
"id": "gen.total",
"m": 1,
"dimension": "functional",
"w": 1.5,
"description": "There are 20 items in total under All."
},
{
"id": "gen.price",
"m": 1,
"dimension": "functional",
"w": 1.5,
"description": "List prices are calculated by position: item 1 is ¥145, item 2 is ¥200, item 6 is ¥420."
},
{
"id": "gen.disc.exact",
"m": 1,
"dimension": "functional",
"w": 1.5,
"description": "A 20% discount applies at a list price of 450 or above, rounded down: item 6's discounted price is ¥420 (if its list price has not reached the threshold, no discounted price is shown)."
},
{
"id": "gen.disc.boundary",
"m": 1,
"dimension": "functional",
"w": 1.5,
"description": "Items with a list price below 450 do not show a discounted price; only the original price is shown."
},
{
"id": "gen.split",
"m": 1,
"dimension": "functional",
"w": 1.0,
"description": "After switching categories, the counts per category are: Strength 8, Cardio 7, Rehab 5."
},
{
"id": "gen.card",
"m": 1,
"dimension": "visual",
"w": 1.0,
"description": "Each card simultaneously shows the name, category, list price, and an “Enroll” button."
},
{
"id": "gen.header",
"m": 1,
"dimension": "visual",
"w": 1.0,
"description": "The top bar shows the site name “Trace Fitness”, the “My Class Packs” entry (initially 0), and “Total ¥0”."
},
{
"id": "gen.sel.one",
"m": 1,
"dimension": "visual",
"w": 1.0,
"description": "At any given moment, exactly one category is selected."
},
{
"id": "st.add1",
"m": 2,
"dimension": "interaction",
"w": 1.5,
"description": "Click “Enroll” on item 1; the button changes to “Enrolled”, the count is 1, and the total becomes ¥145."
},
{
"id": "st.add2",
"m": 2,
"dimension": "interaction",
"w": 1.5,
"description": "Then select item 6; the count is 2 and the total becomes ¥565 (accumulated using the discounted price)."
},
{
"id": "st.cancel",
"m": 2,
"dimension": "interaction",
"w": 1.5,
"description": "Cancel item 6; the count returns to 1 and the total returns to ¥145."
},
{
"id": "st.keep.tab",
"m": 2,
"dimension": "interaction",
"w": 1.5,
"description": "After selecting 2 items, switch to “Strength” and back to All; both the count and total remain unchanged."
},
{
"id": "st.sum.uses.disc",
"m": 2,
"dimension": "functional",
"w": 1.5,
"description": "The total uses discounted prices rather than original prices (for an item that has reached the discount threshold, the increment to the total equals its discounted price)."
},
{
"id": "skin.toggle",
"m": 3,
"dimension": "visual",
"w": 1.5,
"description": "A “Night mode” toggle exists in the top bar; it is clickable and has two clearly distinct states."
},
{
"id": "skin.dark",
"m": 3,
"dimension": "visual",
"w": 1.5,
"description": "After turning on Night mode, the background becomes clearly darker and the body text turns light, distinguishable from the daytime state."
},
{
"id": "skin.keep.tab",
"m": 3,
"dimension": "interaction",
"w": 1.5,
"description": "After turning on Night mode, switch categories; it is still in the dark state."
},
{
"id": "skin.keep.sum",
"m": 3,
"dimension": "interaction",
"w": 1.5,
"description": "Select 2 items first, then toggle Night mode twice; both the count and total remain unchanged."
},
{
"id": "skin.readable",
"m": 3,
"dimension": "visual",
"w": 1.0,
"description": "In the Night mode state, both the list price and the discounted price are clearly legible."
},
{
"id": "ref.grid3",
"m": 4,
"dimension": "visual",
"w": 1.5,
"description": "At desktop width, the layout is a grid with exactly 3 items per row."
},
{
"id": "ref.price.same",
"m": 4,
"dimension": "functional",
"w": 1.5,
"description": "After the restructure, list prices are unchanged: item 1 is ¥145, item 6 is ¥420."
},
{
"id": "ref.disc.same",
"m": 4,
"dimension": "functional",
"w": 1.0,
"description": "After the restructure, item 6's discounted price is still ¥420."
},
{
"id": "ref.state.same",
"m": 4,
"dimension": "interaction",
"w": 1.5,
"description": "Select 2 items before the restructure; after the restructure, the count and total are unchanged and those 2 items are still in the selected state."
},
{
"id": "ref.skin.same",
"m": 4,
"dimension": "visual",
"w": 1.0,
"description": "After the restructure, the Night mode toggle is still usable and the dark state still takes effect."
},
{
"id": "del.gone",
"m": 5,
"dimension": "coverage",
"w": 1.5,
"description": "The filter bar has only 3 categories left; “Rehab” no longer appears."
},
{
"id": "del.total",
"m": 5,
"dimension": "functional",
"w": 1.5,
"description": "Under All it becomes 15 items."
},
{
"id": "del.none",
"m": 5,
"dimension": "coverage",
"w": 1.0,
"description": "Browse the 15 items one by one; none of them belongs to “Rehab”."
},
{
"id": "del.price.recalc",
"m": 5,
"dimension": "functional",
"w": 1.5,
"description": "List prices are recalculated by new position: item 1 is ¥145, item 6 is ¥420, and the last item (item 15) is ¥915."
},
{
"id": "del.disc.recalc",
"m": 5,
"dimension": "functional",
"w": 1.5,
"description": "The discount rule still applies to the recalculated list prices: the last item (item 15) has a discounted price of ¥732."
},
{
"id": "del.keep.state",
"m": 5,
"dimension": "interaction",
"w": 1.5,
"description": "Before deleting, select 2 items in the retained categories; after deletion, the count and total remain unchanged."
},
{
"id": "del.grid.reflow",
"m": 5,
"dimension": "visual",
"w": 1.0,
"description": "After deletion, the grid still has 3 items per row; the last row is laid out according to the remaining count, with no empty placeholders."
},
{
"id": "del.combo",
"m": 5,
"dimension": "interaction",
"w": 1.5,
"description": "Select 2 items → turn on Night mode → switch to “Strength” → back to All; the count, total, and theme state are all correct at the same time."
},
{
"id": "del.sum.recalc",
"m": 5,
"dimension": "interaction",
"w": 1.5,
"description": "After deletion, reselect item 1; the increment to the total equals its recalculated discounted price."
}
],
"inject": null,
"qc_static": [],
"review_status": "hand_authored",
"hand_notes": {
"cross_requirement_items": 7,
"dim_counts": {
"visual": 10,
"functional": 11,
"interaction": 10,
"coverage": 2
}
}
}
|