Files
skills/docs/requirements/101-home-flatten-skips-pile.md
T
Kevin Veen-BirkenbachandClaude Opus 5.5 ab770f9436
🧪 Test / 🧪 Lock + lint (push) Canceled after 0s
docs(requirements): 100 MEDUSA regex waiver and 101 Home flatten skips the pile
100: security.py waives MM-SCAN-058 (PLA) and WM-SCAN-354 (ELS) findings
whose line lacks the rule word as a whole word, plus an upstream issue
and PR with anchored patterns, sent only after the operator reads it.
101: 044's flatten skips absolutely positioned or aria-hidden layers so
the Match Home tile keeps its front card's look. Both build after the
restart of 2026-11-28 (operator picks via kvb-think-choice).

🎯 Fix: 97 %
💥 Break: 1 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 96
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 10:05:29 +00:00

2.0 KiB

101 - Home Tile Flatten Skips the Match Card Pile

User Story

As the operator, I want the Match card in a Home tile to look like the card on the Match page, so that the widget shows the card itself instead of a stripped pile layer.

Decisions (operator-confirmed 2026-11-28; do not re-litigate)

  1. Flatten skips stacked decoration: 044's flatten in page-home.js picks the first box with its own border or background as the tile's box; it now skips absolutely positioned or aria-hidden layers (the Match pile layers behind the front card), so the front card's own wrapper becomes the box. Rejected: a Match-only exception in the flatten; leaving the layer stripped.
  2. Other tiles unchanged: every tile whose box 044 flattened today keeps the same box.
  3. Build after the restart of 2026-11-28.

Approach

flowchart TD
    subgraph P["🧭 0 · Preparation"]
        P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
        P2 -- "✏️ corrections" --> P1
    end
    P2 -- "🤖 yes" --> A1
    subgraph A["🧱 A · Flatten"]
        A1["🔎 Skip stacked layers when picking the box"] --> A2{"🧪 Unit and E2E green?"}
        A2 -- "🔴 no: fix" --> A1
        A2 -- "🟢 yes" --> AF{"💬 Operator feedback on screenshots?"}
        AF -- "✏️ changes" --> A1
    end
    AF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]

Acceptance Criteria

Flatten

  • In the Match Home tile no element with .match-pile (or another absolutely positioned or aria-hidden layer) carries .home-flat.
  • The Match tile's front card keeps its border and background.
  • Every other tile of tests/e2e/test_home_flat_widgets_e2e.py keeps its flattened box.

Tests

  • Unit:
    • The box pick skips an absolutely positioned and an aria-hidden layer (node).
  • Integration:
    • n/a: no server change.
  • E2E:
    • tests/e2e/test_home_flat_widgets_e2e.py gains the Match tile.