DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.
Python ai-agentsai-tutorclawbotcli-tooldeepresearchinteractive-learninglearningmulti-agent-systemsrag
fix(web): expose remaining partner and coworker action hints on touch
Bingxi Zhao (Frank)a46439632e79
diff --git a/web/app/(utility)/session-handoff/page.tsx b/web/app/(utility)/session-handoff/page.tsxindex 3bc88e125..bff2220ab 100644--- a/web/app/(utility)/session-handoff/page.tsx+++ b/web/app/(utility)/session-handoff/page.tsx@@ -117,11 +117,10 @@ export default function SessionHandoffPage() {<buttontype="button"onClick={() => void copy()}- title={t("Copy link")}className="inline-flex items-center gap-1.5 rounded-lg border border-[var(--border)] px-2.5 py-1.5 text-xs text-[var(--foreground)] transition-colors hover:bg-[var(--card)]"><ClipboardCopy size={14} />- {copied ? t("Copied") : t("Copy")}+ {copied ? t("Copied") : t("Copy link")}</button></div><p className="mt-3 break-all text-sm text-[var(--muted-foreground)]">diff --git a/web/app/(workspace)/co-writer/page.tsx b/web/app/(workspace)/co-writer/page.tsxindex 9d4fefad0..434511d97 100644--- a/web/app/(workspace)/co-writer/page.tsx+++ b/web/app/(workspace)/co-writer/page.tsx@@ -13,6 +13,7 @@ import {} from "@/lib/co-writer-api";import { notifyCoWriterChanged } from "@/lib/co-writer-events";import { CO_WRITER_SAMPLE_TEMPLATE } from "./sampleTemplate";+import Tooltip from "@/shared/ui/Tooltip";function relativeTime(seconds: number): string {if (!seconds || Number.isNaN(seconds)) return "";@@ -280,34 +281,34 @@ export default function CoWriterHomePage() {</div></div></div>- <button- type="button"- onClick={(event) => {- event.stopPropagation();- if (isPendingDelete) {- void handleDelete(doc.id);- } else {- setPendingDeleteId(doc.id);- }- }}- disabled={isDeleting}- title={- isPendingDelete- ? t("Click again to confirm")- : t("Delete draft")- }- className={`shrink-0 rounded-md p-1 transition-colors disabled:opacity-50 ${- isPendingDelete- ? "bg-rose-500/15 text-rose-600 dark:text-rose-400"- : "text-[var(--muted-foreground)]/60 opacity-0 hover:bg-rose-500/10 hover:text-rose-600 group-hover:opacity-100 dark:hover:text-rose-400"- }`}+ <Tooltip+ label={isPendingDelete ? t("Click again to confirm") : t("Delete draft")}>- {isDeleting ? (- <Loader2 size={13} className="animate-spin" />- ) : (- <Trash2 size={13} />- )}- </button>+ <button+ type="button"+ onClick={(event) => {+ event.stopPropagation();+ if (isPendingDelete) {+ void handleDelete(doc.id);+ } else {+ setPendingDeleteId(doc.id);+ }+ }}+ disabled={isDeleting}+ aria-label={isPendingDelete ? t("Click again to confirm") : t("Delete draft")}+ className={`shrink-0 rounded-md p-1 transition-colors disabled:opacity-50 ${+ isPendingDelete+ ? "bg-rose-500/15 text-rose-600 dark:text-rose-400"+ : "text-[var(--muted-foreground)]/60 hover:bg-rose-500/10 hover:text-rose-600 dark:hover:text-rose-400"+ }`}+ >+ {isDeleting ? (+ <Loader2 size={13} className="animate-spin" />+ ) : (+ <Trash2 size={13} />+ )}+ </button>+ </Tooltip></div><p className="mt-2.5 line-clamp-4 flex-1 text-[12px] leading-relaxed text-[var(--muted-foreground)]">{doc.preview || t("Empty draft")}diff --git a/web/app/(workspace)/kanban/page.tsx b/web/app/(workspace)/kanban/page.tsxindex 14fc0718c..b4f3f218d 100644--- a/web/app/(workspace)/kanban/page.tsx+++ b/web/app/(workspace)/kanban/page.tsx@@ -13,6 +13,7 @@ import {} from 'lucide-react'import { useTranslation } from 'react-i18next'import SpaceSectionHeader from '@/components/space/SpaceSectionHeader'+import Tooltip from '@/shared/ui/Tooltip'import {createTaskCard,@@ -274,49 +275,52 @@ export default function KanbanPage() {<div className="mt-4 flex items-center justify-between border-t border-[var(--border)] pt-3"><div className="flex gap-1">{!showArchived && index > 0 && (- <button- disabled={busy}- aria-label={`${card.title}: ${t('kanban.moveTo')} ${t(columns[index - 1].title)}`}- title={t('kanban.back')}- className="rounded-lg p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--accent)]"- onClick={() =>- void act(() =>- updateTaskCard(card.id, { status: columns[index - 1].id })- )- }- >- <ArrowLeft size={16} />- </button>+ <Tooltip label={t('kanban.back')}>+ <button+ disabled={busy}+ aria-label={`${card.title}: ${t('kanban.moveTo')} ${t(columns[index - 1].title)}`}+ className="rounded-lg p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--accent)]"+ onClick={() =>+ void act(() =>+ updateTaskCard(card.id, { status: columns[index - 1].id })+ )+ }+ >+ <ArrowLeft size={16} />+ </button>+ </Tooltip>)}{!showArchived && index < 2 && (- <button- disabled={busy}- aria-label={`${card.title}: ${t('kanban.moveTo')} ${t(columns[index + 1].title)}`}- title={t('kanban.forward')}- className="rounded-lg p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--accent)]"- onClick={() =>- void act(() =>- updateTaskCard(card.id, { status: columns[index + 1].id })- )- }- >- <ArrowRight size={16} />- </button>+ <Tooltip label={t('kanban.forward')}>+ <button+ disabled={busy}+ aria-label={`${card.title}: ${t('kanban.moveTo')} ${t(columns[index + 1].title)}`}+ className="rounded-lg p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--accent)]"+ onClick={() =>+ void act(() =>+ updateTaskCard(card.id, { status: columns[index + 1].id })+ )+ }+ >+ <ArrowRight size={16} />+ </button>+ </Tooltip>)}</div>- <button- disabled={busy}- aria-label={`${card.title}: ${t(card.archived ? 'kanban.restore' : 'kanban.archive')}`}- title={t(card.archived ? 'kanban.restore' : 'kanban.archive')}- className="rounded-lg p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--accent)]"- onClick={() =>- void act(() =>- updateTaskCard(card.id, { archived: !card.archived })- )- }- >- {card.archived ? <RotateCcw size={15} /> : <Archive size={15} />}- </button>+ <Tooltip label={t(card.archived ? 'kanban.restore' : 'kanban.archive')}>+ <button+ disabled={busy}+ aria-label={`${card.title}: ${t(card.archived ? 'kanban.restore' : 'kanban.archive')}`}+ className="rounded-lg p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--accent)]"+ onClick={() =>+ void act(() =>+ updateTaskCard(card.id, { archived: !card.archived })+ )+ }+ >+ {card.archived ? <RotateCcw size={15} /> : <Archive size={15} />}+ </button>+ </Tooltip></div></>)}diff --git a/web/app/(workspace)/partners/[partnerId]/page.tsx b/web/app/(workspace)/partners/[partnerId]/page.tsxindex 3d1345371..a27b6aa02 100644--- a/web/app/(workspace)/partners/[partnerId]/page.tsx+++ b/web/app/(workspace)/partners/[partnerId]/page.tsx@@ -23,6 +23,7 @@ import {Trash2,} from "lucide-react";import { useTranslation } from "react-i18next";+import Tooltip from "@/shared/ui/Tooltip";import {archivePartnerSession,destroyPartner,@@ -538,77 +539,85 @@ function PartnerDetail() {{(activeTab === "chat" || activeTab === "archive") && (<>{activeTab === "chat" ? (+ <Tooltip label={t("Archive")}>+ <button+ type="button"+ onClick={() => void handleArchiveConversation()}+ disabled={!chatMessages.length || archiveBusy || switchingSession || chatBusy}+ aria-label={t("Archive")}+ className="rounded-md p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-[var(--foreground)] disabled:cursor-not-allowed disabled:opacity-40"+ >+ {archiveBusy ? (+ <Loader2 className="h-4 w-4 animate-spin" />+ ) : (+ <Archive className="h-4 w-4" />+ )}+ </button>+ </Tooltip>+ ) : null}+ <Tooltip label={t("Save to Notebook")}><buttontype="button"- onClick={() => void handleArchiveConversation()}- disabled={!chatMessages.length || archiveBusy || switchingSession || chatBusy}- title={t("Archive")}- aria-label={t("Archive")}+ onClick={() => setShowSaveModal(true)}+ disabled={!canExport}+ aria-label={t("Save to Notebook")}className="rounded-md p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-[var(--foreground)] disabled:cursor-not-allowed disabled:opacity-40">- {archiveBusy ? (- <Loader2 className="h-4 w-4 animate-spin" />- ) : (- <Archive className="h-4 w-4" />- )}+ <BookmarkPlus className="h-4 w-4" /></button>- ) : null}- <button- type="button"- onClick={() => setShowSaveModal(true)}- disabled={!canExport}- title={t("Save to Notebook")}- aria-label={t("Save to Notebook")}- className="rounded-md p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-[var(--foreground)] disabled:cursor-not-allowed disabled:opacity-40"- >- <BookmarkPlus className="h-4 w-4" />- </button>- <button- type="button"- onClick={handleDownload}- disabled={!canExport}- title={t("Download chat history as Markdown")}- aria-label={t("Download Markdown")}- className="rounded-md p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-[var(--foreground)] disabled:cursor-not-allowed disabled:opacity-40"- >- <Download className="h-4 w-4" />- </button>+ </Tooltip>+ <Tooltip label={t("Download chat history as Markdown")}>+ <button+ type="button"+ onClick={handleDownload}+ disabled={!canExport}+ aria-label={t("Download Markdown")}+ className="rounded-md p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-[var(--foreground)] disabled:cursor-not-allowed disabled:opacity-40"+ >+ <Download className="h-4 w-4" />+ </button>+ </Tooltip></>)}- <button- type="button"- onClick={() => setShowLinkModal(true)}- title={t("Link a chat account")}- aria-label={t("Link a chat account")}- className="rounded-md p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-[var(--foreground)]"- >- <Link2 className="h-4 w-4" />- </button>+ <Tooltip label={t("Link a chat account")}>+ <button+ type="button"+ onClick={() => setShowLinkModal(true)}+ aria-label={t("Link a chat account")}+ className="rounded-md p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-[var(--foreground)]"+ >+ <Link2 className="h-4 w-4" />+ </button>+ </Tooltip>{canManage ? (<>- <button- type="button"- onClick={() => void toggleRunning()}- disabled={lifecycleBusy}- title={partner.running ? t("Stop") : t("Start")}- className="rounded-md p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-[var(--foreground)] disabled:opacity-40"- >- {lifecycleBusy ? (- <Loader2 className="h-4 w-4 animate-spin" />- ) : partner.running ? (- <Square className="h-4 w-4" />- ) : (- <Play className="h-4 w-4" />- )}- </button>- <button- type="button"- onClick={() => void handleDestroy()}- title={t("Delete partner")}- className="rounded-md p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-red-500"- >- <Trash2 className="h-4 w-4" />- </button>+ <Tooltip label={partner.running ? t("Stop") : t("Start")}>+ <button+ type="button"+ onClick={() => void toggleRunning()}+ disabled={lifecycleBusy}+ aria-label={partner.running ? t("Stop") : t("Start")}+ className="rounded-md p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-[var(--foreground)] disabled:opacity-40"+ >+ {lifecycleBusy ? (+ <Loader2 className="h-4 w-4 animate-spin" />+ ) : partner.running ? (+ <Square className="h-4 w-4" />+ ) : (+ <Play className="h-4 w-4" />+ )}+ </button>+ </Tooltip>+ <Tooltip label={t("Delete partner")}>+ <button+ type="button"+ onClick={() => void handleDestroy()}+ aria-label={t("Delete partner")}+ className="rounded-md p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-red-500"+ >+ <Trash2 className="h-4 w-4" />+ </button>+ </Tooltip></>) : null}</div>diff --git a/web/app/(workspace)/partners/groups/[groupId]/page.tsx b/web/app/(workspace)/partners/groups/[groupId]/page.tsxindex 89e9015e3..ebd80e98f 100644--- a/web/app/(workspace)/partners/groups/[groupId]/page.tsx+++ b/web/app/(workspace)/partners/groups/[groupId]/page.tsx@@ -151,7 +151,6 @@ export default function PartnerGroupPage() {onClick={() => downloadChatMarkdown(exportMessages, { title: group.name })}disabled={exportMessages.length === 0}aria-label={t("Download")}- title={t("Download")}className="inline-flex h-8 items-center gap-1.5 rounded-lg border border-[var(--border)] px-2.5 text-[11px] text-[var(--muted-foreground)] transition-colors hover:text-[var(--foreground)] disabled:cursor-not-allowed disabled:opacity-40"><Download size={12} />diff --git a/web/components/common/GeogebraOpenCTA.tsx b/web/components/common/GeogebraOpenCTA.tsxindex 69880d3a1..6a23dd7d9 100644--- a/web/components/common/GeogebraOpenCTA.tsx+++ b/web/components/common/GeogebraOpenCTA.tsx@@ -58,11 +58,6 @@ export default function GeogebraOpenCTA({type="button"onClick={onClick}disabled={disabled}- title={- disabled- ? t("GeoGebra viewer is not available in this surface")- : undefined- }className={`group flex w-full items-center gap-3 rounded-xl border border-[var(--border)] bg-[var(--card)] px-4 py-3 text-left transition-colors ${disabled? "cursor-not-allowed opacity-60"@@ -77,9 +72,9 @@ export default function GeogebraOpenCTA({{title || t("Interactive GeoGebra figure")}</span><span className="block text-xs text-[var(--muted-foreground)]">- {t(- "Click to open an interactive GeoGebra canvas in the side viewer.",- )}+ {disabled+ ? t("GeoGebra viewer is not available in this surface")+ : t("Click to open an interactive GeoGebra canvas in the side viewer.")}</span></span></button>diff --git a/web/components/partners/AssetPicker.tsx b/web/components/partners/AssetPicker.tsxindex c0b57a970..4fab161cb 100644--- a/web/components/partners/AssetPicker.tsx+++ b/web/components/partners/AssetPicker.tsx@@ -12,6 +12,7 @@ import { BookOpen, Database, NotebookPen } from "lucide-react";import { listKnowledgeBases } from "@/features/knowledge/api/catalog";import { listSkills } from "@/lib/skills-api";import { listNotebooks } from "@/lib/notebook-api";+import Tooltip from "@/shared/ui/Tooltip";export interface AssetSelection {knowledge_bases: string[];@@ -60,19 +61,19 @@ function ChipGroup({{options.map((option) => {const active = selected.includes(option.id);return (- <button- key={option.id}- type="button"- onClick={() => onToggle(option.id)}- title={option.hint}- className={`rounded-full border px-3.5 py-1.5 text-[13px] transition-all duration-150 active:scale-[0.97] ${- active- ? "border-[var(--primary)] bg-[var(--secondary)] font-medium text-[var(--primary)]"- : "border-[var(--border)] text-[var(--muted-foreground)] hover:border-[var(--ring)] hover:text-[var(--foreground)]"- }`}- >- {option.label}- </button>+ <Tooltip key={option.id} label={option.label} description={option.hint}>+ <button+ type="button"+ onClick={() => onToggle(option.id)}+ className={`rounded-full border px-3.5 py-1.5 text-[13px] transition-all duration-150 active:scale-[0.97] ${+ active+ ? "border-[var(--primary)] bg-[var(--secondary)] font-medium text-[var(--primary)]"+ : "border-[var(--border)] text-[var(--muted-foreground)] hover:border-[var(--ring)] hover:text-[var(--foreground)]"+ }`}+ >+ {option.label}+ </button>+ </Tooltip>);})}</div>diff --git a/web/components/partners/PartnerArchives.tsx b/web/components/partners/PartnerArchives.tsxindex 4c96f4c09..4ab2b4611 100644--- a/web/components/partners/PartnerArchives.tsx+++ b/web/components/partners/PartnerArchives.tsx@@ -21,6 +21,7 @@ import {} from "@/lib/partners-api";import type { ExportableMessage } from "@/lib/chat-export";import { displaySessionTitle } from "@/lib/session-title";+import Tooltip from "@/shared/ui/Tooltip";interface HistoryMessage {role: string;@@ -216,17 +217,19 @@ export default function PartnerArchives({: t("No sessions")}</p></div>- <button- type="button"- onClick={() => void loadSessions()}- disabled={loadingSessions}- title={t("Refresh")}- className="inline-flex h-7 w-7 items-center justify-center rounded-md text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-[var(--foreground)] disabled:opacity-40"- >- <RefreshCw- className={`h-3.5 w-3.5 ${loadingSessions ? "animate-spin" : ""}`}- />- </button>+ <Tooltip label={t("Refresh")}>+ <button+ type="button"+ onClick={() => void loadSessions()}+ disabled={loadingSessions}+ aria-label={t("Refresh")}+ className="inline-flex h-7 w-7 items-center justify-center rounded-md text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-[var(--foreground)] disabled:opacity-40"+ >+ <RefreshCw+ className={`h-3.5 w-3.5 ${loadingSessions ? "animate-spin" : ""}`}+ />+ </button>+ </Tooltip></div><div className="space-y-2">@@ -322,20 +325,21 @@ export default function PartnerArchives({<buttontype="button"onClick={() => void handleResume(selected)}- title={t("Continue this conversation")}className="inline-flex items-center gap-1 rounded-md border border-[var(--border)] px-2 py-1 text-[11px] text-[var(--foreground)] hover:bg-[var(--muted)]"><RotateCcw className="h-3 w-3" />- {t("Continue")}- </button>- <button- type="button"- onClick={() => void handleDelete(selected)}- title={t("Delete conversation")}- className="inline-flex h-[26px] w-[26px] items-center justify-center rounded-md text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-red-500"- >- <Trash2 className="h-3.5 w-3.5" />+ {t("Continue this conversation")}</button>+ <Tooltip label={t("Delete conversation")}>+ <button+ type="button"+ onClick={() => void handleDelete(selected)}+ aria-label={t("Delete conversation")}+ className="inline-flex h-[26px] w-[26px] items-center justify-center rounded-md text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-red-500"+ >+ <Trash2 className="h-3.5 w-3.5" />+ </button>+ </Tooltip></div></div></div>diff --git a/web/components/partners/PartnerChannels.tsx b/web/components/partners/PartnerChannels.tsxindex 4daeb9527..dad0db49e 100644--- a/web/components/partners/PartnerChannels.tsx+++ b/web/components/partners/PartnerChannels.tsx@@ -274,7 +274,6 @@ export default function PartnerChannels({<buttontype="button"onClick={() => setActiveChannel(name)}- title={unavailable ? entry.unavailable_reason : undefined}className={`group flex w-full items-center gap-2 rounded-md px-2.5 py-1.5 text-left text-[13px] transition-colors ${isActive? "bg-[var(--muted)] font-medium text-[var(--foreground)]"diff --git a/web/components/partners/PartnerComposer.tsx b/web/components/partners/PartnerComposer.tsxindex 6986223d9..3371875d6 100644--- a/web/components/partners/PartnerComposer.tsx+++ b/web/components/partners/PartnerComposer.tsx@@ -9,6 +9,7 @@import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";import { ArrowUp, Info, Paperclip, Square, X } from "lucide-react";import { useTranslation } from "react-i18next";+import Tooltip from "@/shared/ui/Tooltip";import { shouldSubmitOnEnter } from "@/lib/composer-keyboard";import {getPartnerCommands,@@ -554,16 +555,17 @@ export const PartnerComposer = memo(function PartnerComposer({<div className="flex items-center justify-between px-2 pb-2"><div className="flex items-center gap-0.5">- <button- type="button"- onClick={() => fileInputRef.current?.click()}- disabled={disabled || streaming}- aria-label={t("Attach files")}- title={t("Attach files")}- className="flex h-7 w-7 items-center justify-center rounded-full text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)] disabled:opacity-30"- >- <Paperclip className="h-4 w-4" strokeWidth={1.9} />- </button>+ <Tooltip label={t("Attach files")}>+ <button+ type="button"+ onClick={() => fileInputRef.current?.click()}+ disabled={disabled || streaming}+ aria-label={t("Attach files")}+ className="flex h-7 w-7 items-center justify-center rounded-full text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)] disabled:opacity-30"+ >+ <Paperclip className="h-4 w-4" strokeWidth={1.9} />+ </button>+ </Tooltip><divclassName="relative flex items-center"onMouseEnter={() => setShowHelp(true)}@@ -596,15 +598,16 @@ export const PartnerComposer = memo(function PartnerComposer({</div></div>{streaming ? (- <button- type="button"- onClick={onStop}- aria-label={t("Stop")}- title={t("Stop")}- className="flex h-7 w-7 items-center justify-center rounded-full bg-[var(--foreground)] text-[var(--background)] transition-opacity hover:opacity-90"- >- <Square className="h-3 w-3" strokeWidth={2.2} fill="currentColor" />- </button>+ <Tooltip label={t("Stop")}>+ <button+ type="button"+ onClick={onStop}+ aria-label={t("Stop")}+ className="flex h-7 w-7 items-center justify-center rounded-full bg-[var(--foreground)] text-[var(--background)] transition-opacity hover:opacity-90"+ >+ <Square className="h-3 w-3" strokeWidth={2.2} fill="currentColor" />+ </button>+ </Tooltip>) : (<buttontype="button"diff --git a/web/components/partners/SoulPicker.tsx b/web/components/partners/SoulPicker.tsxindex 9fcc17310..5033edff1 100644--- a/web/components/partners/SoulPicker.tsx+++ b/web/components/partners/SoulPicker.tsx@@ -11,6 +11,7 @@import { useEffect, useState } from "react";import { useTranslation } from "react-i18next";import { useAuthStatus } from "@/hooks/useAuthStatus";+import Tooltip from "@/shared/ui/Tooltip";import {BookHeart,Check,@@ -190,19 +191,19 @@ export default function SoulPicker({{tab === "persona" && (<div className="flex flex-wrap gap-2">{(sources?.personas ?? []).map((persona) => (- <button- key={persona.name}- type="button"- onClick={() => selectPersona(persona.name)}- title={persona.description}- className={`rounded-full border px-3.5 py-1.5 text-[13px] transition-all duration-150 active:scale-[0.97] ${- value.source === "persona" && value.id === persona.name- ? "border-[var(--primary)] bg-[var(--secondary)] font-medium text-[var(--primary)]"- : "border-[var(--border)] text-[var(--muted-foreground)] hover:border-[var(--ring)] hover:text-[var(--foreground)]"- }`}- >- {persona.name}- </button>+ <Tooltip key={persona.name} label={persona.name} description={persona.description}>+ <button+ type="button"+ onClick={() => selectPersona(persona.name)}+ className={`rounded-full border px-3.5 py-1.5 text-[13px] transition-all duration-150 active:scale-[0.97] ${+ value.source === "persona" && value.id === persona.name+ ? "border-[var(--primary)] bg-[var(--secondary)] font-medium text-[var(--primary)]"+ : "border-[var(--border)] text-[var(--muted-foreground)] hover:border-[var(--ring)] hover:text-[var(--foreground)]"+ }`}+ >+ {persona.name}+ </button>+ </Tooltip>))}{sources && sources.personas.length === 0 && (<p className="text-[13px] text-[var(--muted-foreground)]">diff --git a/web/components/partners/group/GroupComposer.tsx b/web/components/partners/group/GroupComposer.tsxindex ec153b91e..000b66354 100644--- a/web/components/partners/group/GroupComposer.tsx+++ b/web/components/partners/group/GroupComposer.tsx@@ -3,6 +3,7 @@import { useEffect, useMemo, useRef, useState } from "react";import { ArrowUp, AtSign, Square, X } from "lucide-react";import { useTranslation } from "react-i18next";+import Tooltip from "@/shared/ui/Tooltip";import PartnerAvatar from "@/components/partners/PartnerAvatar";import { shouldSubmitOnEnter } from "@/lib/composer-keyboard";@@ -235,24 +236,28 @@ export default function GroupComposer({className="flex-1 resize-none bg-transparent px-2 py-2 text-[13px] leading-relaxed text-[var(--foreground)] outline-none placeholder:text-[var(--muted-foreground)]"/>{running ? (- <button- type="button"- onClick={onCancel}- title={t("Stop")}- className="flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-[var(--border)] text-[var(--muted-foreground)] transition-colors hover:text-[var(--foreground)]"- >- <Square size={11} fill="currentColor" />- </button>+ <Tooltip label={t("Stop")}>+ <button+ type="button"+ onClick={onCancel}+ aria-label={t("Stop")}+ className="flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-[var(--border)] text-[var(--muted-foreground)] transition-colors hover:text-[var(--foreground)]"+ >+ <Square size={11} fill="currentColor" />+ </button>+ </Tooltip>) : (- <button- type="button"- onClick={submit}- disabled={!input.trim() || !connected}- title={connected ? t("Send") : t("Connecting…")}- className="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[var(--primary)] text-[var(--primary-foreground)] transition-opacity disabled:opacity-35"- >- <ArrowUp size={15} />- </button>+ <Tooltip label={connected ? t("Send") : t("Connecting…")}>+ <button+ type="button"+ onClick={submit}+ disabled={!input.trim() || !connected}+ aria-label={connected ? t("Send") : t("Connecting…")}+ className="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[var(--primary)] text-[var(--primary-foreground)] transition-opacity disabled:opacity-35"+ >+ <ArrowUp size={15} />+ </button>+ </Tooltip>)}</div></div>diff --git a/web/components/partners/group/GroupSessionPicker.tsx b/web/components/partners/group/GroupSessionPicker.tsxindex e1858279c..33de51be9 100644--- a/web/components/partners/group/GroupSessionPicker.tsx+++ b/web/components/partners/group/GroupSessionPicker.tsx@@ -3,6 +3,7 @@import { useCallback, useEffect, useRef, useState } from "react";import { Check, ChevronDown, MessagesSquare, Plus, Trash2 } from "lucide-react";import { useTranslation } from "react-i18next";+import Tooltip from "@/shared/ui/Tooltip";import {deletePartnerGroupSession,@@ -147,15 +148,17 @@ export default function GroupSessionPicker({</span></span></button>- <button- type="button"- onClick={() => remove(item.session_key)}- disabled={busy === item.session_key}- title={t("Delete")}- className="shrink-0 rounded-md p-1.5 text-[var(--muted-foreground)] transition-opacity hover:text-red-500 focus:opacity-100 sm:opacity-0 sm:group-hover/row:opacity-100 disabled:opacity-40"- >- <Trash2 size={12} />- </button>+ <Tooltip label={t("Delete")}>+ <button+ type="button"+ onClick={() => remove(item.session_key)}+ disabled={busy === item.session_key}+ aria-label={`${t("Delete")}: ${item.title || t("New discussion")}`}+ className="shrink-0 rounded-md p-1.5 text-[var(--muted-foreground)] transition-colors hover:text-red-500 disabled:opacity-40"+ >+ <Trash2 size={12} />+ </button>+ </Tooltip></div>);})}diff --git a/web/components/partners/group/PartnerSeat.tsx b/web/components/partners/group/PartnerSeat.tsxindex e71e61f21..ed8fe2ddf 100644--- a/web/components/partners/group/PartnerSeat.tsx+++ b/web/components/partners/group/PartnerSeat.tsx@@ -140,7 +140,6 @@ export default function PartnerSeat({<buttontype="button"onClick={copy}- title={t("Copy")}className="inline-flex h-6 items-center gap-1 rounded-md px-1.5 text-[10.5px] text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-[var(--foreground)]">{copied ? <Check size={11} /> : <Copy size={11} />}@@ -150,11 +149,10 @@ export default function PartnerSeat({<buttontype="button"onClick={() => onQuote(member, body)}- title={t("Quote this in a reply")}className="inline-flex h-6 items-center gap-1 rounded-md px-1.5 text-[10.5px] text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-[var(--foreground)]"><CornerUpRight size={11} />- {t("Follow up")}+ {t("Quote this in a reply")}</button>) : null}{onAskPeer && peers && peers.length ? (diff --git a/web/components/partners/schema-form.tsx b/web/components/partners/schema-form.tsxindex 29907de1a..7ff03a799 100644--- a/web/components/partners/schema-form.tsx+++ b/web/components/partners/schema-form.tsx@@ -9,6 +9,7 @@import { useState } from "react";import { useTranslation } from "react-i18next";import { Eye, EyeOff } from "lucide-react";+import Tooltip from "@/shared/ui/Tooltip";export type JsonSchema = {type?: string | string[];@@ -329,19 +330,22 @@ export function SchemaField({className={`w-full rounded-lg border border-[var(--border)] bg-transparent py-2 pl-3 ${isSecret ? "pr-10 font-mono" : "pr-3"} text-[13px] outline-none focus:border-[var(--ring)]`}/>{isSecret && (- <button- type="button"- onClick={() => toggleSecret(path)}- className="absolute right-1 top-1/2 -translate-y-1/2 rounded-md p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-[var(--foreground)]"- aria-label={reveal ? t("Hide secret") : t("Show secret")}- title={reveal ? t("Hide secret") : t("Show secret")}- >- {reveal ? (- <EyeOff className="h-4 w-4" />- ) : (- <Eye className="h-4 w-4" />- )}- </button>+ <span className="absolute right-1 top-1/2 -translate-y-1/2">+ <Tooltip label={reveal ? t("Hide secret") : t("Show secret")}>+ <button+ type="button"+ onClick={() => toggleSecret(path)}+ className="rounded-md p-1.5 text-[var(--muted-foreground)] hover:bg-[var(--muted)] hover:text-[var(--foreground)]"+ aria-label={reveal ? t("Hide secret") : t("Show secret")}+ >+ {reveal ? (+ <EyeOff className="h-4 w-4" />+ ) : (+ <Eye className="h-4 w-4" />+ )}+ </button>+ </Tooltip>+ </span>)}</div></div>diff --git a/web/components/visualize/VisualizationViewer.tsx b/web/components/visualize/VisualizationViewer.tsxindex 0ba339d3d..a62bc91b7 100644--- a/web/components/visualize/VisualizationViewer.tsx+++ b/web/components/visualize/VisualizationViewer.tsx@@ -177,10 +177,9 @@ function HtmlRenderer({ html }: { html: string }) {type="button"onClick={handleOpenInNewTab}className="absolute right-2 top-2 z-10 inline-flex items-center gap-1 rounded-md border border-[var(--border)] bg-[var(--background)]/90 px-2 py-1 text-[10px] font-medium text-[var(--muted-foreground)] backdrop-blur transition-colors hover:text-[var(--foreground)]"- title={t("Open in new tab")}><ExternalLink size={10} strokeWidth={1.8} />- {t("Open")}+ {t("Open in new tab")}</button><iframeref={iframeRef}@@ -571,7 +570,6 @@ export default function VisualizationViewer({<buttontype="button"onClick={() => setFullscreen(true)}- title={t("Fullscreen")}className="absolute right-2 top-2 z-10 inline-flex items-center gap-1 rounded-md border border-[var(--border)] bg-[var(--background)]/90 px-2 py-1 text-[10px] font-medium text-[var(--muted-foreground)] backdrop-blur transition-colors hover:text-[var(--foreground)]"><Maximize2 size={10} strokeWidth={1.8} />@@ -652,7 +650,6 @@ export default function VisualizationViewer({e.stopPropagation();setFullscreen(false);}}- title={t("Close")}className="inline-flex items-center gap-1 rounded-md bg-white/10 px-2.5 py-1.5 text-[11px] font-medium text-white transition-colors hover:bg-white/20"><X size={12} strokeWidth={1.8} />diff --git a/web/components/visualize/VisualizeConfigPanel.tsx b/web/components/visualize/VisualizeConfigPanel.tsxindex 41e24cc28..a6ac63ac3 100644--- a/web/components/visualize/VisualizeConfigPanel.tsx+++ b/web/components/visualize/VisualizeConfigPanel.tsx@@ -2,6 +2,7 @@import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";import { useTranslation } from "react-i18next";+import Tooltip from "@/shared/ui/Tooltip";import {summarizeVisualizeConfig,type VisualizeFormConfig,@@ -167,20 +168,20 @@ export default memo(function VisualizeConfigPanel({<Field label={t("Visualizer Types")} width="min-w-[210px] flex-1"><div className="flex min-h-8 flex-wrap items-center gap-1.5">{installableTypes.map((item) => (- <button- key={item.id}- type="button"- disabled={Boolean(busy)}- onClick={() =>- void mutate(`install:${item.id}`, () =>- installBundledVisualizer(item.id),- )- }- className="rounded-md border border-[var(--border)] px-2 py-1 text-[10px] text-[var(--muted-foreground)] hover:text-[var(--foreground)] disabled:opacity-50"- title={item.description}- >- + {t(item.display_name)}- </button>+ <Tooltip key={item.id} label={t(item.display_name)} description={item.description}>+ <button+ type="button"+ disabled={Boolean(busy)}+ onClick={() =>+ void mutate(`install:${item.id}`, () =>+ installBundledVisualizer(item.id),+ )+ }+ className="rounded-md border border-[var(--border)] px-2 py-1 text-[10px] text-[var(--muted-foreground)] hover:text-[var(--foreground)] disabled:opacity-50"+ >+ + {t(item.display_name)}+ </button>+ </Tooltip>))}{disabledTypes.map((item) => (<buttondiff --git a/web/features/co-writer/components/CoWriterWorkspace.tsx b/web/features/co-writer/components/CoWriterWorkspace.tsxindex a69b65783..992e5d332 100644--- a/web/features/co-writer/components/CoWriterWorkspace.tsx+++ b/web/features/co-writer/components/CoWriterWorkspace.tsx@@ -1677,15 +1677,17 @@ export default function CoWriterWorkspace({ docId }: CoWriterWorkspaceProps) {{/* ── Top bar ── */}<header className="flex shrink-0 items-center justify-between border-b border-[var(--border)] px-4 py-1.5"><div className="flex min-w-0 items-center gap-3 text-sm text-[var(--muted-foreground)]">- <button- type="button"- onClick={() => router.push("/co-writer")}- className="inline-flex shrink-0 items-center gap-1 rounded-md px-1.5 py-0.5 text-xs font-medium text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"- title={t("Back to documents")}- >- <ChevronLeft size={14} strokeWidth={1.7} />- <span>{t("Co-Writer")}</span>- </button>+ <Tooltip label={t("Back to documents")}>+ <button+ type="button"+ onClick={() => router.push("/co-writer")}+ className="inline-flex shrink-0 items-center gap-1 rounded-md px-1.5 py-0.5 text-xs font-medium text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"+ aria-label={t("Back to documents")}+ >+ <ChevronLeft size={14} strokeWidth={1.7} />+ <span>{t("Co-Writer")}</span>+ </button>+ </Tooltip><span className="text-[var(--muted-foreground)]/40">/</span>{isEditingTitle ? (<input@@ -1811,45 +1813,51 @@ export default function CoWriterWorkspace({ docId }: CoWriterWorkspaceProps) {}const Icon = item.icon;return (- <button- key={item.id}- title={t(item.title)}- onClick={() =>- item.action ? item.action() : insertSnippet(item.snippet || "")- }- className="shrink-0 rounded-md p-1.5 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)]/55 hover:text-[var(--foreground)] active:scale-[0.97]"- >- <Icon size={16} />- </button>+ <Tooltip key={item.id} label={t(item.title)}>+ <button+ type="button"+ aria-label={t(item.title)}+ onClick={() =>+ item.action ? item.action() : insertSnippet(item.snippet || "")+ }+ className="shrink-0 rounded-md p-1.5 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)]/55 hover:text-[var(--foreground)] active:scale-[0.97]"+ >+ <Icon size={16} />+ </button>+ </Tooltip>);})}<div className="ml-auto flex shrink-0 items-center gap-1.5 pl-3 text-[10.5px] text-[var(--muted-foreground)]">- <button- type="button"- onClick={() => setSyncScrollEnabled((prev) => !prev)}- disabled={!showEditor || !showPreview}- title={+ <Tooltip+ label={syncScrollEnabled? t("Scroll sync is on. Click to disable."): t("Scroll sync is off. Click to enable.")}- className={`inline-flex items-center gap-1.5 rounded-lg px-2 py-1 text-[10.5px] font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-40 ${- syncScrollEnabled- ? "bg-[var(--primary)]/10 text-[var(--primary)]"- : "text-[var(--muted-foreground)] hover:bg-[var(--muted)]/55"- }`}>- <span- aria-hidden="true"- className={`inline-block h-1.5 w-1.5 rounded-full ${+ <button+ type="button"+ onClick={() => setSyncScrollEnabled((prev) => !prev)}+ disabled={!showEditor || !showPreview}+ aria-pressed={syncScrollEnabled}+ className={`inline-flex items-center gap-1.5 rounded-lg px-2 py-1 text-[10.5px] font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-40 ${syncScrollEnabled- ? "bg-[var(--primary)]"- : "bg-[var(--muted-foreground)]/60"+ ? "bg-[var(--primary)]/10 text-[var(--primary)]"+ : "text-[var(--muted-foreground)] hover:bg-[var(--muted)]/55"}`}- />- {t("Sync Scroll")}- </button>+ >+ <span+ aria-hidden="true"+ className={`inline-block h-1.5 w-1.5 rounded-full ${+ syncScrollEnabled+ ? "bg-[var(--primary)]"+ : "bg-[var(--muted-foreground)]/60"+ }`}+ />+ {t("Sync Scroll")}+ </button>+ </Tooltip><spanclassName="mx-0.5 h-3 w-px bg-[var(--border)]"aria-hidden="true"@@ -1885,13 +1893,16 @@ export default function CoWriterWorkspace({ docId }: CoWriterWorkspaceProps) {<span className="text-xs font-medium text-[var(--muted-foreground)]">{t("Editor")}</span>- <button- title={t("Collapse editor")}- onClick={() => setEditorCollapsed(true)}- className="rounded p-0.5 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"- >- <ChevronLeft size={14} />- </button>+ <Tooltip label={t("Collapse editor")}>+ <button+ type="button"+ aria-label={t("Collapse editor")}+ onClick={() => setEditorCollapsed(true)}+ className="rounded p-0.5 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"+ >+ <ChevronLeft size={14} />+ </button>+ </Tooltip></div><textarearef={textareaRef}@@ -1938,23 +1949,29 @@ export default function CoWriterWorkspace({ docId }: CoWriterWorkspaceProps) {{/* Collapse gutter / expand buttons */}{editorCollapsed && (- <button- onClick={() => setEditorCollapsed(false)}- title={t("Expand editor")}- className="flex w-7 shrink-0 items-center justify-center border-r border-[var(--border)] text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"- >- <ChevronRight size={14} />- </button>+ <Tooltip label={t("Expand editor")}>+ <button+ type="button"+ onClick={() => setEditorCollapsed(false)}+ aria-label={t("Expand editor")}+ className="flex h-full w-7 shrink-0 items-center justify-center border-r border-[var(--border)] text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"+ >+ <ChevronRight size={14} />+ </button>+ </Tooltip>)}{previewCollapsed && (- <button- onClick={() => setPreviewCollapsed(false)}- title={t("Expand preview")}- className="flex w-7 shrink-0 items-center justify-center border-l border-[var(--border)] text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"- >- <ChevronLeft size={14} />- </button>+ <Tooltip label={t("Expand preview")}>+ <button+ type="button"+ onClick={() => setPreviewCollapsed(false)}+ aria-label={t("Expand preview")}+ className="flex h-full w-7 shrink-0 items-center justify-center border-l border-[var(--border)] text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"+ >+ <ChevronLeft size={14} />+ </button>+ </Tooltip>)}{/* Preview panel */}@@ -1969,13 +1986,16 @@ export default function CoWriterWorkspace({ docId }: CoWriterWorkspaceProps) {<span className="text-xs font-medium text-[var(--muted-foreground)]">{t("Preview")}</span>- <button- title={t("Collapse preview")}- onClick={() => setPreviewCollapsed(true)}- className="rounded p-0.5 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"- >- <ChevronRight size={14} />- </button>+ <Tooltip label={t("Collapse preview")}>+ <button+ type="button"+ aria-label={t("Collapse preview")}+ onClick={() => setPreviewCollapsed(true)}+ className="rounded p-0.5 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"+ >+ <ChevronRight size={14} />+ </button>+ </Tooltip></div><divref={previewScrollRef}@@ -2022,18 +2042,23 @@ export default function CoWriterWorkspace({ docId }: CoWriterWorkspaceProps) {className="h-10 w-full rounded-xl bg-transparent pl-3 pr-10 text-[13px] text-[var(--foreground)] outline-none placeholder:text-[var(--muted-foreground)]"placeholder={t("Tell AI what to do with the selection...")}/>- <button- onClick={() => void applyReactSelectionEdit()}- disabled={isEditing || isAutoMarking}- className="absolute right-1.5 top-1.5 inline-flex h-7 w-7 items-center justify-center rounded-[10px] bg-[var(--primary)] text-[var(--primary-foreground)] transition-[background-color,transform,opacity] duration-150 hover:bg-[var(--primary)]/90 active:scale-95 disabled:opacity-25"- title={t("Apply AI edit")}- >- {isEditing ? (- <Loader2 size={13} className="animate-spin" />- ) : (- <ArrowRight size={13} />- )}- </button>+ <span className="absolute right-1.5 top-1.5">+ <Tooltip label={t("Apply AI edit")}>+ <button+ type="button"+ onClick={() => void applyReactSelectionEdit()}+ disabled={isEditing || isAutoMarking}+ aria-label={t("Apply AI edit")}+ className="inline-flex h-7 w-7 items-center justify-center rounded-[10px] bg-[var(--primary)] text-[var(--primary-foreground)] transition-[background-color,transform,opacity] duration-150 hover:bg-[var(--primary)]/90 active:scale-95 disabled:opacity-25"+ >+ {isEditing ? (+ <Loader2 size={13} className="animate-spin" />+ ) : (+ <ArrowRight size={13} />+ )}+ </button>+ </Tooltip>+ </span></div><div className="mt-2 grid grid-cols-2 gap-2">