fix(webui): remove queued send hint
This commit is contained in:
1 parent
04d396600b
commit
144d17da61
12 files changed
+2
-16
No files matched your search
@@ -2379,7 +2379,6 @@ export function ThreadComposer({
|
|||||||
prompts={queuedPrompts}
|
prompts={queuedPrompts}
|
||||||
isHero={isHero}
|
isHero={isHero}
|
||||||
label={t("thread.composer.queued.label")}
|
label={t("thread.composer.queued.label")}
|
||||||
hint={t("thread.composer.queued.hint")}
|
|
||||||
guideLabel={t("thread.composer.queued.guide")}
|
guideLabel={t("thread.composer.queued.guide")}
|
||||||
deleteLabel={t("thread.composer.queued.delete")}
|
deleteLabel={t("thread.composer.queued.delete")}
|
||||||
dragLabel={t("thread.composer.queued.drag")}
|
dragLabel={t("thread.composer.queued.drag")}
|
||||||
@@ -2689,7 +2688,6 @@ function QueuedPromptStack({
|
|||||||
prompts,
|
prompts,
|
||||||
isHero,
|
isHero,
|
||||||
label,
|
label,
|
||||||
hint,
|
|
||||||
guideLabel,
|
guideLabel,
|
||||||
deleteLabel,
|
deleteLabel,
|
||||||
dragLabel,
|
dragLabel,
|
||||||
@@ -2704,7 +2702,6 @@ function QueuedPromptStack({
|
|||||||
prompts: QueuedPrompt[];
|
prompts: QueuedPrompt[];
|
||||||
isHero: boolean;
|
isHero: boolean;
|
||||||
label: string;
|
label: string;
|
||||||
hint: string;
|
|
||||||
guideLabel: string;
|
guideLabel: string;
|
||||||
deleteLabel: string;
|
deleteLabel: string;
|
||||||
dragLabel: string;
|
dragLabel: string;
|
||||||
@@ -2737,7 +2734,6 @@ function QueuedPromptStack({
|
|||||||
>
|
>
|
||||||
<div className="flex flex-wrap items-baseline justify-between gap-x-3 gap-y-0.5 px-2 pb-1">
|
<div className="flex flex-wrap items-baseline justify-between gap-x-3 gap-y-0.5 px-2 pb-1">
|
||||||
<span className="text-[11.5px] font-semibold text-foreground/75">{label}</span>
|
<span className="text-[11.5px] font-semibold text-foreground/75">{label}</span>
|
||||||
<span className="text-[11px] text-muted-foreground">{hint}</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div className="flex max-h-[216px] flex-col gap-1 overflow-y-auto">
|
<div className="flex max-h-[216px] flex-col gap-1 overflow-y-auto">
|
||||||
{prompts.map((prompt) => (
|
{prompts.map((prompt) => (
|
||||||
|
|||||||
@@ -1606,7 +1606,6 @@
|
|||||||
},
|
},
|
||||||
"queued": {
|
"queued": {
|
||||||
"label": "Waiting to send",
|
"label": "Waiting to send",
|
||||||
"hint": "Send now, or wait for the current response to finish.",
|
|
||||||
"guide": "Send now",
|
"guide": "Send now",
|
||||||
"delete": "Delete guidance",
|
"delete": "Delete guidance",
|
||||||
"edit": "Edit guidance",
|
"edit": "Edit guidance",
|
||||||
|
|||||||
@@ -1407,7 +1407,6 @@
|
|||||||
},
|
},
|
||||||
"queued": {
|
"queued": {
|
||||||
"label": "Pendiente de envío",
|
"label": "Pendiente de envío",
|
||||||
"hint": "Envía ahora o espera a que termine la respuesta actual.",
|
|
||||||
"guide": "Enviar ahora",
|
"guide": "Enviar ahora",
|
||||||
"delete": "Eliminar guía",
|
"delete": "Eliminar guía",
|
||||||
"edit": "Editar guía",
|
"edit": "Editar guía",
|
||||||
|
|||||||
@@ -1406,7 +1406,6 @@
|
|||||||
},
|
},
|
||||||
"queued": {
|
"queued": {
|
||||||
"label": "En attente d’envoi",
|
"label": "En attente d’envoi",
|
||||||
"hint": "Envoyez maintenant ou attendez la fin de la réponse en cours.",
|
|
||||||
"guide": "Envoyer",
|
"guide": "Envoyer",
|
||||||
"delete": "Supprimer le guidage",
|
"delete": "Supprimer le guidage",
|
||||||
"edit": "Modifier le guidage",
|
"edit": "Modifier le guidage",
|
||||||
|
|||||||
@@ -1406,7 +1406,6 @@
|
|||||||
},
|
},
|
||||||
"queued": {
|
"queued": {
|
||||||
"label": "Menunggu dikirim",
|
"label": "Menunggu dikirim",
|
||||||
"hint": "Kirim sekarang atau tunggu hingga respons saat ini selesai.",
|
|
||||||
"guide": "Kirim sekarang",
|
"guide": "Kirim sekarang",
|
||||||
"delete": "Hapus panduan",
|
"delete": "Hapus panduan",
|
||||||
"edit": "Ubah panduan",
|
"edit": "Ubah panduan",
|
||||||
|
|||||||
@@ -1406,7 +1406,6 @@
|
|||||||
},
|
},
|
||||||
"queued": {
|
"queued": {
|
||||||
"label": "送信待ち",
|
"label": "送信待ち",
|
||||||
"hint": "今すぐ送信するか、現在の応答が終わるまで待ちます。",
|
|
||||||
"guide": "今すぐ送信",
|
"guide": "今すぐ送信",
|
||||||
"delete": "ガイドを削除",
|
"delete": "ガイドを削除",
|
||||||
"edit": "ガイドを編集",
|
"edit": "ガイドを編集",
|
||||||
|
|||||||
@@ -1406,7 +1406,6 @@
|
|||||||
},
|
},
|
||||||
"queued": {
|
"queued": {
|
||||||
"label": "전송 대기 중",
|
"label": "전송 대기 중",
|
||||||
"hint": "지금 보내거나 현재 응답이 끝날 때까지 기다리세요.",
|
|
||||||
"guide": "지금 보내기",
|
"guide": "지금 보내기",
|
||||||
"delete": "안내 삭제",
|
"delete": "안내 삭제",
|
||||||
"edit": "안내 수정",
|
"edit": "안내 수정",
|
||||||
|
|||||||
@@ -1420,7 +1420,6 @@
|
|||||||
},
|
},
|
||||||
"queued": {
|
"queued": {
|
||||||
"label": "Aguardando envio",
|
"label": "Aguardando envio",
|
||||||
"hint": "Envie agora ou aguarde a resposta atual terminar.",
|
|
||||||
"guide": "Enviar agora",
|
"guide": "Enviar agora",
|
||||||
"delete": "Excluir guia",
|
"delete": "Excluir guia",
|
||||||
"edit": "Editar guia",
|
"edit": "Editar guia",
|
||||||
|
|||||||
@@ -1406,7 +1406,6 @@
|
|||||||
},
|
},
|
||||||
"queued": {
|
"queued": {
|
||||||
"label": "Đang chờ gửi",
|
"label": "Đang chờ gửi",
|
||||||
"hint": "Gửi ngay hoặc chờ phản hồi hiện tại hoàn tất.",
|
|
||||||
"guide": "Gửi ngay",
|
"guide": "Gửi ngay",
|
||||||
"delete": "Xóa hướng dẫn",
|
"delete": "Xóa hướng dẫn",
|
||||||
"edit": "Sửa hướng dẫn",
|
"edit": "Sửa hướng dẫn",
|
||||||
|
|||||||
@@ -1605,7 +1605,6 @@
|
|||||||
},
|
},
|
||||||
"queued": {
|
"queued": {
|
||||||
"label": "等待发送",
|
"label": "等待发送",
|
||||||
"hint": "立即发送,或等待当前回复结束。",
|
|
||||||
"guide": "立即发送",
|
"guide": "立即发送",
|
||||||
"delete": "删除引导",
|
"delete": "删除引导",
|
||||||
"edit": "编辑引导",
|
"edit": "编辑引导",
|
||||||
|
|||||||
@@ -1406,7 +1406,6 @@
|
|||||||
},
|
},
|
||||||
"queued": {
|
"queued": {
|
||||||
"label": "等待傳送",
|
"label": "等待傳送",
|
||||||
"hint": "立即傳送,或等待目前回覆結束。",
|
|
||||||
"guide": "立即傳送",
|
"guide": "立即傳送",
|
||||||
"delete": "刪除引導",
|
"delete": "刪除引導",
|
||||||
"edit": "編輯引導",
|
"edit": "編輯引導",
|
||||||
|
|||||||
@@ -2892,9 +2892,9 @@ describe("ThreadComposer", () => {
|
|||||||
expect(input).toHaveValue("");
|
expect(input).toHaveValue("");
|
||||||
expect(screen.getByText("keep the UI minimal")).toBeInTheDocument();
|
expect(screen.getByText("keep the UI minimal")).toBeInTheDocument();
|
||||||
expect(screen.getByText("Waiting to send")).toBeInTheDocument();
|
expect(screen.getByText("Waiting to send")).toBeInTheDocument();
|
||||||
expect(screen.getByText(
|
expect(screen.queryByText(
|
||||||
"Send now, or wait for the current response to finish.",
|
"Send now, or wait for the current response to finish.",
|
||||||
)).toBeInTheDocument();
|
)).not.toBeInTheDocument();
|
||||||
|
|
||||||
fireEvent.click(screen.getByRole("button", { name: "Send now" }));
|
fireEvent.click(screen.getByRole("button", { name: "Send now" }));
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user