Files
skills/docs/requirements/056-flowing-card-edge.md
T

57 lines
2.0 KiB
Markdown
Raw Normal View History

# 056 - Flowing Card Edge
## User Story
As the operator, I want the colour bar on top of a Match card to flow into
the card instead of sitting on it as a strip, so that the card reads as one
piece.
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
1. **Flowing bar** (operator, screenshot): the bar is full colour at the very
top edge and fades into the card head within 22 px, following the card's
rounded corners; the head's pattern fades in under it instead of starting
at a hard line. Rejected: today's 6 px strip with a hard lower edge.
2. **No scrollbar through the edge**: the card itself no longer scrolls, only
its body does, as 047 sets for Match cards; no scrollbar runs through the
top corner.
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes" --> A1
subgraph A["🌈 A · Card edge"]
A1["🧩 Bar as a fading overlay"] --> A2["📜 Only the body scrolls"]
A2 --> A3["✍️ E2E edge check updated"]
end
A3 --> C1
subgraph C["🧪 C · All of 039 to 056"]
C1["🧪 All tests once"] --> C2{"🟢 Green?"}
C2 -- "🔴 no: fix" --> C1
C2 -- "🟢 yes" --> CF{"💬 Operator feedback on screenshots?"}
CF -- "✏️ changes" --> A1
end
CF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### Edge
- [ ] The front card's `::before` is 22 px high, painted with the card's
gradient and masked from opaque at 0 px to transparent at 22 px.
- [ ] The head pattern's mask starts transparent at 0 px.
- [ ] The front card computes `overflow-y: hidden`; its `.match-body`
scrolls.
### Tests
- [ ] Unit: n/a: CSS.
- [ ] Integration: n/a: no server change.
- [ ] E2E: the edge check of `test_box_heads_e2e.py` asserts the Edge
checks for every pattern in Chromium and Firefox; screenshots.