Datasets:
File size: 14,367 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 | 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 | {
"task_id": "c30",
"layer": "composite",
"seed_type": "brownfield",
"operators": [
"make interactive",
"add state",
"repair",
"remove section"
],
"difficulty": "regular",
"levers": [
"exact numeric assertions"
],
"domain": "portfolio",
"repair": true,
"inject_type": "condition boundary error",
"seed_meta": {
"repo_src": null,
"exclude_slug": "react_en_000645",
"repo_shot": true
},
"title": "DesignBetter report site overhaul: studio case study portfolio and proposal basket",
"milestones": [
{
"operator": "make interactive",
"request": "This site is just a report right now — we're planning to turn it into the studio's public case study entry point. After the big \"How design teams level up\" section and before the download CTA at the bottom, insert an \"Our case studies\" block.\n\nI haven't put the case list into a table, so let me dictate it — just lay them out following the pattern: 42 in total, numbered from P001 all the way to P042. Industry cycles with the number — P001 finance, P002 healthcare, P003 retail, P004 education, P005 mobility, then P006 goes back to finance, cycling like that to fill all 42. Launch year cycles too: P001 is 2019, increasing one year at a time, so P006 is 2024, and P007 restarts from 2019. Person-days are easy to remember: number × 2 plus 10 (so P001 is 12 person-days, P042 is 94 person-days).\n\nEach card must show all four: number, industry, launch year, and person-days; make up the titles yourselves, just don't repeat any.\n\nDon't cram too many on one screen: 12 per page, with pagination below, and it should be clear which page you're on and how many pages there are in total; page 1 must not allow going back and the last page must not allow going forward.\n\nAbove the list put a row of industry filters (including \"All\") and a sort toggle: default by number ascending; the other one is called \"Newest first\", newer years first, and within the same year smaller numbers first. Filter and sort must work together, and pagination follows the current filter and sort.\n\nVisually it should be one system with the current site — don't make a component that looks bolted on as an afterthought."
},
{
"operator": "add state",
"request": "Looking alone isn't enough; clients need to pick. Add an \"Add to proposal basket\" button to each case card; an added card must clearly show that it's already in the basket, and clicking again must not count it twice.\n\nThe top navigation must show at any time how many items are in the basket — when there are none, don't show a number, so people don't get confused.\n\nOpening the basket shows the selected list; each item can be removed individually, and there's a one-click clear-all. The list must do the math: one person-day is 1880, and the total is the sum over the whole basket; 3 items or more (3 included) gets a 7% discount on the whole order, with the digits after the decimal point simply dropped after the calculation; under 3 items is at full price, and don't show a discount.\n\nWhen the basket is empty there must be a prompt, not a blank area, and the \"Generate proposal\" button must not be clickable then.\n\nTwo more things to note: when filtering hides some cases, they naturally can't be added; conversely, paging, changing filters, or changing sort must not lose what's already been selected.\n\nThe basket number must be visible at a glance, but don't mess up the original look of the top navigation."
},
{
"operator": "repair",
"request": "Also there's an old bug nobody has dealt with: when you scroll down to the donut chart in \"A view of the design universe\", the largest segment (Enterprise 71%) is drawn wrong — it's supposed to go a long way around the ring, but now it's become a short arc cutting diagonally across from the side, and the whole ring is missing a big chunk, looking like only twenty-something percent. The other segments Agency, Nonprofit, Government and the four text labels are all correct. Please fix it, and while fixing don't break anything else in this block, and don't affect the just-built case study list and proposal basket."
},
{
"operator": "remove section",
"request": "Finally, we're not keeping the whole \"Ready for liftoff?\" report download CTA block — the starry background, that planet-ground illustration, the string of insights on the right and the button, all go, delete the whole section cleanly, don't leave an empty background strip below, and the footer should follow directly.\n\nBut the entries on the page that originally pointed to it can't become dead: the button on the right of the top nav, and the pink \"Get the full report.\" text link in the body, both change to take people to the case study block (or open the proposal basket directly) — clicking must have a reaction.\n\nAfter changing, check it yourself again: the donut chart is still in its fixed state, and the items already selected in the basket must not be cleared."
}
],
"checklist": [
{
"id": "works.first.page",
"m": 1,
"dimension": "coverage",
"w": 1.5,
"description": "The \"Our case studies\" block appears after the Levels (How design teams level up) content; in the default state the first page shows exactly 12 cards, numbered P001 through P012 in order, and the page shows that the current page is 1 of 4 total (any equivalent wording such as \"Page 1 / 4\" or \"1/4\" is fine)."
},
{
"id": "works.last.page",
"m": 1,
"dimension": "functional",
"w": 1.5,
"description": "In the default sort without filters, going to page 4 shows only 6 cards numbered P037–P042; continuing to click \"Next\" leaves the page content and page number unchanged, and after returning to page 1, clicking \"Previous\" is likewise unchanged."
},
{
"id": "works.filter.count",
"m": 1,
"dimension": "functional",
"w": 1.0,
"description": "After selecting the industry \"Healthcare\" the list has exactly 9 cards left (P002, P007, P012, P017, P022, P027, P032, P037, P042), and the page info shows current page 1 of 1 total."
},
{
"id": "works.filter.all",
"m": 1,
"dimension": "functional",
"w": 1.0,
"description": "With \"Healthcare\" filtered and sort set to \"Newest first\", clicking \"All\" restores the list to 42 items (12 on the first page), total pages back to 4 and current page back to 1, while the \"Newest first\" sort is still in effect: the first card on the first page is P006 (2024, the smallest number in that year), not P001."
},
{
"id": "works.combo.sort",
"m": 1,
"dimension": "functional",
"w": 1.5,
"description": "With the \"Healthcare\" filter active, switching to \"Newest first\" makes the first card P012 (2024), the second P042 (2024), and the last P037 (2019)."
},
{
"id": "works.card.fields",
"m": 1,
"dimension": "coverage",
"w": 1.0,
"description": "Card P014 simultaneously shows the number P014, industry \"Education\", year 2020, 38 person-days, and a non-empty title."
},
{
"id": "works.cards.titles",
"m": 1,
"dimension": "functional",
"w": 1.0,
"description": "Browsing all 4 pages and 42 cards under the default sort, every title is non-empty, and the 42 titles are pairwise distinct (no title appears twice)."
},
{
"id": "works.visual.style",
"m": 1,
"dimension": "visual",
"w": 1.0,
"description": "The case study block follows the site's existing typographic language: the section heading is large sans-serif bold black text (same style as the \"A view of the design universe\" class), the filter selected state/buttons use the site's pink accent family (#ff3366 / #f6335f and similar), with no browser-default blue links, gray system borders, or default control looks that clash with the site."
},
{
"id": "basket.badge.idempotent",
"m": 2,
"dimension": "interaction",
"w": 1.5,
"description": "After clicking \"Add to proposal basket\" on P001 the nav badge shows 1 and that card's button changes to the added state; clicking that card's button again leaves the badge at 1 and the basket still has only 1 item."
},
{
"id": "basket.price.discount",
"m": 2,
"dimension": "functional",
"w": 1.5,
"description": "With P001 + P014 in the basket the total amount equals 94000 (with or without thousands separators), with no discount notice; after adding P042 the count becomes 3, the total amount equals 251769 (93% of 270720 with decimals dropped), and a discount notice appears."
},
{
"id": "basket.remove.recalc",
"m": 2,
"dimension": "functional",
"w": 1.0,
"description": "In the above 3-item state, removing P014 item by item makes the badge 2, leaves P001 and P042 in the basket, makes the total amount equal 199280, and the discount notice disappears."
},
{
"id": "basket.clear.empty",
"m": 2,
"dimension": "interaction",
"w": 1.0,
"description": "The basket panel provides a clear-all control; clicking it with 2 or more items in the basket empties the basket in one go: the nav badge no longer shows any number, the basket shows empty-state prompt copy rather than a blank area, and the \"Generate proposal\" button becomes unclickable (clicking it changes nothing on the page)."
},
{
"id": "basket.filter.coupling",
"m": 2,
"dimension": "functional",
"w": 1.5,
"description": "First add P001 (finance) and then switch the filter to \"Retail\"; P001 does not appear in the list and therefore can't be added again; in this state, paging, switching filters, and switching sort leave the badge number unchanged, and when returning to a view where P001 is visible it still shows as added."
},
{
"id": "basket.header.style",
"m": 2,
"dimension": "visual",
"w": 1.0,
"description": "The badge uses the site's accent color family (pink/red) and the same family as the case block's filter selected state; meanwhile the top nav's original elements are unchanged — the DesignBetter owl mark, the 5 uppercase nav texts, the white underline active state on \"Design Maturity Model\", and the white outlined pill button at the top right all stay as they were."
},
{
"id": "donut.major.arc",
"m": 3,
"dimension": "visual",
"w": 1.5,
"description": "The Enterprise pink segment in the donut runs continuously around more than half the circumference (about 71% of the full circle), the four segments join end to end to form a closed ring, and there is no short arc cutting across the inside of the circle or big gap in the ring."
},
{
"id": "donut.segments.order",
"m": 3,
"dimension": "visual",
"w": 1.0,
"description": "The four segments' colors and clockwise order remain Enterprise pink → Agency cyan → Nonprofit green → Government blue-purple, with the Agency cyan segment occupying about a quarter of the full circle."
},
{
"id": "donut.labels.intact",
"m": 3,
"dimension": "coverage",
"w": 1.0,
"description": "The four labels are still \"Nonprofit 2%\", \"Government 1%\", \"Agency 25%\", \"Enterprise 71%\", in the same positions as before the fix (two outside the top of the ring, two inside the ring at mid-left and center)."
},
{
"id": "donut.section.regression",
"m": 3,
"dimension": "functional",
"w": 1.5,
"description": "After the fix the rest of the Universe block is unaffected: the three headings and body texts \"24 industries\", \"2,200 companies\", \"77 countries\", and the world map image are still in their original positions with unchanged copy."
},
{
"id": "donut.app.regression",
"m": 3,
"dimension": "functional",
"w": 1.0,
"description": "After the fix the browser console has no errors, and the case block's filter/sort/pagination and the proposal basket count and total amount (e.g. P001+P014 still totals 94000) still work correctly per the values above."
},
{
"id": "cta.removed",
"m": 4,
"dimension": "coverage",
"w": 1.5,
"description": "Nowhere on the page do the \"Ready for liftoff?\" heading, \"Get these business-critical insights\" and its three list items, the starry dot background, or the planet-ground illustration appear any more."
},
{
"id": "cta.gap.clean",
"m": 4,
"dimension": "visual",
"w": 1.0,
"description": "After deletion the last content block connects directly to the light pink footer with no residual dark purple/starry blank strip between them; the footer's three links and the \"© InVision 2019\" copy stay as-is."
},
{
"id": "cta.header.link",
"m": 4,
"dimension": "interaction",
"w": 1.5,
"description": "Clicking the button at the top right of the top nav scrolls the page to the case study block and makes it visible (or opens the proposal basket panel directly), and no longer does nothing on click."
},
{
"id": "cta.text.link",
"m": 4,
"dimension": "interaction",
"w": 1.0,
"description": "Clicking the pink \"Get the full report.\" text link in the Universe block body likewise reaches the case study block or opens the proposal basket, with a visible change in page position/state rather than staying put."
},
{
"id": "cta.state.preserved",
"m": 4,
"dimension": "functional",
"w": 1.5,
"description": "After the deletion changes, the donut's Enterprise segment is still a correctly closed large arc, and the cases added to the basket before deletion are still there (the badge number and total amount value match before deletion, not cleared or zeroed)."
}
],
"inject": {
"type": "condition boundary error",
"saboteur_prompt": "Modify only the arcPath function in src/components/Universe.jsx: change the large-arc threshold from 0.5 to 0.75, i.e. change `const large = endFrac - startFrac > 0.5 ? 1 : 0` to `const large = endFrac - startFrac > 0.75 ? 1 : 0`. This makes Enterprise (span about 0.708) drawn as a small arc, so the largest segment of the ring becomes a short arc taking a shortcut across the circle, leaving a big gap in the ring, while the other three segments are unaffected. Do not add any comments, do not change any logic other than variable names, do not change data (SEGMENTS values and label texts stay unchanged), styles, or other files, and ensure the page has no console errors."
},
"qc_static": [],
"review_status": "needs_human"
}
|