Datasets:
File size: 16,841 Bytes
dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d c14c78f dd5428d 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 | {
"task_id": "c03",
"layer": "composite",
"seed_type": "brownfield",
"operators": [
"remove section",
"make interactive",
"add section",
"repair",
"wire up data"
],
"difficulty": "challenging",
"levers": [
"state coupling",
"exact numeric assertions"
],
"domain": "content & news",
"repair": true,
"inject_type": "Async race condition",
"seed_meta": {
"repo_src": null,
"exclude_slug": "react_zh_000485",
"repo_shot": true
},
"title": "Charlotte Prep Website Rework: From \"One at a Time\" to a Filterable, Sortable Story List + Read Later",
"milestones": [
{
"operator": "remove section",
"request": "The big card in the middle of the homepage — the light-blue band with the white card whose left side is a photo and right side is a paragraph with a blue link, plus those three little dots at the bottom right and the big arrows on either side (the \"flipbook\" block) — has been taken down. Remove the whole block, don't leave half of it behind. Two things to watch: first, the full-width light-blue background goes with it — that blue band should no longer be visible anywhere on the page; second, the intro paragraph above and the little open-book illustration must stay exactly as they are, and after the removal the Admissions Deadlines / Quick Facts block has to naturally move up and take its place — no big empty white gap in between. While you're at it, don't mess up the styling or behavior anywhere else — the hero image at the top and the three-photo banner at the bottom keep working exactly as they do now."
},
{
"operator": "wire up data",
"request": "School News currently shows only one story at a time, which is way too cramped. We want to turn it into a full list of stories you can scan at a glance. The backend stories are all sorted out: 42 in total. Numbers 1 through 42 are our publishing order — #1 is the newest, dated April 30, 2025, and each one after it is one day earlier, all the way down to #42. The sections rotate in this order: Campus News, Academics, Sports, Arts — #1 Campus News, #2 Academics, #3 Sports, #4 Arts, #5 back to Campus News, and so on; all four sections must appear. You can make the titles sound plausible for each section, but every title has to show its number (e.g. append #7), so we can check them off. Also, each story needs an estimated read time. The formula is dead simple: take the number, divide by 5, take the remainder, add 3, in minutes. Each card must show section, date, title and read time. Stop writing dates like Apr 30 — use the 2025-04-30 format throughout. There should be a stats line at the top of the section telling me how many stories are in the list right now. Use the existing photos for images, rotating through them — no new assets needed."
},
{
"operator": "make interactive",
"request": "The list is too long — it needs to be filterable. At the top, give us a row of section toggles: All, Campus News, Academics, Sports, Arts. Clicking one shows only that section's stories, no cross-contamination, and the stats line on top has to update to tell me how many are currently filtered. Also add a newest/oldest order toggle, newest first by default, switch to oldest first on toggle. Paginate the list, 9 per page. The footer needs working \"Previous\" and \"Next\" plus a row of page-number buttons; clicking a number goes straight to that page and that number must be visibly the current page. After changing section or order, go back to page 1 — don't get stuck on a page number that doesn't exist. Also, put a \"Read Later\" toggle in the top-right corner of each card; lit means saved, click again to unsave. Next to the section title, add a small counter telling me how many are saved in total. The counter only counts saves — filtering or paging must not affect it. When I filter to Sports, the ones I saved earlier under Academics still count, they're just not visible in the list; and of course stories that aren't visible shouldn't be clickable."
},
{
"operator": "add section",
"request": "Above the footer, add a \"My Read Later\" panel. List saved stories strictly in the order I saved them (first saved at the top, regardless of number), each showing section, title (with number), date and estimated read time, with a remove button after each. The panel header needs a summary line: how many are saved, and roughly how long they'll take to read in total (just add up the individual estimated times). When nothing is saved, don't leave an empty box — show this message, word for word: No saved stories yet — go pick a few above. Removing one from the panel must turn off the matching card's Read Later toggle in the list above and decrement the counter next to the title — the two always stay in sync; once everything is removed, go back to the empty-state message."
},
{
"operator": "repair",
"request": "One old bug to fix while you're at it: the left/right arrows in the dark blue band under the hero image. Clicking slowly is fine, but if you click two or three times quickly, the final slide the big headline and the handwritten tagline in the band end up on doesn't match how many times I clicked — sometimes it even looks like it went back a slide, and one more click barely brings it back. We only have 3 slides: 3 quick clicks should land exactly back on the starting slide, 2 quick clicks should go to slide 3, and the headline, the tagline below it and that small line of text must all belong to the same slide — they can't disagree. While fixing, don't touch the news list's filtering, sorting or saving — that was just tuned up."
}
],
"checklist": [
{
"id": "del.block.gone",
"m": 1,
"dimension": "coverage",
"w": 1.5,
"description": "The white card block with \"photo on the left, text on the right + three small dots at the bottom right + large arrows on both sides\" no longer exists on the page; scrolling the entire page finds no residual content from that card (such as the title \"Honoring the story of childhood\")."
},
{
"id": "del.skyband.gone",
"m": 1,
"dimension": "visual",
"w": 1.0,
"description": "The block's original full-width light-blue (a #b0dae8-like shade) background band no longer appears anywhere on the page; after the intro paragraph through to the admissions area, the background stays white."
},
{
"id": "del.neighbors.kept",
"m": 1,
"dimension": "coverage",
"w": 1.0,
"description": "The intro paragraph (the text with the blue link, the one starting \"At Charlotte Prep…\") and the open-book illustration below it are still fully present, and are immediately followed by the Admissions Deadlines / Quick Facts area."
},
{
"id": "del.nogap",
"m": 1,
"dimension": "visual",
"w": 1.0,
"description": "There is no leftover empty container or blank white block between the intro paragraph area and the Admissions Deadlines area: the pure blank vertical gap between the two areas is no more than 300px."
},
{
"id": "del.others.alive",
"m": 1,
"dimension": "functional",
"w": 1.0,
"description": "The left/right arrows in the dark blue band below the hero image and the left/right arrows in the bottom three-photo banner are still clickable and still switch content; their functionality has not been accidentally removed."
},
{
"id": "data.list.replaces.carousel",
"m": 2,
"dimension": "coverage",
"w": 1.5,
"description": "The School News section is no longer a \"one story at a time + left/right arrows + a row of small dots\" carousel, but a list showing multiple story cards at once."
},
{
"id": "data.count42",
"m": 2,
"dimension": "functional",
"w": 1.5,
"description": "In the default (unfiltered) state, the stats line at the top of the section shows a total of 42 stories."
},
{
"id": "data.first.item",
"m": 2,
"dimension": "functional",
"w": 1.5,
"description": "In the default newest-first order, the first story shows: section \"Campus News\", date \"2025-04-30\", number 1 visible in the title (e.g. #1), estimated read time 4 minutes."
},
{
"id": "data.art.item",
"m": 2,
"dimension": "functional",
"w": 1.5,
"description": "Story number 4 shows: section \"Arts\", date \"2025-04-27\", estimated read time 7 minutes; all four section names (Campus News, Academics, Sports, Arts) each appear at least once among the 9 cards on default page 1."
},
{
"id": "data.last.item",
"m": 2,
"dimension": "functional",
"w": 1.5,
"description": "Story number 42 shows: section \"Academics\", date \"2025-03-20\", estimated read time 5 minutes."
},
{
"id": "data.date.format",
"m": 2,
"dimension": "visual",
"w": 1.0,
"description": "All story dates are in YYYY-MM-DD form such as 2025-04-21; the old formats such as \"Apr 30\" and \"Apr 22\" no longer appear on the page."
},
{
"id": "data.fields.visible",
"m": 2,
"dimension": "coverage",
"w": 1.0,
"description": "Every story card simultaneously shows section name, date, title with number, and estimated read time (with the word \"minutes\"), and is accompanied by an image."
},
{
"id": "inter.page.size",
"m": 3,
"dimension": "functional",
"w": 1.5,
"description": "In the default \"All + newest first\" state the list shows exactly 9 items per page, 5 pages in total, and page 5 has only 6 items."
},
{
"id": "inter.page2.first",
"m": 3,
"dimension": "functional",
"w": 1.5,
"description": "In the default \"All + newest first\" state, after going to page 2 the first item on that page is story number 10: section \"Academics\", date \"2025-04-21\", estimated read time 3 minutes."
},
{
"id": "inter.pager.controls",
"m": 3,
"dimension": "interaction",
"w": 1.5,
"description": "In the default state, clicking \"Next\" in the footer goes to page 2 and the first item is number 10; clicking \"Previous\" then returns to page 1 and the first item is number 1; then clicking the page-number button \"4\" directly jumps to page 4, whose first item is number 28 (section \"Arts\", date \"2025-04-03\", read time 6 minutes), and page number 4 is highlighted as the current page."
},
{
"id": "inter.filter.each",
"m": 3,
"dimension": "functional",
"w": 1.5,
"description": "Clicking \"Campus News\" makes the stats line show 11 stories and the first item under the default sort is number 1; clicking \"Academics\" shows 11 and the first item is number 2; clicking \"Arts\" shows 10 and no \"Sports\" cards appear in the list."
},
{
"id": "inter.filter.sports",
"m": 3,
"dimension": "functional",
"w": 1.5,
"description": "After selecting \"Sports\", the stats line shows 10 stories over 2 pages, with only 1 item on page 2; no cards from any non-Sports section appear in the list."
},
{
"id": "inter.sort.oldest",
"m": 3,
"dimension": "interaction",
"w": 1.0,
"description": "Under the \"Sports\" filter, switching the order to oldest first makes the first item on page 1 story number 39, with the date showing \"2025-03-23\"."
},
{
"id": "inter.reset.page",
"m": 3,
"dimension": "interaction",
"w": 1.0,
"description": "After first going to page 3, changing the section or the newest/oldest order immediately returns the list to page 1 (page number 1 highlighted, showing the first 9 items — or all — under that combination)."
},
{
"id": "inter.badge.decoupled",
"m": 3,
"dimension": "interaction",
"w": 1.5,
"description": "After saving number 1 and number 5 under \"All\", the counter shows 2; switching to the \"Sports\" section (both are hidden), the counter still shows 2, and no clickable element for either story exists in the list; switching back to \"All\", both stories are still in the lit/saved state."
},
{
"id": "inter.toggle.idempotent",
"m": 3,
"dimension": "interaction",
"w": 1.0,
"description": "Clicking the Read Later toggle of the same story twice in a row returns the counter to the value before the clicks (no duplicate counting or negative numbers); after repeated clicks the counter always equals the number of currently lit cards."
},
{
"id": "panel.exists",
"m": 4,
"dimension": "coverage",
"w": 1.0,
"description": "A \"My Read Later\" panel exists above the footer, positioned after the news list and before the footer."
},
{
"id": "panel.sum.exact",
"m": 4,
"dimension": "functional",
"w": 1.5,
"description": "Without filtering, saving number 5 first and then number 1 makes the panel summary line show 2 stories, 7 minutes total; then saving number 3 changes it to 3 stories, 13 minutes total."
},
{
"id": "panel.order.fields",
"m": 4,
"dimension": "functional",
"w": 1.5,
"description": "Continuing the save order from the previous step (#5, #1, #3), the panel entries read from top to bottom as number 5, number 1, number 3 (not ascending by number), and each shows section, title with number, date and that story's estimated read time."
},
{
"id": "panel.remove.sync",
"m": 4,
"dimension": "interaction",
"w": 1.5,
"description": "After removing an entry in the panel: the entry disappears from the panel, the total story count and total minutes decrease in sync by its read time, and the corresponding card's Read Later toggle in the list above goes back to the unlit state with the counter next to the title decremented by 1."
},
{
"id": "panel.empty.state",
"m": 4,
"dimension": "interaction",
"w": 1.0,
"description": "After removing all saved items, the panel shows the copy \"No saved stories yet — go pick a few above.\", with no empty entry boxes left behind; the counter next to the title is 0."
},
{
"id": "fix.triple.click",
"m": 5,
"dimension": "functional",
"w": 1.5,
"description": "Clicking \"Next\" 3 times in a row on the top dark blue band at roughly 80ms intervals ends on the big headline \"Early chapters that shape a child’s whole life\" with the handwritten tagline \"writing our own story\"."
},
{
"id": "fix.double.click",
"m": 5,
"dimension": "functional",
"w": 1.5,
"description": "Quickly clicking \"Next\" 2 times from the initial slide finally shows slide 3: headline \"Leaders a little sooner, children a little longer\", handwritten tagline \"go anywhere from here\"."
},
{
"id": "fix.prev.direction",
"m": 5,
"dimension": "interaction",
"w": 1.0,
"description": "Quickly clicking \"Previous\" once from the initial slide shows slide 3; clicking twice shows slide 2 (headline \"Curious minds and open hearts, truly known\"); the direction does not get confused or jump back."
},
{
"id": "fix.same.slide",
"m": 5,
"dimension": "functional",
"w": 1.0,
"description": "After any sequence of rapid clicks, the big headline, the handwritten tagline and the small line of text on the right always belong to the same slide (e.g. when the tagline is \"adventures every day\" the small line must be \"Montessori Beginnings Through Confident Graduates\")."
},
{
"id": "fix.no.regression",
"m": 5,
"dimension": "interaction",
"w": 1.5,
"description": "On the news list, first select a section, go to page 2 and save 2 stories, then rapidly click the top arrows several times: the list's selected section, page number, Read Later count (still 2) and the contents of the \"My Read Later\" panel all remain unchanged."
}
],
"inject": {
"type": "Async race condition",
"saboteur_prompt": "Plant a stale-closure async race in the carousel switching logic of src/components/Hero.jsx, making it look like a delay added for the slide transition: defer the state commit after the arrow click into a setTimeout (about 180ms), and compute the target slide at click time using the index variable from the current render closure (of the form const next = (index + dir + SLIDES.length) % SLIDES.length; setTimeout(() => setIndex(next), 180)). Do not use a functional update, and do not clear or cancel the previous timer. The effect must be: a single click behaves perfectly normally (just a slight sense of delay), while 2–3 rapid clicks within 180ms compute from the same stale index, ending up advancing/going back only one slide or with a seemingly scrambled direction. Hard requirements: no console errors or React warnings; do not modify any CSS, class names, DOM structure, copy, or SLIDES data; do not touch other components such as GalleryStrip, NewsCarousel, Header, Footer; leave no comments, TODOs or console output; keep naming and indentation style consistent with the existing code."
},
"qc_static": [
"req3 has 9 items (want 3-8)"
],
"review_status": "qc_fail"
}
|