[ENHANCEMENT] Show message timestamps on hover with elapsed time

オープン
#2,446 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
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 の本文から書いたものです。

説明

enhancement
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

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時間
マージ済み PR(30日)
103

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Zoo-Code-Org/Zoo-Code のほかの issue

Zoo-Code-Org/Zoo-Code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。