diff options
| author | bndw <ben@bdw.to> | 2026-03-01 12:02:34 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-03-01 12:02:34 -0800 |
| commit | ead65fd7d50ead785f437cc895c74146bd232702 (patch) | |
| tree | d820a033ebd4ca6250aeda4e9442cad65a432b22 /renderer/src/components | |
| parent | 044d628a47f063bcbbd9adba7860542156a0c66e (diff) | |
feat: Create utils directory structure (+4 more)
- ✅ Create utils directory structure
- ✅ Implement formatRelativeTime function with all time ranges
- ✅ Implement formatSessionLabel function
- ✅ Add import to Header.tsx
- ✅ Update session dropdown option rendering
Diffstat (limited to 'renderer/src/components')
| -rw-r--r-- | renderer/src/components/Header.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/renderer/src/components/Header.tsx b/renderer/src/components/Header.tsx index 1d954ec..dc88a73 100644 --- a/renderer/src/components/Header.tsx +++ b/renderer/src/components/Header.tsx | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | import React, { useState, useEffect } from "react"; | 1 | import React, { useState, useEffect } from "react"; |
| 2 | import type { Project, Session, Phase } from "../types"; | 2 | import type { Project, Session, Phase } from "../types"; |
| 3 | import { formatSessionLabel } from "../utils/timeFormat"; | ||
| 3 | 4 | ||
| 4 | const api = window.api; | 5 | const api = window.api; |
| 5 | 6 | ||
| @@ -165,7 +166,7 @@ export function Header({ | |||
| 165 | <option value="">Select Session...</option> | 166 | <option value="">Select Session...</option> |
| 166 | {sessions.map((s) => ( | 167 | {sessions.map((s) => ( |
| 167 | <option key={s.id} value={s.id}> | 168 | <option key={s.id} value={s.id}> |
| 168 | {s.name} | 169 | {formatSessionLabel(s.name, s.updated_at)} |
| 169 | </option> | 170 | </option> |
| 170 | ))} | 171 | ))} |
| 171 | </select> | 172 | </select> |
