[ENHANCEMENT] Show message timestamps on hover with elapsed time
Les mainteneurs répondent en général sous 3 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 55/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- react, typescript
- Domaine
- frontend
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- TypeScript
- Étoiles
- 2k
- Forks
- 301
- Merge moyen
- 3 j 14 h
- PR mergées (30 j)
- 103
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Zoo-Code-Org/Zoo-Code
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
Zoo-Code-Org/Zoo-Code#2773 · 1 commentaire ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Zoo-Code-Org/Zoo-Code#2717 · 1 commentaire ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
Zoo-Code-Org/Zoo-Code#2515 ·
Les mainteneurs répondent en général sous 3 jours
-
fix(scripts): stryker-diff.mjs spawns the extensionless .bin shim and cannot run on WindowsPeut-être pris @easonLiangWorldedtech l’a pris il y a 15 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Zoo-Code-Org/Zoo-Code#2514 ·
Les mainteneurs répondent en général sous 3 jours
-
[BUG] search_files hides matching text on long linesPeut-être pris @DananjayaNadun l’a pris il y a 9 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
Zoo-Code-Org/Zoo-Code#2496 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 3 jours
Toutes les issues de Zoo-Code-Org/Zoo-Code
Issues similaires
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
ci
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
ClickHouse/clickhouse-js#1248 ·
Les mainteneurs répondent en général sous 1 jour
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechseltOuvertetechnik
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
AhmedNAgy25/analysor#25 ·
Les mainteneurs répondent en général sous 1 jour