feat(webui): refine composer action feedback (#6419)
* feat(webui): refine composer action feedback * fix(webui): preserve composer hit targets and ring previews
This commit is contained in:
1 parent
03e9b5430b
commit
6d4add200b
20 files changed
+351
-48
No files matched your search
@@ -18,6 +18,7 @@ import { HoverHint, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tr
|
||||
import { Disclosure } from "@/components/ui/disclosure";
|
||||
import { ExpandableText } from "@/components/ui/expandable-text";
|
||||
import { StreamingLabelSheen } from "@/components/ui/streaming-label-sheen";
|
||||
import { LoadingRing } from "@/components/ui/loading-ring";
|
||||
import { ImageViewport } from "@/components/ui/image-viewport";
|
||||
import { Sample, type ComponentExample } from "./example";
|
||||
import { useGalleryTranslation } from "./i18n";
|
||||
@@ -302,6 +303,13 @@ export const foundationExamples: ComponentExample[] = [
|
||||
{ title: "controls.imageViewport.title", files: ["image-viewport"], Preview: ImageViewports,
|
||||
description: "controls.imageViewport.description", options: "controls.imageViewport.options",
|
||||
code: '<div className="flex h-80 flex-col"><ImageViewport src={url} alt={label} className="flex-1" /></div>' },
|
||||
{ title: "controls.loadingRing.title", files: ["loading-ring"],
|
||||
Preview: () => <div className="flex items-center gap-6 text-muted-foreground">
|
||||
<LoadingRing className="h-3 w-3" />
|
||||
<LoadingRing track={false} strokeWidth="1.5" strokeDasharray="12 50.8" className="h-6 w-6" />
|
||||
</div>,
|
||||
description: "controls.loadingRing.description", options: "controls.loadingRing.options",
|
||||
code: '<LoadingRing className="h-3 w-3 text-muted-foreground" />\n<LoadingRing track={false} strokeWidth="1.5" strokeDasharray="12 50.8" className="h-6 w-6" />' },
|
||||
{ title: "controls.streaming.title", files: ["streaming-label-sheen"], Preview: StreamingLabels,
|
||||
description: "controls.streaming.description", options: "controls.streaming.options",
|
||||
code: '<StreamingLabelSheen active={running}>Working…</StreamingLabelSheen>' },
|
||||
|
||||
@@ -166,6 +166,11 @@
|
||||
"description": "Image-local fit, zoom, pan and pinch controls.",
|
||||
"options": "Supply a bounded className and remount for a different image identity. Set panWithArrows=false when a gallery owns arrow navigation."
|
||||
},
|
||||
"loadingRing": {
|
||||
"title": "Loading ring",
|
||||
"description": "A shared activity ring with an optional track.",
|
||||
"options": "className sets size and color. track=false hides the track; strokeWidth and strokeDasharray adjust the arc. Respects reduced-motion settings."
|
||||
},
|
||||
"streaming": {
|
||||
"title": "Animated labels",
|
||||
"description": "A shared text animation for active thinking and tool labels.",
|
||||
|
||||
@@ -166,6 +166,11 @@
|
||||
"description": "Ajuste, zoom, desplazamiento y pellizco propios de cada imagen.",
|
||||
"options": "Proporciona una className con límites y vuelve a montar si cambia la identidad de la imagen. Usa panWithArrows=false cuando una galería gestione las flechas."
|
||||
},
|
||||
"loadingRing": {
|
||||
"title": "Anillo de actividad",
|
||||
"description": "Un indicador de actividad compartido con pista opcional.",
|
||||
"options": "className define el tamaño y el color. track=false oculta la pista; strokeWidth y strokeDasharray ajustan el arco. Respeta la preferencia de movimiento reducido."
|
||||
},
|
||||
"streaming": {
|
||||
"title": "Etiquetas animadas",
|
||||
"description": "Una animación de texto compartida para la reflexión activa y las etiquetas de herramientas.",
|
||||
|
||||
@@ -166,6 +166,11 @@
|
||||
"description": "Commandes d’ajustement, zoom, déplacement et pincement propres à l’image.",
|
||||
"options": "Fournissez une className délimitant la zone et remontez le composant si l’identité de l’image change. Définissez panWithArrows=false si une galerie gère les flèches."
|
||||
},
|
||||
"loadingRing": {
|
||||
"title": "Anneau d’activité",
|
||||
"description": "Un indicateur d’activité partagé avec une piste facultative.",
|
||||
"options": "className définit la taille et la couleur. track=false masque la piste ; strokeWidth et strokeDasharray ajustent l’arc. Respecte la préférence de réduction des animations."
|
||||
},
|
||||
"streaming": {
|
||||
"title": "Libellés animés",
|
||||
"description": "Une animation de texte partagée pour la réflexion et les libellés d’outils actifs.",
|
||||
|
||||
@@ -166,6 +166,11 @@
|
||||
"description": "Kontrol penyesuaian, zoom, geser, dan cubit untuk setiap gambar.",
|
||||
"options": "Sediakan className dengan batas area dan pasang ulang untuk identitas gambar yang berbeda. Atur panWithArrows=false jika galeri mengelola navigasi panah."
|
||||
},
|
||||
"loadingRing": {
|
||||
"title": "Cincin aktivitas",
|
||||
"description": "Indikator aktivitas bersama dengan jalur opsional.",
|
||||
"options": "className mengatur ukuran dan warna. track=false menyembunyikan jalur; strokeWidth dan strokeDasharray mengatur busur. Mengikuti preferensi pengurangan gerakan."
|
||||
},
|
||||
"streaming": {
|
||||
"title": "Label beranimasi",
|
||||
"description": "Animasi teks bersama untuk proses berpikir aktif dan label alat.",
|
||||
|
||||
@@ -166,6 +166,11 @@
|
||||
"description": "画像単位のフィット、ズーム、移動、ピンチ操作。",
|
||||
"options": "className で領域を制限し、画像の識別情報が変わったら再マウントします。ギャラリーが矢印キー操作を管理する場合は panWithArrows=false にします。"
|
||||
},
|
||||
"loadingRing": {
|
||||
"title": "処理リング",
|
||||
"description": "背景リングを省略できる共通の処理インジケーター。",
|
||||
"options": "className でサイズと色を設定します。track=false で背景リングを非表示にし、strokeWidth と strokeDasharray で円弧を調整します。視差効果を減らす設定に従います。"
|
||||
},
|
||||
"streaming": {
|
||||
"title": "アニメーションラベル",
|
||||
"description": "思考中や実行中のツールラベルで共有するテキストアニメーション。",
|
||||
|
||||
@@ -166,6 +166,11 @@
|
||||
"description": "이미지별 맞춤, 확대/축소, 이동, 핀치 컨트롤입니다.",
|
||||
"options": "className으로 영역을 제한하고 이미지 식별 정보가 달라지면 다시 마운트합니다. 갤러리가 방향키 탐색을 관리하면 panWithArrows=false로 설정합니다."
|
||||
},
|
||||
"loadingRing": {
|
||||
"title": "진행 링",
|
||||
"description": "배경 링을 선택적으로 표시하는 공용 진행 표시기입니다.",
|
||||
"options": "className으로 크기와 색상을 설정합니다. track=false는 배경 링을 숨기고, strokeWidth와 strokeDasharray는 호를 조절합니다. 동작 줄이기 설정을 따릅니다."
|
||||
},
|
||||
"streaming": {
|
||||
"title": "애니메이션 레이블",
|
||||
"description": "진행 중인 사고와 도구 레이블이 공유하는 텍스트 애니메이션입니다.",
|
||||
|
||||
@@ -166,6 +166,11 @@
|
||||
"description": "Controles de ajuste, zoom, deslocamento e pinça locais à imagem.",
|
||||
"options": "Forneça uma className com limites e remonte o componente se a identidade da imagem mudar. Use panWithArrows=false quando uma galeria gerenciar as setas."
|
||||
},
|
||||
"loadingRing": {
|
||||
"title": "Anel de atividade",
|
||||
"description": "Um indicador de atividade compartilhado com trilha opcional.",
|
||||
"options": "className define o tamanho e a cor. track=false oculta a trilha; strokeWidth e strokeDasharray ajustam o arco. Respeita a preferência por movimento reduzido."
|
||||
},
|
||||
"streaming": {
|
||||
"title": "Rótulos animados",
|
||||
"description": "Uma animação de texto compartilhada para raciocínio ativo e rótulos de ferramentas.",
|
||||
|
||||
@@ -166,6 +166,11 @@
|
||||
"description": "Điều khiển vừa khung, thu phóng, di chuyển và chụm ngón cho từng ảnh.",
|
||||
"options": "Dùng className để giới hạn vùng và gắn kết lại khi danh tính ảnh thay đổi. Đặt panWithArrows=false nếu thư viện ảnh quản lý điều hướng bằng phím mũi tên."
|
||||
},
|
||||
"loadingRing": {
|
||||
"title": "Vòng hoạt động",
|
||||
"description": "Chỉ báo hoạt động dùng chung với vòng nền tùy chọn.",
|
||||
"options": "className đặt kích thước và màu sắc. track=false ẩn vòng nền; strokeWidth và strokeDasharray điều chỉnh cung tròn. Tuân theo tùy chọn giảm chuyển động."
|
||||
},
|
||||
"streaming": {
|
||||
"title": "Nhãn động",
|
||||
"description": "Hiệu ứng văn bản dùng chung cho trạng thái suy nghĩ và nhãn công cụ đang hoạt động.",
|
||||
|
||||
@@ -166,6 +166,11 @@
|
||||
"description": "单张图片的适应、缩放、平移与双指缩放控件。",
|
||||
"options": "用 className 限定边界;更换图片身份时重新挂载。图库管理方向键导航时设置 panWithArrows=false。"
|
||||
},
|
||||
"loadingRing": {
|
||||
"title": "运行圆环",
|
||||
"description": "可选底环的共享运行指示器。",
|
||||
"options": "className 设置尺寸和颜色。track=false 隐藏底环;strokeWidth 和 strokeDasharray 调整圆弧。遵循减少动态效果设置。"
|
||||
},
|
||||
"streaming": {
|
||||
"title": "流光文字",
|
||||
"description": "思考中与工具标签共用的文字动画。",
|
||||
|
||||
@@ -166,6 +166,11 @@
|
||||
"description": "單張圖片的適應、縮放、平移與雙指縮放。",
|
||||
"options": "用 className 限定邊界;更換圖片身分時重新掛載。圖庫管理方向鍵導覽時設定 panWithArrows=false。"
|
||||
},
|
||||
"loadingRing": {
|
||||
"title": "執行圓環",
|
||||
"description": "可選底環的共用執行指示器。",
|
||||
"options": "className 設定尺寸和顏色。track=false 隱藏底環;strokeWidth 和 strokeDasharray 調整圓弧。遵循減少動態效果設定。"
|
||||
},
|
||||
"streaming": {
|
||||
"title": "流光文字",
|
||||
"description": "思考中與工具標籤共用的文字動畫。",
|
||||
|
||||
Reference in new issue
Block a user