095 compact agent message box, 096 silent reject of expired Match cards, 097 Match show filter in the right-click menu, 098 docked speech bubbles with avatar and skip, 099 Match card headline capped at 120 characters. 094 gains the live test result, the 5 s close criterion and decision 6: closes are bound to a per-session closer token. README describes the 094 hook protocol and the uncapped prune list. 🎯 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>
63 lines
2.3 KiB
Markdown
63 lines
2.3 KiB
Markdown
# 099 - Match Card Headline Capped at 120 Characters
|
|
|
|
## User Story
|
|
|
|
As the operator, I want a Match card's headline cut to a fixed length while
|
|
its code box keeps the whole command, so that a long command does not fill
|
|
the card before I see its place, kind and buttons.
|
|
|
|
## Decisions (operator-confirmed 2026-11-28; do not re-litigate)
|
|
|
|
1. **Cut on the hub**: every Match card's `title` is at most 120 characters,
|
|
cut at the last word boundary before the limit and ended with "…"; the
|
|
headline, the peek row, the release card row, the reject sheet and every
|
|
toast use it. Rejected: a heuristic summary (program, subcommand, first
|
|
argument); a CSS line-clamp that leaves toasts and the release card long.
|
|
2. **Whole text stays**: the code box keeps the full `command`, and the
|
|
headline's tooltip names the full title when it was cut.
|
|
3. **Binding unchanged**: the card hash is computed from the uncut title and
|
|
command, so cutting changes no signature and no stale check.
|
|
|
|
## Approach
|
|
|
|
```mermaid
|
|
flowchart TD
|
|
subgraph P["🧭 0 · Preparation"]
|
|
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
|
P2 -- "✏️ corrections" --> P1
|
|
end
|
|
P2 -- "🤖 yes" --> A1
|
|
subgraph A["✂️ A · Headline cap"]
|
|
A1["✂️ headline() cuts every card title"] --> A2["🏷️ Tooltip with the full title"]
|
|
A2 --> A3{"🧪 Unit tests green?"}
|
|
A3 -- "🔴 no: fix" --> A1
|
|
A3 -- "🟢 yes" --> AF{"💬 Operator feedback on screenshots?"}
|
|
AF -- "✏️ changes" --> A1
|
|
end
|
|
AF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
|
|
```
|
|
|
|
## Acceptance Criteria
|
|
|
|
### Cap
|
|
|
|
- [ ] A command card whose command has 900 characters carries a `title` of
|
|
at most 120 characters ending in "…" and its full `command`.
|
|
- [ ] A title of 120 characters or fewer stays unchanged.
|
|
- [ ] A word longer than the limit is cut inside the word.
|
|
- [ ] The card hash of a long command is the same as before the cap.
|
|
|
|
### Page
|
|
|
|
- [ ] The headline of a cut card has a tooltip with the full title.
|
|
|
|
### Tests
|
|
|
|
- Unit:
|
|
- [ ] `headline()` on short, long, single-word and exact-limit titles.
|
|
- Integration:
|
|
- [ ] A command card from the hub's Match view carries the cut title and
|
|
the full command.
|
|
- E2E:
|
|
- n/a: the existing Match E2E specs render the cut title; no new spec.
|