[ENHANCEMENT] Show message timestamps on hover with elapsed time
維護者通常 3 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 55/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- react, typescript
- 領域
- frontend
研究方向
Start in webview-ui/src/components/chat/MessageTimestamp.tsx and see how it is rendered from webview-ui/src/components/chat/ChatRow.tsx, reusing the formatter in webview-ui/src/utils/format.ts from PR #2223 without adding a new one. Confirm that PR #2223 is merged in your checkout before you start. Done means the timestamp is hidden by default, appears when hovering the whole message area, shows the elapsed time before the middle dot, and keeps the existing clock icon and formatting.
由索引模型根據 Issue 內容生成。
描述
Problem (one or two sentences)
Requested change
Preserve the timestamp display introduced in [PR #2223 — Add time and date format settings and message timestamps](https://github.com/Zoo-Code-Org/Zoo-Code/pull/2223).
Only change the timestamp's visibility and positioning, and prepend relative elapsed time.
[existing clock icon] [elapsed time] · [timestamp text from PR #2223]
Context (who is affected and when)
All users
Desired behavior (conceptual, not technical)
- Hide timestamps by default.
- Reveal the timestamp when hovering anywhere within the entire message section, including surrounding whitespace.
- Position the timestamp below the message, right-aligned.
- Preserve the existing clock icon, placed at the beginning.
- Add relative elapsed time, followed by
·. - Preserve the date/time formatting behavior established in PR #2223, including labels, abbreviations, punctuation, AM/PM notation, localization, user preferences, and formatting thresholds.
- Avoid layout shifts.
- Maintain keyboard and touch accessibility.
Constraints / preferences (optional)
Display structure:
[existing clock icon] [elapsed time] · [timestamp text from PR #2223]
The date/time portion after the middle dot must reuse the formatted text from the implementation introduced by PR #2223, unchanged.
Implementation references
- [PR #2223 — Timestamp implementation](https://github.com/Zoo-Code-Org/Zoo-Code/pull/2223)
webview-ui/src/components/chat/MessageTimestamp.tsxwebview-ui/src/components/chat/ChatRow.tsxwebview-ui/src/utils/format.ts
Reuse the date/time rendering logic from PR #2223 rather than introducing a separate formatter.
Request checklist
- I searched the existing Issues and Discussions for duplicates
- This describes a specific problem with clear context and impact
Zoo Code Task Links (optional)
No response
Acceptance criteria (optional)
- Timestamp appears when hovering anywhere within the message section.
- Timestamp is right-aligned below the message.
- Existing clock icon is preserved.
- Relative elapsed time precedes a middle dot.
- The date/time string is rendered using the formatting behavior introduced by PR #2223.
- No layout shifts or accessibility regressions.
Proposed approach (optional)
No response
Trade-offs / risks (optional)
No response
- 主要語言
- TypeScript
- 星號
- 2k
- 分支
- 301
- 平均合併
- 3 天 14 小時
- 30 天內合併 PR
- 103
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Zoo-Code-Org/Zoo-Code 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 70/100
Zoo-Code-Org/Zoo-Code#2773 · 1 則留言 ·
維護者通常 3 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
Zoo-Code-Org/Zoo-Code#2717 · 1 則留言 ·
維護者通常 3 天內回覆
-
難度 2/5 1-3 小時 新手友好度 77/100
Zoo-Code-Org/Zoo-Code#2515 ·
維護者通常 3 天內回覆
-
fix(scripts): stryker-diff.mjs spawns the extensionless .bin shim and cannot run on Windows可能已有人在做 @easonLiangWorldedtech 於 16 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
Zoo-Code-Org/Zoo-Code#2514 ·
維護者通常 3 天內回覆
-
[BUG] search_files hides matching text on long lines可能已有人在做 @DananjayaNadun 於 9 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 74/100
Zoo-Code-Org/Zoo-Code#2496 · 1 則留言 · 已指派 1 人 ·
維護者通常 3 天內回覆
查看 Zoo-Code-Org/Zoo-Code 的全部 Issue
相似的 Issue
-
enhancement
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
ci
難度 2/5 1-3 小時 新手友好度 78/100
ClickHouse/clickhouse-js#1248 ·
維護者通常 1 天內回覆
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechselt未關閉technik
難度 2/5 1-3 小時 新手友好度 78/100
-
bug
難度 2/5 1-3 小時 新手友好度 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
維護者通常 1 天內回覆
-
enhancement good first issue
難度 2/5 1-3 小時 新手友好度 84/100
AhmedNAgy25/analysor#25 ·
維護者通常 1 天內回覆