# 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 ```mermaid 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.