Datasets:
Download tasks/c20/task.json from Roy-DOU/Webdev-Bench: direct link, hf CLI and curl.
- Browser
- Download file 16.5 kB
-
https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c20/task.json
- Command line
-
hf download hf://datasets/Roy-DOU/Webdev-Bench/tasks/c20/task.json
-
curl -L -o task.json https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c20/task.json
16.5 kB
| { | |
| "task_id": "c20", | |
| "layer": "composite", | |
| "seed_type": "brownfield", | |
| "operators": [ | |
| "wire up data", | |
| "remove section", | |
| "add state", | |
| "repair", | |
| "restructure layout" | |
| ], | |
| "difficulty": "regular", | |
| "levers": [ | |
| "exact numeric assertions" | |
| ], | |
| "domain": "education courses", | |
| "repair": true, | |
| "inject_type": "async race condition", | |
| "seed_meta": { | |
| "repo_src": null, | |
| "exclude_slug": "react_zh_001194", | |
| "repo_shot": true | |
| }, | |
| "title": "Het Actiefonds → Action Academy autumn course catalog: wire up catalog data, trim, enrollment state, and subscription-confirmation fix", | |
| "milestones": [ | |
| { | |
| "operator": "wire up data", | |
| "request": "We're moving this version of the homepage toward \"Action Academy\": the red-background RECENTE ACTIES block in the middle of the homepage (four action cards) becomes the autumn course catalog as a whole; keep the rough red background and uppercase bold heading treatment. The data was tossed over by ops and is messy, so let me dictate it: 42 courses in total, numbered AF-01 through AF-42 with no gaps or skipped numbers. There are six directions, in this order: Activist Law, Nonviolent Communication, Documentary Film, Community Organizing, Climate Literacy, Digital Security, each occupying 7 consecutive courses (AF-01–AF-07 are Activist Law, and so on). Within each direction the 7 courses follow a fixed difficulty pattern: the first two Beginner, the middle three Intermediate, the last two Master. Prices are flat by level: Beginner €45, Intermediate €75, Master €120; hours are fixed too: Beginner 6 hours, Intermediate 12 hours, Master 20 hours. Enrollment must be spelled out on every card: in principle 12 places per course, and any course not yet full shows its remaining places like \"12 left\" on the card; but the last course in each direction (AF-07, AF-14, and so on) is already full, 0 left, and the card must plainly say \"Full\". Make up the course names per direction yourself as long as the session number is visible, e.g. \"Activist Law Workshop · Session 1\". Above the catalog add a small stats line stating how many courses in total, how many hours altogether, and how many are still open for enrollment; the numbers must match the cards below. Don't touch the rest of the homepage in this step." | |
| }, | |
| { | |
| "operator": "remove section", | |
| "request": "The homepage is too long; cut three blocks: the world map together with the big heading \"ondersteunt acties over de hele wereld\" under it goes entirely; the twelve-tile theme image wall goes too — the catalog already has directions, so it's redundant; the red-and-black donation banner at the bottom of the page also comes out. Delete them cleanly — don't leave half-empty shells or those outlined ghost headlines. While you're at it, change the top-nav entry that used to point at the theme wall so it points at the course catalog; clicking it must scroll to the catalog, no dead links. Keep the other nav entries and the DONEER NU button at top right as they are. After the deletion the sections should flow into each other smoothly, don't leave a big unexplained gap." | |
| }, | |
| { | |
| "operator": "add state", | |
| "request": "The catalog needs course picking. On the left give direction filters (the six directions plus an \"All\"), then a set of level filters (Beginner / Intermediate / Master / All), then a sort (by number by default, plus price low to high, price high to low, hours high to low). There are too many cards; put just 12 per page with paging for the rest; changing any filter or sort restarts from page 1, don't leave people on an empty page. Add \"Add to study list\" to every card: full courses can't be added, and clicking does nothing; clicking the same course repeatedly counts only once, don't let the number double. Above the catalog show a study-list status line: how many selected, and the total in euros. The overall stats strip at the top describes the whole catalog's holdings and must not change no matter how you filter or page." | |
| }, | |
| { | |
| "operator": "repair", | |
| "request": "Support forwarded a complaint: in the email subscription box in the footer, someone entered an email, clicked subscribe, immediately realized it was wrong, changed to a new email and clicked again; after a while, the confirmation on screen still showed the first, wrong email (the new one seemed to flash briefly in between). Retrying produces the same result; it always ends up on the earliest address typed. This is embarrassing — please investigate and fix it. After the fix, make sure the normal case of clicking subscribe once isn't broken, and that the two forms — the one in the footer and the one under \"Blijf op de hoogte\" — don't interfere with each other." | |
| }, | |
| { | |
| "operator": "restructure layout", | |
| "request": "On wide screens the catalog is too cramped; re-lay it out: move the filters and sort into a vertical filter column on the left of the catalog, with the course card grid on the right, three per row on wide screens; on phones (very narrow screens) fall back to one column, filters above the cards, cards stacked one per row, no horizontal scrollbar. Also, having to scroll back up to the top of the catalog to see the study list is annoying; make it a persistent entry that's always visible on the page, with a count; opening it shows the selected course names, unit prices, and total, allows removing a single entry and clearing all at once, and clearing needs an empty-state message. It should stand out, but don't turn our black-outline, hard-shadow, square-corner rough style into a rounded-gradient e-commerce look; buttons site-wide should be one tone. Don't restore any of the numbers or deleted things settled in the previous version." | |
| } | |
| ], | |
| "checklist": [ | |
| { | |
| "id": "catalog.count.42", | |
| "m": 1, | |
| "dimension": "coverage", | |
| "w": 1.5, | |
| "description": "The catalog section contains 42 course cards, numbered AF-01 through AF-42 continuously, with no duplicates and no missing numbers (it's acceptable to verify all 42 cards page by page via pagination or filtering; they don't all need to be on one screen)." | |
| }, | |
| { | |
| "id": "catalog.stats.exact", | |
| "m": 1, | |
| "dimension": "functional", | |
| "w": 1.5, | |
| "description": "The stats line above the catalog precisely shows: 42 courses, 528 hours in total, 36 open for enrollment (all three numbers can be read in the page text)." | |
| }, | |
| { | |
| "id": "catalog.level.price.map", | |
| "m": 1, | |
| "dimension": "functional", | |
| "w": 1.0, | |
| "description": "Level/price/hours correspond strictly: spot-check AF-03 shows Intermediate, €75, 12 hours; AF-14 shows Master, €120, 20 hours; AF-36 shows Beginner, €45, 6 hours." | |
| }, | |
| { | |
| "id": "catalog.full.six", | |
| "m": 1, | |
| "dimension": "functional", | |
| "w": 1.0, | |
| "description": "Enrollment labels are exact: exactly these 6 cards — AF-07, AF-14, AF-21, AF-28, AF-35, AF-42 — are labeled \"Full\" (or 0 left), and the other 36 cards all show 12 places left." | |
| }, | |
| { | |
| "id": "catalog.style.keep", | |
| "m": 1, | |
| "dimension": "visual", | |
| "w": 1.0, | |
| "description": "The catalog section keeps the original red background (same color family as #fe3c3c) with uppercase bold headings, and the original copy and layout of the Hero, Updates, and footer are unchanged (the footer keeps its four-column structure of logo plus two link columns plus subscription form)." | |
| }, | |
| { | |
| "id": "trim.three.blocks.gone", | |
| "m": 2, | |
| "dimension": "coverage", | |
| "w": 1.5, | |
| "description": "After scrolling the whole page, none of the world map image and its big heading, the 12-tile theme image wall, or the red-and-black donation banner at the bottom can be found, and their respective outlined ghost headlines no longer appear." | |
| }, | |
| { | |
| "id": "trim.nav.rewire", | |
| "m": 2, | |
| "dimension": "functional", | |
| "w": 1.5, | |
| "description": "The header still keeps its original 5 nav links, the EN language button, and the DONEER NU button; clicking wat we steunen — which used to point at the theme wall — scrolls the page to the course catalog (the catalog enters the viewport), with no jump to an empty anchor and no console errors." | |
| }, | |
| { | |
| "id": "trim.no.gap", | |
| "m": 2, | |
| "dimension": "visual", | |
| "w": 1.0, | |
| "description": "After deletion, adjacent sections join directly: there is no blank band taller than 200px between the course catalog and the Updates section, and the page has no horizontal scrollbar at 1280px width." | |
| }, | |
| { | |
| "id": "trim.keep.stats", | |
| "m": 2, | |
| "dimension": "functional", | |
| "w": 1.0, | |
| "description": "The deletion did not affect the catalog: the stats line still shows 42 courses, 528 hours, 36 open for enrollment, and the total number of course cards is still 42." | |
| }, | |
| { | |
| "id": "state.paging.exact", | |
| "m": 3, | |
| "dimension": "functional", | |
| "w": 1.5, | |
| "description": "The default view shows 12 per page; page 1 is exactly AF-01 to AF-12, the total number of pages is 4, and page 4 has only 6 (AF-37 to AF-42)." | |
| }, | |
| { | |
| "id": "state.combo.diagonal", | |
| "m": 3, | |
| "dimension": "functional", | |
| "w": 1.5, | |
| "description": "With direction \"Documentary Film\" and level \"Intermediate\", the list is exactly 3 courses (AF-17, AF-18, AF-19), and all three cards are priced at €75; switching the level back to \"All\" gives exactly 7 courses for that direction." | |
| }, | |
| { | |
| "id": "state.sort.all.four", | |
| "m": 3, | |
| "dimension": "functional", | |
| "w": 1.0, | |
| "description": "With the filter at All, all four sorts work correctly: with \"Price high to low\" the 12 cards on page 1 are exactly all Master courses (AF-06, 07, 13, 14, 20, 21, 27, 28, 34, 35, 41, 42, in any order) and the first card on page 2 costs €75; with \"Price low to high\" the 12 cards on page 1 are all €45 Beginner courses; with \"Hours high to low\" the 12 cards on page 1 all have 20 hours; with the default sort the first card on page 1 is AF-01." | |
| }, | |
| { | |
| "id": "state.filter.reset.page", | |
| "m": 3, | |
| "dimension": "interaction", | |
| "w": 1.0, | |
| "description": "First go to page 3, then change any one of direction, level, or sort; the list immediately returns to page 1 (the page indicator is 1 and the first card is the first course under that filter)." | |
| }, | |
| { | |
| "id": "state.cart.exact.idempotent", | |
| "m": 3, | |
| "dimension": "interaction", | |
| "w": 1.5, | |
| "description": "After adding AF-01, AF-17, and AF-06 in sequence, the study-list status shows 3 courses, €240 total; then clicking AF-01's add button 5 times in a row still leaves 3 courses, €240." | |
| }, | |
| { | |
| "id": "state.full.and.stats.coupling", | |
| "m": 3, | |
| "dimension": "functional", | |
| "w": 1.0, | |
| "description": "The add buttons of the 6 full courses are disabled, and clicking them changes neither the study-list count nor the total amount; and no matter how you filter, sort, or page, the top stats line always shows 42 courses, 528 hours, 36 open for enrollment." | |
| }, | |
| { | |
| "id": "fix.single.submit", | |
| "m": 4, | |
| "dimension": "functional", | |
| "w": 1.5, | |
| "description": "Enter een@test.nl in the footer subscription box and submit: within 1.5 seconds a confirmation message appears, its text includes een@test.nl, and the page neither refreshes nor navigates." | |
| }, | |
| { | |
| "id": "fix.race.latest.wins", | |
| "m": 4, | |
| "dimension": "functional", | |
| "w": 1.5, | |
| "description": "Enter oud@test.nl and submit, then within 0.3 seconds change to nieuw@test.nl and submit again; after waiting 3 seconds the confirmation stably shows nieuw@test.nl and never changes back to oud@test.nl afterwards." | |
| }, | |
| { | |
| "id": "fix.no.stuck", | |
| "m": 4, | |
| "dimension": "interaction", | |
| "w": 1.0, | |
| "description": "After the two consecutive submissions above, the subscribe button can still be clicked again (not stuck in a sending state), the confirmation area contains only one message rather than several stacked, and there are no console errors." | |
| }, | |
| { | |
| "id": "fix.two.forms.isolated", | |
| "m": 4, | |
| "dimension": "functional", | |
| "w": 1.0, | |
| "description": "Regression: after submitting in the footer form, the subscription form in the Blijf op de hoogte section shows no confirmation message, and the two forms' email input contents and checkbox states don't affect each other." | |
| }, | |
| { | |
| "id": "fix.no.side.effect", | |
| "m": 4, | |
| "dimension": "functional", | |
| "w": 1.0, | |
| "description": "Regression coupling: before and after submitting the subscription, the catalog's current direction and level filters, page number, and the study list's count and total amount all remain unchanged." | |
| }, | |
| { | |
| "id": "layout.twocol.grid3", | |
| "m": 5, | |
| "dimension": "visual", | |
| "w": 1.5, | |
| "description": "At 1280px width the catalog is a two-column structure with a vertical filter column on the left and a card grid on the right; the filter and sort controls are both in the left column, and the 12 cards on page 1 of the right column are laid out 3 per row over 4 rows." | |
| }, | |
| { | |
| "id": "layout.cart.chain", | |
| "m": 5, | |
| "dimension": "interaction", | |
| "w": 1.5, | |
| "description": "The persistent list entry shows the current count; execution chain: filter to the Digital Security direction, add AF-36 and AF-38, open the list panel and it shows 2 entries, each with a course name and unit prices of €45 (AF-36) and €75 (AF-38) respectively, total €120; after removing AF-36 one entry remains, €75; after clearing all the count shows 0 and an empty-state message appears; after closing the panel the catalog is still on the 7 courses of the Digital Security direction." | |
| }, | |
| { | |
| "id": "layout.keep.state", | |
| "m": 5, | |
| "dimension": "functional", | |
| "w": 1.0, | |
| "description": "After the restructure pagination is still 4 pages with 6 cards on page 4, the stats line still shows 42 courses, 528 hours, 36 open for enrollment, and the 6 full courses still can't be added." | |
| }, | |
| { | |
| "id": "layout.keep.deleted.header", | |
| "m": 5, | |
| "dimension": "functional", | |
| "w": 1.0, | |
| "description": "After the restructure the map block, theme image wall, and donation banner still don't exist; the header still keeps its original 5 nav links, the EN language button, and the DONEER NU button, and DONEER NU still has its original style of white background, roughly 3px black square border, and hard shadow." | |
| }, | |
| { | |
| "id": "layout.style.consistency", | |
| "m": 5, | |
| "dimension": "visual", | |
| "w": 1.0, | |
| "description": "The list entry stays visible when the page is scrolled to the middle (catalog area) and the bottom (footer area) (fixed or floating both fine) and shows the correct count; this entry and the expanded panel use the same black thick outline, hard shadow, square corners, and no-gradient treatment as DONEER NU and WORD OOK DONATEUR, and site-wide buttons keep one consistent border-radius and outline treatment, with no rounded gradient buttons." | |
| }, | |
| { | |
| "id": "layout.narrow.single", | |
| "m": 5, | |
| "dimension": "visual", | |
| "w": 1.0, | |
| "description": "At 390px narrow width the catalog becomes a single column: the filter area is above the cards, cards are 1 per row, the page has no horizontal scrollbar, and the persistent list entry is still visible and shows the correct count." | |
| } | |
| ], | |
| "inject": { | |
| "type": "async race condition", | |
| "saboteur_prompt": "In src/components/NewsletterForm.jsx, turn submission into an async flow with simulated network latency and plant an \"early request overwrites later one\" race defect: on handleSubmit store the current email in a local variable, then use setTimeout to simulate the request returning and only afterwards call setSent/setConfirmedEmail; the key is to make the delay inversely related to submission order (for example, use 1200ms for the first submission and have each subsequent submission's delay decrease to around 400ms, or use longer delays for earlier requests), so that the old request sent first returns last and overwrites the result of the new request — the user briefly sees the new email in the confirmation, which then settles permanently on the old email typed the first time. Do not use request sequence numbers, timestamps, AbortController, or any other race protection. Requirements: no console errors or warnings; change only this one component file; do not modify other components, style class names, or page structure; still properly prevent the form's default behavior on submit; leave no comments or telltale variable names (avoid words such as race/bug/stale)." | |
| }, | |
| "qc_static": [], | |
| "review_status": "needs_human" | |
| } |