Datasets:
Download tasks/c43/task.json from Roy-DOU/Webdev-Bench: direct link, hf CLI and curl.
- Browser
- Download file 9.84 kB
-
https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c43/task.json
- Command line
-
hf download hf://datasets/Roy-DOU/Webdev-Bench/tasks/c43/task.json
-
curl -L -o task.json https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c43/task.json
9.84 kB
| { | |
| "task_id": "c43", | |
| "layer": "composite", | |
| "seed_type": "prd", | |
| "operators": [ | |
| "generate", | |
| "make responsive", | |
| "add state", | |
| "restructure layout", | |
| "remove section" | |
| ], | |
| "difficulty": "challenging", | |
| "levers": [ | |
| "state coupling", | |
| "cross-requirement combined state", | |
| "exact numeric assertions" | |
| ], | |
| "domain": "local services", | |
| "repair": false, | |
| "inject_type": null, | |
| "seed_meta": { | |
| "authored_by": "hand", | |
| "materials": "none" | |
| }, | |
| "title": "Xiangkou Life: local services site from build to narrow-screen collapse and section takedown", | |
| "milestones": [ | |
| { | |
| "operator": "generate", | |
| "request": "Build the homepage of \"Xiangkou Life\", a local services site. Put the site name and a \"My favorites (0)\" in the top bar. Below, an area bar: All city / East / West / South, defaulting to \"All city\".\n\nThe main body is a merchant list, 22 in total: East 8, West 7, South 7. Each needs a shop name, area, rating, per-person price, and a \"Favorite\" button. Ratings start at 4.9 and decrease by 0.1 per shop, and once they reach a minimum of 2.8 they cycle back to 4.9. Per-person price is computed by position: the n-th shop = 30 + n × 5. The list defaults to rating high to low." | |
| }, | |
| { | |
| "operator": "make responsive", | |
| "request": "On narrow screens (browser width around 500px) it has to be viewable: the merchant list goes from multiple columns to a single vertical column; if the area bar doesn't fit, fold it into two rows or tuck it into a dropdown, but all four areas must still be selectable. At desktop width keep it as-is." | |
| }, | |
| { | |
| "operator": "add state", | |
| "request": "Favorites have to actually work. Clicking \"Favorite\" changes it to \"Favorited\" and increments the top-bar count by 1; clicking again cancels it and decrements the count by 1. This state must not be lost after switching area or switching between narrow and wide screens." | |
| }, | |
| { | |
| "operator": "restructure layout", | |
| "request": "Change the merchant list from a long vertical list to a grid: 3 shops per row at desktop width. After the change, the rating sort, per-person prices, and favorite states must be exactly the same as before." | |
| }, | |
| { | |
| "operator": "remove section", | |
| "request": "We're not doing the \"South\" area any more — remove the tab and those 7 merchants together. After removal, per-person prices are recomputed by the new positions (the n-th shop = 30 + n × 5)." | |
| } | |
| ], | |
| "checklist": [ | |
| { | |
| "id": "gen.areas.four", | |
| "m": 1, | |
| "dimension": "visual", | |
| "w": 1.5, | |
| "description": "The area bar has exactly 4 tabs: All city / East / West / South, with \"All city\" in the selected state." | |
| }, | |
| { | |
| "id": "gen.count.22", | |
| "m": 1, | |
| "dimension": "functional", | |
| "w": 1.5, | |
| "description": "Under All city there are exactly 22 merchants." | |
| }, | |
| { | |
| "id": "gen.score.desc", | |
| "m": 1, | |
| "dimension": "functional", | |
| "w": 1.5, | |
| "description": "The default is rating descending: shop 1 is 4.9, shop 2 is 4.8, shop 3 is 4.7." | |
| }, | |
| { | |
| "id": "gen.price.rule", | |
| "m": 1, | |
| "dimension": "functional", | |
| "w": 1.5, | |
| "description": "Per-person price is computed by position: shop 1 is ¥35, shop 2 is ¥40, shop 10 is ¥80." | |
| }, | |
| { | |
| "id": "gen.area.split", | |
| "m": 1, | |
| "dimension": "functional", | |
| "w": 1.0, | |
| "description": "After switching area: East 8, West 7, South 7." | |
| }, | |
| { | |
| "id": "gen.card.parts", | |
| "m": 1, | |
| "dimension": "visual", | |
| "w": 1.0, | |
| "description": "Each merchant card simultaneously shows shop name, area, rating, per-person price, and a \"Favorite\" button." | |
| }, | |
| { | |
| "id": "gen.fav.zero", | |
| "m": 1, | |
| "dimension": "visual", | |
| "w": 1.0, | |
| "description": "The top bar shows the site name \"Xiangkou Life\" and the favorites entry, with an initial count of 0." | |
| }, | |
| { | |
| "id": "resp.narrow.single", | |
| "m": 2, | |
| "dimension": "visual", | |
| "w": 1.5, | |
| "description": "On narrow screens (about 500px wide) merchant cards are in a single vertical column, with no side-by-side two-column arrangement." | |
| }, | |
| { | |
| "id": "resp.narrow.areas", | |
| "m": 2, | |
| "dimension": "interaction", | |
| "w": 1.5, | |
| "description": "On narrow screens the four area tabs can still each be clicked and take effect (possibly wrapped or tucked into a dropdown, but all selectable)." | |
| }, | |
| { | |
| "id": "resp.wide.keep", | |
| "m": 2, | |
| "dimension": "visual", | |
| "w": 1.0, | |
| "description": "After returning to desktop width the layout returns to multiple columns, with no leftover single-column narrow-screen form." | |
| }, | |
| { | |
| "id": "resp.narrow.noclip", | |
| "m": 2, | |
| "dimension": "visual", | |
| "w": 1.0, | |
| "description": "On narrow screens the shop name and per-person price are both fully visible, not clipped or overflowing the screen." | |
| }, | |
| { | |
| "id": "st.fav.add", | |
| "m": 3, | |
| "dimension": "interaction", | |
| "w": 1.5, | |
| "description": "Clicking \"Favorite\" on shop 1 changes the button to \"Favorited\" and the top-bar count becomes 1." | |
| }, | |
| { | |
| "id": "st.fav.three", | |
| "m": 3, | |
| "dimension": "interaction", | |
| "w": 1.5, | |
| "description": "Then favoriting shops 2 and 3 makes the top-bar count 3, with all three showing \"Favorited\"." | |
| }, | |
| { | |
| "id": "st.fav.cancel", | |
| "m": 3, | |
| "dimension": "interaction", | |
| "w": 1.5, | |
| "description": "Clicking shop 2 again returns the button to \"Favorite\" and the count becomes 2." | |
| }, | |
| { | |
| "id": "st.fav.keep.area", | |
| "m": 3, | |
| "dimension": "interaction", | |
| "w": 1.5, | |
| "description": "After favoriting 3 shops, switching to West and back to All city leaves the top-bar count at 3 and the original three shops still \"Favorited\"." | |
| }, | |
| { | |
| "id": "st.fav.keep.resp", | |
| "m": 3, | |
| "dimension": "interaction", | |
| "w": 1.5, | |
| "description": "After favoriting 3 shops, switching to narrow screen and back to wide screen leaves the top-bar count and each shop's button state unchanged." | |
| }, | |
| { | |
| "id": "ref.grid.three", | |
| "m": 4, | |
| "dimension": "visual", | |
| "w": 1.5, | |
| "description": "At desktop width merchant cards are arranged in a grid with exactly 3 per row." | |
| }, | |
| { | |
| "id": "ref.order.same", | |
| "m": 4, | |
| "dimension": "functional", | |
| "w": 1.5, | |
| "description": "After the restructure the sort is still rating descending, with the first three ratings 4.9 / 4.8 / 4.7 in order." | |
| }, | |
| { | |
| "id": "ref.price.same", | |
| "m": 4, | |
| "dimension": "functional", | |
| "w": 1.0, | |
| "description": "After the restructure shop 1's per-person price is still ¥35 and shop 10's still ¥80." | |
| }, | |
| { | |
| "id": "ref.fav.same", | |
| "m": 4, | |
| "dimension": "interaction", | |
| "w": 1.5, | |
| "description": "Favorite 2 shops before the restructure; after restructuring into a grid the top-bar count is still 2 and those 2 shops are still \"Favorited\"." | |
| }, | |
| { | |
| "id": "ref.grid.narrow", | |
| "m": 4, | |
| "dimension": "visual", | |
| "w": 1.0, | |
| "description": "The grid layout still degrades to a single column on narrow screens, with no horizontal scrollbar." | |
| }, | |
| { | |
| "id": "del.south.gone", | |
| "m": 5, | |
| "dimension": "coverage", | |
| "w": 1.5, | |
| "description": "The area bar has only 3 tabs left, and \"South\" no longer appears." | |
| }, | |
| { | |
| "id": "del.count.15", | |
| "m": 5, | |
| "dimension": "functional", | |
| "w": 1.5, | |
| "description": "Under All city the merchants become 15." | |
| }, | |
| { | |
| "id": "del.no.south", | |
| "m": 5, | |
| "dimension": "coverage", | |
| "w": 1.0, | |
| "description": "Browsing all 15 shops, none belongs to the South area." | |
| }, | |
| { | |
| "id": "del.price.recalc", | |
| "m": 5, | |
| "dimension": "functional", | |
| "w": 1.5, | |
| "description": "Per-person prices are recomputed by the new positions: after deletion shop 1 is ¥35, shop 10 is ¥80, and the last shop (the 15th) is ¥105." | |
| }, | |
| { | |
| "id": "del.keep.fav", | |
| "m": 5, | |
| "dimension": "interaction", | |
| "w": 1.5, | |
| "description": "Favorite 2 East shops before deletion; after removing South the top-bar count is still 2 and those 2 shops are still \"Favorited\"." | |
| }, | |
| { | |
| "id": "del.grid.reflow", | |
| "m": 5, | |
| "dimension": "visual", | |
| "w": 1.0, | |
| "description": "After deletion the grid still has 3 per row, with the last row arranged by the remaining count and no empty placeholder cells." | |
| }, | |
| { | |
| "id": "del.area.recheck", | |
| "m": 5, | |
| "dimension": "interaction", | |
| "w": 1.0, | |
| "description": "After removing South, switching back and forth twice between East and West, each time the merchant counts are 8 and 7 respectively and the sort is still rating descending." | |
| }, | |
| { | |
| "id": "del.combo", | |
| "m": 5, | |
| "dimension": "interaction", | |
| "w": 1.5, | |
| "description": "Favorite 2 shops → switch to narrow screen → switch to West → return to wide screen, and the top-bar count and favorite states are still correct." | |
| }, | |
| { | |
| "id": "c43a.sel.single", | |
| "m": 1, | |
| "dimension": "visual", | |
| "w": 1.0, | |
| "description": "At any moment only one tab in the filter controls is in the selected state, and the selected state is distinguishable from the unselected state." | |
| }, | |
| { | |
| "id": "c43a.info.intact", | |
| "m": 1, | |
| "dimension": "visual", | |
| "w": 1.0, | |
| "description": "After switching views each card's information is still fully visible, with no text truncation or element overlap." | |
| }, | |
| { | |
| "id": "c43b.sel.single", | |
| "m": 5, | |
| "dimension": "visual", | |
| "w": 1.0, | |
| "description": "At any moment only one tab in the filter controls is in the selected state, and the selected state is distinguishable from the unselected state." | |
| }, | |
| { | |
| "id": "c43b.info.intact", | |
| "m": 5, | |
| "dimension": "visual", | |
| "w": 1.0, | |
| "description": "After switching views each card's information is still fully visible, with no text truncation or element overlap." | |
| } | |
| ], | |
| "inject": null, | |
| "qc_static": [], | |
| "review_status": "hand_authored", | |
| "hand_notes": { | |
| "cross_requirement_items": 6, | |
| "dim_counts": { | |
| "visual": 13, | |
| "functional": 8, | |
| "interaction": 10, | |
| "coverage": 2 | |
| } | |
| } | |
| } |