Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

feat(workbench): reveal chat timestamps on hover (#443)

Call White9fbc314105ec
diff --git a/ui/src/components/workbench/ChatPage.tsx b/ui/src/components/workbench/ChatPage.tsx
index 28f4d4167..a63b49190 100644
--- a/ui/src/components/workbench/ChatPage.tsx
+++ b/ui/src/components/workbench/ChatPage.tsx
@@ -1201,7 +1201,7 @@ const ThinkingBubble: React.FC<{ session: WorkbenchSession }> = ({ session }) =>
const { t } = useTranslation();
return (
<div className="flex w-full justify-start">
- <div className="flex max-w-[min(92%,860px)] flex-col items-start gap-1">
+ <div className="group/message flex max-w-[min(92%,860px)] flex-col items-start gap-1">
<div className="flex items-center gap-2 px-0.5">
<RoleAvatar tone="mint"><Bot /></RoleAvatar>
<span className="text-[11px] font-medium text-muted">{session.agent_name || t('chat.thinking')}</span>
@@ -1331,15 +1331,23 @@ const MessageRow = memo(function MessageRow({ message, session, messageFontSize,
<div className="text-[13px] text-muted">—</div>
) : null;
+ // Timestamp is metadata, not content: hidden by default, revealed while the
+ // pointer is over the message OR focus moves into it (a keyboard user tabbing
+ // to a link/button inside; doesn't add a tab stop on its own). The column
+ // carries a NAMED group (``group/message``) so this reveal can't collide with
+ // the unnamed ``group-hover`` ChatImage uses for its own overlay button.
+ // Coarse pointers (touch) have no hover, so keep it always visible there.
const time = (
- <span className="px-1 font-mono text-[10px] text-muted">{formatLocalDateTime(message.created_at)}</span>
+ <span className="px-1 font-mono text-[10px] text-muted opacity-0 transition-opacity duration-150 group-hover/message:opacity-100 group-focus-within/message:opacity-100 pointer-coarse:opacity-100">
+ {formatLocalDateTime(message.created_at)}
+ </span>
);
// ----- Notify: compact gold pill, left-aligned (a status marker) -----
if (isNotify) {
return (
<div className="flex w-full justify-start">
- <div className="flex max-w-[min(92%,860px)] flex-col items-start gap-1">
+ <div className="group/message flex max-w-[min(92%,860px)] flex-col items-start gap-1">
<div className="inline-flex w-fit max-w-full items-start gap-1.5 rounded-2xl rounded-tl-md border border-gold/30 bg-gold/[0.08] px-3 py-1.5 text-[12px] text-gold">
<Bell className="mt-px size-3 shrink-0" />
<span className="min-w-0 break-words">
@@ -1357,7 +1365,7 @@ const MessageRow = memo(function MessageRow({ message, session, messageFontSize,
if (isUser) {
return (
<div className="flex w-full justify-end">
- <div className="flex max-w-[min(92%,860px)] flex-col items-end gap-1">
+ <div className="group/message flex max-w-[min(92%,860px)] flex-col items-end gap-1">
<div
className="w-fit min-w-0 max-w-full rounded-2xl rounded-tr-md border border-border-strong bg-foreground/[0.06] px-3.5 py-2.5 leading-relaxed [&_pre]:max-w-full [&_pre]:overflow-x-auto [&_table]:w-full"
style={messageFontStyle}
@@ -1375,7 +1383,7 @@ const MessageRow = memo(function MessageRow({ message, session, messageFontSize,
if (isHarness) {
return (
<div className="flex w-full justify-start">
- <div className="flex max-w-[min(92%,860px)] flex-col items-start gap-1">
+ <div className="group/message flex max-w-[min(92%,860px)] flex-col items-start gap-1">
<div className="flex items-center gap-2 px-0.5">
<RoleAvatar tone="cyan"><Clock /></RoleAvatar>
<span className="text-[11px] font-medium text-cyan">{harnessLabel(message.author_name, t)}</span>
@@ -1409,7 +1417,7 @@ const MessageRow = memo(function MessageRow({ message, session, messageFontSize,
const name = isAgent ? session.agent_name || message.author_name : message.author_name;
return (
<div className="flex w-full justify-start">
- <div className="flex max-w-[min(92%,860px)] flex-col items-start gap-1">
+ <div className="group/message flex max-w-[min(92%,860px)] flex-col items-start gap-1">
<div className="flex items-center gap-2 px-0.5">
<RoleAvatar tone={isAgent ? 'mint' : 'muted'}>{isAgent ? <Bot /> : <Info />}</RoleAvatar>
{name && <span className="text-[11px] font-medium text-muted">{name}</span>}