fix(webui): remove ellipses from sending labels

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-27 15:59:53 +08:00
1 parent 8aa0deaca3
commit b6536bfc5e
13 files changed
+13 -13

No files matched your search

+1 -1
View File
@@ -136,7 +136,7 @@ for (const width of [1024, 360]) {
} }
await expect(files.nth(2).getByRole("link")).toHaveAccessibleName(chinese ? "下载 文件附件" : "Download File attachment"); await expect(files.nth(2).getByRole("link")).toHaveAccessibleName(chinese ? "下载 文件附件" : "Download File attachment");
for (const [label, filename, status] of [ for (const [label, filename, status] of [
["Pending attachment", "pending.zip", chinese ? "发送中…" : "Sending…"], ["Pending attachment", "pending.zip", chinese ? "发送中" : "Sending"],
["Unavailable attachment", "unavailable.pdf", chinese ? "附件不可用" : "Attachment unavailable"], ["Unavailable attachment", "unavailable.pdf", chinese ? "附件不可用" : "Attachment unavailable"],
]) { ]) {
const region = page.getByRole("region", { name: label, exact: true }); const region = page.getByRole("region", { name: label, exact: true });
+1 -1
View File
@@ -2317,7 +2317,7 @@
"actions": "Message actions", "actions": "Message actions",
"streaming": "streaming", "streaming": "streaming",
"delivery": { "delivery": {
"sending": "Sending…", "sending": "Sending",
"failed": "Not sent" "failed": "Not sent"
}, },
"assistantTyping": "Assistant is typing", "assistantTyping": "Assistant is typing",
+1 -1
View File
@@ -2112,7 +2112,7 @@
"actions": "Acciones del mensaje", "actions": "Acciones del mensaje",
"streaming": "transmitiendo", "streaming": "transmitiendo",
"delivery": { "delivery": {
"sending": "Enviando…", "sending": "Enviando",
"failed": "No enviado" "failed": "No enviado"
}, },
"assistantTyping": "El asistente está escribiendo", "assistantTyping": "El asistente está escribiendo",
+1 -1
View File
@@ -2111,7 +2111,7 @@
"actions": "Actions du message", "actions": "Actions du message",
"streaming": "en cours de génération", "streaming": "en cours de génération",
"delivery": { "delivery": {
"sending": "Envoi…", "sending": "Envoi",
"failed": "Non envoyé" "failed": "Non envoyé"
}, },
"assistantTyping": "L’assistant est en train d’écrire", "assistantTyping": "L’assistant est en train d’écrire",
+1 -1
View File
@@ -2111,7 +2111,7 @@
"actions": "Tindakan pesan", "actions": "Tindakan pesan",
"streaming": "sedang mengalir", "streaming": "sedang mengalir",
"delivery": { "delivery": {
"sending": "Mengirim…", "sending": "Mengirim",
"failed": "Belum terkirim" "failed": "Belum terkirim"
}, },
"assistantTyping": "Asisten sedang mengetik", "assistantTyping": "Asisten sedang mengetik",
+1 -1
View File
@@ -2111,7 +2111,7 @@
"actions": "メッセージ操作", "actions": "メッセージ操作",
"streaming": "生成中", "streaming": "生成中",
"delivery": { "delivery": {
"sending": "送信中…", "sending": "送信中",
"failed": "未送信" "failed": "未送信"
}, },
"assistantTyping": "アシスタントが入力中", "assistantTyping": "アシスタントが入力中",
+1 -1
View File
@@ -2111,7 +2111,7 @@
"actions": "메시지 작업", "actions": "메시지 작업",
"streaming": "생성 중", "streaming": "생성 중",
"delivery": { "delivery": {
"sending": "전송 중…", "sending": "전송 중",
"failed": "전송되지 않음" "failed": "전송되지 않음"
}, },
"assistantTyping": "도우미가 입력 중", "assistantTyping": "도우미가 입력 중",
+1 -1
View File
@@ -2125,7 +2125,7 @@
"actions": "Ações da mensagem", "actions": "Ações da mensagem",
"streaming": "transmitindo", "streaming": "transmitindo",
"delivery": { "delivery": {
"sending": "Enviando…", "sending": "Enviando",
"failed": "Não enviada" "failed": "Não enviada"
}, },
"assistantTyping": "Assistente está digitando", "assistantTyping": "Assistente está digitando",
+1 -1
View File
@@ -2111,7 +2111,7 @@
"actions": "Thao tác tin nhắn", "actions": "Thao tác tin nhắn",
"streaming": "đang truyền", "streaming": "đang truyền",
"delivery": { "delivery": {
"sending": "Đang gửi…", "sending": "Đang gửi",
"failed": "Chưa gửi" "failed": "Chưa gửi"
}, },
"assistantTyping": "Trợ lý đang nhập", "assistantTyping": "Trợ lý đang nhập",
+1 -1
View File
@@ -2317,7 +2317,7 @@
"actions": "消息操作", "actions": "消息操作",
"streaming": "流式输出中", "streaming": "流式输出中",
"delivery": { "delivery": {
"sending": "发送中…", "sending": "发送中",
"failed": "未发送" "failed": "未发送"
}, },
"assistantTyping": "助手正在输入", "assistantTyping": "助手正在输入",
+1 -1
View File
@@ -2111,7 +2111,7 @@
"actions": "訊息操作", "actions": "訊息操作",
"streaming": "串流輸出中", "streaming": "串流輸出中",
"delivery": { "delivery": {
"sending": "傳送中…", "sending": "傳送中",
"failed": "未傳送" "failed": "未傳送"
}, },
"assistantTyping": "助理正在輸入", "assistantTyping": "助理正在輸入",
+1 -1
View File
@@ -27,7 +27,7 @@ describe("attachment download cards", () => {
it("changes a pending file to a download only after its URL arrives", () => { it("changes a pending file to a download only after its URL arrives", () => {
const attachment = { kind: "file" as const, name: "report.pdf" }; const attachment = { kind: "file" as const, name: "report.pdf" };
const { rerender } = render(<AttachmentTile attachment={attachment} pending />); const { rerender } = render(<AttachmentTile attachment={attachment} pending />);
expect(screen.getByText("Sending…")).toBeVisible(); expect(screen.getByText("Sending")).toBeVisible();
expect(screen.queryByRole("link")).not.toBeInTheDocument(); expect(screen.queryByRole("link")).not.toBeInTheDocument();
rerender(<AttachmentTile attachment={{ ...attachment, url: "/api/media/signed/report" }} />); rerender(<AttachmentTile attachment={{ ...attachment, url: "/api/media/signed/report" }} />);
+1 -1
View File
@@ -424,7 +424,7 @@ describe("MessageBubble", () => {
const { rerender } = render(<MessageBubble message={message} />); const { rerender } = render(<MessageBubble message={message} />);
expect(screen.getByRole("status")).toHaveTextContent("Sending…"); expect(screen.getByRole("status")).toHaveTextContent("Sending");
rerender(<MessageBubble message={{ ...message, deliveryStatus: "accepted" }} />); rerender(<MessageBubble message={{ ...message, deliveryStatus: "accepted" }} />);
expect(screen.queryByRole("status")).not.toBeInTheDocument(); expect(screen.queryByRole("status")).not.toBeInTheDocument();