fix(frontend): English UI strings for session menu/dialogs; rename empty-guard + cancel test

- SessionMenu: anglicize all Italian labels (Vista divisa → Split view, etc.)
- RenameDialog: add empty-name guard + change title to "Rename session"
- DeleteConfirmDialog: translate title and description to English
- SessionActions.test: add 2 new tests (empty name guard, cancel on DeleteConfirmDialog)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-29 13:01:54 +02:00
co-authored by Claude Opus 4.8
parent 013a84ed4b
commit 4f97ea9fc2
4 changed files with 28 additions and 11 deletions
+2 -1
View File
@@ -15,6 +15,7 @@ export function RenameDialog({ open, initial, onOpenChange, onSubmit }: Props) {
function submit(e: React.FormEvent) {
e.preventDefault();
if (!name.trim()) return;
onSubmit(name.trim());
onOpenChange(false);
}
@@ -22,7 +23,7 @@ export function RenameDialog({ open, initial, onOpenChange, onSubmit }: Props) {
return (
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent>
<DialogHeader><DialogTitle>Rinomina sessione</DialogTitle></DialogHeader>
<DialogHeader><DialogTitle>Rename session</DialogTitle></DialogHeader>
<form onSubmit={submit} className="flex flex-col gap-3">
<div>
<label className="mb-1.5 block text-xs font-medium text-muted-foreground" htmlFor="rename-name">Name</label>