File contents fn-9.11 Header component
Description
Create Header component with two-row layout.
File
src/components/header.ts
Layout
Row 1:
Status icon (▸ running, ⏸ idle, ✓ done)
"flow-next" branding (left)
Current task ID + title in 「brackets」(right, truncated)
Timer MM:SS (far right)
Row 2:
Iteration number + progress (e.g., "Iter #3 · 3/7 tasks")
Epic ID and title (truncated)
Interface
interface HeaderProps {
state: 'running' | 'idle' | 'complete';
task?: Task;
epic?: Epic;
iteration: number;
taskProgress: {done: number, total: number};
elapsed: number; // seconds
theme: Theme;
}
class Header implements Component {
render(width: number): string[]
}
Timer
Update via external interval, format as MM:SS.
Acceptance
Done summary
Added Header component with two-row layout per spec
Row 1: status icon + branding, task in brackets, timer MM:SS
Row 2: iteration + progress, epic ID + title
Supports ASCII icons via useAscii prop
All tests (21) pass
Evidence
Commits: 4c9b9d7aa2091e5609652c2f0e7e7a364c222b28
Tests: bun test src/components/header.test.ts
PRs:
1 --- 2 name: 202-fn-911-b1fa84c4 3 description: fn-9.11 Header component 4 --- 5 # fn-9.11 Header component 6 7 ## Description 8 9 Create Header component with two-row layout. 10 11 ### File 12 13 `src/components/header.ts` 14 15 ### Layout 16 17 Row 1: 18 - Status icon (▸ running, ⏸ idle, ✓ done) 19 - "flow-next" branding (left) 20 - Current task ID + title in 「brackets」(right, truncated) 21 - Timer MM:SS (far right) 22 23 Row 2: 24 - Iteration number + progress (e.g., "Iter #3 · 3/7 tasks") 25 - Epic ID and title (truncated) 26 27 ### Interface 28 29 ```typescript 30 interface HeaderProps { 31 state: 'running' | 'idle' | 'complete'; 32 task?: Task; 33 epic?: Epic; 34 iteration: number; 35 taskProgress: {done: number, total: number}; 36 elapsed: number; // seconds 37 theme: Theme; 38 } 39 40 class Header implements Component { 41 render(width: number): string[] 42 } 43 ``` 44 45 ### Timer 46 47 Update via external interval, format as MM:SS. 48 ## Acceptance 49 - [ ] Two rows render correctly 50 - [ ] Status icon matches state 51 - [ ] Task title truncated when needed 52 - [ ] Timer shows MM:SS format 53 - [ ] Progress shows X/Y tasks format 54 - [ ] Epic title truncated when needed 55 ## Done summary 56 - Added Header component with two-row layout per spec 57 - Row 1: status icon + branding, task in brackets, timer MM:SS 58 - Row 2: iteration + progress, epic ID + title 59 - Supports ASCII icons via useAscii prop 60 - All tests (21) pass 61 ## Evidence 62 - Commits: 4c9b9d7aa2091e5609652c2f0e7e7a364c222b28 63 - Tests: bun test src/components/header.test.ts 64 - PRs:
tools-only/X-Skills/tree/main/productivity/202-fn-911_b1fa84c4 commit 320c8d9360
Frequently asked questions How do I install the 202 Fn 911 B1fa84c4 skill? Run npx skillmds@latest add tools-only/202-fn-911-b1fa84c4 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the 202 Fn 911 B1fa84c4 skill do? fn-9.11 Header component It is listed under Web & Frontend on SkillMD.
Is 202 Fn 911 B1fa84c4 safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with 202 Fn 911 B1fa84c4? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is 202 Fn 911 B1fa84c4 free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published 202 Fn 911 B1fa84c4? tools-only (@tools-only) published this skill. Their other Agent Skills are listed on their SkillMD profile.