[ENHANCEMENT] Show message timestamps on hover with elapsed time

Offen
#2,446 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 3 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
react, typescript
Bereich
frontend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
TypeScript
Sterne
2k
Forks
301
Ø Merge
3 T. 14 Std.
Gemergte PRs (30 T.)
103

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Zoo-Code-Org/Zoo-Code

Alle Issues in Zoo-Code-Org/Zoo-Code

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.