{ "task_id": "c17", "layer": "composite", "seed_type": "prd", "operators": [ "generate", "add state", "add section", "make interactive" ], "difficulty": "challenging", "levers": [ "non-local changes", "state coupling" ], "domain": "local services", "seed_meta": {}, "title": "Alley Life · Community In-Store Group Buys", "milestones": [ { "operator": "generate", "request": "We're launching a community in-store group-buying site called \"Alley Life\" — let's get the homepage out first.\n\nAt the top is a brand bar: on the left the brand name \"Alley Life\", next to it the tagline \"Good deals right downstairs\". Below the brand bar, a district overview listing the four districts we cover — South City, Lakeside, Old Street, High-Tech — one by one, with how many deals each district currently has (count them yourself from the list below, don't make the numbers up).\n\nThe main body is a wall of deal cards, one card per group-buy deal. Each card must show: deal name, store name, district, category tag, struck-through original price, prominent current price, a discount tag, units sold, and rating. The discount tag is computed the crude way: current price divided by original price, times ten, rounded to one decimal place — original 60 sold at 25 gives a 4.2-tenths ratio, shown as \"58% off\"; original 30 sold at 15 gives a 5.0-tenths ratio, shown as \"50% off\". The footer reads one line: \"Alley Life · Community In-Store Group Buys | Customer Service 400-800-1234\".\n\nBelow is the list our operations colleague threw over — build it as-is for now, and keep the cards in the wall in this order, don't reorder on your own:\nOld Street's Grandma's Handmade Flatbread Shop, Food, deal \"Two-Person Flatbread & Soy Milk Combo\", original price 28 sold at 19, 312 sold, rating 4.7; Old Street's Chen's Beef Offal Noodle House, Food, \"Signature Beef Offal Noodles (2 Bowls)\", original 46 sold at 29, 588 sold, 4.5; South City No. 7 Coffee, Food, \"Pour-Over Coffee + Croissant\", original 68 sold at 39, 176 sold, 4.8; South City Good Cut Express Haircut, Hair Salon, \"Wash, Cut & Blow-Dry Single Voucher\", original 60 sold at 25, 903 sold, 4.3; Lakeside Stylist Home Hair Salon, Hair Salon, \"Hair Coloring + Treatment\", original 880 sold at 499, 64 sold, 4.6; Lakeside Songtao Foot Spa, Massage, \"60-Minute Foot Massage\", original 158 sold at 88, 421 sold, 4.4; High-Tech Mushi SPA, Massage, \"90-Minute Full-Body Massage\", original 398 sold at 268, 87 sold, 4.9; High-Tech Little Dinosaur Family Park, Family, \"Kids' 2-Hour Unlimited Play\", original 120 sold at 59, 655 sold, 4.2; South City Children's Art Studio, Family, \"Kids' Painting Trial Class\", original 200 sold at 99, 130 sold, 4.6; Lakeside Iron Gym, Fitness, \"Monthly Pass Trial\", original 399 sold at 199, 241 sold, 4.1; High-Tech Ignition Personal Training, Fitness, \"3 Personal Training Sessions\", original 900 sold at 599, 38 sold, 4.8; Old Street Alley Corner Barbershop, Hair Salon, \"Master Barber Haircut Voucher\", original 30 sold at 15, 1024 sold, 4.9.\n\nBesides those twelve, there's a batch of standard combos — operations couldn't be bothered naming them, so they're just \"Neighborhood Select Combo A01\" through \"Neighborhood Select Combo A32\", all with the store name \"Neighborhood Select Direct Store\". Their info is derived from the number: districts cycle from A01 through South City, Lakeside, Old Street, High-Tech; categories cycle from A01 through Food, Hair Salon, Massage, Family, Fitness; the original price is the number times ten plus fifty; the current price is 70% of the original (they all come out as whole numbers, so no messy cents to worry about); units sold is the number times seven; the rating is based on the last digit of the number: whatever the last digit is, that's the decimal after 4., and a last digit of 0 means 4.0. This batch comes after the first twelve, A01 through A32 in numerical order." }, { "operator": "add state", "request": "Just laying out a wall of cards means users can't find anything — they need to be able to pick.\n\nAbove the card wall, give a row of category buttons: All, Food, Hair Salon, Massage, Family, Fitness; then a row of district buttons: All, South City, Lakeside, Old Street, High-Tech; the two rows can be active at the same time. Next to them, a sort selector with options \"Recommended\" (the original list order; this is the default), \"Sales: high to low\", \"Current price: low to high\", and \"Best value first\" (the lower the current-to-original price ratio, the earlier it ranks). Also add a \"Show only 4.5 stars and above\" toggle.\n\nNext to the filter area there should be a count line that tells the user in real time \"N deals in total\" — the number must match the number of cards actually shown below.\n\nThe card wall holds only 12 per page; give pagination below showing the current page and total pages; when the results don't fill a page, page 2 shouldn't appear in the pager. One thing to watch: after the user changes any filter condition or sort order, they must start again from page 1 — don't leave them stranded on an empty page.\n\nIf a combination of conditions yields no deals, don't leave a blank area — show the plain-language message \"No deals under this combination for now — try different filters\", plus a \"Clear filters\" button. Clicking it resets all conditions, sort, and toggles to their initial state, and all the deals come back." }, { "operator": "add section", "request": "Next we need to actually take orders.\n\nAdd a \"Buy Now\" button to every card; clicking it puts that deal in the cart. Put a cart entry at the right side of the top brand bar, with a badge showing the total number of items in the cart (the sum of quantities, not the number of distinct deals). Clicking the cart entry opens the cart panel.\n\nIn the cart panel each row shows the deal name, current price, and quantity; the quantity can go up and down. Two rules: no more than 3 of the same deal per order — once the limit is reached, neither the Buy Now button on the card nor the plus in the panel may increase it any further, and both must tell the user \"Limit 3 per deal per order\"; when a quantity drops to 0, that row is removed from the cart entirely. When the cart is empty, the panel reads \"Your cart is empty — go browse for something\".\n\nGet the money right: first a subtotal (each row's current price times quantity, summed); then the platform coupon — spend 200 save 30, spend 500 save 80, spend 1000 save 150, only the highest tier you qualify for applies; the amount payable is the subtotal minus the coupon; finally a line \"You've saved ¥X\", where X is the combined original price of these deals minus the amount payable.\n\nCheckout is three steps: click \"Checkout\" in the cart panel to get to confirmation; this step must let the user enter a phone number and choose a pickup time — both must be there; the phone number must be 11 digits, and until it's valid \"Place order\" must be unclickable; after a successful submit, show an order-success result with the order number and amount paid, and clear the cart and reset the badge to zero.\n\nAlso, the cart follows the person: however the user filters or pages above, that must not affect what's already in the cart. For deals already added, the card should show how many were selected." }, { "operator": "make interactive", "request": "Two additions, both user requests.\n\nFirst, browsing at night is harsh on the eyes — add a night mode toggle to the brand bar. When it's on, the whole site must go dark — the filter area, card wall, pagination, cart panel, checkout confirmation, and order-success overlays — none can be missed; don't leave a white panel stuck in the dark. Close the browser and come back, and it must remember which mode the user last chose. Design has a note: at night don't make it gaudy, keep the overall treatment restrained; but product also has a note: the Buy Now button and the discount amounts must be visible at a glance. Strike a balance yourself, but the style under the two modes must be one system — it can't look like one thing by day and another by night.\n\nSecond, add favorites. Put a heart in the corner of every card; click to favorite, click again to unfavorite. The brand bar shows \"Favorites (n)\"; clicking it switches to \"Favorites only\", and at that point the category and district filters must still stack on top, with the count updating too; this toggle only governs favorites and won't clear the category and district conditions along the way. When there isn't a single favorite, under Favorites only write \"You haven't favorited any deals yet\". Favorites are favorites and the cart is the cart — don't let them leak into each other." } ], "checklist": [ { "id": "gen.brand.header", "m": 1, "dimension": "visual", "w": 1.0, "description": "The brand bar at the top of the first screen shows both the brand name \"Alley Life\" and the tagline \"Good deals right downstairs\"; at the bottom of the page appears the entire line \"Alley Life · Community In-Store Group Buys | Customer Service 400-800-1234\"." }, { "id": "gen.area.counts", "m": 1, "dimension": "functional", "w": 1.5, "description": "The district overview strip lists the four districts South City, Lakeside, Old Street, and High-Tech, and the deal count shown after each district is 11 (44 in total across the four)." }, { "id": "gen.card.fields", "m": 1, "dimension": "visual", "w": 1.0, "description": "On the \"Master Barber Haircut Voucher\" card, all of the following are visible at once: the store name \"Alley Corner Barbershop\", the district \"Old Street\", the category \"Hair Salon\", the struck-through original price 30, the current price 15, the discount tag \"50% off\", 1024 sold, and the rating 4.9." }, { "id": "gen.rule.a32", "m": 1, "dimension": "functional", "w": 1.5, "description": "The \"Neighborhood Select Combo A32\" card shows the store name \"Neighborhood Select Direct Store\", district High-Tech, category Hair Salon, original price 370, current price 259, discount tag \"30% off\", 224 sold, and rating 4.2." }, { "id": "gen.rule.a13", "m": 1, "dimension": "functional", "w": 1.0, "description": "The \"Neighborhood Select Combo A13\" card shows the store name \"Neighborhood Select Direct Store\", district South City, category Massage, original price 180, current price 126, 91 sold, and rating 4.3." }, { "id": "gen.grid.layout", "m": 1, "dimension": "visual", "w": 1.0, "description": "At 1280px width the cards are arranged in a grid, at least 3 per row, with cards on the same row aligned in height; the original price is gray and struck through, the current price is in a clearly contrasting accent color, and the page has no horizontal scrollbar." }, { "id": "filter.default.paging", "m": 2, "dimension": "functional", "w": 1.5, "description": "On initial entry (category/district both All, sort Recommended) the count line shows \"44 deals in total\" and exactly 12 cards render on the current page: the 1st is \"Two-Person Flatbread & Soy Milk Combo\" and the 12th is \"Master Barber Haircut Voucher\"; going to page 2, the 1st is \"Neighborhood Select Combo A01\"; page 4 (the last page) renders exactly 8 cards." }, { "id": "filter.combo.hair.gaoxin", "m": 2, "dimension": "functional", "w": 1.5, "description": "After clicking the category \"Hair Salon\" the count becomes 10; after also clicking the district \"High-Tech\" the count becomes 2, and the two cards shown are exactly \"Neighborhood Select Combo A12\" and \"Neighborhood Select Combo A32\"." }, { "id": "filter.sort.price", "m": 2, "dimension": "functional", "w": 1.0, "description": "With category and district both \"All\", switching the sort to \"Current price: low to high\" makes the first three cards of page 1, in order: \"Master Barber Haircut Voucher\" (15), \"Two-Person Flatbread & Soy Milk Combo\" (19), \"Wash, Cut & Blow-Dry Single Voucher\" (25), and the count is still \"44 deals in total\"." }, { "id": "filter.sort.sales.discount", "m": 2, "dimension": "interaction", "w": 1.0, "description": "With category \"Hair Salon\" and sort \"Sales: high to low\", the first three cards are, in order, \"Master Barber Haircut Voucher\" (1024), \"Wash, Cut & Blow-Dry Single Voucher\" (903), \"Neighborhood Select Combo A32\" (224); keeping category \"Hair Salon\" and changing the sort to \"Best value first\", the first three become, in order, \"Wash, Cut & Blow-Dry Single Voucher\" (58% off), \"Master Barber Haircut Voucher\" (50% off), \"Hair Coloring + Treatment\" (43% off)." }, { "id": "filter.page.reset", "m": 2, "dimension": "interaction", "w": 1.5, "description": "Under default conditions, first go to page 3; clicking category \"Family\" immediately returns the list to page 1, the count is 8 and the pager has only 1 page (no page 2); then switch the category back to \"All\" and go to page 2, change only the sort to \"Current price: low to high\", and the list immediately returns to page 1 — neither operation leaves you on an out-of-range empty page." }, { "id": "filter.rating.empty.reset", "m": 2, "dimension": "functional", "w": 1.0, "description": "With category \"Food\" selected and \"Show only 4.5 stars and above\" turned on, the count is 6 and no 4.1-star deal appears in the list; keeping the toggle on, change to category \"Massage\" + district \"South City\", the count becomes 0 and \"No deals under this combination for now — try different filters\" appears; clicking \"Clear filters\" returns the count to 44, category and district both back to \"All\", the rating toggle off, and the sort back to \"Recommended\"." }, { "id": "cart.limit.badge", "m": 3, "dimension": "functional", "w": 1.5, "description": "Clicking Buy Now on the \"Master Barber Haircut Voucher\" card 4 times in a row leaves the cart badge at 3 (not 4); that row's quantity in the cart panel is 3, the plus inside the panel is disabled, and the message \"Limit 3 per deal per order\" appears on the page." }, { "id": "cart.card.qty", "m": 3, "dimension": "interaction", "w": 1.0, "description": "After adding 2 units of \"Master Barber Haircut Voucher\", its card shows a marker indicating 2 selected; after switching the category to \"Food\" and back, or going to page 2 and back to page 1, the marker is still on that card and the number is still 2." }, { "id": "cart.amount.tiers", "m": 3, "dimension": "functional", "w": 1.5, "description": "When the cart is \"Master Barber Haircut Voucher\" ×3 + \"60-Minute Foot Massage\" ×1, it shows a subtotal of 133, no coupon discount, an amount payable of 133, and you've saved 115; after also adding \"90-Minute Full-Body Massage\" ×1 it shows a subtotal of 401, discount 30, payable 371, saved 275, badge 5; after also adding \"Hair Coloring + Treatment\" ×1 it shows subtotal 900, discount 80 (not 30 and not 150), payable 820, saved 706, badge 6." }, { "id": "cart.remove.row", "m": 3, "dimension": "interaction", "w": 1.0, "description": "In the state of \"Master Barber Haircut Voucher\" ×3 + \"60-Minute Foot Massage\" ×1 + \"90-Minute Full-Body Massage\" ×1 (payable 371), reduce \"60-Minute Foot Massage\" from 1 to 0; the row disappears from the cart, the subtotal becomes 313, discount 30, payable 283, saved 205, and the badge becomes 4." }, { "id": "cart.checkout.chain", "m": 3, "dimension": "interaction", "w": 1.5, "description": "Standalone scenario: first build the cart as \"Master Barber Haircut Voucher\" ×3 + \"60-Minute Foot Massage\" ×1 + \"90-Minute Full-Body Massage\" ×1 (badge 5, payable 371); after clicking \"Checkout\", the confirmation step shows both the phone input and the pickup-time selector; when only 10 digits are entered for the phone, \"Place order\" is unclickable, and once it is filled to 11 digits it can be submitted; the result page shows an order number and the amount paid 371, after which the cart badge reads 0 and opening the cart again shows \"Your cart is empty — go browse for something\"." }, { "id": "cart.filter.isolation", "m": 3, "dimension": "functional", "w": 1.5, "description": "Standalone scenario: rebuild the cart as \"Master Barber Haircut Voucher\" ×3 + \"60-Minute Foot Massage\" ×1 + \"90-Minute Full-Body Massage\" ×1 (three rows, 5 items total, payable 371); switching the category to \"Family\" (count 8, only 1 page) so that all carted deals are filtered out leaves the badge at 5, the cart still these three rows, and the amount payable still 371; then switching the category back to \"All\" and going to page 2, the badge and cart contents remain unchanged." }, { "id": "theme.global.dark", "m": 4, "dimension": "visual", "w": 1.5, "description": "After turning on night mode, the page background, filter area, cards, pagination area, cart panel, checkout confirmation layer, and the order-success result layer after submitting the order are all dark, with no contiguous area still on a light white background; after refreshing the page it is still in night mode." }, { "id": "theme.emphasis.consistent", "m": 4, "dimension": "visual", "w": 1.0, "description": "In night mode the Buy Now button and the discount/amount-payable amounts use an accent from the same hue family as in day mode (if day mode is orange-red, night mode stays orange-red); the Buy Now button keeps a solid fill or clear outline treatment that clearly distinguishes it from ordinary body text; the current price remains the accent color, the original price remains struck through, and the discount tag text remains clearly legible; the page has no large areas of highly saturated gradients or neon decoration." }, { "id": "fav.count.isolation", "m": 4, "dimension": "functional", "w": 1.5, "description": "After favoriting 3 cards in sequence, the brand bar shows \"Favorites (3)\" while the cart badge number doesn't change; clicking the heart on one of them again shows \"Favorites (2)\", that card's heart returns to the unfavorited style, and the cart contents and badge remain unchanged." }, { "id": "fav.filter.combo", "m": 4, "dimension": "interaction", "w": 1.5, "description": "After favoriting \"Master Barber Haircut Voucher\", \"60-Minute Foot Massage\", and \"Neighborhood Select Combo A32\", turning on \"Favorites only\" shows a count of 3; clicking category \"Hair Salon\" then changes the count to 2, leaving only the haircut voucher and A32 cards." }, { "id": "fav.empty.state", "m": 4, "dimension": "functional", "w": 1.0, "description": "Standalone scenario: with category and district both \"All\", first favorite any 2 cards; turn on \"Favorites only\" and then unfavorite those 2 one by one; \"You haven't favorited any deals yet\" appears and the count is 0; after turning \"Favorites only\" off (category still \"All\"), the count returns to \"44 deals in total\"." }, { "id": "theme.state.preserve", "m": 4, "dimension": "functional", "w": 1.0, "description": "While the district filter \"Lakeside\" (count 11) is applied and the cart has 2 items, toggling night mode keeps the count at 11, the card set on the current page unchanged, and the cart badge at 2; after the toggle, the category buttons and pagination can still be clicked normally and take effect immediately." } ], "inject": null, "qc_static": [], "review_status": "needs_human" }