Webdev-Bench / tasks /c37 /task.json
Roy-DOU's picture
Fix a dropped negation in c37's upstream-integrity check
52a4d7d verified
Raw History Blame Contribute Delete
21.9 kB
{
"task_id": "c37",
"layer": "composite",
"seed_type": "replicate",
"operators": [
"replicate",
"restructure layout",
"add state",
"add section",
"make interactive"
],
"difficulty": "challenging",
"levers": [
"state coupling",
"non-local changes"
],
"domain": "data display",
"seed_meta": {
"ref_image_src": "prototypes/reference.jpg"
},
"title": "Monday Happy Monday client data panel overhaul",
"milestones": [
{
"operator": "replicate",
"request": "First build our homepage 1:1 from the reference image — don't change a single word of copy (keep the Spanish original), and where images are missing use same-color or gray placeholder blocks, but the layout, palette, and order must match. From top to bottom:\n1) A very thin dark bar at the top, with a row of small social icons and the Es / Ca / En language switcher on the right; the header has the white monday happy monday wordmark at the top left and an orange square menu button at the top right.\n2) The hero is a large warm-yellow-toned photo background, with the white large quote centered on it: \"La creatividad es la capacidad de imaginar un futuro que aún no existe. La innovación es la forma en que lo hacemos realidad. – Tim Brown\" (copy with the quotation marks).\n3) Then six service cards, three columns two rows. First row: Design Sprint (yellow background, small text \"Resuelve grandes problemas y testea nuevas ideas en sólo 5 días\"), Formación (dark blue background, small text \"La escuela para convertirse en un líder del siglo XXI, ser un emprendedor o Simplemente cambiar el mundo.\"), Design Thinking (light blue background, small text \"Proyectos de innovación con Design Thinking que podrás llevar a la práctica\"). Second row: Design Research (coral red background, small text \"¿Conoces a tu usuario y su entorno y enfoca tu reto en sólo 2 días?\"), Talleres de Creatividad (green background, small text \"¡Haz emerger las mejores ideas en solo un día!\"), Agile (pink-purple background, small text \"Te acompañamos para sacar el mejor rendimiento de tu plan\"). Card titles are all white text placed in the upper part of the card, with a small illustration slot in the middle.\n4) A full teal block, with the large white heading \"Conócenos\" centered, and below it a centered portrait photo whose bottom edge crosses the teal block and presses into the orange block below.\n5) The orange block, with the large white heading \"Novedades en el blog\", below it the small text link \"TODOS LOS ARTÍCULOS\", and below that three white article cards: titles are \"El coste político de no decidir (y la calma que sale cara)\", \"Cuando la matriz decide por nadie: poder, ambigüedad y gobernanza en estructuras complejas\", \"Lo que realmente ocurre en un workshop estratégico (y por qué algunos fracasan)\", each with a line below the title \"por Alicia Linares Roger | 20 May. 2026\", \"por Alejo Montero Bosch | 15 May. 2026\", \"por Alicia Linares Roger | 28 Abr. 2026\", then a line of comma-separated categories (Innovación, Tendencias / Innovación, Tendencias / Historias reales, Innovación, Tendencias), and finally a paragraph of gray excerpt text.\n6) The dark blue subscription block, with jagged edges top and bottom. Inside, a centered heading \"Suscríbete\", a small megaphone icon, the explanatory text \"Introduce tu correo para recibir novedades y actualizaciones de Monday Happy Monday\", an input with placeholder \"Tu correo\" and an \"ENVÍA\" button; below, three groups of large orange numbers in a row: 92 (Empresas), 176 (Proyectos), 3121 (Personas), with small gray-white labels.\n7) Finally the light gray-white block, with the large blue heading \"Clientes\", and below it a grayscale logo wall, five per row, at least six rows."
},
{
"operator": "restructure layout",
"request": "That whole logo wall in the client section is too much hand-waving — investors will just ask \"so how many are there really?\". Turn the whole Clientes block into a client data panel: three summary numbers in a row at the top; below, a narrow industry column on the left and a client card grid on the right (three to four per row on wide screens, stacking vertically into one column on narrow screens); each card must show the client name, industry, first collaboration year, and number of projects done.\n\nOne more thing while you're at it: move the three hardcoded numbers in the subscription block (92 / 176 / 3121) up to the top of the new panel, and don't leave them in the subscription block — keep only the heading, megaphone icon, explanatory text, email box, and ENVÍA button, and don't change the dark blue background or the jagged edges top and bottom at all. The three numbers moved over must no longer be hardcoded — compute them for real from the list below: how many clients in total, how many projects in total, and how many industries are covered. For type size and color follow the original feel of large orange numbers plus small gray labels. Don't carelessly mess up what was built well in the previous version — the hero, six service cards, Conócenos, and blog area.\n\nClient list (from sales, messy format, sort it out yourself; parentheses are industry, first collaboration year, project count, in that order): EDEM (Education, 2016, 7), La Salle (Education, 2018, 4), ESADE (Education, 2015, 9), UOC (Education, 2019, 3), IEBS (Education, 2020, 2), inesdi (Education, 2017, 5), EAE Business School (Education, 2014, 6), eada (Education, 2021, 1), Barcelona Activa (Education, 2013, 11), Fundació Pere Tarrés (Education, 2019, 4); Roche (Health, 2016, 8), B.Braun (Health, 2018, 3), Uriach (Health, 2015, 6), Clínic (Health, 2017, 5), Boehringer Ingelheim (Health, 2020, 2), Sanofi (Health, 2019, 4), INDIBA (Health, 2021, 1); DENSO (Industry, 2014, 5), Schneider Electric (Industry, 2016, 7), SHAD (Industry, 2018, 3), Werfen (Industry, 2015, 6), Carglass (Industry, 2017, 4), Altran (Industry, 2019, 2), Volkswagen (Industry, 2013, 9), Keysight (Industry, 2020, 3); Diputació de Barcelona (Public sector, 2013, 10), Ajuntament de Lleida (Public sector, 2016, 4), Port de Barcelona (Public sector, 2015, 6), FGC (Public sector, 2018, 5), Incasol (Public sector, 2019, 2), Foment de Ciutat (Public sector, 2017, 3), Òmnium (Public sector, 2020, 1), Abertis (Public sector, 2014, 7); Vodafone (Tech & telecom, 2016, 6), Cellnex (Tech & telecom, 2018, 4), InPost (Tech & telecom, 2021, 2), Mediapro (Tech & telecom, 2015, 5); PepsiCo (Consumer, 2014, 8), Makro (Consumer, 2017, 5), Vueling (Consumer, 2016, 6), Endesa (Consumer, 2015, 7), McCann (Consumer, 2018, 4), Serunion (Consumer, 2019, 3).\n\nFor now lay them out by project count high to low; when project counts tie, the one that started collaborating earlier comes first; if even the year is the same, alphabetical by name. Show them all at this stage, no pagination needed."
},
{
"operator": "add state",
"request": "The panel can only be looked at right now — people need to filter it themselves. Make the industry column on the left clickable, with all six industries multi-selectable (clicking again deselects); also label each button with how many clients that industry itself has — this number is the fixed total and must not change with filtering. Above the panel add a search box by client name; typing a fragment matches (case-insensitive, name contains the fragment counts as a match), and search and industry filters stack — both conditions must be satisfied to show. Also give a sort choice with two options: \"Projects high→low\" and \"First collaboration year early→late\"; when sorting by year, within the same year put higher project counts first, and when project counts are also equal sort alphabetically by name — same tie-breaking rules as before.\n\nThe cards hold at most 12 per page, with pagination for the rest, page numbers and previous/next, and on the first page don't let people page backwards, on the last page don't let them overshoot, and frantic clicking must not break anything. The three summary numbers at the top must follow the current filter — after filtering (including search) they show the number of clients in the result, the total projects, and the number of industries involved; the numbers must add up, don't fob people off with the grand totals.\n\nAlso, any change to filters, search term, or sort automatically returns to page 1 — don't leave people on a blank page 4. When no industry is selected and the search box is empty, treat it as viewing everything."
},
{
"operator": "add section",
"request": "Below the client card grid add an \"Industry distribution\" block: each industry involved in the current filter results gets one horizontal bar, with the industry name and share written on it; the share is computed by project count (that industry's project count in the current result ÷ the total project count of the current result), rounded to a whole percentage, and the bar length follows the share, sorted longest to shortest. The bar colors should be picked from the six service cards' palette above — don't start another garish set.\n\nNote that this block must follow filtering and search, but paging does not affect it (the distribution on page 2 should be the same as on page 1). Also, when a search term matches nobody, neither this block nor the card area should leave an empty shell there — just give a human-readable notice, and the summary numbers should show 0 when they should."
},
{
"operator": "make interactive",
"request": "Finally, let client cards open to view details: clicking any card slides a drawer out from the right showing the client's name, industry, first collaboration year, project count, and a line \"an average of X projects per year\" — X is project count divided by the number of years from the first collaboration year to 2026 (inclusive of both ends), to one decimal place. The drawer also has an \"Only this industry\" button; clicking it switches the left industry column to select only this industry, closes the drawer, and returns the list to page 1, with the summary numbers above and the industry distribution following to this industry's figures. When the drawer is open there must be an overlay behind it; clicking the overlay or pressing Esc closes it.\n\nOne small contradiction I should state up front: the boss wants the drawer \"visible at a glance\", but doesn't want to mess up the clean, airy style of the homepage — work out a scheme yourself, but make it consistent across the site; don't have this block in heavy makeup and that block bare-faced."
}
],
"checklist": [
{
"id": "replicate.hero.quote",
"m": 1,
"dimension": "visual",
"w": 1.5,
"description": "The hero has a warm-yellow-toned large image/color-block background with the white large Spanish quote centered on it, the text containing \"La creatividad es la capacidad de imaginar un futuro que aún no existe\" and \"– Tim Brown\", unchanged."
},
{
"id": "replicate.cards.six",
"m": 1,
"dimension": "coverage",
"w": 1.5,
"description": "The service card area has exactly 6 cards, arranged 3 columns 2 rows at desktop width, with titles in order Design Sprint, Formación, Design Thinking, Design Research, Talleres de Creatividad, Agile, and background colors in order yellow, dark blue, light blue, coral red, green, pink-purple, each card with the corresponding Spanish description text below its title."
},
{
"id": "replicate.blog.three",
"m": 1,
"dimension": "coverage",
"w": 1.5,
"description": "The orange section's heading is \"Novedades en el blog\", directly below it the small text link \"TODOS LOS ARTÍCULOS\"; below that 3 white article cards in order with titles \"El coste político de no decidir (y la calma que sale cara)\", \"Cuando la matriz decide por nadie: poder, ambigüedad y gobernanza en estructuras complejas\", \"Lo que realmente ocurre en un workshop estratégico (y por qué algunos fracasan)\", bylines in order verbatim \"por Alicia Linares Roger | 20 May. 2026\", \"por Alejo Montero Bosch | 15 May. 2026\", \"por Alicia Linares Roger | 28 Abr. 2026\", category lines in order \"Innovación, Tendencias\", \"Innovación, Tendencias\", \"Historias reales, Innovación, Tendencias\", each card ending with a paragraph of gray excerpt text."
},
{
"id": "replicate.header.topbar",
"m": 1,
"dimension": "coverage",
"w": 1.0,
"description": "At the very top of the page is a thin dark bar, with a row of small social icons and the three language switcher texts Es, Ca, En on its right side; the header has the white wordmark \"monday happy monday\" at the top left and an orange square menu button at the top right."
},
{
"id": "replicate.subscribe.stats",
"m": 1,
"dimension": "visual",
"w": 1.0,
"description": "The dark blue subscription block has jagged top and bottom edges, and from top to bottom contains the heading \"Suscríbete\", a megaphone icon, the explanatory text \"Introduce tu correo para recibir novedades y actualizaciones de Monday Happy Monday\", an input with placeholder \"Tu correo\" and an \"ENVÍA\" button, with three groups of large orange numbers 92 / 176 / 3121 in a row at the bottom, with labels Empresas / Proyectos / Personas respectively."
},
{
"id": "replicate.clients.wall",
"m": 1,
"dimension": "visual",
"w": 1.0,
"description": "The teal block has the large white heading \"Conócenos\" centered, below it a centered portrait photo whose bottom edge crosses into the orange block below; at the very bottom of the page is the light gray-white block with the large blue heading \"Clientes\", below it a logo wall with 5 grayscale placeholders per row, at least 6 rows."
},
{
"id": "refactor.summary.values",
"m": 2,
"dimension": "functional",
"w": 1.5,
"description": "The three summary numbers at the top of the panel are computed for real from the list: client count shows 43, total projects shows 208, industry count shows 6 (initial unfiltered state)."
},
{
"id": "refactor.subscribe.preserved",
"m": 2,
"dimension": "visual",
"w": 1.5,
"description": "The subscription block no longer shows the three numbers 92, 176, 3121 or their labels, but the dark blue background, jagged top and bottom edges, \"Suscríbete\" heading, megaphone icon, explanatory text, email input, and ENVÍA button are all retained as-is."
},
{
"id": "refactor.cards.fields",
"m": 2,
"dimension": "coverage",
"w": 1.0,
"description": "The client grid renders 43 cards in total, each simultaneously showing client name, industry name, first collaboration year, and project count; at desktop width 3–4 cards per row, on narrow screens (about 375px) cards stack vertically into a single column; a narrow industry column on the left lists the 6 industry names."
},
{
"id": "refactor.sort.default",
"m": 2,
"dimension": "functional",
"w": 1.5,
"description": "The default sort is by project count descending: the first four cards are in order Barcelona Activa (11), Diputació de Barcelona (10), Volkswagen (9), ESADE (9) (Volkswagen 2013 comes before ESADE 2015, hence earlier)."
},
{
"id": "refactor.upstream.intact",
"m": 2,
"dimension": "visual",
"w": 1.0,
"description": "After the overhaul the hero quote, the six service cards' titles and background colors, the Conócenos teal block, and the three article cards' copy in the blog area are all consistent with requirement 1; none of them has been changed or misaligned."
},
{
"id": "state.filter.multi",
"m": 3,
"dimension": "interaction",
"w": 1.5,
"description": "Clicking \"Education\" in the industry column shows only Education clients (10 in total); clicking \"Health\" then shows Education and Health clients together (17 in total); clicking \"Education\" again to deselect leaves only Health's 7."
},
{
"id": "state.filter.badge.static",
"m": 3,
"dimension": "functional",
"w": 1.0,
"description": "The client count labeled next to each industry in the industry column is always the fixed total (Education 10, Health 7, Industry 8, Public sector 8, Tech & telecom 4, Consumer 6), never changing under any filter, search, or sort state."
},
{
"id": "state.summary.coupled",
"m": 3,
"dimension": "functional",
"w": 1.5,
"description": "With only \"Tech & telecom\" selected, the three summary numbers at the top become client count 4, projects 17, industries 1; clearing all selections restores 43 / 208 / 6."
},
{
"id": "state.search.intersect",
"m": 3,
"dimension": "functional",
"w": 1.0,
"description": "After clearing the industry selection, typing \"barcelona\" (case-insensitive) into the search box shows only three cards: Barcelona Activa, Diputació de Barcelona, Port de Barcelona, with top summary 3 / 27 / 2; then clicking \"Education\" leaves only Barcelona Activa, with summary 1 / 11 / 1."
},
{
"id": "state.sort.year",
"m": 3,
"dimension": "functional",
"w": 1.0,
"description": "Switching to \"First collaboration year early→late\" with no filters and an empty search box makes the first two cards Barcelona Activa (2013, 11) and Diputació de Barcelona (2013, 10) (within the same year, the one with more projects comes first); within the same year and same project count, sort alphabetically by name, so under this sort Serunion comes before UOC, and Altran comes before Incasol."
},
{
"id": "state.paging.reset",
"m": 3,
"dimension": "interaction",
"w": 1.5,
"description": "With no filters, at most 12 cards per page over 4 pages (7 on the last page); after going to page 3, clicking any industry filter, modifying the search term, or switching sort immediately returns the list to page 1; on page 1 clicking \"Previous\" 5 times in a row still stays on page 1 with the same card count, and on the last page clicking \"Next\" repeatedly doesn't overshoot either."
},
{
"id": "block.distribution.percent",
"m": 4,
"dimension": "functional",
"w": 1.5,
"description": "An \"Industry distribution\" block exists below the grid; with only \"Education\" and \"Tech & telecom\" selected (total projects 52+17=69), it shows two bars: Education about 75%, Tech & telecom about 25%, with bar length proportional to the percentage and the longer bar first."
},
{
"id": "block.distribution.pageIndependent",
"m": 4,
"dimension": "functional",
"w": 1.5,
"description": "In the unfiltered state, paging from page 1 to page 3 leaves the industry distribution block's bar count, order, and percentage values completely unchanged (still 6 bars, changing only with filters/search, not with paging)."
},
{
"id": "block.empty.state",
"m": 4,
"dimension": "interaction",
"w": 1.0,
"description": "Typing a keyword that matches no client (e.g. \"zzzz\") into the search box makes the card area and industry distribution area show a readable no-data notice rather than blank frames, while all three summary numbers at the top show 0; clearing the search term restores 43 / 208 / 6 and returns to page 1."
},
{
"id": "block.palette.reuse",
"m": 4,
"dimension": "visual",
"w": 1.0,
"description": "The colors used for the industry distribution bars are within the range of the six service card colors (yellow/dark blue/light blue/coral red/green/pink-purple), with no new palette introduced that clashes with the page's overall color system."
},
{
"id": "inter.drawer.open",
"m": 5,
"dimension": "interaction",
"w": 1.5,
"description": "Clicking the Barcelona Activa card slides out the drawer on the right showing the name, industry Education, first collaboration 2013, project count 11, and \"an average of 0.8 projects per year\" (11 ÷ 14 years = 0.79 rounded to one decimal)."
},
{
"id": "inter.drawer.avg.second",
"m": 5,
"dimension": "functional",
"w": 1.0,
"description": "Clicking INDIBA (Health, 2021, 1) makes the drawer show an average of 0.2 projects per year (1 ÷ 6 years); clicking PepsiCo (Consumer, 2014, 8) shows 0.6 (8 ÷ 13 years)."
},
{
"id": "inter.drawer.filterChain",
"m": 5,
"dimension": "interaction",
"w": 1.5,
"description": "Opening the drawer for an Industry client on page 2 and clicking \"Only this industry\": the drawer closes, only \"Industry\" is selected in the industry column, the list returns to page 1, the top summary becomes client count 8 / projects 39 / industries 1, and the industry distribution has only one bar, Industry 100%."
},
{
"id": "inter.drawer.dismiss",
"m": 5,
"dimension": "interaction",
"w": 1.0,
"description": "When the drawer is open an overlay covers the page content behind it; clicking the overlay closes the drawer, and pressing Esc on the keyboard likewise closes it, with the current page number, search term, and filter state unchanged after closing."
},
{
"id": "inter.style.consistency",
"m": 5,
"dimension": "visual",
"w": 1.0,
"description": "The drawer's visuals come from the same source as the panel controls: the drawer's accent color (buttons/highlights) comes from the page's existing primary colors (one of orange, dark blue, teal) rather than a newly introduced hue; the drawer buttons' corner radius matches the industry filter buttons/pagination buttons, and the close control belongs to the same border and font-size system as the search box; meeting the above anchors passes — if the drawer introduces an obviously different second primary color or corner-radius system from the panel controls, it's judged as inconsistent."
}
],
"inject": null,
"qc_static": [],
"review_status": "needs_human"
}